@feedmepos/mf-menu 0.31.33-beta.1 → 0.31.33-beta.6
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-B4rnpCXN.js → App-Dt6RQiUh.js} +6 -6
- package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-LtwWMoPW.js → ApplyProduct.vue_vue_type_script_setup_true_lang-B_SQpWg7.js} +2 -2
- package/dist/{Catalog-Cd7J8de0.js → Catalog-CFx7t_Nu.js} +79 -79
- package/dist/{Category-p8UUDEiv.js → Category-CPMx86rY.js} +23 -19
- package/dist/{Category-D3WDm9Fe.js → Category-OjK-v--G.js} +5 -5
- package/dist/{CookingGuide-hFtxmtGj.js → CookingGuide-ANnXKBjc.js} +3 -3
- package/dist/CustomAttributeChip.vue_vue_type_script_setup_true_lang-D-1OzZ-i.js +113 -0
- package/dist/{Group-Bv0dyi8v.js → Group--DJjkGab.js} +1 -1
- package/dist/{Group-BTrqZgFd.js → Group-K4925_bP.js} +3 -3
- package/dist/Group.vue_vue_type_script_setup_true_lang-36O78xv0.js +684 -0
- package/dist/GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-BIX-gPUO.js +372 -0
- package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-CxPaVLVu.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-C-z1m3jh.js} +13987 -13378
- package/dist/{Ingredient-BCostN4Y.js → Ingredient-G4Txx6_0.js} +3 -3
- package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-MAqpI7ZD.js → InventoryBinding.vue_vue_type_script_setup_true_lang-HgHBlflo.js} +2 -2
- package/dist/{LinkProductSideSheet-abzVzmo3.js → LinkProductSideSheet-CWNarCEs.js} +1 -1
- package/dist/{MenuSetting-TfAo82-E.js → MenuSetting-Cx-EHG-6.js} +4 -4
- package/dist/{PrintRoute-B43rP5A9.js → PrintRoute-IxHGvGzF.js} +3 -3
- package/dist/{Product-C7cYyDHH.js → Product-D1gqn5J6.js} +1 -1
- package/dist/Product.vue_vue_type_script_setup_true_lang-BCQd-ks4.js +1641 -0
- package/dist/{ProductInternalTools-CkswVuAF.js → ProductInternalTools-GJ2OE5gU.js} +5 -5
- package/dist/Products-DJqgSe-Y.js +270 -0
- package/dist/{Publish-DIKqaH2f.js → Publish-C86rd413.js} +3 -3
- package/dist/{Recipe-_ApT00c_.js → Recipe-BbQKou9p.js} +4 -4
- package/dist/{Scheduler-DWY1kKHO.js → Scheduler-DUeTkyGQ.js} +3 -3
- package/dist/{ServingSequence-Z1S9zOTO.js → ServingSequence-BROo5rC_.js} +3 -3
- package/dist/Setting-D-ueTlwO.js +259 -0
- package/dist/{Subcategory-Lqq6XHz2.js → Subcategory-DVewA8HX.js} +4 -4
- package/dist/{Takeaway-DiGzrarg.js → Takeaway-B4lDGQDh.js} +4 -4
- package/dist/{Takeaway-DGvM9SBP.js → Takeaway-DyPjHuCl.js} +1 -1
- package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-BfWy217t.js → Takeaway.vue_vue_type_script_setup_true_lang-BTDlzYuX.js} +6 -6
- package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-B2wC_Mf0.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-B5BAKDRP.js} +642 -642
- package/dist/{Unit-D11rRFAf.js → Unit-CVF0dom4.js} +2 -2
- package/dist/{Variant-LaKYPxDe.js → Variant-DmccAgFU.js} +3 -3
- package/dist/_id_-CWtK62Fy.js +178 -0
- package/dist/{app-C5UXrJGj.js → app-CV_q8OdE.js} +75 -75
- package/dist/{app-Br9mC24D.js → app-ClinzawZ.js} +1 -1
- package/dist/app-DvG3mOom.js +8024 -0
- 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/AttributesSelector.vue.d.ts +2 -0
- package/dist/apps/mf-menu/src/components/feature/LinkProduct/LinkProductUnifiedSideSheet.vue.d.ts +12 -0
- 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/TreeEditor/store/menuV2.d.ts +77 -0
- package/dist/apps/mf-menu/src/composable/customAttributes.d.ts +88 -0
- package/dist/apps/mf-menu/src/helper/{menuImport.d.ts → import-export.d.ts} +204 -3
- 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/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/views/Publish/UpdateCatalogDialog.vue.d.ts +82 -0
- package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
- package/dist/assets/linked-status-fZD691Js.js +24 -0
- package/dist/assets/override-menu-Cjy1BJuz.js +24 -0
- package/dist/assets/validate-menu-uwysUwDP.js +24 -0
- package/dist/{catalog-BDyG_i9q.js → catalog-Wx88K6iI.js} +1 -1
- package/dist/catalogSetting-DTEHDSAd.js +71 -0
- package/dist/{category-Bi6gpIYU.js → category-BRTw76Vf.js} +1 -1
- package/dist/{currency-DDseyYg1.js → currency-562bPc2l.js} +1 -1
- package/dist/customAttributes-CXzd5ud1.js +33 -0
- package/dist/{dayjs.min-DoQgN0KD.js → dayjs.min-Cnfm8bQm.js} +1 -1
- package/dist/{index-DxrEwDTr.js → index-4hf9vONw.js} +2 -2
- package/dist/{index-C-zLHAG1.js → index-Crs_eZ0i.js} +28 -28
- package/dist/{index-DTUmry92.js → index-DJXrJdeQ.js} +3 -3
- package/dist/{item-DqXzPUy9.js → item-CuIxc9FT.js} +377 -377
- package/dist/{jszip.min-iAC5WNVU.js → jszip.min-C9xLIvo4.js} +245 -245
- package/dist/menu-ILWxqJQe.js +133263 -0
- package/dist/{menu-D6df9rcz.js → menu-Mkzv9c8C.js} +4 -4
- package/dist/{priceTier-C56BYecC.js → priceTier-D4joq_kN.js} +1 -1
- package/dist/{scheduler-DCSpt65t.js → scheduler-DuxWoNVb.js} +3 -3
- package/dist/{subcategory-CydaPy_X.js → subcategory-CLLMagXY.js} +43 -43
- package/dist/{toExcel-Bil8CwJs.js → toExcel-hGfpS_Uo.js} +2 -2
- package/dist/{unit-8DyuBx-X.js → unit-9fycj1fu.js} +1 -1
- package/package.json +4 -4
- package/dist/CustomAttributeChip.vue_vue_type_script_setup_true_lang-Cf17Iy5i.js +0 -7949
- package/dist/Group.vue_vue_type_script_setup_true_lang-vk1J9IxK.js +0 -698
- package/dist/GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-B1wrLnf6.js +0 -206
- package/dist/Product.vue_vue_type_script_setup_true_lang-BOq8wMzq.js +0 -1560
- package/dist/Products-C7BtAjhB.js +0 -659
- package/dist/Setting-Bfuf26Gc.js +0 -258
- package/dist/_id_-Q_Tyhr4U.js +0 -200
- package/dist/apps/mf-menu/src/helper/import-export-utils.d.ts +0 -123
- package/dist/apps/mf-menu/src/helper/menuExport.d.ts +0 -32
- package/dist/assets/linked-status-BhGrXd73.js +0 -24
- package/dist/assets/override-menu-CUNDHOWA.js +0 -24
- package/dist/assets/validate-menu-BqOizHsX.js +0 -24
- package/dist/catalogSetting-C33p_dck.js +0 -65
- package/dist/menu-Cir-22ei.js +0 -108039
package/dist/app.js
CHANGED
|
@@ -682,6 +682,7 @@ export declare const i18nMessages: {
|
|
|
682
682
|
products: string;
|
|
683
683
|
all_items: string;
|
|
684
684
|
};
|
|
685
|
+
restaurant_attributes_title: string;
|
|
685
686
|
};
|
|
686
687
|
validation: {
|
|
687
688
|
name_used: string;
|
|
@@ -798,6 +799,15 @@ export declare const i18nMessages: {
|
|
|
798
799
|
};
|
|
799
800
|
link_product: {
|
|
800
801
|
title: string;
|
|
802
|
+
rules: {
|
|
803
|
+
title: string;
|
|
804
|
+
section_title: string;
|
|
805
|
+
order_from: string;
|
|
806
|
+
restaurant_filter: string;
|
|
807
|
+
item_filter: string;
|
|
808
|
+
add_rule: string;
|
|
809
|
+
hint: string;
|
|
810
|
+
};
|
|
801
811
|
};
|
|
802
812
|
catalog_scheduler: {
|
|
803
813
|
title: string;
|
|
@@ -1549,8 +1559,13 @@ export declare const i18nMessages: {
|
|
|
1549
1559
|
};
|
|
1550
1560
|
};
|
|
1551
1561
|
price_tier_config: string;
|
|
1562
|
+
link_price_tier: string;
|
|
1552
1563
|
link_price_group: string;
|
|
1553
1564
|
link_price_group_description: string;
|
|
1565
|
+
not_linked: string;
|
|
1566
|
+
price_group_rule: string;
|
|
1567
|
+
price_group_rule_description: string;
|
|
1568
|
+
restaurant_filter: string;
|
|
1554
1569
|
};
|
|
1555
1570
|
tree_editor: {
|
|
1556
1571
|
title: string;
|
|
@@ -2255,6 +2270,7 @@ export declare const i18nMessages: {
|
|
|
2255
2270
|
products: string;
|
|
2256
2271
|
all_items: string;
|
|
2257
2272
|
};
|
|
2273
|
+
restaurant_attributes_title: string;
|
|
2258
2274
|
};
|
|
2259
2275
|
validation: {
|
|
2260
2276
|
name_used: string;
|
|
@@ -2371,6 +2387,15 @@ export declare const i18nMessages: {
|
|
|
2371
2387
|
};
|
|
2372
2388
|
link_product: {
|
|
2373
2389
|
title: string;
|
|
2390
|
+
rules: {
|
|
2391
|
+
title: string;
|
|
2392
|
+
section_title: string;
|
|
2393
|
+
order_from: string;
|
|
2394
|
+
restaurant_filter: string;
|
|
2395
|
+
item_filter: string;
|
|
2396
|
+
add_rule: string;
|
|
2397
|
+
hint: string;
|
|
2398
|
+
};
|
|
2374
2399
|
};
|
|
2375
2400
|
catalog_scheduler: {
|
|
2376
2401
|
title: string;
|
|
@@ -3122,8 +3147,13 @@ export declare const i18nMessages: {
|
|
|
3122
3147
|
};
|
|
3123
3148
|
};
|
|
3124
3149
|
price_tier_config: string;
|
|
3150
|
+
link_price_tier: string;
|
|
3125
3151
|
link_price_group: string;
|
|
3126
3152
|
link_price_group_description: string;
|
|
3153
|
+
not_linked: string;
|
|
3154
|
+
price_group_rule: string;
|
|
3155
|
+
price_group_rule_description: string;
|
|
3156
|
+
restaurant_filter: string;
|
|
3127
3157
|
};
|
|
3128
3158
|
tree_editor: {
|
|
3129
3159
|
title: string;
|
|
@@ -3824,10 +3854,10 @@ export declare const i18nMessages: {
|
|
|
3824
3854
|
};
|
|
3825
3855
|
add: string;
|
|
3826
3856
|
config: string;
|
|
3827
|
-
percentage: string;
|
|
3828
3857
|
products: string;
|
|
3829
3858
|
all_items: string;
|
|
3830
3859
|
};
|
|
3860
|
+
restaurant_attributes_title: string;
|
|
3831
3861
|
};
|
|
3832
3862
|
validation: {
|
|
3833
3863
|
name_used: string;
|
|
@@ -3944,6 +3974,15 @@ export declare const i18nMessages: {
|
|
|
3944
3974
|
};
|
|
3945
3975
|
link_product: {
|
|
3946
3976
|
title: string;
|
|
3977
|
+
rules: {
|
|
3978
|
+
title: string;
|
|
3979
|
+
section_title: string;
|
|
3980
|
+
order_from: string;
|
|
3981
|
+
restaurant_filter: string;
|
|
3982
|
+
item_filter: string;
|
|
3983
|
+
add_rule: string;
|
|
3984
|
+
hint: string;
|
|
3985
|
+
};
|
|
3947
3986
|
};
|
|
3948
3987
|
catalog_scheduler: {
|
|
3949
3988
|
title: string;
|
|
@@ -4695,8 +4734,13 @@ export declare const i18nMessages: {
|
|
|
4695
4734
|
};
|
|
4696
4735
|
};
|
|
4697
4736
|
price_tier_config: string;
|
|
4737
|
+
link_price_tier: string;
|
|
4698
4738
|
link_price_group: string;
|
|
4699
4739
|
link_price_group_description: string;
|
|
4740
|
+
not_linked: string;
|
|
4741
|
+
price_group_rule: string;
|
|
4742
|
+
price_group_rule_description: string;
|
|
4743
|
+
restaurant_filter: string;
|
|
4700
4744
|
};
|
|
4701
4745
|
tree_editor: {
|
|
4702
4746
|
title: string;
|
|
@@ -5401,6 +5445,7 @@ export declare const i18nMessages: {
|
|
|
5401
5445
|
products: string;
|
|
5402
5446
|
all_items: string;
|
|
5403
5447
|
};
|
|
5448
|
+
restaurant_attributes_title: string;
|
|
5404
5449
|
};
|
|
5405
5450
|
validation: {
|
|
5406
5451
|
name_used: string;
|
|
@@ -5517,6 +5562,15 @@ export declare const i18nMessages: {
|
|
|
5517
5562
|
};
|
|
5518
5563
|
link_product: {
|
|
5519
5564
|
title: string;
|
|
5565
|
+
rules: {
|
|
5566
|
+
title: string;
|
|
5567
|
+
section_title: string;
|
|
5568
|
+
order_from: string;
|
|
5569
|
+
restaurant_filter: string;
|
|
5570
|
+
item_filter: string;
|
|
5571
|
+
add_rule: string;
|
|
5572
|
+
hint: string;
|
|
5573
|
+
};
|
|
5520
5574
|
};
|
|
5521
5575
|
catalog_scheduler: {
|
|
5522
5576
|
title: string;
|
|
@@ -6268,8 +6322,13 @@ export declare const i18nMessages: {
|
|
|
6268
6322
|
};
|
|
6269
6323
|
};
|
|
6270
6324
|
price_tier_config: string;
|
|
6325
|
+
link_price_tier: string;
|
|
6271
6326
|
link_price_group: string;
|
|
6272
6327
|
link_price_group_description: string;
|
|
6328
|
+
not_linked: string;
|
|
6329
|
+
price_group_rule: string;
|
|
6330
|
+
price_group_rule_description: string;
|
|
6331
|
+
restaurant_filter: string;
|
|
6273
6332
|
};
|
|
6274
6333
|
tree_editor: {
|
|
6275
6334
|
title: string;
|
|
@@ -0,0 +1,2 @@
|
|
|
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;
|
package/dist/apps/mf-menu/src/components/feature/LinkProduct/LinkProductUnifiedSideSheet.vue.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { type CatalogSetting } from "@/helper/setting/catalogSetting";
|
|
2
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
3
|
+
modelValue: CatalogSetting;
|
|
4
|
+
isMainCatalog: boolean;
|
|
5
|
+
isV4: boolean;
|
|
6
|
+
}>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
7
|
+
"update:modelValue": (value: CatalogSetting) => void;
|
|
8
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
9
|
+
modelValue: CatalogSetting;
|
|
10
|
+
isMainCatalog: boolean;
|
|
11
|
+
isV4: boolean;
|
|
12
|
+
}>>> & Readonly<{
|
|
13
|
+
"onUpdate:modelValue"?: ((value: CatalogSetting) => any) | undefined;
|
|
14
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
15
|
+
export default _default;
|
|
16
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
17
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
18
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
19
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
20
|
+
} : {
|
|
21
|
+
type: import('vue').PropType<T[K]>;
|
|
22
|
+
required: true;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
|
+
modelValue: {
|
|
3
|
+
required: true;
|
|
4
|
+
type: import("vue").PropType<z.infer<z.ZodObject<{
|
|
5
|
+
priceTier: z.ZodString;
|
|
6
|
+
restaurantAttributes: z.ZodNullable<z.ZodOptional<z.ZodAny>>;
|
|
7
|
+
}, "strip", z.ZodTypeAny, {
|
|
8
|
+
restaurantAttributes?: any;
|
|
9
|
+
priceTier: string;
|
|
10
|
+
}, {
|
|
11
|
+
restaurantAttributes?: any;
|
|
12
|
+
priceTier: string;
|
|
13
|
+
}>>[] | null | undefined>;
|
|
14
|
+
};
|
|
15
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
16
|
+
modelValue: {
|
|
17
|
+
required: true;
|
|
18
|
+
type: import("vue").PropType<z.infer<z.ZodObject<{
|
|
19
|
+
priceTier: z.ZodString;
|
|
20
|
+
restaurantAttributes: z.ZodNullable<z.ZodOptional<z.ZodAny>>;
|
|
21
|
+
}, "strip", z.ZodTypeAny, {
|
|
22
|
+
restaurantAttributes?: any;
|
|
23
|
+
priceTier: string;
|
|
24
|
+
}, {
|
|
25
|
+
restaurantAttributes?: any;
|
|
26
|
+
priceTier: string;
|
|
27
|
+
}>>[] | null | undefined>;
|
|
28
|
+
};
|
|
29
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
30
|
+
export default _default;
|
|
@@ -1449,6 +1449,29 @@ export declare function initMenuV4(): z.infer<z.ZodObject<{
|
|
|
1449
1449
|
percentage: number;
|
|
1450
1450
|
}>, "many">>>;
|
|
1451
1451
|
usePriceTiers: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
1452
|
+
priceTierRules: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1453
|
+
priceTier: z.ZodString;
|
|
1454
|
+
restaurantAttributes: z.ZodNullable<z.ZodOptional<z.ZodAny>>;
|
|
1455
|
+
}, "strip", z.ZodTypeAny, {
|
|
1456
|
+
restaurantAttributes?: any;
|
|
1457
|
+
priceTier: string;
|
|
1458
|
+
}, {
|
|
1459
|
+
restaurantAttributes?: any;
|
|
1460
|
+
priceTier: string;
|
|
1461
|
+
}>, "many">>>;
|
|
1462
|
+
linkItemRules: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1463
|
+
orderFrom: z.ZodEnum<["ALL", "POS_ONLY", "NONE"]>;
|
|
1464
|
+
restaurantAttributes: z.ZodNullable<z.ZodOptional<z.ZodAny>>;
|
|
1465
|
+
itemAttributes: z.ZodNullable<z.ZodOptional<z.ZodAny>>;
|
|
1466
|
+
}, "strip", z.ZodTypeAny, {
|
|
1467
|
+
restaurantAttributes?: any;
|
|
1468
|
+
itemAttributes?: any;
|
|
1469
|
+
orderFrom: "ALL" | "POS_ONLY" | "NONE";
|
|
1470
|
+
}, {
|
|
1471
|
+
restaurantAttributes?: any;
|
|
1472
|
+
itemAttributes?: any;
|
|
1473
|
+
orderFrom: "ALL" | "POS_ONLY" | "NONE";
|
|
1474
|
+
}>, "many">>>;
|
|
1452
1475
|
}, "strip", z.ZodTypeAny, {
|
|
1453
1476
|
inclusiveTaxes?: {
|
|
1454
1477
|
inclusive: boolean;
|
|
@@ -1517,6 +1540,15 @@ export declare function initMenuV4(): z.infer<z.ZodObject<{
|
|
|
1517
1540
|
percentage: number;
|
|
1518
1541
|
}[] | null | undefined;
|
|
1519
1542
|
usePriceTiers?: string[] | null | undefined;
|
|
1543
|
+
priceTierRules?: {
|
|
1544
|
+
restaurantAttributes?: any;
|
|
1545
|
+
priceTier: string;
|
|
1546
|
+
}[] | null | undefined;
|
|
1547
|
+
linkItemRules?: {
|
|
1548
|
+
restaurantAttributes?: any;
|
|
1549
|
+
itemAttributes?: any;
|
|
1550
|
+
orderFrom: "ALL" | "POS_ONLY" | "NONE";
|
|
1551
|
+
}[] | null | undefined;
|
|
1520
1552
|
name: string;
|
|
1521
1553
|
_id: string;
|
|
1522
1554
|
override: {
|
|
@@ -1728,6 +1760,15 @@ export declare function initMenuV4(): z.infer<z.ZodObject<{
|
|
|
1728
1760
|
percentage: number;
|
|
1729
1761
|
}[] | null | undefined;
|
|
1730
1762
|
usePriceTiers?: string[] | null | undefined;
|
|
1763
|
+
priceTierRules?: {
|
|
1764
|
+
restaurantAttributes?: any;
|
|
1765
|
+
priceTier: string;
|
|
1766
|
+
}[] | null | undefined;
|
|
1767
|
+
linkItemRules?: {
|
|
1768
|
+
restaurantAttributes?: any;
|
|
1769
|
+
itemAttributes?: any;
|
|
1770
|
+
orderFrom: "ALL" | "POS_ONLY" | "NONE";
|
|
1771
|
+
}[] | null | undefined;
|
|
1731
1772
|
name: string;
|
|
1732
1773
|
_id: string;
|
|
1733
1774
|
override: {
|
|
@@ -5020,6 +5061,15 @@ export declare function initMenuV4(): z.infer<z.ZodObject<{
|
|
|
5020
5061
|
percentage: number;
|
|
5021
5062
|
}[] | null | undefined;
|
|
5022
5063
|
usePriceTiers?: string[] | null | undefined;
|
|
5064
|
+
priceTierRules?: {
|
|
5065
|
+
restaurantAttributes?: any;
|
|
5066
|
+
priceTier: string;
|
|
5067
|
+
}[] | null | undefined;
|
|
5068
|
+
linkItemRules?: {
|
|
5069
|
+
restaurantAttributes?: any;
|
|
5070
|
+
itemAttributes?: any;
|
|
5071
|
+
orderFrom: "ALL" | "POS_ONLY" | "NONE";
|
|
5072
|
+
}[] | null | undefined;
|
|
5023
5073
|
name: string;
|
|
5024
5074
|
_id: string;
|
|
5025
5075
|
override: {
|
|
@@ -5694,6 +5744,15 @@ export declare function initMenuV4(): z.infer<z.ZodObject<{
|
|
|
5694
5744
|
percentage: number;
|
|
5695
5745
|
}[] | null | undefined;
|
|
5696
5746
|
usePriceTiers?: string[] | null | undefined;
|
|
5747
|
+
priceTierRules?: {
|
|
5748
|
+
restaurantAttributes?: any;
|
|
5749
|
+
priceTier: string;
|
|
5750
|
+
}[] | null | undefined;
|
|
5751
|
+
linkItemRules?: {
|
|
5752
|
+
restaurantAttributes?: any;
|
|
5753
|
+
itemAttributes?: any;
|
|
5754
|
+
orderFrom: "ALL" | "POS_ONLY" | "NONE";
|
|
5755
|
+
}[] | null | undefined;
|
|
5697
5756
|
name: string;
|
|
5698
5757
|
_id: string;
|
|
5699
5758
|
override: {
|
|
@@ -6439,6 +6498,15 @@ export declare function initMenuV4(): z.infer<z.ZodObject<{
|
|
|
6439
6498
|
percentage: number;
|
|
6440
6499
|
}[] | null | undefined;
|
|
6441
6500
|
usePriceTiers?: string[] | null | undefined;
|
|
6501
|
+
priceTierRules?: {
|
|
6502
|
+
restaurantAttributes?: any;
|
|
6503
|
+
priceTier: string;
|
|
6504
|
+
}[] | null | undefined;
|
|
6505
|
+
linkItemRules?: {
|
|
6506
|
+
restaurantAttributes?: any;
|
|
6507
|
+
itemAttributes?: any;
|
|
6508
|
+
orderFrom: "ALL" | "POS_ONLY" | "NONE";
|
|
6509
|
+
}[] | null | undefined;
|
|
6442
6510
|
name: string;
|
|
6443
6511
|
_id: string;
|
|
6444
6512
|
override: {
|
|
@@ -7134,6 +7202,15 @@ export declare function initMenuV4(): z.infer<z.ZodObject<{
|
|
|
7134
7202
|
percentage: number;
|
|
7135
7203
|
}[] | null | undefined;
|
|
7136
7204
|
usePriceTiers?: string[] | null | undefined;
|
|
7205
|
+
priceTierRules?: {
|
|
7206
|
+
restaurantAttributes?: any;
|
|
7207
|
+
priceTier: string;
|
|
7208
|
+
}[] | null | undefined;
|
|
7209
|
+
linkItemRules?: {
|
|
7210
|
+
restaurantAttributes?: any;
|
|
7211
|
+
itemAttributes?: any;
|
|
7212
|
+
orderFrom: "ALL" | "POS_ONLY" | "NONE";
|
|
7213
|
+
}[] | null | undefined;
|
|
7137
7214
|
name: string;
|
|
7138
7215
|
_id: string;
|
|
7139
7216
|
override: {
|
|
@@ -0,0 +1,88 @@
|
|
|
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 {};
|