@feedmepos/mf-order-setting 0.0.82 → 0.0.83

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 (29) hide show
  1. package/dist/{DisplaySystemView-CBA_-Zwh.js → DisplaySystemView-BXy_OnbY.js} +1 -1
  2. package/dist/{KioskDevicesView-6YTOtIWQ.js → KioskDevicesView-D3YR1e6K.js} +1 -1
  3. package/dist/{KioskDevicesView.vue_vue_type_script_setup_true_lang-qvqRZ2Ae.js → KioskDevicesView.vue_vue_type_script_setup_true_lang-CuhL_Q5C.js} +3 -3
  4. package/dist/{KioskSettingView-CYiyp09P.js → KioskSettingView-C3L9_8ag.js} +3 -3
  5. package/dist/{KioskView-Bu9gfNOh.js → KioskView-Cs6VBCj5.js} +5 -5
  6. package/dist/OrderSettingsView-BdaHRXda.js +94666 -0
  7. package/dist/{app-D05tyoZe.js → app-CP6AFTEu.js} +18 -10
  8. package/dist/app.js +1 -1
  9. package/dist/frontend/mf-order/src/app.d.ts +8 -0
  10. package/dist/frontend/mf-order/src/main.d.ts +8 -0
  11. package/dist/frontend/mf-order/src/stores/order-setting/index.d.ts +3 -0
  12. package/dist/frontend/mf-order/tsconfig.app.tsbuildinfo +1 -1
  13. package/dist/{index-Bpm0pX-9.js → index-BckeUsPc.js} +1 -1
  14. package/dist/{index-BtkrM3Wf.js → index-DoJzzpyh.js} +1 -1
  15. package/dist/{index-Cz0NSnh0.js → index-LCS8oexE.js} +2 -2
  16. package/dist/{order.dto-1WtOARuH.js → order.dto-Bm04C1sQ.js} +151 -144
  17. package/dist/package/entity/order-setting/order-setting.do.d.ts +5 -0
  18. package/dist/package/entity/order-setting/order-setting.dto.d.ts +10 -0
  19. package/dist/package/entity/order-setting/v3/v3.do.d.ts +3 -0
  20. package/dist/package/entity/order-setting/v3/v3.dto.d.ts +3 -0
  21. package/dist/package/entity/restaurant/restaurant.dto.d.ts +9 -4
  22. package/package.json +2 -2
  23. package/src/locales/en-US.json +2 -0
  24. package/src/locales/ja-JP.json +2 -0
  25. package/src/locales/th-TH.json +2 -0
  26. package/src/locales/zh-CN.json +2 -0
  27. package/src/views/order-settings/dine-in/DineInSetting.vue +16 -0
  28. package/src/views/order-settings/general/GeneralSetting.vue +7 -4
  29. package/dist/OrderSettingsView-CXqgzlYE.js +0 -68647
@@ -73,13 +73,16 @@ export declare const FdoOrderSettings: z.ZodObject<{
73
73
  v3Settings: z.ZodNullable<z.ZodOptional<z.ZodObject<{
74
74
  dineInCanTakeaway: z.ZodBoolean;
75
75
  anonymousLoginDialog: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
76
+ paxDialog: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
76
77
  subItemDisplayMode: z.ZodNullable<z.ZodOptional<z.ZodEnum<["LIST"]>>>;
77
78
  }, "strip", z.ZodTypeAny, {
78
79
  anonymousLoginDialog?: boolean | null | undefined;
80
+ paxDialog?: boolean | null | undefined;
79
81
  subItemDisplayMode?: "LIST" | null | undefined;
80
82
  dineInCanTakeaway: boolean;
81
83
  }, {
82
84
  anonymousLoginDialog?: boolean | null | undefined;
85
+ paxDialog?: boolean | null | undefined;
83
86
  subItemDisplayMode?: "LIST" | null | undefined;
84
87
  dineInCanTakeaway: boolean;
85
88
  }>>>;
@@ -1231,6 +1234,7 @@ export declare const FdoOrderSettings: z.ZodObject<{
1231
1234
  } | null | undefined;
1232
1235
  v3Settings?: {
1233
1236
  anonymousLoginDialog?: boolean | null | undefined;
1237
+ paxDialog?: boolean | null | undefined;
1234
1238
  subItemDisplayMode?: "LIST" | null | undefined;
1235
1239
  dineInCanTakeaway: boolean;
1236
1240
  } | null | undefined;
@@ -1458,6 +1462,7 @@ export declare const FdoOrderSettings: z.ZodObject<{
1458
1462
  } | null | undefined;
1459
1463
  v3Settings?: {
1460
1464
  anonymousLoginDialog?: boolean | null | undefined;
1465
+ paxDialog?: boolean | null | undefined;
1461
1466
  subItemDisplayMode?: "LIST" | null | undefined;
1462
1467
  dineInCanTakeaway: boolean;
1463
1468
  } | null | undefined;
@@ -64,13 +64,16 @@ export declare const OrderSettingsDto: z.ZodObject<{
64
64
  v3Settings: z.ZodDefault<z.ZodObject<{
65
65
  dineInCanTakeaway: z.ZodBoolean;
66
66
  anonymousLoginDialog: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
67
+ paxDialog: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
67
68
  subItemDisplayMode: z.ZodNullable<z.ZodOptional<z.ZodEnum<["LIST"]>>>;
68
69
  }, "strip", z.ZodTypeAny, {
69
70
  anonymousLoginDialog?: boolean | null | undefined;
71
+ paxDialog?: boolean | null | undefined;
70
72
  subItemDisplayMode?: "LIST" | null | undefined;
71
73
  dineInCanTakeaway: boolean;
72
74
  }, {
73
75
  anonymousLoginDialog?: boolean | null | undefined;
76
+ paxDialog?: boolean | null | undefined;
74
77
  subItemDisplayMode?: "LIST" | null | undefined;
75
78
  dineInCanTakeaway: boolean;
76
79
  }>>;
@@ -1376,6 +1379,7 @@ export declare const OrderSettingsDto: z.ZodObject<{
1376
1379
  _id: string;
1377
1380
  v3Settings: {
1378
1381
  anonymousLoginDialog?: boolean | null | undefined;
1382
+ paxDialog?: boolean | null | undefined;
1379
1383
  subItemDisplayMode?: "LIST" | null | undefined;
1380
1384
  dineInCanTakeaway: boolean;
1381
1385
  };
@@ -1404,6 +1408,7 @@ export declare const OrderSettingsDto: z.ZodObject<{
1404
1408
  } | null | undefined;
1405
1409
  v3Settings?: {
1406
1410
  anonymousLoginDialog?: boolean | null | undefined;
1411
+ paxDialog?: boolean | null | undefined;
1407
1412
  subItemDisplayMode?: "LIST" | null | undefined;
1408
1413
  dineInCanTakeaway: boolean;
1409
1414
  } | undefined;
@@ -1669,13 +1674,16 @@ export declare const OrderSettingUpdateDto: z.ZodObject<Omit<{
1669
1674
  v3Settings: z.ZodDefault<z.ZodObject<{
1670
1675
  dineInCanTakeaway: z.ZodBoolean;
1671
1676
  anonymousLoginDialog: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
1677
+ paxDialog: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
1672
1678
  subItemDisplayMode: z.ZodNullable<z.ZodOptional<z.ZodEnum<["LIST"]>>>;
1673
1679
  }, "strip", z.ZodTypeAny, {
1674
1680
  anonymousLoginDialog?: boolean | null | undefined;
1681
+ paxDialog?: boolean | null | undefined;
1675
1682
  subItemDisplayMode?: "LIST" | null | undefined;
1676
1683
  dineInCanTakeaway: boolean;
1677
1684
  }, {
1678
1685
  anonymousLoginDialog?: boolean | null | undefined;
1686
+ paxDialog?: boolean | null | undefined;
1679
1687
  subItemDisplayMode?: "LIST" | null | undefined;
1680
1688
  dineInCanTakeaway: boolean;
1681
1689
  }>>;
@@ -2980,6 +2988,7 @@ export declare const OrderSettingUpdateDto: z.ZodObject<Omit<{
2980
2988
  dynamicQrSessionSource?: "remote" | "couchdb" | null | undefined;
2981
2989
  v3Settings: {
2982
2990
  anonymousLoginDialog?: boolean | null | undefined;
2991
+ paxDialog?: boolean | null | undefined;
2983
2992
  subItemDisplayMode?: "LIST" | null | undefined;
2984
2993
  dineInCanTakeaway: boolean;
2985
2994
  };
@@ -3008,6 +3017,7 @@ export declare const OrderSettingUpdateDto: z.ZodObject<Omit<{
3008
3017
  } | null | undefined;
3009
3018
  v3Settings?: {
3010
3019
  anonymousLoginDialog?: boolean | null | undefined;
3020
+ paxDialog?: boolean | null | undefined;
3011
3021
  subItemDisplayMode?: "LIST" | null | undefined;
3012
3022
  dineInCanTakeaway: boolean;
3013
3023
  } | undefined;
@@ -2,13 +2,16 @@ import { z } from 'zod';
2
2
  export declare const FdoOrderV3Settings: z.ZodObject<{
3
3
  dineInCanTakeaway: z.ZodBoolean;
4
4
  anonymousLoginDialog: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
5
+ paxDialog: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
5
6
  subItemDisplayMode: z.ZodNullable<z.ZodOptional<z.ZodEnum<["LIST"]>>>;
6
7
  }, "strip", z.ZodTypeAny, {
7
8
  anonymousLoginDialog?: boolean | null | undefined;
9
+ paxDialog?: boolean | null | undefined;
8
10
  subItemDisplayMode?: "LIST" | null | undefined;
9
11
  dineInCanTakeaway: boolean;
10
12
  }, {
11
13
  anonymousLoginDialog?: boolean | null | undefined;
14
+ paxDialog?: boolean | null | undefined;
12
15
  subItemDisplayMode?: "LIST" | null | undefined;
13
16
  dineInCanTakeaway: boolean;
14
17
  }>;
@@ -2,13 +2,16 @@ import { z } from 'zod';
2
2
  export declare const OrderV3Settings: z.ZodDefault<z.ZodObject<{
3
3
  dineInCanTakeaway: z.ZodBoolean;
4
4
  anonymousLoginDialog: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
5
+ paxDialog: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
5
6
  subItemDisplayMode: z.ZodNullable<z.ZodOptional<z.ZodEnum<["LIST"]>>>;
6
7
  }, "strip", z.ZodTypeAny, {
7
8
  anonymousLoginDialog?: boolean | null | undefined;
9
+ paxDialog?: boolean | null | undefined;
8
10
  subItemDisplayMode?: "LIST" | null | undefined;
9
11
  dineInCanTakeaway: boolean;
10
12
  }, {
11
13
  anonymousLoginDialog?: boolean | null | undefined;
14
+ paxDialog?: boolean | null | undefined;
12
15
  subItemDisplayMode?: "LIST" | null | undefined;
13
16
  dineInCanTakeaway: boolean;
14
17
  }>>;
@@ -1527,13 +1527,16 @@ export declare const RestaurantCustomerV2Dto: z.ZodObject<{
1527
1527
  v3Setting: z.ZodDefault<z.ZodDefault<z.ZodObject<{
1528
1528
  dineInCanTakeaway: z.ZodBoolean;
1529
1529
  anonymousLoginDialog: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
1530
+ paxDialog: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
1530
1531
  subItemDisplayMode: z.ZodNullable<z.ZodOptional<z.ZodEnum<["LIST"]>>>;
1531
1532
  }, "strip", z.ZodTypeAny, {
1532
1533
  anonymousLoginDialog?: boolean | null | undefined;
1534
+ paxDialog?: boolean | null | undefined;
1533
1535
  subItemDisplayMode?: "LIST" | null | undefined;
1534
1536
  dineInCanTakeaway: boolean;
1535
1537
  }, {
1536
1538
  anonymousLoginDialog?: boolean | null | undefined;
1539
+ paxDialog?: boolean | null | undefined;
1537
1540
  subItemDisplayMode?: "LIST" | null | undefined;
1538
1541
  dineInCanTakeaway: boolean;
1539
1542
  }>>>;
@@ -1866,6 +1869,7 @@ export declare const RestaurantCustomerV2Dto: z.ZodObject<{
1866
1869
  } | null | undefined;
1867
1870
  id: string;
1868
1871
  businessId: string;
1872
+ paxDialog: boolean;
1869
1873
  profile: {
1870
1874
  code?: string | null | undefined;
1871
1875
  url?: string | null | undefined;
@@ -1943,12 +1947,12 @@ export declare const RestaurantCustomerV2Dto: z.ZodObject<{
1943
1947
  phoneNo: string;
1944
1948
  regNo: string;
1945
1949
  };
1946
- paxDialog: boolean;
1947
1950
  acceptDineIn: boolean;
1948
1951
  acceptDelivery: boolean;
1949
1952
  acceptPickup: boolean;
1950
1953
  v3Setting: {
1951
1954
  anonymousLoginDialog?: boolean | null | undefined;
1955
+ paxDialog?: boolean | null | undefined;
1952
1956
  subItemDisplayMode?: "LIST" | null | undefined;
1953
1957
  dineInCanTakeaway: boolean;
1954
1958
  };
@@ -2164,11 +2168,13 @@ export declare const RestaurantCustomerV2Dto: z.ZodObject<{
2164
2168
  } | null | undefined;
2165
2169
  v3Setting?: {
2166
2170
  anonymousLoginDialog?: boolean | null | undefined;
2171
+ paxDialog?: boolean | null | undefined;
2167
2172
  subItemDisplayMode?: "LIST" | null | undefined;
2168
2173
  dineInCanTakeaway: boolean;
2169
2174
  } | undefined;
2170
2175
  id: string;
2171
2176
  businessId: string;
2177
+ paxDialog: boolean;
2172
2178
  profile: {
2173
2179
  code?: string | null | undefined;
2174
2180
  url?: string | null | undefined;
@@ -2246,7 +2252,6 @@ export declare const RestaurantCustomerV2Dto: z.ZodObject<{
2246
2252
  phoneNo: string;
2247
2253
  regNo: string;
2248
2254
  };
2249
- paxDialog: boolean;
2250
2255
  acceptDineIn: boolean;
2251
2256
  acceptDelivery: boolean;
2252
2257
  acceptPickup: boolean;
@@ -5678,6 +5683,7 @@ export declare const RestaurantCustomerKioskDto: z.ZodObject<{
5678
5683
  } | null | undefined;
5679
5684
  _id: string;
5680
5685
  businessId: string;
5686
+ paxDialog: boolean;
5681
5687
  profile: {
5682
5688
  code?: string | null | undefined;
5683
5689
  url?: string | null | undefined;
@@ -5755,7 +5761,6 @@ export declare const RestaurantCustomerKioskDto: z.ZodObject<{
5755
5761
  phoneNo: string;
5756
5762
  regNo: string;
5757
5763
  };
5758
- paxDialog: boolean;
5759
5764
  acceptDineIn: boolean;
5760
5765
  paymentGateways: ({
5761
5766
  _id: string;
@@ -6023,6 +6028,7 @@ export declare const RestaurantCustomerKioskDto: z.ZodObject<{
6023
6028
  } | null | undefined;
6024
6029
  _id: string;
6025
6030
  businessId: string;
6031
+ paxDialog: boolean;
6026
6032
  profile: {
6027
6033
  code?: string | null | undefined;
6028
6034
  url?: string | null | undefined;
@@ -6100,7 +6106,6 @@ export declare const RestaurantCustomerKioskDto: z.ZodObject<{
6100
6106
  phoneNo: string;
6101
6107
  regNo: string;
6102
6108
  };
6103
- paxDialog: boolean;
6104
6109
  acceptDineIn: boolean;
6105
6110
  paymentGateways: ({
6106
6111
  _id: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@feedmepos/mf-order-setting",
3
- "version": "0.0.82",
3
+ "version": "0.0.83",
4
4
  "type": "module",
5
5
  "module": "./dist/app.js",
6
6
  "license": "UNLICENSED",
@@ -10,7 +10,7 @@
10
10
  }
11
11
  },
12
12
  "dependencies": {
13
- "@feedmepos/core": "^2.15.41",
13
+ "@feedmepos/core": "^2.15.43",
14
14
  "@feedmepos/entity": "0.0.20",
15
15
  "@feedmepos/feature-flag": "^0.0.15",
16
16
  "@feedmepos/hrm-permission": "^1.0.13",
@@ -365,6 +365,8 @@
365
365
  "otaChannel": "OTA channel",
366
366
  "otaChannelHint": "Optional. Leave blank to use the default OTA feed.",
367
367
  "other": "Other",
368
+ "onlinePaxDialog": "Pax Dialog (Online Ordering)",
369
+ "onlinePaxDialogSublabel": "Ask customers for the number of people when they order online. POS keeps its own pax dialog setting.",
368
370
  "overridePax": "Overwrite Bill Pax",
369
371
  "overridePaxSublabel": "Incoming order will overwrite the existing bill pax",
370
372
  "padDigit": "Pad Digit",
@@ -314,6 +314,8 @@
314
314
  "disableSMS": "SMSを無効にする",
315
315
  "printChecklist": "チェックリストを印刷",
316
316
  "printChecklistSublabel": "オンライン注文のみ",
317
+ "onlinePaxDialog": "人数ダイアログ(オンライン注文)",
318
+ "onlinePaxDialogSublabel": "オンライン注文時に人数を確認します。POSの人数ダイアログは別途設定されます。",
317
319
  "overridePax": "請求書の人数を上書き",
318
320
  "overridePaxSublabel": "新しい注文が既存の請求書の人数を上書きします",
319
321
  "codeSettings": "順番待ちコード設定",
@@ -391,6 +391,8 @@
391
391
  "prefix": "ข้อความนำหน้า",
392
392
  "printChecklist": "พิมพ์ใบเช็กรายการอาหาร",
393
393
  "printChecklistSublabel": "เฉพาะคำสั่งซื้อออนไลน์",
394
+ "onlinePaxDialog": "กล่องถามจำนวนลูกค้า (สั่งออนไลน์)",
395
+ "onlinePaxDialogSublabel": "ถามจำนวนลูกค้าเมื่อลูกค้าสั่งออนไลน์ การตั้งค่าของ POS แยกจากกัน",
394
396
  "overridePax": "อัปเดตจำนวนลูกค้าในบิล",
395
397
  "overridePaxSublabel": "คำสั่งซื้อที่เข้ามาใหม่จะแทนที่จำนวนลูกค้าในบิลเดิม",
396
398
  "preOrder": "สั่งซื้อล่วงหน้า",
@@ -393,6 +393,8 @@
393
393
  "prefix": "前缀",
394
394
  "printChecklist": "打印清单",
395
395
  "printChecklistSublabel": "仅限在线订单",
396
+ "onlinePaxDialog": "人数弹窗(线上订单)",
397
+ "onlinePaxDialogSublabel": "线上订单时询问客人人数。POS 的人数弹窗设置独立配置。",
396
398
  "overridePax": "覆盖账单人数",
397
399
  "overridePaxSublabel": "新订单将覆盖现有账单的人数",
398
400
  "preOrder": "预订",
@@ -91,6 +91,14 @@
91
91
  @update:model-value="updateDineInCanTakeaway"
92
92
  ></FmSwitch>
93
93
 
94
+ <FmSwitch
95
+ :model-value="orderSetting?.v3Settings?.paxDialog ?? true"
96
+ :label="t('order.onlinePaxDialog')"
97
+ :sublabel="t('order.onlinePaxDialogSublabel')"
98
+ label-placement="right"
99
+ @update:model-value="updatePaxDialog"
100
+ ></FmSwitch>
101
+
94
102
  <FmSwitch
95
103
  :model-value="orderSetting?.dineInSettings?.printChecklist ?? false"
96
104
  :label="t('order.printChecklist')"
@@ -220,6 +228,14 @@ function updateDineInCanTakeaway(v: boolean) {
220
228
  }
221
229
  }
222
230
 
231
+ // Online ordering only (customer-v3 / customer-v3-next).
232
+ // POS reads FdoRestaurantSetting.paxDialog and is unaffected by this.
233
+ function updatePaxDialog(v: boolean) {
234
+ if (orderSetting.value?.v3Settings) {
235
+ orderSetting.value.v3Settings.paxDialog = v
236
+ }
237
+ }
238
+
223
239
  function updateLastOrderMinutesBeforeClose(minutes: number) {
224
240
  if (orderSetting.value) {
225
241
  orderSetting.value.lastOrderMinutesBeforeClose = minutes
@@ -4,8 +4,14 @@
4
4
  </div>
5
5
  <div v-if="!isLoading">
6
6
  <div class="p-[1.5rem] flex flex-col gap-5 m-5 mr-8 w-full max-w-4xl">
7
+ <!--
8
+ Read the stored value as-is. The customer apps gate the login sheet on
9
+ `!!v3Settings.anonymousLoginDialog`, so an unset field behaves as OFF
10
+ there; showing it as ON here made merchants believe they had enabled a
11
+ prompt that never fired (ITS-000429).
12
+ -->
7
13
  <FmSwitch
8
- :model-value="orderSetting?.v3Settings?.anonymousLoginDialog ?? true"
14
+ :model-value="!!orderSetting?.v3Settings?.anonymousLoginDialog"
9
15
  :label="t('order.promptAnonymousLoginDialog')"
10
16
  @update:model-value="updateAnonymousLoginDialog"
11
17
  label-placement="right"
@@ -96,7 +102,6 @@ import RestaurantSelector from '../components/RestaurantSelector.vue'
96
102
  import { useLoading } from '@/composables/loading'
97
103
  import {
98
104
  type OrderSettingsDto,
99
- type OrderV3Settings,
100
105
  F_ORDER_SUBITEM_DISPLAY_MODE,
101
106
  OrderTakeawaySequenceDto,
102
107
  OrderPickUpSequenceDto,
@@ -122,8 +127,6 @@ const { currentRestaurant } = useCoreStore()
122
127
  const { startAsyncCallWithErr, isLoading, startLoading } = useLoading()
123
128
 
124
129
  const orderSetting = ref<OrderSettingsDto | undefined>(undefined)
125
- const v3Settings = ref<OrderV3Settings | undefined>(undefined)
126
- const anonymousLoginDialog = ref<boolean>(false)
127
130
  const isSequenceSettingValid = computed(() => {
128
131
  const sequence = orderSetting.value?.sequenceSettings
129
132
  if (!sequence) return true