@feedmepos/mf-menu 0.2.3 → 0.3.0
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.js +52053 -49780
- package/dist/assets/{validate-menu-Dw7zqdMp.js → validate-menu-jtzRj63Y.js} +3 -3
- package/dist/src/api/index.d.ts +1 -1
- package/dist/src/api/public.d.ts +5 -0
- package/dist/src/app.d.ts +4 -1
- package/dist/src/assets/icons/index.d.ts +3 -1
- package/dist/src/components/feature/LinkProductSideSheet.vue.d.ts +1 -0
- package/dist/src/components/feature/RemyButton.vue.d.ts +15 -0
- package/dist/src/components/feature/RemyDialog.vue.d.ts +15 -0
- package/dist/src/helper/remy.d.ts +5 -0
- package/dist/src/manager/menu/catalog.d.ts +2 -1
- package/dist/src/stores/app.d.ts +193 -0
- package/dist/src/stores/manager/catalog.d.ts +19 -0
- package/dist/src/stores/manager/scheduler.d.ts +3151 -0
- package/dist/src/views/Catalog/Edit/AddProductPopup/Form.vue.d.ts +0 -1
- package/dist/src/views/Catalog/Edit/ProductTable.vue.d.ts +3 -0
- package/dist/style.css +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/package.json +2 -1
package/dist/src/api/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type AxiosInstance, type AxiosResponse } from "axios";
|
|
2
|
-
export declare const baseClientInstance: (url
|
|
2
|
+
export declare const baseClientInstance: (url?: string) => AxiosInstance;
|
|
3
3
|
export declare const menuClientInstance: (url: string) => AxiosInstance;
|
|
4
4
|
export declare function extractAxiosData<T>(response: AxiosResponse<T>): T;
|
|
5
5
|
export * from "./menu";
|
package/dist/src/app.d.ts
CHANGED
|
@@ -1,2 +1,4 @@
|
|
|
1
1
|
import IllustrationEmptyPlaceholder from "./illustration-empty-placeholder.svg";
|
|
2
|
-
|
|
2
|
+
import RemyIcon from "./icon-system-ai.svg";
|
|
3
|
+
import ActivatedRemyIcon from "./icon-system-ai-active.svg";
|
|
4
|
+
export { IllustrationEmptyPlaceholder, RemyIcon, ActivatedRemyIcon };
|
|
@@ -10,6 +10,7 @@ interface Props {
|
|
|
10
10
|
selectVariant?: boolean;
|
|
11
11
|
showVariant?: boolean;
|
|
12
12
|
title?: string;
|
|
13
|
+
useCloseBtn?: boolean;
|
|
13
14
|
}
|
|
14
15
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
15
16
|
initialValue: () => Item[];
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
interface Props {
|
|
2
|
+
onClick: () => void;
|
|
3
|
+
pureStyling?: boolean;
|
|
4
|
+
}
|
|
5
|
+
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<Props>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>>, {}, {}>;
|
|
6
|
+
export default _default;
|
|
7
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
8
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
9
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
10
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
11
|
+
} : {
|
|
12
|
+
type: import('vue').PropType<T[K]>;
|
|
13
|
+
required: true;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
|
|
2
|
+
isRemySetup: boolean;
|
|
3
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
4
|
+
isRemySetup: boolean;
|
|
5
|
+
}>>>, {}, {}>;
|
|
6
|
+
export default _default;
|
|
7
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
8
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
9
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
10
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
11
|
+
} : {
|
|
12
|
+
type: import('vue').PropType<T[K]>;
|
|
13
|
+
required: true;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type FdoGroupOverriderV4, type FdoMenuV4, type FdoMenuV4Catalog, type FdoMenuV4Group, type FdoSchedulerOverriderV4 } from "@feedmepos/menu/entity";
|
|
1
|
+
import { type FdoGroupOverriderV4, type FdoItemOverriderV4, type FdoMenuV4, type FdoMenuV4Catalog, type FdoMenuV4Group, type FdoSchedulerOverriderV4 } from "@feedmepos/menu/entity";
|
|
2
2
|
import { useMenuStore } from "@/stores/menu";
|
|
3
3
|
import { useMenuLoader } from "@/helper/menu";
|
|
4
4
|
import { type DialogProvider } from "@feedmepos/ui-library";
|
|
@@ -24,3 +24,4 @@ export default class CatalogManager {
|
|
|
24
24
|
private create;
|
|
25
25
|
private updateItemAvailable;
|
|
26
26
|
}
|
|
27
|
+
export declare function handleItemAvailable(itemId: string, overrides: FdoItemOverriderV4[] | undefined, availableInCatalog: boolean, isV3: boolean): FdoItemOverriderV4[];
|
package/dist/src/stores/app.d.ts
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
|
+
import type { FdoPublicSetting } from "@feedmepos/core/entity";
|
|
2
|
+
export type PublicSettingApi = FdoPublicSetting & {
|
|
3
|
+
aiSettings: {
|
|
4
|
+
remy: {
|
|
5
|
+
enable: boolean;
|
|
6
|
+
};
|
|
7
|
+
};
|
|
8
|
+
};
|
|
1
9
|
interface AppState {
|
|
2
10
|
loadingQueue: LoadingQueue[];
|
|
11
|
+
publicSetting: PublicSettingApi;
|
|
3
12
|
}
|
|
4
13
|
interface LoadingQueue {
|
|
5
14
|
id: string;
|
|
@@ -10,5 +19,189 @@ export declare const useAppStore: import("pinia").StoreDefinition<"app", AppStat
|
|
|
10
19
|
clearLoadingQueue(): void;
|
|
11
20
|
resolveQueues(queueIds: string[]): void;
|
|
12
21
|
promise<F extends (...args: any[]) => any>(callback: F, isGlobal?: boolean): Promise<ReturnType<F>>;
|
|
22
|
+
getPublicSetting(): Promise<{
|
|
23
|
+
delivery: {
|
|
24
|
+
feedMe: {
|
|
25
|
+
operatingHours?: {
|
|
26
|
+
0: {
|
|
27
|
+
hours: {
|
|
28
|
+
end: string;
|
|
29
|
+
start: string;
|
|
30
|
+
}[];
|
|
31
|
+
enable: boolean;
|
|
32
|
+
};
|
|
33
|
+
2: {
|
|
34
|
+
hours: {
|
|
35
|
+
end: string;
|
|
36
|
+
start: string;
|
|
37
|
+
}[];
|
|
38
|
+
enable: boolean;
|
|
39
|
+
};
|
|
40
|
+
1: {
|
|
41
|
+
hours: {
|
|
42
|
+
end: string;
|
|
43
|
+
start: string;
|
|
44
|
+
}[];
|
|
45
|
+
enable: boolean;
|
|
46
|
+
};
|
|
47
|
+
3: {
|
|
48
|
+
hours: {
|
|
49
|
+
end: string;
|
|
50
|
+
start: string;
|
|
51
|
+
}[];
|
|
52
|
+
enable: boolean;
|
|
53
|
+
};
|
|
54
|
+
4: {
|
|
55
|
+
hours: {
|
|
56
|
+
end: string;
|
|
57
|
+
start: string;
|
|
58
|
+
}[];
|
|
59
|
+
enable: boolean;
|
|
60
|
+
};
|
|
61
|
+
5: {
|
|
62
|
+
hours: {
|
|
63
|
+
end: string;
|
|
64
|
+
start: string;
|
|
65
|
+
}[];
|
|
66
|
+
enable: boolean;
|
|
67
|
+
};
|
|
68
|
+
6: {
|
|
69
|
+
hours: {
|
|
70
|
+
end: string;
|
|
71
|
+
start: string;
|
|
72
|
+
}[];
|
|
73
|
+
enable: boolean;
|
|
74
|
+
};
|
|
75
|
+
} | null | undefined;
|
|
76
|
+
maxDistance: number;
|
|
77
|
+
enable: boolean;
|
|
78
|
+
areas: {
|
|
79
|
+
polygon: number[][];
|
|
80
|
+
}[];
|
|
81
|
+
};
|
|
82
|
+
};
|
|
83
|
+
assets: {
|
|
84
|
+
groups: {
|
|
85
|
+
key: "pos";
|
|
86
|
+
assets: {
|
|
87
|
+
type: "image" | "lottie";
|
|
88
|
+
key: "activeMascotDark" | "activeMascotLight" | "inactiveMascotDark" | "inactiveMascotLight" | "odsMascot";
|
|
89
|
+
path: string;
|
|
90
|
+
files: {
|
|
91
|
+
url: string;
|
|
92
|
+
createdAt: string;
|
|
93
|
+
config: {
|
|
94
|
+
useWhen: {
|
|
95
|
+
end: string;
|
|
96
|
+
start: string;
|
|
97
|
+
};
|
|
98
|
+
recurring: boolean;
|
|
99
|
+
};
|
|
100
|
+
lastUpdate: string;
|
|
101
|
+
}[];
|
|
102
|
+
}[];
|
|
103
|
+
}[];
|
|
104
|
+
};
|
|
105
|
+
sms: {
|
|
106
|
+
firebase: boolean;
|
|
107
|
+
};
|
|
108
|
+
aiSettings: {
|
|
109
|
+
remy: {
|
|
110
|
+
enable: boolean;
|
|
111
|
+
};
|
|
112
|
+
};
|
|
113
|
+
}>;
|
|
114
|
+
updatePublicSetting(setting: Partial<FdoPublicSetting>): Promise<{
|
|
115
|
+
delivery: {
|
|
116
|
+
feedMe: {
|
|
117
|
+
operatingHours?: {
|
|
118
|
+
0: {
|
|
119
|
+
hours: {
|
|
120
|
+
end: string;
|
|
121
|
+
start: string;
|
|
122
|
+
}[];
|
|
123
|
+
enable: boolean;
|
|
124
|
+
};
|
|
125
|
+
2: {
|
|
126
|
+
hours: {
|
|
127
|
+
end: string;
|
|
128
|
+
start: string;
|
|
129
|
+
}[];
|
|
130
|
+
enable: boolean;
|
|
131
|
+
};
|
|
132
|
+
1: {
|
|
133
|
+
hours: {
|
|
134
|
+
end: string;
|
|
135
|
+
start: string;
|
|
136
|
+
}[];
|
|
137
|
+
enable: boolean;
|
|
138
|
+
};
|
|
139
|
+
3: {
|
|
140
|
+
hours: {
|
|
141
|
+
end: string;
|
|
142
|
+
start: string;
|
|
143
|
+
}[];
|
|
144
|
+
enable: boolean;
|
|
145
|
+
};
|
|
146
|
+
4: {
|
|
147
|
+
hours: {
|
|
148
|
+
end: string;
|
|
149
|
+
start: string;
|
|
150
|
+
}[];
|
|
151
|
+
enable: boolean;
|
|
152
|
+
};
|
|
153
|
+
5: {
|
|
154
|
+
hours: {
|
|
155
|
+
end: string;
|
|
156
|
+
start: string;
|
|
157
|
+
}[];
|
|
158
|
+
enable: boolean;
|
|
159
|
+
};
|
|
160
|
+
6: {
|
|
161
|
+
hours: {
|
|
162
|
+
end: string;
|
|
163
|
+
start: string;
|
|
164
|
+
}[];
|
|
165
|
+
enable: boolean;
|
|
166
|
+
};
|
|
167
|
+
} | null | undefined;
|
|
168
|
+
maxDistance: number;
|
|
169
|
+
enable: boolean;
|
|
170
|
+
areas: {
|
|
171
|
+
polygon: number[][];
|
|
172
|
+
}[];
|
|
173
|
+
};
|
|
174
|
+
};
|
|
175
|
+
assets: {
|
|
176
|
+
groups: {
|
|
177
|
+
key: "pos";
|
|
178
|
+
assets: {
|
|
179
|
+
type: "image" | "lottie";
|
|
180
|
+
key: "activeMascotDark" | "activeMascotLight" | "inactiveMascotDark" | "inactiveMascotLight" | "odsMascot";
|
|
181
|
+
path: string;
|
|
182
|
+
files: {
|
|
183
|
+
url: string;
|
|
184
|
+
createdAt: string;
|
|
185
|
+
config: {
|
|
186
|
+
useWhen: {
|
|
187
|
+
end: string;
|
|
188
|
+
start: string;
|
|
189
|
+
};
|
|
190
|
+
recurring: boolean;
|
|
191
|
+
};
|
|
192
|
+
lastUpdate: string;
|
|
193
|
+
}[];
|
|
194
|
+
}[];
|
|
195
|
+
}[];
|
|
196
|
+
};
|
|
197
|
+
sms: {
|
|
198
|
+
firebase: boolean;
|
|
199
|
+
};
|
|
200
|
+
aiSettings: {
|
|
201
|
+
remy: {
|
|
202
|
+
enable: boolean;
|
|
203
|
+
};
|
|
204
|
+
};
|
|
205
|
+
}>;
|
|
13
206
|
}>;
|
|
14
207
|
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export declare const useCatalogManagerStore: import("pinia").StoreDefinition<"catalog-manager", import("pinia")._UnwrapAll<Pick<{
|
|
2
|
+
linkableItems: import("vue").ComputedRef<import("@/helper/menu").CategorizedItem[]>;
|
|
3
|
+
currentItems: import("vue").ComputedRef<{
|
|
4
|
+
_id: string;
|
|
5
|
+
}[]>;
|
|
6
|
+
applyProduct: (productIds: string[]) => Promise<void>;
|
|
7
|
+
}, never>>, Pick<{
|
|
8
|
+
linkableItems: import("vue").ComputedRef<import("@/helper/menu").CategorizedItem[]>;
|
|
9
|
+
currentItems: import("vue").ComputedRef<{
|
|
10
|
+
_id: string;
|
|
11
|
+
}[]>;
|
|
12
|
+
applyProduct: (productIds: string[]) => Promise<void>;
|
|
13
|
+
}, "linkableItems" | "currentItems">, Pick<{
|
|
14
|
+
linkableItems: import("vue").ComputedRef<import("@/helper/menu").CategorizedItem[]>;
|
|
15
|
+
currentItems: import("vue").ComputedRef<{
|
|
16
|
+
_id: string;
|
|
17
|
+
}[]>;
|
|
18
|
+
applyProduct: (productIds: string[]) => Promise<void>;
|
|
19
|
+
}, "applyProduct">>;
|