@feedmepos/mf-order-setting 0.0.108 → 0.0.109

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 (57) hide show
  1. package/dist/{DisplaySystemView-ChGTO4v2.js → DisplaySystemView-hHA7fMQR.js} +4 -4
  2. package/dist/{FoodCourtInvitationsView-F1LiGOR8.js → FoodCourtInvitationsView-C_x0pvnB.js} +4 -4
  3. package/dist/{FoodCourtOrderSettingsView-D5M5kFAl.js → FoodCourtOrderSettingsView-BMRJe6tf.js} +1 -1
  4. package/dist/FoodCourtOrdersView-DlGJnMOd.js +1433 -0
  5. package/dist/{FoodCourtStallsView-jz1xnZus.js → FoodCourtStallsView-BAzlMqlj.js} +2 -2
  6. package/dist/{FoodCourtStatusView-DC3qHL1L.js → FoodCourtStatusView-CRkk2f66.js} +1 -1
  7. package/dist/{KioskDevicesView-B9w4izOk.js → KioskDevicesView-COuR39YQ.js} +1 -1
  8. package/dist/{KioskDevicesView.vue_vue_type_script_setup_true_lang-XJm-f2JF.js → KioskDevicesView.vue_vue_type_script_setup_true_lang-CAcDjPbk.js} +5 -5
  9. package/dist/{KioskSettingView-Bmfvz0Kz.js → KioskSettingView-DsIzIbYf.js} +3 -3
  10. package/dist/{KioskView-B0WlDEsG.js → KioskView-B1sn-D6k.js} +8 -8
  11. package/dist/{OrderSettingsView-BF89-eSB.js → OrderSettingsView-BvYGRXfI.js} +10 -10
  12. package/dist/{RestaurantSelector.vue_vue_type_script_setup_true_lang-BqPQnAVb.js → RestaurantSelector.vue_vue_type_script_setup_true_lang-COUKtg5k.js} +1 -1
  13. package/dist/{app-B4ew9SMz.js → app-utsChJtE.js} +71 -15
  14. package/dist/app.js +1 -1
  15. package/dist/{dayjs.min-BsZk4QHK.js → dayjs.min-C9WrpSe-.js} +1 -1
  16. package/dist/{featureFlag-CFlCo4uv.js → featureFlag-CHPFyNAw.js} +1 -1
  17. package/dist/frontend/mf-order/src/api/food-court/index.d.ts +29 -2
  18. package/dist/frontend/mf-order/src/app.d.ts +56 -0
  19. package/dist/frontend/mf-order/src/main.d.ts +56 -0
  20. package/dist/frontend/mf-order/src/views/food-court/food-court-order.d.ts +12 -1
  21. package/dist/frontend/mf-order/src/views/food-court/orders/FoodCourtOrderSheet.vue.d.ts +3 -1
  22. package/dist/frontend/mf-order/src/views/food-court/orders/FoodCourtReceiptDialog.vue.d.ts +17 -0
  23. package/dist/frontend/mf-order/src/views/food-court/orders/food-court-receipt.d.ts +20 -0
  24. package/dist/frontend/mf-order/tsconfig.app.tsbuildinfo +1 -1
  25. package/dist/index--4Q-LHMq.js +6854 -0
  26. package/dist/{index-D0vTvoQN.js → index-BaABuG0J.js} +1 -1
  27. package/dist/{index-Z1ZA897U.js → index-CVxg__RB.js} +1 -1
  28. package/dist/index-Ck6Ef5sR.js +5 -0
  29. package/dist/{index-C6c28uBZ.js → index-D349Zd9k.js} +35 -23
  30. package/dist/{index-DLeX1p1o.js → index-DC8V_7zz.js} +2 -2
  31. package/dist/{index-D4_zVJPi.js → index-DVJkdWEG.js} +4 -4
  32. package/dist/index-iSsU83r4.js +46278 -0
  33. package/dist/{order.dto-DrlhCvYK.js → order.dto-D4yp5hGF.js} +47 -43
  34. package/dist/package/entity/alert/suggestion.dto.d.ts +2 -2
  35. package/dist/package/entity/food-court/order-v2.dto.d.ts +5 -5
  36. package/dist/package/entity/kiosk/kiosk.do.d.ts +16 -16
  37. package/dist/package/entity/kiosk/kiosk.dto.d.ts +19 -19
  38. package/dist/package/entity/order/order.do.d.ts +3 -3
  39. package/dist/package/entity/order/order.dto.d.ts +10 -10
  40. package/dist/package/entity/order/order.enum.d.ts +1 -1
  41. package/dist/package/entity/order-platform/deliveroo/deliveroo.menu.dto.d.ts +30 -30
  42. package/dist/{useInternalUser-BaSqwN4K.js → useInternalUser-CeoNePyw.js} +1 -1
  43. package/package.json +4 -1
  44. package/src/api/food-court/index.ts +42 -4
  45. package/src/locales/en-US.json +15 -1
  46. package/src/locales/ja-JP.json +15 -1
  47. package/src/locales/th-TH.json +15 -1
  48. package/src/locales/zh-CN.json +15 -1
  49. package/src/views/food-court/FoodCourtOrdersView.vue +135 -16
  50. package/src/views/food-court/food-court-order.spec.ts +16 -1
  51. package/src/views/food-court/food-court-order.ts +23 -1
  52. package/src/views/food-court/orders/FoodCourtOrderSheet.vue +29 -11
  53. package/src/views/food-court/orders/FoodCourtReceiptDialog.vue +113 -0
  54. package/src/views/food-court/orders/food-court-receipt.spec.ts +43 -0
  55. package/src/views/food-court/orders/food-court-receipt.ts +49 -0
  56. package/vite.config.ts +13 -0
  57. package/dist/FoodCourtOrdersView-BQrESoTH.js +0 -1190
@@ -0,0 +1,17 @@
1
+ import type { FoodCourtOrderReceipt } from '@/api/food-court';
2
+ /**
3
+ * Orders › View receipt (KDI-4941): the whole-court receipt as the court kiosk
4
+ * prints it (KDI-4934), drawn the same way Restaurant Operation › Receipts
5
+ * previews a bill: the kitchen template compiled to print groups, drawn on a
6
+ * canvas by @feedmepos/printer.
7
+ */
8
+ type __VLS_Props = {
9
+ modelValue: boolean;
10
+ receipt: FoodCourtOrderReceipt | null;
11
+ };
12
+ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
13
+ "update:modelValue": (value: boolean) => any;
14
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
15
+ "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
16
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
17
+ export default _default;
@@ -0,0 +1,20 @@
1
+ import type { FoodCourtOrderReceipt } from '@/api/food-court';
2
+ /**
3
+ * Why kitchen cannot compile this court order into a receipt, or null when it
4
+ * can: the same checks kitchen makes before it throws (a PAID order with a
5
+ * number and stalls, and a stall order in `pf_orders` for every stall).
6
+ */
7
+ export declare function foodCourtReceiptProblem(order: FoodCourtOrderReceipt): string | null;
8
+ /** `en-MY` → kitchen's locale shape. */
9
+ export declare function kitchenLocale(locale: string): {
10
+ languageCode: string;
11
+ countryCode?: string;
12
+ };
13
+ /**
14
+ * The whole-court receipt (KDI-4934) as a canvas: kitchen's court template
15
+ * (`foodCourtReceipt.compile`, the court kiosk's printout, default template)
16
+ * fed the portal's order body as is, drawn by @feedmepos/printer the same way
17
+ * Restaurant Operation › Receipts draws a bill. Both packages are loaded only
18
+ * here, so the Orders page does not carry them until a receipt is opened.
19
+ */
20
+ export declare function renderFoodCourtReceipt(order: FoodCourtOrderReceipt, locale: string, country?: string | null): Promise<HTMLCanvasElement>;