@feedmepos/mf-menu 0.2.4 → 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.
@@ -1,5 +1,5 @@
1
1
  import { type AxiosInstance, type AxiosResponse } from "axios";
2
- export declare const baseClientInstance: (url: string) => AxiosInstance;
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";
@@ -0,0 +1,5 @@
1
+ import type { PublicSettingApi } from "@/stores/app";
2
+ export declare const publicSettingApi: {
3
+ read(): Promise<PublicSettingApi>;
4
+ update(dto: PublicSettingApi): Promise<PublicSettingApi>;
5
+ };
package/dist/src/app.d.ts CHANGED
@@ -1,2 +1,5 @@
1
+ import type { App } from "vue";
2
+ import { routers } from "./router/shared";
1
3
  export { default as FmApp } from "./App.vue";
2
- export { routers } from "./router/shared";
4
+ declare function initMenuApp(app: App, vueRouter: any): void;
5
+ export { routers, initMenuApp };
@@ -1,2 +1,4 @@
1
1
  import IllustrationEmptyPlaceholder from "./illustration-empty-placeholder.svg";
2
- export { IllustrationEmptyPlaceholder };
2
+ import RemyIcon from "./icon-system-ai.svg";
3
+ import ActivatedRemyIcon from "./icon-system-ai-active.svg";
4
+ export { IllustrationEmptyPlaceholder, RemyIcon, ActivatedRemyIcon };
@@ -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
+ };
@@ -0,0 +1,5 @@
1
+ import { IClientContext } from "@feedmepos/remy-vue-client";
2
+ declare let Remy: ReturnType<typeof useRemy>;
3
+ declare function useRemy(context: IClientContext): any;
4
+ declare function init(token: string): void;
5
+ export { Remy, init };
@@ -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 {};
@@ -5,7 +5,6 @@ interface Props {
5
5
  autoShow?: boolean;
6
6
  action: "add" | "update";
7
7
  }
8
- export type ProductManagerFormProps = Props;
9
8
  declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<Props>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
10
9
  "update:show": (value: boolean) => void;
11
10
  "submit:form": (form: z.infer<z.ZodObject<{
@@ -5,15 +5,18 @@ interface Props {
5
5
  modelValue: Record<string, MappedItem>;
6
6
  originalValue: Record<string, MappedItem>;
7
7
  isCalculating: boolean;
8
+ searchKey: string;
8
9
  }
9
10
  declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<Props>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
10
11
  "update:model-value": (v: Record<string, MappedItem>) => void;
11
12
  "reset:model-value": () => void;
12
13
  "update:editing": (v: boolean) => void;
14
+ "update:search-key": (v: string) => void;
13
15
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>> & {
14
16
  "onUpdate:model-value"?: ((v: Record<string, MappedItem>) => any) | undefined;
15
17
  "onReset:model-value"?: (() => any) | undefined;
16
18
  "onUpdate:editing"?: ((v: boolean) => any) | undefined;
19
+ "onUpdate:search-key"?: ((v: string) => any) | undefined;
17
20
  }, {}, {}>;
18
21
  export default _default;
19
22
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
package/dist/style.css CHANGED
@@ -1 +1 @@
1
- .expand-enter-active,.expand-leave-active{transition:.3s}.expand-enter-from{opacity:0;max-height:0}.expand-enter-to,.expand-leave-from{opacity:1;max-height:1000px}.expand-leave-to,.expand-enter-from[data-v-5136d4aa]{opacity:0;max-height:0}.expand-enter-to[data-v-5136d4aa],.expand-leave-from[data-v-5136d4aa]{opacity:1;max-height:1000px}.expand-leave-to[data-v-5136d4aa]{opacity:0;max-height:0}.expand-enter-active[data-v-5136d4aa],.expand-leave-active[data-v-5136d4aa]{transition-property:max-height,opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.expand-enter-from[data-v-41c63da6]{opacity:0;max-height:0}.expand-enter-to[data-v-41c63da6],.expand-leave-from[data-v-41c63da6]{opacity:1;max-height:1000px}.expand-leave-to[data-v-41c63da6]{opacity:0;max-height:0}.expand-enter-active[data-v-41c63da6],.expand-leave-active[data-v-41c63da6]{transition-property:max-height,opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.fade-enter-from[data-v-5188f341]{opacity:0}.fade-enter-to[data-v-5188f341],.fade-leave-from[data-v-5188f341]{opacity:1}.fade-leave-to[data-v-5188f341]{opacity:0}.fade-enter-active[data-v-5188f341],.fade-leave-active[data-v-5188f341]{transition:opacity .3s}.app-container{background-color:#fff!important}
1
+ .expand-enter-active,.expand-leave-active{transition:.3s}.expand-enter-from{opacity:0;max-height:0}.expand-enter-to,.expand-leave-from{opacity:1;max-height:1000px}.expand-leave-to,.expand-enter-from[data-v-5136d4aa]{opacity:0;max-height:0}.expand-enter-to[data-v-5136d4aa],.expand-leave-from[data-v-5136d4aa]{opacity:1;max-height:1000px}.expand-leave-to[data-v-5136d4aa]{opacity:0;max-height:0}.expand-enter-active[data-v-5136d4aa],.expand-leave-active[data-v-5136d4aa]{transition-property:max-height,opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.expand-enter-from[data-v-41c63da6]{opacity:0;max-height:0}.expand-enter-to[data-v-41c63da6],.expand-leave-from[data-v-41c63da6]{opacity:1;max-height:1000px}.expand-leave-to[data-v-41c63da6]{opacity:0;max-height:0}.expand-enter-active[data-v-41c63da6],.expand-leave-active[data-v-41c63da6]{transition-property:max-height,opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.fade-enter-from[data-v-9dcf113e]{opacity:0}.fade-enter-to[data-v-9dcf113e],.fade-leave-from[data-v-9dcf113e]{opacity:1}.fade-leave-to[data-v-9dcf113e]{opacity:0}.fade-enter-active[data-v-9dcf113e],.fade-leave-active[data-v-9dcf113e]{transition:opacity .3s}.app-container{background-color:#fff!important}.remy-dialog[data-v-74d74db7]{position:fixed;z-index:9999;top:25%;right:30px;background:#fff;border:1px solid lightgrey;border-radius:4px;height:50%;width:400px;max-width:90%}.remy-dialog .header[data-v-74d74db7]{background:#000;padding:0 12px;border-radius:4px 4px 0 0;height:40px}.remy-dialog .header .title[data-v-74d74db7]{color:#fff}.remy-dialog .chatbox-container[data-v-74d74db7]{height:calc(100% - 40px)}