@feedmepos/mf-menu 0.31.40-prod → 0.31.41-prod

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 (90) hide show
  1. package/dist/{App-aWEH-ZEk.js → App-5Lzy8zHZ.js} +8 -8
  2. package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-jJyinQZl.js → ApplyProduct.vue_vue_type_script_setup_true_lang-BnKXsQH-.js} +3 -3
  3. package/dist/{Catalog-BoFfFdn8.js → Catalog-s5b8V8nw.js} +8 -9
  4. package/dist/{Category-CWYbb3Jn.js → Category-BJzScJEY.js} +4 -4
  5. package/dist/{Category-DZ45uikR.js → Category-DZ-xqIMI.js} +6 -6
  6. package/dist/{CookingGuide-BU0PRWIQ.js → CookingGuide-Bkd6GPww.js} +4 -4
  7. package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-Z5xsKDIE.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-B8tIjKOW.js} +1 -1
  8. package/dist/{Group-BMQDeqiS.js → Group-0b2Qiov3.js} +1 -1
  9. package/dist/{Group-C0T_uknK.js → Group-BOaCcKiI.js} +3 -3
  10. package/dist/{Group.vue_vue_type_script_setup_true_lang-DyfmY6F1.js → Group.vue_vue_type_script_setup_true_lang-DUlUfMAs.js} +8 -8
  11. package/dist/GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-CouimeC4.js +399 -0
  12. package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-Dl-Wvt3D.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-DOvQmbrZ.js} +13 -14
  13. package/dist/{Ingredient-3lwDUQx_.js → Ingredient-ChcYUvOg.js} +3 -3
  14. package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-VLrrTkSC.js → InventoryBinding.vue_vue_type_script_setup_true_lang-DE1HkipX.js} +2 -2
  15. package/dist/LinkProductSideSheet-BdzBGYxG.js +361 -0
  16. package/dist/MenuSetting-zAAttaoA.js +618 -0
  17. package/dist/{PrintRoute-DfJ-vUAb.js → PrintRoute-T-vuO5N8.js} +4 -4
  18. package/dist/{Product-F4PoLm9v.js → Product-B5q291VF.js} +1 -1
  19. package/dist/{Product.vue_vue_type_script_setup_true_lang-DT5gffpA.js → Product.vue_vue_type_script_setup_true_lang-DLRlT10W.js} +468 -465
  20. package/dist/{ProductInternalTools-DSGU-OqU.js → ProductInternalTools-BOlc0VUR.js} +5 -5
  21. package/dist/{Products-COzW2Z4g.js → Products-Cd4Mqhm3.js} +88 -85
  22. package/dist/{Publish-CDXVWCk2.js → Publish-SuRzt-_D.js} +3 -3
  23. package/dist/{Recipe-BZx4wrcP.js → Recipe-BKrjNs5g.js} +4 -4
  24. package/dist/{Scheduler-wHCWSeU2.js → Scheduler-DnDgImLC.js} +3 -3
  25. package/dist/{ServingSequence-BbYEhDYh.js → ServingSequence-D602bVnm.js} +3 -3
  26. package/dist/{Setting-C9Tlw1Iy.js → Setting-FMT4oBYH.js} +44 -45
  27. package/dist/{Subcategory-C8AwfrKb.js → Subcategory-CpYmjAvA.js} +4 -4
  28. package/dist/{Takeaway-t1053wg2.js → Takeaway-BXh3iuME.js} +1 -1
  29. package/dist/{Takeaway-DaEUn-yM.js → Takeaway-D4hjN5z5.js} +4 -4
  30. package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-7XycP5fU.js → Takeaway.vue_vue_type_script_setup_true_lang-By1f-FCO.js} +5 -5
  31. package/dist/Thumbnail.vue_vue_type_script_setup_true_lang-CZUwa5C_.js +440 -0
  32. package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-Ci6iqOry.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-DfjtfcCh.js} +604 -600
  33. package/dist/{Unit-CnqptGCz.js → Unit-CsjHkV-h.js} +2 -2
  34. package/dist/{Variant-DiOYOwJs.js → Variant-Djra14ZX.js} +3 -3
  35. package/dist/{_id_-BSfU16VO.js → _id_-BXkqoCzB.js} +78 -75
  36. package/dist/{app-Ddb81PNo.js → app-CVqWWV4x.js} +278 -278
  37. package/dist/{LinkProductSideSheet.vue_vue_type_style_index_0_scoped_97fa9d58_lang-DvG3mOom.js → app-CiBqmBzO.js} +2120 -2084
  38. package/dist/{app-Cou6qPF2.js → app-PhBJNss_.js} +1 -1
  39. package/dist/app.js +1 -1
  40. package/dist/apps/mf-menu/src/api/menu.d.ts +2 -1
  41. package/dist/apps/mf-menu/src/app.d.ts +144 -0
  42. package/dist/apps/mf-menu/src/components/feature/PriceTier/PriceTierRuleEditor.vue.d.ts +36 -0
  43. package/dist/apps/mf-menu/src/components/feature/RestaurantAttributesSelector.vue.d.ts +9 -3
  44. package/dist/apps/mf-menu/src/components/feature/TreeEditor/store/menuV2.d.ts +294 -4
  45. package/dist/apps/mf-menu/src/composable/attributes.d.ts +26 -0
  46. package/dist/apps/mf-menu/src/composable/linkProducts.d.ts +40 -0
  47. package/dist/apps/mf-menu/src/helper/import-export.d.ts +285 -0
  48. package/dist/apps/mf-menu/src/helper/menu.d.ts +285 -0
  49. package/dist/apps/mf-menu/src/manager/menu/item.d.ts +285 -0
  50. package/dist/apps/mf-menu/src/stores/menu.d.ts +293 -3
  51. package/dist/apps/mf-menu/src/utils/array.d.ts +1 -0
  52. package/dist/apps/mf-menu/src/utils/customAttributes.d.ts +12 -0
  53. package/dist/apps/mf-menu/src/views/MenuSetting/LinkProductRuleGroups.vue.d.ts +2 -0
  54. package/dist/apps/mf-menu/src/views/MenuSetting/RuleGroupSideSheet.vue.d.ts +176 -0
  55. package/dist/apps/mf-menu/src/views/Publish/UpdateCatalogDialog.vue.d.ts +166 -0
  56. package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
  57. package/dist/assets/linked-status-WlVAcpRn.js +13 -0
  58. package/dist/assets/override-menu-__h4D7ac.js +13 -0
  59. package/dist/assets/validate-menu-DyPuzLRg.js +13 -0
  60. package/dist/{catalog-DSuJhsUb.js → catalog-C_TuQLxq.js} +1 -1
  61. package/dist/{catalogSetting-C3gEw9ov.js → catalogSetting-BUlJu6hG.js} +1 -1
  62. package/dist/{category-CwWq3KCE.js → category-CmVw1Kj-.js} +1 -1
  63. package/dist/{currency-g45Sh-t6.js → currency-OhOTnAqk.js} +1 -1
  64. package/dist/customAttributes-fpOfmGnw.js +180 -0
  65. package/dist/{dayjs.min-g3eN5z-V.js → dayjs.min-CDhP-7L5.js} +1 -1
  66. package/dist/{index-QsLFbxyG.js → index-BJZEWB5C.js} +4 -4
  67. package/dist/{index-BLQCYEc6.js → index-DHAYGEPp.js} +7 -8
  68. package/dist/{index-0yRUi7LL.js → index-DtwHmS38.js} +1 -1
  69. package/dist/index-N3cGc8ex.js +245 -0
  70. package/dist/{item-BvvQ9urP.js → item-BELLphR0.js} +16 -16
  71. package/dist/{jszip.min-DzdUiaR4.js → jszip.min-CZtcGb7A.js} +353 -353
  72. package/dist/{menu-QrVg2Ph7.js → menu-Csyr6W9A.js} +7 -7
  73. package/dist/{menu-DFNvhoNQ.js → menu-DS_ERmBf.js} +23355 -23206
  74. package/dist/{menuV2-Ezf_jW40.js → menuV2-DKzAZ4Ss.js} +151 -146
  75. package/dist/mf-menu.css +1 -1
  76. package/dist/{priceTier-zENsn3P_.js → priceTier-CYWS5lDS.js} +1 -1
  77. package/dist/{scheduler-BuwGSv6A.js → scheduler-DI5dXC7Y.js} +8 -8
  78. package/dist/{subcategory-O3L_zCJA.js → subcategory-D_ao-IV9.js} +2 -2
  79. package/dist/{toExcel-CpRy_4nG.js → toExcel-Cml-rkJQ.js} +2 -2
  80. package/dist/{unit-Ct_7Hfa2.js → unit-BWDp2LkV.js} +42 -41
  81. package/package.json +3 -3
  82. package/dist/FormSection.vue_vue_type_script_setup_true_lang-CO4YGYLB.js +0 -50
  83. package/dist/GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-D6qro5w_.js +0 -367
  84. package/dist/LinkProductSideSheet-LDZjKX95.js +0 -297
  85. package/dist/MenuSetting-AhutsCVy.js +0 -185
  86. package/dist/Thumbnail.vue_vue_type_script_setup_true_lang-B7oLH9cP.js +0 -431
  87. package/dist/assets/linked-status-B_crHhZH.js +0 -24
  88. package/dist/assets/override-menu-BmlCEpHH.js +0 -24
  89. package/dist/assets/validate-menu-CF-psoB-.js +0 -24
  90. package/dist/index-0Q5T9VZV.js +0 -214
@@ -1,5 +1,5 @@
1
1
  import { defineStore as r } from "pinia";
2
- import { ak as a, al as s, am as l } from "./menu-DFNvhoNQ.js";
2
+ import { ak as a, al as s, am as l } from "./menu-DS_ERmBf.js";
3
3
  const u = {
4
4
  async read() {
5
5
  return a(await s().get("/public-setting"));
package/dist/app.js CHANGED
@@ -1,4 +1,4 @@
1
- import { F as e, i as r, b as o, o as t, r as i, u as p } from "./app-Ddb81PNo.js";
1
+ import { F as e, i as r, b as o, o as t, r as i, u as p } from "./app-CVqWWV4x.js";
2
2
  export {
3
3
  e as FmApp,
4
4
  r as i18nMessages,
@@ -1,4 +1,4 @@
1
- import type { FdoMasterCatalogSetting, FdoMenuV4, FdtoRestaurantWithMenuV4, FdtoPublishMenuRestaurant, FdoMenuV4PriceTierSetting } from "@feedmepos/menu/entity";
1
+ import type { FdoMasterCatalogSetting, FdoMenuV4, FdtoRestaurantWithMenuV4, FdtoPublishMenuRestaurant, FdoMenuV4PriceTierSetting, FdoRuleGroupSettings } from "@feedmepos/menu/entity";
2
2
  import { type UpdateMenuRequest } from "@feedmepos/menu/manager";
3
3
  import { useCoreStore } from "@feedmepos/mf-common";
4
4
  export type MenuV4Doc = FdoMenuV4 & {
@@ -8,6 +8,7 @@ export interface UpdateMenuSettingReq {
8
8
  masterCatalogSetting?: FdoMasterCatalogSetting | null;
9
9
  lowStockThreshold?: number | null;
10
10
  priceTierSettings?: FdoMenuV4PriceTierSetting[] | null;
11
+ ruleGroupSettings?: FdoRuleGroupSettings | null;
11
12
  }
12
13
  export interface FdtoUpdateMenuRes {
13
14
  menu: MenuV4Doc;
@@ -804,7 +804,9 @@ export declare const i18nMessages: {
804
804
  section_title: string;
805
805
  order_from: string;
806
806
  restaurant_filter: string;
807
+ restaurant_custom_attributes_filter: string;
807
808
  item_filter: string;
809
+ item_custom_attributes_filter: string;
808
810
  add_rule: string;
809
811
  hint: string;
810
812
  };
@@ -1531,6 +1533,40 @@ export declare const i18nMessages: {
1531
1533
  tabs: {
1532
1534
  menu_configuration: string;
1533
1535
  price_group: string;
1536
+ link_product_rule_groups: string;
1537
+ };
1538
+ };
1539
+ rule_groups: {
1540
+ title: string;
1541
+ description: string;
1542
+ create_group: string;
1543
+ edit_group: string;
1544
+ saved_successfully: string;
1545
+ search_placeholder: string;
1546
+ table: {
1547
+ columns: {
1548
+ name: string;
1549
+ description: string;
1550
+ rules_count: string;
1551
+ };
1552
+ };
1553
+ form: {
1554
+ basic_info: string;
1555
+ name: string;
1556
+ name_placeholder: string;
1557
+ description: string;
1558
+ description_placeholder: string;
1559
+ rules: string;
1560
+ rules_description: string;
1561
+ };
1562
+ validation: {
1563
+ name_required: string;
1564
+ at_least_one_rule_required: string;
1565
+ };
1566
+ delete_dialog: {
1567
+ title: string;
1568
+ message: string;
1569
+ success: string;
1534
1570
  };
1535
1571
  };
1536
1572
  price_tier: {
@@ -2392,7 +2428,9 @@ export declare const i18nMessages: {
2392
2428
  section_title: string;
2393
2429
  order_from: string;
2394
2430
  restaurant_filter: string;
2431
+ restaurant_custom_attributes_filter: string;
2395
2432
  item_filter: string;
2433
+ item_custom_attributes_filter: string;
2396
2434
  add_rule: string;
2397
2435
  hint: string;
2398
2436
  };
@@ -3119,6 +3157,40 @@ export declare const i18nMessages: {
3119
3157
  tabs: {
3120
3158
  menu_configuration: string;
3121
3159
  price_group: string;
3160
+ link_product_rule_groups: string;
3161
+ };
3162
+ };
3163
+ rule_groups: {
3164
+ title: string;
3165
+ description: string;
3166
+ create_group: string;
3167
+ edit_group: string;
3168
+ saved_successfully: string;
3169
+ search_placeholder: string;
3170
+ table: {
3171
+ columns: {
3172
+ name: string;
3173
+ description: string;
3174
+ rules_count: string;
3175
+ };
3176
+ };
3177
+ form: {
3178
+ basic_info: string;
3179
+ name: string;
3180
+ name_placeholder: string;
3181
+ description: string;
3182
+ description_placeholder: string;
3183
+ rules: string;
3184
+ rules_description: string;
3185
+ };
3186
+ validation: {
3187
+ name_required: string;
3188
+ at_least_one_rule_required: string;
3189
+ };
3190
+ delete_dialog: {
3191
+ title: string;
3192
+ message: string;
3193
+ success: string;
3122
3194
  };
3123
3195
  };
3124
3196
  price_tier: {
@@ -3979,7 +4051,9 @@ export declare const i18nMessages: {
3979
4051
  section_title: string;
3980
4052
  order_from: string;
3981
4053
  restaurant_filter: string;
4054
+ restaurant_custom_attributes_filter: string;
3982
4055
  item_filter: string;
4056
+ item_custom_attributes_filter: string;
3983
4057
  add_rule: string;
3984
4058
  hint: string;
3985
4059
  };
@@ -4706,6 +4780,40 @@ export declare const i18nMessages: {
4706
4780
  tabs: {
4707
4781
  menu_configuration: string;
4708
4782
  price_group: string;
4783
+ link_product_rule_groups: string;
4784
+ };
4785
+ };
4786
+ rule_groups: {
4787
+ title: string;
4788
+ description: string;
4789
+ create_group: string;
4790
+ edit_group: string;
4791
+ saved_successfully: string;
4792
+ search_placeholder: string;
4793
+ table: {
4794
+ columns: {
4795
+ name: string;
4796
+ description: string;
4797
+ rules_count: string;
4798
+ };
4799
+ };
4800
+ form: {
4801
+ basic_info: string;
4802
+ name: string;
4803
+ name_placeholder: string;
4804
+ description: string;
4805
+ description_placeholder: string;
4806
+ rules: string;
4807
+ rules_description: string;
4808
+ };
4809
+ validation: {
4810
+ name_required: string;
4811
+ at_least_one_rule_required: string;
4812
+ };
4813
+ delete_dialog: {
4814
+ title: string;
4815
+ message: string;
4816
+ success: string;
4709
4817
  };
4710
4818
  };
4711
4819
  price_tier: {
@@ -5567,7 +5675,9 @@ export declare const i18nMessages: {
5567
5675
  section_title: string;
5568
5676
  order_from: string;
5569
5677
  restaurant_filter: string;
5678
+ restaurant_custom_attributes_filter: string;
5570
5679
  item_filter: string;
5680
+ item_custom_attributes_filter: string;
5571
5681
  add_rule: string;
5572
5682
  hint: string;
5573
5683
  };
@@ -6294,6 +6404,40 @@ export declare const i18nMessages: {
6294
6404
  tabs: {
6295
6405
  menu_configuration: string;
6296
6406
  price_group: string;
6407
+ link_product_rule_groups: string;
6408
+ };
6409
+ };
6410
+ rule_groups: {
6411
+ title: string;
6412
+ description: string;
6413
+ create_group: string;
6414
+ edit_group: string;
6415
+ saved_successfully: string;
6416
+ search_placeholder: string;
6417
+ table: {
6418
+ columns: {
6419
+ name: string;
6420
+ description: string;
6421
+ rules_count: string;
6422
+ };
6423
+ };
6424
+ form: {
6425
+ basic_info: string;
6426
+ name: string;
6427
+ name_placeholder: string;
6428
+ description: string;
6429
+ description_placeholder: string;
6430
+ rules: string;
6431
+ rules_description: string;
6432
+ };
6433
+ validation: {
6434
+ name_required: string;
6435
+ at_least_one_rule_required: string;
6436
+ };
6437
+ delete_dialog: {
6438
+ title: string;
6439
+ message: string;
6440
+ success: string;
6297
6441
  };
6298
6442
  };
6299
6443
  price_tier: {
@@ -3,12 +3,30 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
3
3
  required: true;
4
4
  type: import("vue").PropType<z.infer<z.ZodObject<{
5
5
  priceTier: z.ZodString;
6
+ restaurantRule: z.ZodNullable<z.ZodOptional<z.ZodObject<{
7
+ restaurantAttributes: z.ZodNullable<z.ZodOptional<z.ZodAny>>;
8
+ restaurantCustomAttributes: z.ZodNullable<z.ZodOptional<z.ZodAny>>;
9
+ }, "strip", z.ZodTypeAny, {
10
+ restaurantAttributes?: any;
11
+ restaurantCustomAttributes?: any;
12
+ }, {
13
+ restaurantAttributes?: any;
14
+ restaurantCustomAttributes?: any;
15
+ }>>>;
6
16
  restaurantAttributes: z.ZodNullable<z.ZodOptional<z.ZodAny>>;
7
17
  }, "strip", z.ZodTypeAny, {
8
18
  restaurantAttributes?: any;
19
+ restaurantRule?: {
20
+ restaurantAttributes?: any;
21
+ restaurantCustomAttributes?: any;
22
+ } | null | undefined;
9
23
  priceTier: string;
10
24
  }, {
11
25
  restaurantAttributes?: any;
26
+ restaurantRule?: {
27
+ restaurantAttributes?: any;
28
+ restaurantCustomAttributes?: any;
29
+ } | null | undefined;
12
30
  priceTier: string;
13
31
  }>>[] | null | undefined>;
14
32
  };
@@ -17,12 +35,30 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
17
35
  required: true;
18
36
  type: import("vue").PropType<z.infer<z.ZodObject<{
19
37
  priceTier: z.ZodString;
38
+ restaurantRule: z.ZodNullable<z.ZodOptional<z.ZodObject<{
39
+ restaurantAttributes: z.ZodNullable<z.ZodOptional<z.ZodAny>>;
40
+ restaurantCustomAttributes: z.ZodNullable<z.ZodOptional<z.ZodAny>>;
41
+ }, "strip", z.ZodTypeAny, {
42
+ restaurantAttributes?: any;
43
+ restaurantCustomAttributes?: any;
44
+ }, {
45
+ restaurantAttributes?: any;
46
+ restaurantCustomAttributes?: any;
47
+ }>>>;
20
48
  restaurantAttributes: z.ZodNullable<z.ZodOptional<z.ZodAny>>;
21
49
  }, "strip", z.ZodTypeAny, {
22
50
  restaurantAttributes?: any;
51
+ restaurantRule?: {
52
+ restaurantAttributes?: any;
53
+ restaurantCustomAttributes?: any;
54
+ } | null | undefined;
23
55
  priceTier: string;
24
56
  }, {
25
57
  restaurantAttributes?: any;
58
+ restaurantRule?: {
59
+ restaurantAttributes?: any;
60
+ restaurantCustomAttributes?: any;
61
+ } | null | undefined;
26
62
  priceTier: string;
27
63
  }>>[] | null | undefined>;
28
64
  };
@@ -1,15 +1,21 @@
1
+ import type { FdtoRestaurantInfo } from "@feedmepos/menu/entity";
1
2
  interface Props {
2
3
  fullWidth?: boolean;
3
- currentRestaurantCustomAttributes: Record<string, any>;
4
+ currentRestaurantAttrParams: {
5
+ restaurantCustomAttributes?: {
6
+ [key: string]: any;
7
+ } | null;
8
+ restaurantAttributes?: FdtoRestaurantInfo | null;
9
+ };
4
10
  }
5
11
  declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
6
12
  fullWidth: boolean;
7
13
  }>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
8
- confirm: (payload: Record<string, string>) => void;
14
+ confirm: (payload: Record<string, Record<string, string>>) => void;
9
15
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
10
16
  fullWidth: boolean;
11
17
  }>>> & Readonly<{
12
- onConfirm?: ((payload: Record<string, string>) => any) | undefined;
18
+ onConfirm?: ((payload: Record<string, Record<string, string>>) => any) | undefined;
13
19
  }>, {
14
20
  fullWidth: boolean;
15
21
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;