@feedmepos/mf-menu 0.3.1-beta.2 → 0.3.1-beta.4

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/src/app.d.ts CHANGED
@@ -2,5 +2,6 @@ import "@feedmepos/remy-vue-client/style.css";
2
2
  import type { App } from "vue";
3
3
  import { routers } from "./router/shared";
4
4
  export { default as FmApp } from "./App.vue";
5
+ export { default as ServingSequenceApp } from "./views/ServingSequence/ServingSequence.vue";
5
6
  declare function initMenuApp(app: App, vueRouter: any): void;
6
7
  export { routers, initMenuApp };
@@ -0,0 +1,11 @@
1
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>, {
2
+ default?(_: {
3
+ trigger: (event?: any) => void;
4
+ }): any;
5
+ }>;
6
+ export default _default;
7
+ type __VLS_WithTemplateSlots<T, S> = T & {
8
+ new (): {
9
+ $slots: S;
10
+ };
11
+ };
@@ -0,0 +1,19 @@
1
+ export declare const CreateCatalogManagerForm: {
2
+ new (...args: any[]): import("vue").CreateComponentPublicInstance<Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{}>>, {}, true, {}, {}, {
3
+ P: {};
4
+ B: {};
5
+ D: {};
6
+ C: {};
7
+ M: {};
8
+ Defaults: {};
9
+ }, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}, {}, {}, {}>;
10
+ __isFragment?: undefined;
11
+ __isTeleport?: undefined;
12
+ __isSuspense?: undefined;
13
+ } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
14
+ $slots: {
15
+ default?(_: {
16
+ trigger: (event?: any) => void;
17
+ }): any;
18
+ };
19
+ });
@@ -81,11 +81,11 @@ declare const _default: import("vue").DefineComponent<{
81
81
  required: boolean;
82
82
  label: string;
83
83
  modelValue: any;
84
+ menuZIndex: number;
84
85
  disable: boolean;
85
86
  editActiveOnly: boolean;
86
87
  orderFromNone: boolean;
87
88
  fallback: any;
88
89
  defaultLabel: string;
89
- menuZIndex: number;
90
90
  }, {}>;
91
91
  export default _default;
@@ -0,0 +1,32 @@
1
+ import { type FdoMenuServeSequence } from "@feedmepos/menu/entity";
2
+ interface Props {
3
+ action: "add" | "update";
4
+ initialValue?: FdoMenuServeSequence;
5
+ }
6
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<Props>, {
7
+ trigger: (event?: any) => void;
8
+ show: import("vue").Ref<boolean>;
9
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
10
+ submitted: () => void;
11
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>> & {
12
+ onSubmitted?: (() => any) | undefined;
13
+ }, {}, {}>, {
14
+ default?(_: {
15
+ trigger: (event?: any) => void;
16
+ }): any;
17
+ }>;
18
+ export default _default;
19
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
20
+ type __VLS_TypePropsToRuntimeProps<T> = {
21
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
22
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
23
+ } : {
24
+ type: import('vue').PropType<T[K]>;
25
+ required: true;
26
+ };
27
+ };
28
+ type __VLS_WithTemplateSlots<T, S> = T & {
29
+ new (): {
30
+ $slots: S;
31
+ };
32
+ };
@@ -0,0 +1,72 @@
1
+ export declare const ServingSequenceManagerForm: {
2
+ new (...args: any[]): import("vue").CreateComponentPublicInstance<Readonly<import("vue").ExtractPropTypes<{
3
+ action: {
4
+ type: import("vue").PropType<"add" | "update">;
5
+ required: true;
6
+ };
7
+ initialValue: {
8
+ type: import("vue").PropType<any>;
9
+ };
10
+ }>> & {
11
+ onSubmitted?: (() => any) | undefined;
12
+ }, {
13
+ trigger: (event?: any) => void;
14
+ show: import("vue").Ref<boolean>;
15
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
16
+ submitted: () => void;
17
+ }, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
18
+ action: {
19
+ type: import("vue").PropType<"add" | "update">;
20
+ required: true;
21
+ };
22
+ initialValue: {
23
+ type: import("vue").PropType<any>;
24
+ };
25
+ }>> & {
26
+ onSubmitted?: (() => any) | undefined;
27
+ }, {}, true, {}, {}, {
28
+ P: {};
29
+ B: {};
30
+ D: {};
31
+ C: {};
32
+ M: {};
33
+ Defaults: {};
34
+ }, Readonly<import("vue").ExtractPropTypes<{
35
+ action: {
36
+ type: import("vue").PropType<"add" | "update">;
37
+ required: true;
38
+ };
39
+ initialValue: {
40
+ type: import("vue").PropType<any>;
41
+ };
42
+ }>> & {
43
+ onSubmitted?: (() => any) | undefined;
44
+ }, {
45
+ trigger: (event?: any) => void;
46
+ show: import("vue").Ref<boolean>;
47
+ }, {}, {}, {}, {}>;
48
+ __isFragment?: undefined;
49
+ __isTeleport?: undefined;
50
+ __isSuspense?: undefined;
51
+ } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
52
+ action: {
53
+ type: import("vue").PropType<"add" | "update">;
54
+ required: true;
55
+ };
56
+ initialValue: {
57
+ type: import("vue").PropType<any>;
58
+ };
59
+ }>> & {
60
+ onSubmitted?: (() => any) | undefined;
61
+ }, {
62
+ trigger: (event?: any) => void;
63
+ show: import("vue").Ref<boolean>;
64
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
65
+ submitted: () => void;
66
+ }, string, {}, {}, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
67
+ $slots: {
68
+ default?(_: {
69
+ trigger: (event?: any) => void;
70
+ }): any;
71
+ };
72
+ });
@@ -0,0 +1,450 @@
1
+ import { type DineroObject } from "dinero.js";
2
+ import { PouchDB } from "pouchdb-core";
3
+ export interface AdjustmentAmount {
4
+ amount: number;
5
+ precision: number;
6
+ }
7
+ export interface TaxInclusion {
8
+ systemCode: string;
9
+ inclusive: boolean;
10
+ }
11
+ export declare enum AddonVisible {
12
+ show = "show",
13
+ hidden = "hidden",
14
+ disable = "disable"
15
+ }
16
+ export interface EntityDocument extends PouchDB.Core.ExistingDocument<{}> {
17
+ _rev: string;
18
+ _id: string;
19
+ _deleted?: boolean;
20
+ }
21
+ export interface SubDoc {
22
+ _id: string;
23
+ }
24
+ export declare enum ADDON_GROUP_TYPE {
25
+ DYNAMIC = "DYNAMIC",
26
+ NORMAL = "NORMAL",
27
+ PRODUCT = "PRODUCT"
28
+ }
29
+ export declare enum PRODUCT_TYPE {
30
+ ALA_CARTE = "ALA_CARTE",
31
+ SET = "SET"
32
+ }
33
+ /**
34
+ * ALL: pos(offline) qrcode/delivery/pickup(online)
35
+ * POS_ONLY: only visible at POS(offline), qrcode will show disable(prompt order from waiter), delivery/pickup will hide
36
+ * NONE: POS will show disable, qrcode/delivery/pickup will hide
37
+ */
38
+ export declare enum ORDER_FROM {
39
+ ALL = "ALL",
40
+ POS_ONLY = "POS_ONLY",
41
+ NONE = "NONE"
42
+ }
43
+ export declare enum OVERRIDE_TYPE {
44
+ PRODUCT_PRICE = "PRODUCT_PRICE",
45
+ PRODUCT_VARIANT_PRICE = "PRODUCT_VARIANT_PRICE",
46
+ PRODUCT_ORDER_FROM = "PRODUCT_ORDER_FROM",
47
+ PRODUCT_NAME = "PRODUCT_NAME",
48
+ PRODUCT_SCHEDULE = "PRODUCT_SCHEDULE",
49
+ PRODUCT_SCHEDULE_PRICE = "PRODUCT_SCHEDULE_PRICE",
50
+ PRODUCT_CODE = "PRODUCT_CODE",
51
+ PRODUCT_VARIANT_CODE = "PRODUCT_VARIANT_CODE",
52
+ PRODUCT_VARIANT_SCHEDULE_PRICE = "PRODUCT_VARIANT_SCHEDULE_PRICE",
53
+ ADDON_AVAILABLE = "ADDON_AVAILABLE",
54
+ ADDON_NAME = "ADDON_NAME",
55
+ ADDON_PRICE = "ADDON_PRICE",
56
+ ADDON_VARIANT_PRICE = "ADDON_VARIANT_PRICE",
57
+ ADDON_ORDER_FROM = "ADDON_ORDER_FROM"
58
+ }
59
+ export declare enum SCHEDULE_FREQUENCY {
60
+ daily = "daily",
61
+ weekly = "weekly"
62
+ }
63
+ export declare enum SCHEDULE_DAY {
64
+ sunday = "sunday",
65
+ monday = "monday",
66
+ tuesday = "tuesday",
67
+ wednesday = "wednesday",
68
+ thursday = "thursday",
69
+ friday = "friday",
70
+ saturday = "saturday"
71
+ }
72
+ export declare enum InventoryBindingType {
73
+ sku = "SKU",
74
+ recipe = "RECIPE"
75
+ }
76
+ export interface AddonVisibility {
77
+ visible: AddonVisible;
78
+ reason?: string;
79
+ }
80
+ export interface HasPosition {
81
+ position?: number;
82
+ }
83
+ export interface ProductPriceOverrideOption {
84
+ type: OVERRIDE_TYPE.PRODUCT_PRICE;
85
+ value: DineroObject;
86
+ }
87
+ export interface ProductSchedulerPriceOverrideOption {
88
+ type: OVERRIDE_TYPE.PRODUCT_SCHEDULE_PRICE;
89
+ schedulerId: string;
90
+ value: DineroObject;
91
+ }
92
+ export interface ProductVariantPriceOverrideOption {
93
+ type: OVERRIDE_TYPE.PRODUCT_VARIANT_PRICE;
94
+ combinationKey: string;
95
+ value: DineroObject;
96
+ }
97
+ export interface ProductCodeOverrideOption {
98
+ type: OVERRIDE_TYPE.PRODUCT_CODE;
99
+ value: string;
100
+ }
101
+ export interface ProductVariantCodeOverrideOption {
102
+ type: OVERRIDE_TYPE.PRODUCT_VARIANT_CODE;
103
+ combinationKey: string;
104
+ value: string;
105
+ }
106
+ export interface ProductVariantSchedulerPriceOverrideOption {
107
+ type: OVERRIDE_TYPE.PRODUCT_VARIANT_SCHEDULE_PRICE;
108
+ combinationKey: string;
109
+ schedulerId: string;
110
+ value: DineroObject;
111
+ }
112
+ export interface ProductOrderFromOverrideOption {
113
+ type: OVERRIDE_TYPE.PRODUCT_ORDER_FROM;
114
+ value: ORDER_FROM;
115
+ }
116
+ export interface ProductSchedulerOverrideOption {
117
+ type: OVERRIDE_TYPE.PRODUCT_SCHEDULE;
118
+ value: string;
119
+ }
120
+ export interface ProductNameOverrideOption {
121
+ type: OVERRIDE_TYPE.PRODUCT_NAME;
122
+ value: string;
123
+ }
124
+ export interface AddonNameOverrideOption {
125
+ type: OVERRIDE_TYPE.ADDON_NAME;
126
+ addonId: string;
127
+ value: string;
128
+ }
129
+ export interface AddonAvailableOverrideOption {
130
+ type: OVERRIDE_TYPE.ADDON_AVAILABLE;
131
+ addonId: string;
132
+ value: boolean;
133
+ }
134
+ export interface AddonOrderFromOverrideOption {
135
+ type: OVERRIDE_TYPE.ADDON_ORDER_FROM;
136
+ addonId: string;
137
+ value: ORDER_FROM;
138
+ }
139
+ export interface AddonPriceOverrideOption {
140
+ type: OVERRIDE_TYPE.ADDON_PRICE;
141
+ addonId: string;
142
+ value: DineroObject;
143
+ }
144
+ export interface AddonVariantPriceOverrideOption {
145
+ type: OVERRIDE_TYPE.ADDON_VARIANT_PRICE;
146
+ addonId: string;
147
+ combinationKey: string;
148
+ value: DineroObject;
149
+ }
150
+ export type ProductOverrideOption = ProductPriceOverrideOption | ProductSchedulerPriceOverrideOption | ProductVariantPriceOverrideOption | ProductCodeOverrideOption | ProductVariantCodeOverrideOption | ProductVariantSchedulerPriceOverrideOption | ProductOrderFromOverrideOption | ProductNameOverrideOption | ProductSchedulerOverrideOption;
151
+ export type AddonOverrideOption = AddonPriceOverrideOption | AddonVariantPriceOverrideOption | AddonNameOverrideOption | AddonAvailableOverrideOption | AddonOrderFromOverrideOption;
152
+ export interface Override {
153
+ product: {
154
+ [productId: string]: ProductOverrideOption[];
155
+ };
156
+ addon: {
157
+ [addonGroupId: string]: AddonOverrideOption[];
158
+ };
159
+ }
160
+ export interface VariantCombination {
161
+ combinationKey: string;
162
+ active: boolean;
163
+ selectionName: string[];
164
+ orderFrom?: ORDER_FROM;
165
+ schedulerUsed?: string[];
166
+ takeawayUsed?: string | null;
167
+ }
168
+ export interface Category extends HasPosition {
169
+ name: string;
170
+ }
171
+ export interface Variant {
172
+ name: string;
173
+ options: VariantOption[];
174
+ }
175
+ export interface VariantOption {
176
+ id: string;
177
+ name: string;
178
+ }
179
+ export interface InventoryBinding {
180
+ type: InventoryBindingType.sku | InventoryBindingType.recipe;
181
+ id: string;
182
+ amount: AdjustmentAmount;
183
+ measurement?: UnitMeasurement;
184
+ }
185
+ export interface ProductTaxSetting {
186
+ systemCode: string;
187
+ taxCode: string;
188
+ }
189
+ export interface AddonProductBinding {
190
+ active: boolean;
191
+ combinationKey: string;
192
+ /**
193
+ * `${addonGroupId}/${addonId}`
194
+ */
195
+ addonKey: string;
196
+ /**
197
+ * Allow negative
198
+ */
199
+ price?: DineroObject | null;
200
+ /**
201
+ * Allow negative
202
+ */
203
+ inventoryBindings?: InventoryBinding[] | null;
204
+ orderFrom?: ORDER_FROM;
205
+ }
206
+ export interface Product {
207
+ code: string;
208
+ name: string;
209
+ name2: string;
210
+ price: DineroObject;
211
+ perXUnit: number | null;
212
+ unit: string | null;
213
+ productType: PRODUCT_TYPE;
214
+ category: string;
215
+ description: string | null;
216
+ thumbnail: string | null;
217
+ orderFrom: ORDER_FROM;
218
+ openPrice?: boolean;
219
+ noSst?: boolean;
220
+ taxes?: ProductTaxSetting[];
221
+ addonGroupUsed: string[];
222
+ addonProductBinding: AddonProductBinding[];
223
+ /**
224
+ * Takeaway price when order as pickup
225
+ */
226
+ takeawayUsed: string | null;
227
+ variantUsed: string[];
228
+ variantCombination: ProductVariantCombination[];
229
+ /**
230
+ * Id of Schedule used by product
231
+ */
232
+ schedulerUsed: string | null;
233
+ schedulers?: string[];
234
+ /**
235
+ * Id of department used by product
236
+ */
237
+ printDepartments?: string[];
238
+ inventoryBindings?: InventoryBinding[] | null;
239
+ }
240
+ export interface ProductVariantCombination extends VariantCombination {
241
+ codeSuffix?: string | null;
242
+ code: string | null;
243
+ price: DineroObject | null;
244
+ inventoryBindings?: InventoryBinding[] | null;
245
+ }
246
+ export interface ProductAddonGroup extends AddonGroup {
247
+ id: string;
248
+ }
249
+ export interface AddonGroup extends HasPosition {
250
+ name: string;
251
+ addons: Addon[];
252
+ min: number;
253
+ max: number;
254
+ addonGroupType: ADDON_GROUP_TYPE;
255
+ stackable: boolean;
256
+ priority?: number | null;
257
+ }
258
+ /**
259
+ * Product addon group will link all the variant
260
+ * in some case, the variant can be override with:
261
+ * 1. Price
262
+ * 2. Disable
263
+ */
264
+ export interface ProductAddonVariantCombination extends VariantCombination {
265
+ price: DineroObject | null;
266
+ }
267
+ export interface Addon {
268
+ id: string;
269
+ name: string;
270
+ name2: string;
271
+ /**
272
+ * for dynamic addon will default zero dinero
273
+ */
274
+ price: DineroObject;
275
+ productId: string | null;
276
+ variantCombination: ProductAddonVariantCombination[] | null;
277
+ inventoryBindings?: InventoryBinding[] | null;
278
+ orderFrom?: ORDER_FROM;
279
+ app?: AddonVisibility;
280
+ pos?: AddonVisibility;
281
+ }
282
+ /**
283
+ * Catalog will be list of available product for filter
284
+ * and override attribute for each value
285
+ * all the override is store inside product itself, with override<attribute>
286
+ *
287
+ * eg:
288
+ * {
289
+ * price: 1.2
290
+ * overridePrice: {
291
+ * [catalog.id]: 1.4
292
+ * }
293
+ * }
294
+ */
295
+ export interface Catalog {
296
+ name: string;
297
+ inclusiveTaxes?: TaxInclusion[] | null;
298
+ productAvailable: string[];
299
+ override: Override;
300
+ }
301
+ export interface PosOverride {
302
+ override: Override;
303
+ }
304
+ export interface Duration {
305
+ start: string;
306
+ end: string;
307
+ }
308
+ export declare const WeekDay: {
309
+ sunday: number;
310
+ monday: number;
311
+ tuesday: number;
312
+ wednesday: number;
313
+ thursday: number;
314
+ friday: number;
315
+ saturday: number;
316
+ };
317
+ export interface Scheduler {
318
+ name: string;
319
+ timePeriod: Duration[];
320
+ weekDay: SCHEDULE_DAY[];
321
+ repeat: SCHEDULE_FREQUENCY;
322
+ }
323
+ export interface Takeaway {
324
+ name: string;
325
+ price: DineroObject;
326
+ }
327
+ export interface UnitMeasurement {
328
+ id: string;
329
+ name: string;
330
+ abbrev: string;
331
+ conversion: AdjustmentAmount;
332
+ }
333
+ export interface Unit {
334
+ name: string;
335
+ abbrev: string;
336
+ precision: number;
337
+ measurements: UnitMeasurement[];
338
+ }
339
+ export interface SkuConvert {
340
+ inventoryBindings: InventoryBinding[] | null;
341
+ measurement?: string;
342
+ }
343
+ export interface Sku {
344
+ code: string;
345
+ name: string;
346
+ unit: UnitDoc;
347
+ trackingMeasurement?: string;
348
+ convert?: SkuConvert | null;
349
+ }
350
+ export interface Recipe {
351
+ name: string;
352
+ contains: InventoryBinding[];
353
+ }
354
+ export interface PrintDepartment {
355
+ name: string;
356
+ }
357
+ export interface MenuCookingGuide {
358
+ _id: string;
359
+ name: string;
360
+ steps: MenuCookingStep[];
361
+ bindings: MenuCookingStepBinding[];
362
+ }
363
+ export interface MenuCookingStep {
364
+ id: string;
365
+ instruction: string;
366
+ variables: {
367
+ [key: string]: string;
368
+ };
369
+ }
370
+ export interface MenuCookingStepOverride {
371
+ id: string;
372
+ variables: {
373
+ [key: string]: string;
374
+ };
375
+ }
376
+ export interface MenuCookingStepBinding {
377
+ productId: string;
378
+ combinationKey?: string | null | undefined;
379
+ overrides: MenuCookingStepOverride[];
380
+ }
381
+ export interface MenuCookingGuide {
382
+ _id: string;
383
+ name: string;
384
+ steps: MenuCookingStep[];
385
+ bindings: MenuCookingStepBinding[];
386
+ }
387
+ export interface MasterCatalogSetting {
388
+ inclusiveTaxes: TaxInclusion[] | null;
389
+ }
390
+ export declare enum MenuV3ModuleKey {
391
+ product = "product",
392
+ category = "category",
393
+ catalog = "catalog",
394
+ scheduler = "scheduler",
395
+ addonGroup = "addonGroup",
396
+ variant = "variant",
397
+ takeaway = "takeaway",
398
+ unit = "unit",
399
+ sku = "sku",
400
+ recipe = "recipe",
401
+ printDepartment = "printDepartment",
402
+ cookingGuide = "cookingGuide"
403
+ }
404
+ export interface MenuV3Module {
405
+ [MenuV3ModuleKey.product]: ProductDoc[];
406
+ [MenuV3ModuleKey.category]: CategoryDoc[];
407
+ [MenuV3ModuleKey.catalog]: CatalogDoc[];
408
+ [MenuV3ModuleKey.scheduler]: SchedulerDoc[];
409
+ [MenuV3ModuleKey.addonGroup]: AddonGroupDoc[];
410
+ [MenuV3ModuleKey.variant]: VariantDoc[];
411
+ [MenuV3ModuleKey.takeaway]: TakeawayDoc[];
412
+ [MenuV3ModuleKey.unit]: UnitDoc[];
413
+ [MenuV3ModuleKey.sku]: SkuDoc[];
414
+ [MenuV3ModuleKey.recipe]: RecipeDoc[];
415
+ [MenuV3ModuleKey.printDepartment]: PrintDepartmentDoc[];
416
+ [MenuV3ModuleKey.cookingGuide]: MenuCookingGuideDoc[];
417
+ }
418
+ export interface MenuV3 {
419
+ subModule: MenuV3Module;
420
+ masterCatalogSetting: MasterCatalogSetting;
421
+ updatedAt: string;
422
+ }
423
+ export interface SchedulerDoc extends SubDoc, Scheduler {
424
+ }
425
+ export interface VariantDoc extends SubDoc, Variant {
426
+ }
427
+ export interface AddonGroupDoc extends SubDoc, AddonGroup {
428
+ }
429
+ export interface ProductDoc extends SubDoc, Product {
430
+ }
431
+ export interface CatalogDoc extends SubDoc, Catalog {
432
+ }
433
+ export interface CategoryDoc extends SubDoc, Category {
434
+ }
435
+ export interface TakeawayDoc extends SubDoc, Takeaway {
436
+ }
437
+ export interface UnitDoc extends SubDoc, Unit {
438
+ }
439
+ export interface SkuDoc extends SubDoc, Sku {
440
+ }
441
+ export interface RecipeDoc extends SubDoc, Recipe {
442
+ }
443
+ export interface PrintDepartmentDoc extends SubDoc, PrintDepartment {
444
+ }
445
+ export interface MenuCookingGuideDoc extends SubDoc, MenuCookingGuide {
446
+ }
447
+ export interface MenuV3Doc extends EntityDocument, MenuV3 {
448
+ }
449
+ export interface PosOverrideDoc extends EntityDocument, PosOverride {
450
+ }
@@ -0,0 +1,8 @@
1
+ import { type WorkBook } from "xlsx";
2
+ import { type MenuV3 } from "@/helper/feedmeModify/definitions";
3
+ export declare function excelToMenu(menu: MenuV3, book: WorkBook): MenuV3;
4
+ export declare function groupBy(array: any, key: any): any;
5
+ export declare function encodeId(id: string): string;
6
+ export declare function decodeId(id: string): string;
7
+ export declare function encode(date: string): string;
8
+ export declare function decode(date: string): string;
@@ -0,0 +1,19 @@
1
+ import { type WorkBook } from "xlsx";
2
+ import { type MenuV3 } from "@/helper/feedmeModify/definitions";
3
+ export interface ExportMenuDataFormat {
4
+ _id: string;
5
+ code: string;
6
+ name: string;
7
+ variantKey: string;
8
+ vcStatus: string;
9
+ variant: string;
10
+ price: number | string;
11
+ perXUnit: string;
12
+ unit: string;
13
+ categoryName: string;
14
+ description: string;
15
+ addonGroup: string;
16
+ [key: string]: string | number;
17
+ }
18
+ export declare function transformData(menu: MenuV3, modified?: boolean): ExportMenuDataFormat[];
19
+ export declare function menuToExcel(menu: MenuV3): WorkBook;
@@ -2150,4 +2150,4 @@ export declare const useItemManagerStore: import("pinia").StoreDefinition<"item-
2150
2150
  thumbnail?: string | null | undefined;
2151
2151
  }[]) => Promise<void>;
2152
2152
  rearrange: (ids: string[]) => Promise<void>;
2153
- }, "rearrange" | "initDynamicGroupItem" | "create" | "update" | "updateMany" | "deleteItem">>;
2153
+ }, "update" | "rearrange" | "initDynamicGroupItem" | "create" | "updateMany" | "deleteItem">>;
@@ -1,4 +1,4 @@
1
- import type { FdoMasterCatalogSetting, FdoMenuCookingGuide, FdoMenuPrintDepartment, FdoMenuSku, FdoMenuUnit, FdoMenuV4, FdoMenuV4Catalog, FdoMenuV4Category, FdoMenuV4Group, FdoMenuV4Scheduler, FdoMenuV4Takeaway, FdoMenuV4VariantGroup, FdoProductTaxSetting, FdtoRestaurantWithMenuV4, FdtoV4Tax } from "@feedmepos/menu/entity";
1
+ import type { FdoMasterCatalogSetting, FdoMenuCookingGuide, FdoMenuPrintDepartment, FdoMenuServeSequence, FdoMenuSku, FdoMenuUnit, FdoMenuV4, FdoMenuV4Catalog, FdoMenuV4Category, FdoMenuV4Group, FdoMenuV4Scheduler, FdoMenuV4Takeaway, FdoMenuV4VariantGroup, FdoProductTaxSetting, FdtoRestaurantWithMenuV4, FdtoV4Tax } from "@feedmepos/menu/entity";
2
2
  import { type FdoMenuV4Item } from "@feedmepos/menu/entity";
3
3
  import { F_MENU_VERSION, type FdoDecimal, type PublishForRestaurantDto } from "@feedmepos/core-dart";
4
4
  import { type ComputedRef, type Ref } from "vue";
@@ -51,6 +51,7 @@ interface MenuStore {
51
51
  state: Ref<MenuState>;
52
52
  version: ComputedRef<F_MENU_VERSION>;
53
53
  mergedMenu: ComputedRef<FdoMenuV4>;
54
+ serveSequence: ComputedRef<FdoMenuServeSequence[]>;
54
55
  catalogs: ComputedRef<FdoMenuV4Catalog[]>;
55
56
  currentCatalog: ComputedRef<FdoMenuV4Catalog | undefined>;
56
57
  schedulers: ComputedRef<FdoMenuV4Scheduler[]>;
@@ -0,0 +1,18 @@
1
+ interface Props {
2
+ modelValue: boolean;
3
+ }
4
+ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<Props>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
5
+ "update:modelValue": (value: boolean) => void;
6
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>> & {
7
+ "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
8
+ }, {}, {}>;
9
+ export default _default;
10
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
11
+ type __VLS_TypePropsToRuntimeProps<T> = {
12
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
13
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
14
+ } : {
15
+ type: import('vue').PropType<T[K]>;
16
+ required: true;
17
+ };
18
+ };
@@ -1,6 +1,8 @@
1
1
  interface Props {
2
- src: string | null;
2
+ src: string | null | undefined;
3
3
  alt: string | null;
4
+ className?: string;
5
+ size: number;
4
6
  }
5
7
  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
8
  export default _default;