@feedmepos/mf-menu 0.32.3-beta.1 → 0.32.4-dev
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-DJBZBaaC.js → App-5YVGeojR.js} +5 -5
- package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-c9SlmPp2.js → ApplyProduct.vue_vue_type_script_setup_true_lang-DhoHYIHW.js} +20 -20
- package/dist/{Catalog-Ct9jk3A_.js → Catalog-BTNv5n_D.js} +18 -18
- package/dist/{Category-Cf5KfKdv.js → Category-BE-kkKcL.js} +22 -23
- package/dist/{Category-CTTAtG31.js → Category-DuLhbRxE.js} +21 -22
- package/dist/{CookingGuide-BaNzajgf.js → CookingGuide-JtE8QMC6.js} +92 -93
- package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-CRodr6tr.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-DdJ-o_PW.js} +1 -1
- package/dist/FormItem.vue_vue_type_script_setup_true_lang-B3Ixruh-.js +26 -0
- package/dist/{Group-BfRPCCbK.js → Group-BP-j3K6J.js} +1 -1
- package/dist/{Group-BJep-xq-.js → Group-DhS9e2E3.js} +3 -3
- package/dist/{Group.vue_vue_type_script_setup_true_lang-CoCq0edM.js → Group.vue_vue_type_script_setup_true_lang-DXUQrXXI.js} +33 -34
- package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-DviXfima.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-CXzz4ClS.js} +24 -23
- package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-DSrxcKIK.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-Bpt-8tbe.js} +11525 -11504
- package/dist/{Ingredient-BnzW69zW.js → Ingredient-NSl0x-0T.js} +5 -6
- package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-D8m1pyLp.js → InventoryBinding.vue_vue_type_script_setup_true_lang-ByrNVvzs.js} +2 -2
- package/dist/LinkProductSideSheet-B_R_2iH6.js +692 -0
- package/dist/MenuSetting-C7cpv4S3.js +580 -0
- package/dist/{PrintRoute-CLsiDIkn.js → PrintRoute-DmP7KH58.js} +10 -11
- package/dist/{Product-DHE0XtX1.js → Product-B6gwN4g0.js} +1 -1
- package/dist/{Product.vue_vue_type_script_setup_true_lang-CVR8j-XT.js → Product.vue_vue_type_script_setup_true_lang-BKhn8Txf.js} +15 -16
- package/dist/{ProductInternalTools-BQOXHzYp.js → ProductInternalTools-D5xIh2j2.js} +5 -5
- package/dist/Products-Cxx8pJGK.js +692 -0
- package/dist/{Publish-BlEcoJaI.js → Publish-ZCzRBB5V.js} +21 -22
- package/dist/{Recipe-CkcNxf7p.js → Recipe-DcHdr_5J.js} +9 -10
- package/dist/RuleView.vue_vue_type_script_setup_true_lang-edNbsZTq.js +3282 -0
- package/dist/{Scheduler-DV0s_qkV.js → Scheduler-ZhDXk5gQ.js} +18 -19
- package/dist/{ServingSequence-CFd8Nwws.js → ServingSequence-DcfMbHjn.js} +15 -16
- package/dist/{Setting-B55IsZCX.js → Setting-fqf_sOIc.js} +45 -44
- package/dist/{Subcategory-BXCcVdR3.js → Subcategory-BidmfEOK.js} +18 -19
- package/dist/{Takeaway-BDvcwBHP.js → Takeaway-C83SKEvl.js} +1 -1
- package/dist/{Takeaway--U_lsgYi.js → Takeaway-p6thRg74.js} +4 -4
- package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-DaYk2xdF.js → Takeaway.vue_vue_type_script_setup_true_lang-Dq6CjXCv.js} +48 -49
- package/dist/{Thumbnail.vue_vue_type_script_setup_true_lang-VBpTghy9.js → Thumbnail.vue_vue_type_script_setup_true_lang-CjLOy2k9.js} +10 -10
- package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-IBM6rC5M.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-CWdsp9eo.js} +17 -16
- package/dist/{Unit-DkvTsQWA.js → Unit-CKIaBxVE.js} +7 -8
- package/dist/{Variant-tte76SbR.js → Variant-CE21vKC4.js} +38 -39
- package/dist/{_id_-AVMi3j91.js → _id_-BhWpg9Kj.js} +10 -10
- package/dist/{app-0s3jY-aE.js → app-BkcVM9nE.js} +1 -1
- package/dist/app-CEIhTuYG.js +363 -0
- package/dist/app.js +1 -1
- package/dist/apps/mf-menu/src/app.d.ts +250 -0
- package/dist/apps/mf-menu/src/components/rule_group/CatalogLinkItemRuleForm.vue.d.ts +146 -0
- package/dist/apps/mf-menu/src/components/rule_group/CatalogLinkItemRuleView.vue.d.ts +158 -0
- package/dist/apps/mf-menu/src/components/rule_group/RuleCondition.vue.d.ts +103 -0
- package/dist/apps/mf-menu/src/components/rule_group/RuleConditionListView.vue.d.ts +54 -0
- package/dist/apps/mf-menu/src/components/rule_group/RuleConditionSelector.vue.d.ts +50 -0
- package/dist/apps/mf-menu/src/components/rule_group/RuleForm.vue.d.ts +117 -0
- package/dist/apps/mf-menu/src/components/rule_group/RuleView.vue.d.ts +141 -0
- package/dist/apps/mf-menu/src/composable/attributes.d.ts +10 -0
- package/dist/apps/mf-menu/src/helper/import-export-utils.d.ts +2 -3
- package/dist/apps/mf-menu/src/helper/menuExport.d.ts +3 -1
- package/dist/apps/mf-menu/src/helper/menuImport.d.ts +3 -2
- package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
- package/dist/assets/{linked-status-DEGoFflv.js → linked-status-CStQ46Ze.js} +2 -2
- package/dist/assets/{override-menu-CZe07SCm.js → override-menu-DHTQAnIJ.js} +2 -2
- package/dist/assets/{validate-menu-BnHfAUEN.js → validate-menu-C_kUDOhd.js} +2 -2
- package/dist/{catalog-YE_knev1.js → catalog-WBrPmQwl.js} +1 -1
- package/dist/{catalogSetting-CeVHRHOo.js → catalogSetting-BAry7I_V.js} +1 -1
- package/dist/{category-Dph1iWr8.js → category-bW36h16p.js} +1 -1
- package/dist/{currency-Byslycrk.js → currency-vVxHIVBs.js} +1 -1
- package/dist/{index-C0T32LLy.js → index-Ba5-dCQA.js} +1 -1
- package/dist/{index-CUTY6cCm.js → index-C0EV3eSc.js} +20 -20
- package/dist/{index-DycbrG1l.js → index-XZlEgR2k.js} +8 -7
- package/dist/{index-Ddt_Nw9F.js → index-pxnQHVnU.js} +4 -4
- package/dist/{menu-tHhzkxDL.js → index.vue_vue_type_script_setup_true_lang-CFPMPQFg.js} +18612 -18558
- package/dist/item-mFv0bFSn.js +7648 -0
- package/dist/{iteration-CcobmcUk.js → iteration-CaFp1Rtz.js} +3 -3
- package/dist/{jszip.min-DQrtMdm5.js → jszip.min-BkSmQKmf.js} +353 -353
- package/dist/{menu-DkRrqTVY.js → menu-ud-tWfIM.js} +1 -1
- package/dist/{menuV2-DJevKCqE.js → menuV2-xUMdUls0.js} +65 -65
- package/dist/mf-menu.css +1 -1
- package/dist/{priceTier-Bkogs1qc.js → priceTier-BVTab4k1.js} +1 -1
- package/dist/{scheduler-BGQ_lxUL.js → scheduler-CAt7sELO.js} +13 -12
- package/dist/{subcategory-DvxvLe8X.js → subcategory-DMZuedoM.js} +2 -2
- package/dist/{toExcel-DQ4jlZPI.js → toExcel-CczXOnKy.js} +2 -2
- package/dist/{unit-DoxpI5dG.js → unit-CbD3sYqC.js} +2 -2
- package/package.json +4 -3
- package/dist/LinkProductSideSheet-C4yBnJSM.js +0 -361
- package/dist/MenuSetting-Fxl8F6N5.js +0 -618
- package/dist/Products-BLvwrz9P.js +0 -689
- package/dist/app-CjfWVFOg.js +0 -363
- package/dist/customAttributes-DvbvCfOd.js +0 -180
- package/dist/index.vue_vue_type_script_setup_true_lang-B1_JqsYF.js +0 -57
- package/dist/item-x1WWjISR.js +0 -9175
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
2
|
+
modelValue: z.infer<z.ZodObject<{
|
|
3
|
+
_id: z.ZodString;
|
|
4
|
+
restaurantRule: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
5
|
+
restaurantAttributes: z.ZodNullable<z.ZodOptional<z.ZodAny>>;
|
|
6
|
+
restaurantCustomAttributes: z.ZodNullable<z.ZodOptional<z.ZodAny>>;
|
|
7
|
+
}, "strip", z.ZodTypeAny, {
|
|
8
|
+
restaurantAttributes?: any;
|
|
9
|
+
restaurantCustomAttributes?: any;
|
|
10
|
+
}, {
|
|
11
|
+
restaurantAttributes?: any;
|
|
12
|
+
restaurantCustomAttributes?: any;
|
|
13
|
+
}>>>;
|
|
14
|
+
itemRule: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
15
|
+
itemAttributes: z.ZodNullable<z.ZodOptional<z.ZodAny>>;
|
|
16
|
+
itemCustomAttributes: z.ZodNullable<z.ZodOptional<z.ZodAny>>;
|
|
17
|
+
}, "strip", z.ZodTypeAny, {
|
|
18
|
+
itemAttributes?: any;
|
|
19
|
+
itemCustomAttributes?: any;
|
|
20
|
+
}, {
|
|
21
|
+
itemAttributes?: any;
|
|
22
|
+
itemCustomAttributes?: any;
|
|
23
|
+
}>>>;
|
|
24
|
+
}, "strip", z.ZodTypeAny, {
|
|
25
|
+
restaurantRule?: {
|
|
26
|
+
restaurantAttributes?: any;
|
|
27
|
+
restaurantCustomAttributes?: any;
|
|
28
|
+
} | null | undefined;
|
|
29
|
+
itemRule?: {
|
|
30
|
+
itemAttributes?: any;
|
|
31
|
+
itemCustomAttributes?: any;
|
|
32
|
+
} | null | undefined;
|
|
33
|
+
_id: string;
|
|
34
|
+
}, {
|
|
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
|
+
}>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
46
|
+
"update:modelValue": (...args: any[]) => void;
|
|
47
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
48
|
+
modelValue: z.infer<z.ZodObject<{
|
|
49
|
+
_id: z.ZodString;
|
|
50
|
+
restaurantRule: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
51
|
+
restaurantAttributes: z.ZodNullable<z.ZodOptional<z.ZodAny>>;
|
|
52
|
+
restaurantCustomAttributes: z.ZodNullable<z.ZodOptional<z.ZodAny>>;
|
|
53
|
+
}, "strip", z.ZodTypeAny, {
|
|
54
|
+
restaurantAttributes?: any;
|
|
55
|
+
restaurantCustomAttributes?: any;
|
|
56
|
+
}, {
|
|
57
|
+
restaurantAttributes?: any;
|
|
58
|
+
restaurantCustomAttributes?: any;
|
|
59
|
+
}>>>;
|
|
60
|
+
itemRule: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
61
|
+
itemAttributes: z.ZodNullable<z.ZodOptional<z.ZodAny>>;
|
|
62
|
+
itemCustomAttributes: z.ZodNullable<z.ZodOptional<z.ZodAny>>;
|
|
63
|
+
}, "strip", z.ZodTypeAny, {
|
|
64
|
+
itemAttributes?: any;
|
|
65
|
+
itemCustomAttributes?: any;
|
|
66
|
+
}, {
|
|
67
|
+
itemAttributes?: any;
|
|
68
|
+
itemCustomAttributes?: any;
|
|
69
|
+
}>>>;
|
|
70
|
+
}, "strip", z.ZodTypeAny, {
|
|
71
|
+
restaurantRule?: {
|
|
72
|
+
restaurantAttributes?: any;
|
|
73
|
+
restaurantCustomAttributes?: any;
|
|
74
|
+
} | null | undefined;
|
|
75
|
+
itemRule?: {
|
|
76
|
+
itemAttributes?: any;
|
|
77
|
+
itemCustomAttributes?: any;
|
|
78
|
+
} | null | undefined;
|
|
79
|
+
_id: string;
|
|
80
|
+
}, {
|
|
81
|
+
restaurantRule?: {
|
|
82
|
+
restaurantAttributes?: any;
|
|
83
|
+
restaurantCustomAttributes?: any;
|
|
84
|
+
} | null | undefined;
|
|
85
|
+
itemRule?: {
|
|
86
|
+
itemAttributes?: any;
|
|
87
|
+
itemCustomAttributes?: any;
|
|
88
|
+
} | null | undefined;
|
|
89
|
+
_id: string;
|
|
90
|
+
}>>;
|
|
91
|
+
}>>> & Readonly<{
|
|
92
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
93
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
94
|
+
export default _default;
|
|
95
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
96
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
97
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
98
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
99
|
+
} : {
|
|
100
|
+
type: import('vue').PropType<T[K]>;
|
|
101
|
+
required: true;
|
|
102
|
+
};
|
|
103
|
+
};
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
|
+
number: {
|
|
3
|
+
type: NumberConstructor;
|
|
4
|
+
required: true;
|
|
5
|
+
};
|
|
6
|
+
property: {
|
|
7
|
+
type: StringConstructor;
|
|
8
|
+
required: true;
|
|
9
|
+
};
|
|
10
|
+
operator: {
|
|
11
|
+
type: StringConstructor;
|
|
12
|
+
required: true;
|
|
13
|
+
};
|
|
14
|
+
value: {
|
|
15
|
+
type: () => string[];
|
|
16
|
+
required: true;
|
|
17
|
+
};
|
|
18
|
+
isCatalogLinkItemRuleView: {
|
|
19
|
+
type: BooleanConstructor;
|
|
20
|
+
required: false;
|
|
21
|
+
default: boolean;
|
|
22
|
+
};
|
|
23
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
24
|
+
"open-catalog-link-item-rule-form": (...args: any[]) => void;
|
|
25
|
+
"open-rule-condition-form": (...args: any[]) => void;
|
|
26
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
27
|
+
number: {
|
|
28
|
+
type: NumberConstructor;
|
|
29
|
+
required: true;
|
|
30
|
+
};
|
|
31
|
+
property: {
|
|
32
|
+
type: StringConstructor;
|
|
33
|
+
required: true;
|
|
34
|
+
};
|
|
35
|
+
operator: {
|
|
36
|
+
type: StringConstructor;
|
|
37
|
+
required: true;
|
|
38
|
+
};
|
|
39
|
+
value: {
|
|
40
|
+
type: () => string[];
|
|
41
|
+
required: true;
|
|
42
|
+
};
|
|
43
|
+
isCatalogLinkItemRuleView: {
|
|
44
|
+
type: BooleanConstructor;
|
|
45
|
+
required: false;
|
|
46
|
+
default: boolean;
|
|
47
|
+
};
|
|
48
|
+
}>> & Readonly<{
|
|
49
|
+
"onOpen-catalog-link-item-rule-form"?: ((...args: any[]) => any) | undefined;
|
|
50
|
+
"onOpen-rule-condition-form"?: ((...args: any[]) => any) | undefined;
|
|
51
|
+
}>, {
|
|
52
|
+
isCatalogLinkItemRuleView: boolean;
|
|
53
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
54
|
+
export default _default;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
|
+
ruleKey: {
|
|
3
|
+
type: StringConstructor;
|
|
4
|
+
required: true;
|
|
5
|
+
};
|
|
6
|
+
operator: {
|
|
7
|
+
type: StringConstructor;
|
|
8
|
+
required: true;
|
|
9
|
+
};
|
|
10
|
+
values: {
|
|
11
|
+
type: ArrayConstructor;
|
|
12
|
+
required: true;
|
|
13
|
+
};
|
|
14
|
+
uniqueKey: {
|
|
15
|
+
type: StringConstructor;
|
|
16
|
+
required: true;
|
|
17
|
+
};
|
|
18
|
+
selectedKeys: {
|
|
19
|
+
type: () => string[];
|
|
20
|
+
default: () => never[];
|
|
21
|
+
};
|
|
22
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
23
|
+
"update:modelValue": (...args: any[]) => void;
|
|
24
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
25
|
+
ruleKey: {
|
|
26
|
+
type: StringConstructor;
|
|
27
|
+
required: true;
|
|
28
|
+
};
|
|
29
|
+
operator: {
|
|
30
|
+
type: StringConstructor;
|
|
31
|
+
required: true;
|
|
32
|
+
};
|
|
33
|
+
values: {
|
|
34
|
+
type: ArrayConstructor;
|
|
35
|
+
required: true;
|
|
36
|
+
};
|
|
37
|
+
uniqueKey: {
|
|
38
|
+
type: StringConstructor;
|
|
39
|
+
required: true;
|
|
40
|
+
};
|
|
41
|
+
selectedKeys: {
|
|
42
|
+
type: () => string[];
|
|
43
|
+
default: () => never[];
|
|
44
|
+
};
|
|
45
|
+
}>> & Readonly<{
|
|
46
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
47
|
+
}>, {
|
|
48
|
+
selectedKeys: string[];
|
|
49
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
50
|
+
export default _default;
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
2
|
+
modelValue: z.infer<z.ZodObject<{
|
|
3
|
+
_id: z.ZodString;
|
|
4
|
+
restaurantRule: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
5
|
+
restaurantAttributes: z.ZodNullable<z.ZodOptional<z.ZodAny>>;
|
|
6
|
+
restaurantCustomAttributes: z.ZodNullable<z.ZodOptional<z.ZodAny>>;
|
|
7
|
+
}, "strip", z.ZodTypeAny, {
|
|
8
|
+
restaurantAttributes?: any;
|
|
9
|
+
restaurantCustomAttributes?: any;
|
|
10
|
+
}, {
|
|
11
|
+
restaurantAttributes?: any;
|
|
12
|
+
restaurantCustomAttributes?: any;
|
|
13
|
+
}>>>;
|
|
14
|
+
itemRule: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
15
|
+
itemAttributes: z.ZodNullable<z.ZodOptional<z.ZodAny>>;
|
|
16
|
+
itemCustomAttributes: z.ZodNullable<z.ZodOptional<z.ZodAny>>;
|
|
17
|
+
}, "strip", z.ZodTypeAny, {
|
|
18
|
+
itemAttributes?: any;
|
|
19
|
+
itemCustomAttributes?: any;
|
|
20
|
+
}, {
|
|
21
|
+
itemAttributes?: any;
|
|
22
|
+
itemCustomAttributes?: any;
|
|
23
|
+
}>>>;
|
|
24
|
+
}, "strip", z.ZodTypeAny, {
|
|
25
|
+
restaurantRule?: {
|
|
26
|
+
restaurantAttributes?: any;
|
|
27
|
+
restaurantCustomAttributes?: any;
|
|
28
|
+
} | null | undefined;
|
|
29
|
+
itemRule?: {
|
|
30
|
+
itemAttributes?: any;
|
|
31
|
+
itemCustomAttributes?: any;
|
|
32
|
+
} | null | undefined;
|
|
33
|
+
_id: string;
|
|
34
|
+
}, {
|
|
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
|
+
isEditMode: boolean;
|
|
46
|
+
}>>, {
|
|
47
|
+
show: import("vue").Ref<boolean, boolean>;
|
|
48
|
+
trigger: (event?: any) => void;
|
|
49
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
50
|
+
"update:modelValue": (...args: any[]) => void;
|
|
51
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
52
|
+
modelValue: z.infer<z.ZodObject<{
|
|
53
|
+
_id: z.ZodString;
|
|
54
|
+
restaurantRule: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
55
|
+
restaurantAttributes: z.ZodNullable<z.ZodOptional<z.ZodAny>>;
|
|
56
|
+
restaurantCustomAttributes: z.ZodNullable<z.ZodOptional<z.ZodAny>>;
|
|
57
|
+
}, "strip", z.ZodTypeAny, {
|
|
58
|
+
restaurantAttributes?: any;
|
|
59
|
+
restaurantCustomAttributes?: any;
|
|
60
|
+
}, {
|
|
61
|
+
restaurantAttributes?: any;
|
|
62
|
+
restaurantCustomAttributes?: any;
|
|
63
|
+
}>>>;
|
|
64
|
+
itemRule: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
65
|
+
itemAttributes: z.ZodNullable<z.ZodOptional<z.ZodAny>>;
|
|
66
|
+
itemCustomAttributes: z.ZodNullable<z.ZodOptional<z.ZodAny>>;
|
|
67
|
+
}, "strip", z.ZodTypeAny, {
|
|
68
|
+
itemAttributes?: any;
|
|
69
|
+
itemCustomAttributes?: any;
|
|
70
|
+
}, {
|
|
71
|
+
itemAttributes?: any;
|
|
72
|
+
itemCustomAttributes?: any;
|
|
73
|
+
}>>>;
|
|
74
|
+
}, "strip", z.ZodTypeAny, {
|
|
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
|
+
restaurantRule?: {
|
|
86
|
+
restaurantAttributes?: any;
|
|
87
|
+
restaurantCustomAttributes?: any;
|
|
88
|
+
} | null | undefined;
|
|
89
|
+
itemRule?: {
|
|
90
|
+
itemAttributes?: any;
|
|
91
|
+
itemCustomAttributes?: any;
|
|
92
|
+
} | null | undefined;
|
|
93
|
+
_id: string;
|
|
94
|
+
}>>;
|
|
95
|
+
isEditMode: boolean;
|
|
96
|
+
}>>> & Readonly<{
|
|
97
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
98
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {
|
|
99
|
+
default?(_: {
|
|
100
|
+
trigger: (event?: any) => void;
|
|
101
|
+
}): any;
|
|
102
|
+
}>;
|
|
103
|
+
export default _default;
|
|
104
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
105
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
106
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
107
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
108
|
+
} : {
|
|
109
|
+
type: import('vue').PropType<T[K]>;
|
|
110
|
+
required: true;
|
|
111
|
+
};
|
|
112
|
+
};
|
|
113
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
114
|
+
new (): {
|
|
115
|
+
$slots: S;
|
|
116
|
+
};
|
|
117
|
+
};
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
import { type PropType } from "vue";
|
|
2
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
3
|
+
modelValue: {
|
|
4
|
+
type: PropType<z.infer<z.ZodObject<{
|
|
5
|
+
_id: z.ZodString;
|
|
6
|
+
restaurantRule: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
7
|
+
restaurantAttributes: z.ZodNullable<z.ZodOptional<z.ZodAny>>;
|
|
8
|
+
restaurantCustomAttributes: z.ZodNullable<z.ZodOptional<z.ZodAny>>;
|
|
9
|
+
}, "strip", z.ZodTypeAny, {
|
|
10
|
+
restaurantAttributes?: any;
|
|
11
|
+
restaurantCustomAttributes?: any;
|
|
12
|
+
}, {
|
|
13
|
+
restaurantAttributes?: any;
|
|
14
|
+
restaurantCustomAttributes?: any;
|
|
15
|
+
}>>>;
|
|
16
|
+
itemRule: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
17
|
+
itemAttributes: z.ZodNullable<z.ZodOptional<z.ZodAny>>;
|
|
18
|
+
itemCustomAttributes: z.ZodNullable<z.ZodOptional<z.ZodAny>>;
|
|
19
|
+
}, "strip", z.ZodTypeAny, {
|
|
20
|
+
itemAttributes?: any;
|
|
21
|
+
itemCustomAttributes?: any;
|
|
22
|
+
}, {
|
|
23
|
+
itemAttributes?: any;
|
|
24
|
+
itemCustomAttributes?: any;
|
|
25
|
+
}>>>;
|
|
26
|
+
}, "strip", z.ZodTypeAny, {
|
|
27
|
+
restaurantRule?: {
|
|
28
|
+
restaurantAttributes?: any;
|
|
29
|
+
restaurantCustomAttributes?: any;
|
|
30
|
+
} | null | undefined;
|
|
31
|
+
itemRule?: {
|
|
32
|
+
itemAttributes?: any;
|
|
33
|
+
itemCustomAttributes?: any;
|
|
34
|
+
} | null | undefined;
|
|
35
|
+
_id: string;
|
|
36
|
+
}, {
|
|
37
|
+
restaurantRule?: {
|
|
38
|
+
restaurantAttributes?: any;
|
|
39
|
+
restaurantCustomAttributes?: any;
|
|
40
|
+
} | null | undefined;
|
|
41
|
+
itemRule?: {
|
|
42
|
+
itemAttributes?: any;
|
|
43
|
+
itemCustomAttributes?: any;
|
|
44
|
+
} | null | undefined;
|
|
45
|
+
_id: string;
|
|
46
|
+
}>>>;
|
|
47
|
+
required: true;
|
|
48
|
+
};
|
|
49
|
+
title: {
|
|
50
|
+
type: StringConstructor;
|
|
51
|
+
required: false;
|
|
52
|
+
};
|
|
53
|
+
isCatalogLinkItemRuleView: {
|
|
54
|
+
type: BooleanConstructor;
|
|
55
|
+
required: false;
|
|
56
|
+
default: boolean;
|
|
57
|
+
};
|
|
58
|
+
ruleGroupNames: {
|
|
59
|
+
type: PropType<string[]>;
|
|
60
|
+
required: false;
|
|
61
|
+
};
|
|
62
|
+
orderFrom: {
|
|
63
|
+
type: StringConstructor;
|
|
64
|
+
required: false;
|
|
65
|
+
};
|
|
66
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
67
|
+
"update:model-value": (...args: any[]) => void;
|
|
68
|
+
"open-catalog-link-item-rule-form": (...args: any[]) => void;
|
|
69
|
+
"delete-rule": (...args: any[]) => void;
|
|
70
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
71
|
+
modelValue: {
|
|
72
|
+
type: PropType<z.infer<z.ZodObject<{
|
|
73
|
+
_id: z.ZodString;
|
|
74
|
+
restaurantRule: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
75
|
+
restaurantAttributes: z.ZodNullable<z.ZodOptional<z.ZodAny>>;
|
|
76
|
+
restaurantCustomAttributes: z.ZodNullable<z.ZodOptional<z.ZodAny>>;
|
|
77
|
+
}, "strip", z.ZodTypeAny, {
|
|
78
|
+
restaurantAttributes?: any;
|
|
79
|
+
restaurantCustomAttributes?: any;
|
|
80
|
+
}, {
|
|
81
|
+
restaurantAttributes?: any;
|
|
82
|
+
restaurantCustomAttributes?: any;
|
|
83
|
+
}>>>;
|
|
84
|
+
itemRule: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
85
|
+
itemAttributes: z.ZodNullable<z.ZodOptional<z.ZodAny>>;
|
|
86
|
+
itemCustomAttributes: z.ZodNullable<z.ZodOptional<z.ZodAny>>;
|
|
87
|
+
}, "strip", z.ZodTypeAny, {
|
|
88
|
+
itemAttributes?: any;
|
|
89
|
+
itemCustomAttributes?: any;
|
|
90
|
+
}, {
|
|
91
|
+
itemAttributes?: any;
|
|
92
|
+
itemCustomAttributes?: any;
|
|
93
|
+
}>>>;
|
|
94
|
+
}, "strip", z.ZodTypeAny, {
|
|
95
|
+
restaurantRule?: {
|
|
96
|
+
restaurantAttributes?: any;
|
|
97
|
+
restaurantCustomAttributes?: any;
|
|
98
|
+
} | null | undefined;
|
|
99
|
+
itemRule?: {
|
|
100
|
+
itemAttributes?: any;
|
|
101
|
+
itemCustomAttributes?: any;
|
|
102
|
+
} | null | undefined;
|
|
103
|
+
_id: string;
|
|
104
|
+
}, {
|
|
105
|
+
restaurantRule?: {
|
|
106
|
+
restaurantAttributes?: any;
|
|
107
|
+
restaurantCustomAttributes?: any;
|
|
108
|
+
} | null | undefined;
|
|
109
|
+
itemRule?: {
|
|
110
|
+
itemAttributes?: any;
|
|
111
|
+
itemCustomAttributes?: any;
|
|
112
|
+
} | null | undefined;
|
|
113
|
+
_id: string;
|
|
114
|
+
}>>>;
|
|
115
|
+
required: true;
|
|
116
|
+
};
|
|
117
|
+
title: {
|
|
118
|
+
type: StringConstructor;
|
|
119
|
+
required: false;
|
|
120
|
+
};
|
|
121
|
+
isCatalogLinkItemRuleView: {
|
|
122
|
+
type: BooleanConstructor;
|
|
123
|
+
required: false;
|
|
124
|
+
default: boolean;
|
|
125
|
+
};
|
|
126
|
+
ruleGroupNames: {
|
|
127
|
+
type: PropType<string[]>;
|
|
128
|
+
required: false;
|
|
129
|
+
};
|
|
130
|
+
orderFrom: {
|
|
131
|
+
type: StringConstructor;
|
|
132
|
+
required: false;
|
|
133
|
+
};
|
|
134
|
+
}>> & Readonly<{
|
|
135
|
+
"onUpdate:model-value"?: ((...args: any[]) => any) | undefined;
|
|
136
|
+
"onOpen-catalog-link-item-rule-form"?: ((...args: any[]) => any) | undefined;
|
|
137
|
+
"onDelete-rule"?: ((...args: any[]) => any) | undefined;
|
|
138
|
+
}>, {
|
|
139
|
+
isCatalogLinkItemRuleView: boolean;
|
|
140
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
141
|
+
export default _default;
|
|
@@ -13,6 +13,16 @@ export declare function useRestaurantAttributes(): {
|
|
|
13
13
|
values?: string[] | undefined;
|
|
14
14
|
}[]>;
|
|
15
15
|
};
|
|
16
|
+
interface FilterableAttribute {
|
|
17
|
+
label: string;
|
|
18
|
+
value: string;
|
|
19
|
+
options?: Array<{
|
|
20
|
+
label: string;
|
|
21
|
+
value: string;
|
|
22
|
+
}>;
|
|
23
|
+
}
|
|
24
|
+
export declare function getRestaurantAttributeOptions(): FilterableAttribute[];
|
|
25
|
+
export declare function getProductAttributeOptions(): FilterableAttribute[];
|
|
16
26
|
export declare function useItemAttributes(options?: UseItemAttributesOptions): {
|
|
17
27
|
itemAttributes: ComputedRef<{
|
|
18
28
|
type: "string" | "number" | "date";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as ExcelJS from "exceljs";
|
|
2
2
|
import { type WorkBook } from "xlsx";
|
|
3
|
-
import { FdoDinero } from "@feedmepos/core/entity";
|
|
3
|
+
import { FdoCustomAttribute, FdoDinero } from "@feedmepos/core/entity";
|
|
4
4
|
import { FdoMenuV4, FdoMenuV4Catalog, F_ORDER_FROM } from "@feedmepos/menu/entity";
|
|
5
5
|
import type { GroupItem } from "@/manager/menu/group";
|
|
6
6
|
export interface ExportMenuDataRow {
|
|
@@ -45,7 +45,6 @@ export interface ExportAddonGroupRow {
|
|
|
45
45
|
export interface TransformDataResult {
|
|
46
46
|
rows: ExportMenuDataRow[];
|
|
47
47
|
metaData: {
|
|
48
|
-
tags: string[];
|
|
49
48
|
priceTiers: string[];
|
|
50
49
|
};
|
|
51
50
|
}
|
|
@@ -102,7 +101,7 @@ export declare const ADDON = "ADDON";
|
|
|
102
101
|
export declare function mapVariant(menu: FdoMenuV4, variantGroupIds: string[]): {
|
|
103
102
|
[key: string]: string;
|
|
104
103
|
};
|
|
105
|
-
export declare function addDescriptionsAndHeadersExcelJS(worksheet: ExcelJS.Worksheet,
|
|
104
|
+
export declare function addDescriptionsAndHeadersExcelJS(worksheet: ExcelJS.Worksheet, attributeSettings: FdoCustomAttribute[], priceTierKeys: string[], catelog?: FdoMenuV4Catalog): ExcelJS.Worksheet;
|
|
106
105
|
export declare function addAddonHeaderExcelJS(worksheet: ExcelJS.Worksheet, priceTierKeys?: string[]): ExcelJS.Worksheet;
|
|
107
106
|
export declare function toDinero(price: number): {
|
|
108
107
|
currency: "ALL" | "AED" | "AFN" | "AMD" | "ANG" | "AOA" | "ARS" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BOV" | "BRL" | "BSD" | "BTN" | "BWP" | "BYN" | "BZD" | "CAD" | "CDF" | "CHE" | "CHF" | "CHW" | "CLF" | "CLP" | "CNY" | "COP" | "COU" | "CRC" | "CUC" | "CUP" | "CVE" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "ERN" | "ETB" | "EUR" | "FJD" | "FKP" | "GBP" | "GEL" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "INR" | "IQD" | "IRR" | "ISK" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MAD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRU" | "MUR" | "MVR" | "MWK" | "MXN" | "MXV" | "MYR" | "MZN" | "NAD" | "NGN" | "NIO" | "NOK" | "NPR" | "NZD" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLL" | "SOS" | "SRD" | "SSP" | "STN" | "SVC" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "USD" | "USN" | "UYI" | "UYU" | "UYW" | "UZS" | "VES" | "VND" | "VUV" | "WST" | "XAF" | "XAG" | "XAU" | "XBA" | "XBB" | "XBC" | "XBD" | "XCD" | "XDR" | "XOF" | "XPD" | "XPF" | "XPT" | "XSU" | "XTS" | "XUA" | "XXX" | "YER" | "ZAR" | "ZMW" | "ZWL";
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as ExcelJS from "exceljs";
|
|
2
|
+
import type { FdoCustomAttribute } from "@feedmepos/core/entity";
|
|
2
3
|
import { FdoMenuV4, FdoMenuV4Category, FdoMenuV4Item, FdoMenuV4Takeaway, FdoItemOverriderV4, FdoMenuSubCategory } from "@feedmepos/menu/entity";
|
|
3
4
|
import type { FdoGroupOverriderV4 } from "@feedmepos/menu/entity";
|
|
4
5
|
import { type ExportAddonGroupRow, type ExportMenuDataRow, type TransformDataResult } from "@/helper/import-export-utils";
|
|
@@ -13,7 +14,8 @@ export declare class MenuExport {
|
|
|
13
14
|
subCategoryMap: {
|
|
14
15
|
[id: string]: FdoMenuSubCategory;
|
|
15
16
|
};
|
|
16
|
-
|
|
17
|
+
attributeSettings: FdoCustomAttribute[];
|
|
18
|
+
constructor(menu: FdoMenuV4, attributeSettings: FdoCustomAttribute[]);
|
|
17
19
|
transformData(): TransformDataResult;
|
|
18
20
|
transformOverrideData(data: FdoItemOverriderV4[]): TransformDataResult;
|
|
19
21
|
private getSubCategoryNames;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { type WorkBook } from "xlsx";
|
|
2
|
-
import { FdoDinero } from "@feedmepos/core/entity";
|
|
2
|
+
import { FdoCustomAttribute, FdoDinero } from "@feedmepos/core/entity";
|
|
3
3
|
import { FdoMenuV4, FdoMenuV4VariantGroup, FdoMenuV4Catalog, FdoItemVariant } from "@feedmepos/menu/entity";
|
|
4
4
|
import type { FdoGroupOverriderV4 } from "@feedmepos/menu/entity";
|
|
5
5
|
import { type ExportAddonGroupRow, type ExportMenuDataRow, type GroupedAddon, type GroupedItem, type itemsLinkWithGroup } from "@/helper/import-export-utils";
|
|
6
6
|
import type { GroupItem } from "@/manager/menu/group";
|
|
7
7
|
export declare class MenuImport {
|
|
8
8
|
menu: FdoMenuV4;
|
|
9
|
+
attributeSettings: FdoCustomAttribute[];
|
|
9
10
|
variantGroups2: {
|
|
10
11
|
[variantGroupId: string]: FdoMenuV4VariantGroup;
|
|
11
12
|
};
|
|
@@ -28,7 +29,7 @@ export declare class MenuImport {
|
|
|
28
29
|
[key: string]: string;
|
|
29
30
|
};
|
|
30
31
|
deletedAddonGroupIds: string[];
|
|
31
|
-
constructor(menu: FdoMenuV4);
|
|
32
|
+
constructor(menu: FdoMenuV4, attributeSettings: FdoCustomAttribute[]);
|
|
32
33
|
generateTakeawayKey(name: string, price: FdoDinero): string;
|
|
33
34
|
mapVariant(variantGroupIds?: string[]): {
|
|
34
35
|
[key: string]: string;
|