@feedmepos/mf-menu 0.1.1 → 0.1.3

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 (106) hide show
  1. package/dist/app.js +126510 -0
  2. package/dist/assets/validate-menu-H7iRgCyE.js +20 -0
  3. package/dist/favicon.ico +0 -0
  4. package/dist/src/App.vue.d.ts +2 -0
  5. package/dist/src/Entry.vue.d.ts +2 -0
  6. package/dist/src/api/index.d.ts +5 -0
  7. package/dist/src/api/menu.d.ts +25 -0
  8. package/dist/src/app.d.ts +2 -0
  9. package/dist/src/assets/icons/index.d.ts +2 -0
  10. package/dist/src/components/ApplyProducts.vue.d.ts +44 -0
  11. package/dist/src/components/Navigator.vue.d.ts +2 -0
  12. package/dist/src/components/feature/AppLoading.vue.d.ts +20 -0
  13. package/dist/src/components/feature/ApplyProduct/ApplyProduct.vue.d.ts +929 -0
  14. package/dist/src/components/feature/ApplyProduct/ApplyProductDialog.vue.d.ts +481 -0
  15. package/dist/src/components/feature/ApplyProduct/index.d.ts +2880 -0
  16. package/dist/src/components/feature/EmptyDataTemplate/Icon.vue.d.ts +2 -0
  17. package/dist/src/components/feature/EmptyDataTemplate/index.d.ts +1 -0
  18. package/dist/src/components/feature/EmptyDataTemplate/index.vue.d.ts +27 -0
  19. package/dist/src/components/feature/Fields/CurrencyInput.vue.d.ts +47 -0
  20. package/dist/src/components/feature/Fields/ImageDropField.vue.d.ts +20 -0
  21. package/dist/src/components/feature/Fields/OrderFrom.vue.d.ts +91 -0
  22. package/dist/src/components/feature/GroupManager/Form.vue.d.ts +44 -0
  23. package/dist/src/components/feature/GroupManager/OptionTable.vue.d.ts +717 -0
  24. package/dist/src/components/feature/GroupManager/UpdateForm.vue.d.ts +485 -0
  25. package/dist/src/components/feature/GroupManager/index.d.ts +2505 -0
  26. package/dist/src/components/feature/InventoryManager/Form.vue.d.ts +63 -0
  27. package/dist/src/components/feature/InventoryManager/InventoryBinding.vue.d.ts +54 -0
  28. package/dist/src/components/feature/InventoryManager/index.d.ts +255 -0
  29. package/dist/src/components/feature/LinkProductSideSheet.vue.d.ts +63 -0
  30. package/dist/src/components/feature/Picker.vue.d.ts +37 -0
  31. package/dist/src/components/feature/PrintDeptManager/Form.vue.d.ts +25 -0
  32. package/dist/src/components/feature/PrintDeptManager/index.d.ts +51 -0
  33. package/dist/src/components/feature/TakeAwayManager/Form.vue.d.ts +32 -0
  34. package/dist/src/components/feature/TakeAwayManager/index.d.ts +107 -0
  35. package/dist/src/components/feature/VariantManager/Form.vue.d.ts +27 -0
  36. package/dist/src/components/feature/VariantManager/index.d.ts +35 -0
  37. package/dist/src/components/layout/LottieAnimation.vue.d.ts +39 -0
  38. package/dist/src/components/layout/PageLayout.vue.d.ts +23 -0
  39. package/dist/src/components/layout/ToggleCard.vue.d.ts +28 -0
  40. package/dist/src/composable/loading.d.ts +25 -0
  41. package/dist/src/composable/search.d.ts +5 -0
  42. package/dist/src/helper/check.d.ts +6 -0
  43. package/dist/src/helper/currency.d.ts +2 -0
  44. package/dist/src/helper/item.d.ts +20 -0
  45. package/dist/src/helper/iteration.d.ts +7 -0
  46. package/dist/src/helper/menu.d.ts +792 -0
  47. package/dist/src/helper/number.d.ts +11 -0
  48. package/dist/src/helper/object.d.ts +6 -0
  49. package/dist/src/helper/recipe.d.ts +3 -0
  50. package/dist/src/helper/setting/catalogSetting.d.ts +36 -0
  51. package/dist/src/helper/sku.d.ts +9 -0
  52. package/dist/src/helper/string.d.ts +1 -0
  53. package/dist/src/main.d.ts +2 -0
  54. package/dist/src/manager/cooking_guide.d.ts +5 -0
  55. package/dist/src/manager/menu/catalog.d.ts +26 -0
  56. package/dist/src/manager/menu/category.d.ts +38 -0
  57. package/dist/src/manager/menu/group.d.ts +59 -0
  58. package/dist/src/manager/menu/item.d.ts +13 -0
  59. package/dist/src/manager/menu/scheduler.d.ts +26 -0
  60. package/dist/src/manager/menu/takeaway.d.ts +6 -0
  61. package/dist/src/manager/menu/variantManager.d.ts +0 -0
  62. package/dist/src/manager/print_department.d.ts +5 -0
  63. package/dist/src/manager/scheduler.d.ts +5 -0
  64. package/dist/src/plugins.d.ts +4 -0
  65. package/dist/src/router/index.d.ts +2 -0
  66. package/dist/src/router/shared.d.ts +16 -0
  67. package/dist/src/stores/app.d.ts +14 -0
  68. package/dist/src/stores/manager/item.d.ts +2153 -0
  69. package/dist/src/stores/menu.d.ts +103 -0
  70. package/dist/src/types/recipe.d.ts +4 -0
  71. package/dist/src/types/rule.d.ts +63 -0
  72. package/dist/src/utils/createComponentProgrammatically.d.ts +7 -0
  73. package/dist/src/views/Catalog/Catalog.vue.d.ts +2 -0
  74. package/dist/src/views/Catalog/Edit/AddCategoryDialogContentComponent.vue.d.ts +14 -0
  75. package/dist/src/views/Catalog/Edit/AddProductPopup/Form.vue.d.ts +1444 -0
  76. package/dist/src/views/Catalog/Edit/AddProductPopup/ProductDetail.vue.d.ts +21 -0
  77. package/dist/src/views/Catalog/Edit/AddProductPopup/ProductGroup.vue.d.ts +21 -0
  78. package/dist/src/views/Catalog/Edit/AddProductPopup/ProductInventory.vue.d.ts +34 -0
  79. package/dist/src/views/Catalog/Edit/AddProductPopup/ProductPrice.vue.d.ts +20 -0
  80. package/dist/src/views/Catalog/Edit/AddProductPopup/ProductPrint.vue.d.ts +26 -0
  81. package/dist/src/views/Catalog/Edit/AddProductPopup/ProductTakeaway.vue.d.ts +21 -0
  82. package/dist/src/views/Catalog/Edit/AddProductPopup/ProductVariants.vue.d.ts +21 -0
  83. package/dist/src/views/Catalog/Edit/AddProductPopup/index.d.ts +4323 -0
  84. package/dist/src/views/Catalog/Edit/Group.vue.d.ts +2 -0
  85. package/dist/src/views/Catalog/Edit/GroupMarkupPriceDialog.vue.d.ts +31 -0
  86. package/dist/src/views/Catalog/Edit/Product.vue.d.ts +2 -0
  87. package/dist/src/views/Catalog/Edit/ProductTable.vue.d.ts +27 -0
  88. package/dist/src/views/Catalog/Edit/Setting.vue.d.ts +2 -0
  89. package/dist/src/views/Catalog/Edit/Takeaway.vue.d.ts +2 -0
  90. package/dist/src/views/Catalog/Edit/Thumbnail.vue.d.ts +15 -0
  91. package/dist/src/views/Catalog/Edit/[id].vue.d.ts +2 -0
  92. package/dist/src/views/CookingGuide/CookingGuide.vue.d.ts +2 -0
  93. package/dist/src/views/CookingGuide/CookingGuideDialog.vue.d.ts +186 -0
  94. package/dist/src/views/CookingGuide/CookingGuideStepDialog.vue.d.ts +36 -0
  95. package/dist/src/views/CookingGuide/CookingGuideStepOverrideDialog.vue.d.ts +70 -0
  96. package/dist/src/views/Overview/Overview.vue.d.ts +2 -0
  97. package/dist/src/views/PrintRoute/PrintDepartmentDialog.vue.d.ts +35 -0
  98. package/dist/src/views/PrintRoute/PrintRoute.vue.d.ts +7 -0
  99. package/dist/src/views/Publish/Publish.vue.d.ts +2 -0
  100. package/dist/src/views/Publish/UpdateCatalogDialog.vue.d.ts +3143 -0
  101. package/dist/src/views/Scheduler/Scheduler.vue.d.ts +2 -0
  102. package/dist/src/views/Scheduler/SchedulerDialog.vue.d.ts +750 -0
  103. package/dist/src/views/Variant/Variant.vue.d.ts +2 -0
  104. package/dist/style.css +1 -0
  105. package/dist/tsconfig.app.tsbuildinfo +1 -0
  106. package/package.json +2 -2
@@ -0,0 +1,2 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
2
+ export default _default;
@@ -0,0 +1 @@
1
+ export { default } from "./index.vue";
@@ -0,0 +1,27 @@
1
+ interface Props {
2
+ title: string;
3
+ subtitle: string;
4
+ action?: {
5
+ text: string;
6
+ icon?: string;
7
+ callback: () => void;
8
+ };
9
+ }
10
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<Props>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>>, {}, {}>, {
11
+ action?(_: {}): any;
12
+ }>;
13
+ export default _default;
14
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
15
+ type __VLS_TypePropsToRuntimeProps<T> = {
16
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
17
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
18
+ } : {
19
+ type: import('vue').PropType<T[K]>;
20
+ required: true;
21
+ };
22
+ };
23
+ type __VLS_WithTemplateSlots<T, S> = T & {
24
+ new (): {
25
+ $slots: S;
26
+ };
27
+ };
@@ -0,0 +1,47 @@
1
+ import { FdoDinero } from "@feedmepos/core/entity";
2
+ import { type FmTextFieldProps } from "@feedmepos/ui-library";
3
+ interface Props extends Omit<FmTextFieldProps, "modelValue"> {
4
+ modelValue?: FdoDinero | null;
5
+ label?: string;
6
+ placeholder?: string;
7
+ nullable?: boolean;
8
+ showCurrency?: boolean;
9
+ min?: number;
10
+ max?: number;
11
+ required?: boolean | string;
12
+ rules?: ((v: InputModel) => boolean | string)[];
13
+ disable?: boolean;
14
+ }
15
+ export type InputModel = string | number | boolean | null;
16
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<Props>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
17
+ "update:model-value": (v: {
18
+ 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";
19
+ amount: number;
20
+ precision: number;
21
+ } | undefined) => void;
22
+ focus: () => void;
23
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>> & {
24
+ onFocus?: (() => any) | undefined;
25
+ "onUpdate:model-value"?: ((v: {
26
+ 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";
27
+ amount: number;
28
+ precision: number;
29
+ } | undefined) => any) | undefined;
30
+ }, {}, {}>, {
31
+ append?(_: {}): any;
32
+ }>;
33
+ export default _default;
34
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
35
+ type __VLS_TypePropsToRuntimeProps<T> = {
36
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
37
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
38
+ } : {
39
+ type: import('vue').PropType<T[K]>;
40
+ required: true;
41
+ };
42
+ };
43
+ type __VLS_WithTemplateSlots<T, S> = T & {
44
+ new (): {
45
+ $slots: S;
46
+ };
47
+ };
@@ -0,0 +1,20 @@
1
+ interface Props {
2
+ modelValue: File | null | undefined;
3
+ }
4
+ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<Props>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
5
+ "update:model-value": (file: File) => void;
6
+ "reset:model-value": () => void;
7
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>> & {
8
+ "onUpdate:model-value"?: ((file: File) => any) | undefined;
9
+ "onReset:model-value"?: (() => any) | undefined;
10
+ }, {}, {}>;
11
+ export default _default;
12
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
13
+ type __VLS_TypePropsToRuntimeProps<T> = {
14
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
15
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
16
+ } : {
17
+ type: import('vue').PropType<T[K]>;
18
+ required: true;
19
+ };
20
+ };
@@ -0,0 +1,91 @@
1
+ import { type PropType } from "vue";
2
+ declare const _default: import("vue").DefineComponent<{
3
+ modelValue: {
4
+ type: PropType<any>;
5
+ default: null;
6
+ };
7
+ required: {
8
+ type: BooleanConstructor;
9
+ default: boolean;
10
+ };
11
+ label: {
12
+ type: StringConstructor;
13
+ default: string;
14
+ };
15
+ editActiveOnly: {
16
+ type: BooleanConstructor;
17
+ default: boolean;
18
+ };
19
+ orderFromNone: {
20
+ type: BooleanConstructor;
21
+ default: boolean;
22
+ };
23
+ disable: {
24
+ type: BooleanConstructor;
25
+ default: boolean;
26
+ };
27
+ fallback: {
28
+ type: PropType<any>;
29
+ default: null;
30
+ };
31
+ defaultLabel: {
32
+ type: StringConstructor;
33
+ default: undefined;
34
+ };
35
+ menuZIndex: {
36
+ type: NumberConstructor;
37
+ default: number;
38
+ };
39
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
40
+ "update:model-value": (value: any) => void;
41
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
42
+ modelValue: {
43
+ type: PropType<any>;
44
+ default: null;
45
+ };
46
+ required: {
47
+ type: BooleanConstructor;
48
+ default: boolean;
49
+ };
50
+ label: {
51
+ type: StringConstructor;
52
+ default: string;
53
+ };
54
+ editActiveOnly: {
55
+ type: BooleanConstructor;
56
+ default: boolean;
57
+ };
58
+ orderFromNone: {
59
+ type: BooleanConstructor;
60
+ default: boolean;
61
+ };
62
+ disable: {
63
+ type: BooleanConstructor;
64
+ default: boolean;
65
+ };
66
+ fallback: {
67
+ type: PropType<any>;
68
+ default: null;
69
+ };
70
+ defaultLabel: {
71
+ type: StringConstructor;
72
+ default: undefined;
73
+ };
74
+ menuZIndex: {
75
+ type: NumberConstructor;
76
+ default: number;
77
+ };
78
+ }>> & {
79
+ "onUpdate:model-value"?: ((value: any) => any) | undefined;
80
+ }, {
81
+ required: boolean;
82
+ label: string;
83
+ modelValue: any;
84
+ disable: boolean;
85
+ editActiveOnly: boolean;
86
+ orderFromNone: boolean;
87
+ fallback: any;
88
+ defaultLabel: string;
89
+ menuZIndex: number;
90
+ }, {}>;
91
+ export default _default;
@@ -0,0 +1,44 @@
1
+ import { type GroupConfig, type MenuGroup } from "@/manager/menu/group";
2
+ import { type CategorizedItem } from "@/helper/menu";
3
+ interface Props {
4
+ title: string;
5
+ action: "add" | "update";
6
+ group: MenuGroup;
7
+ config: (group: MenuGroup) => GroupConfig;
8
+ categorizedItems: CategorizedItem[];
9
+ allowRefundInventory?: boolean;
10
+ }
11
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<Props>, {
12
+ trigger: (event?: any) => void;
13
+ show: import("vue").Ref<boolean>;
14
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
15
+ "update:group": (group: MenuGroup) => void;
16
+ "update:group-passive": (group: MenuGroup) => void;
17
+ "submit:group": (group: MenuGroup) => void;
18
+ "status:show": (show: boolean) => void;
19
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>> & {
20
+ "onUpdate:group"?: ((group: MenuGroup) => any) | undefined;
21
+ "onUpdate:group-passive"?: ((group: MenuGroup) => any) | undefined;
22
+ "onSubmit:group"?: ((group: MenuGroup) => any) | undefined;
23
+ "onStatus:show"?: ((show: boolean) => any) | undefined;
24
+ }, {}, {}>, {
25
+ default?(_: {
26
+ trigger: (event?: any) => void;
27
+ }): any;
28
+ "variant-section"?(_: {}): any;
29
+ }>;
30
+ export default _default;
31
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
32
+ type __VLS_TypePropsToRuntimeProps<T> = {
33
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
34
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
35
+ } : {
36
+ type: import('vue').PropType<T[K]>;
37
+ required: true;
38
+ };
39
+ };
40
+ type __VLS_WithTemplateSlots<T, S> = T & {
41
+ new (): {
42
+ $slots: S;
43
+ };
44
+ };