@feedmepos/mf-inventory-portal 1.8.0-dev.3 → 1.8.0-dev.5

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 (133) hide show
  1. package/dist/App-DEbWEOwe.js +1537 -0
  2. package/dist/{ApprovalView-hV1msz5Y.js → ApprovalView-BEnYHIlU.js} +9 -9
  3. package/dist/{BindingsDialog-BX1Lopf0.js → BindingsDialog-CJVkMoBS.js} +2 -2
  4. package/dist/{BindingsPicker-BNKW8-XY.js → BindingsPicker-CX9o-xdQ.js} +2 -2
  5. package/dist/{BindingsTable-DiLDsL83.js → BindingsTable-Cil4LJ7l.js} +4 -4
  6. package/dist/{BulkReceiveRequestView-oQh6kFLc.js → BulkReceiveRequestView-DYEc2jPw.js} +21 -22
  7. package/dist/{ChangeLocationComponent.vue_vue_type_script_setup_true_lang-BaMcGU-x.js → ChangeLocationComponent.vue_vue_type_script_setup_true_lang-DoAv2mHA.js} +1 -1
  8. package/dist/{ClosingDraftView-sgLoaSf4.js → ClosingDraftView-Bz94Iejf.js} +20 -20
  9. package/dist/{ClosingHistoryView-BnE9HrzA.js → ClosingHistoryView-B479Y-mH.js} +5 -5
  10. package/dist/{ClosingTemplateView-BD3Pa11r.js → ClosingTemplateView-F_nx43n6.js} +18 -18
  11. package/dist/{CustomPrintTemplatePreview.vue_vue_type_script_setup_true_lang-DlbyxkMQ.js → CustomPrintTemplatePreview.vue_vue_type_script_setup_true_lang-DddYGHxQ.js} +1 -1
  12. package/dist/{DefaultView-CuzvVkfE.js → DefaultView-CkZOl0ov.js} +5 -5
  13. package/dist/{DeliveryOrderPrintPreview-w-1aAOY1.js → DeliveryOrderPrintPreview-BJEpwAX6.js} +2 -2
  14. package/dist/{EmailDialog.vue_vue_type_script_setup_true_lang-CxD12Qct.js → EmailDialog.vue_vue_type_script_setup_true_lang-BW988AoC.js} +29 -30
  15. package/dist/{FeatureCapabilityBadge.vue_vue_type_script_setup_true_lang-CMoQKl_a.js → FeatureCapabilityBadge.vue_vue_type_script_setup_true_lang-Izn-hTjK.js} +107 -118
  16. package/dist/{FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-BqCh_vTP.js → FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-CoUWxHlj.js} +1 -1
  17. package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CAXnmdUy.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-Ci81xTbl.js} +2 -2
  18. package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-NhOdW33O.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CnaHTAUZ.js} +2 -2
  19. package/dist/{FmMultiselectDialog-CULwA_hi.js → FmMultiselectDialog-BE8BlO6_.js} +2 -2
  20. package/dist/FmMultiselectDialog-COKgBmPZ.js +123 -0
  21. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-CI3Y9kDl.js → FmUnitInput.vue_vue_type_script_setup_true_lang-BQHd3NjM.js} +6 -6
  22. package/dist/ImportView-Crb_yrNb.js +1291 -0
  23. package/dist/{IngredientsView-pzpP6oXT.js → IngredientsView-lDypeR4c.js} +34 -35
  24. package/dist/{IntegrationExplorerView-C5aAhB6e.js → IntegrationExplorerView-DgOFGj7H.js} +4 -4
  25. package/dist/{IntegrationView-Bqun7nX0.js → IntegrationView-0sbjINo5.js} +973 -974
  26. package/dist/{InventoryBindingForm-r_Ua1C4a.js → InventoryBindingForm-BhyrjIXJ.js} +1 -1
  27. package/dist/InventoryBindingForm.vue_vue_type_script_setup_true_lang-KCz_BQ6T.js +472 -0
  28. package/dist/{InventoryBindingSummary-BQuZLohR.js → InventoryBindingSummary-CsfNKd1r.js} +1 -1
  29. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-7r-QcJdU.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-C32OoIBz.js} +1 -1
  30. package/dist/{ProductionRunDetailView-95fu_CfH.js → ProductionRunDetailView-BxbDtGMo.js} +4 -4
  31. package/dist/{ProductionRunLifecycleDialogs.vue_vue_type_script_setup_true_lang-CdOca1tV.js → ProductionRunLifecycleDialogs.vue_vue_type_script_setup_true_lang-BdJVvwSP.js} +9 -9
  32. package/dist/{ProductionRunView-DIjor_Ix.js → ProductionRunView-CJhNEIzT.js} +3 -3
  33. package/dist/{PublishView-DYObyHQq.js → PublishView-vkt6-D6P.js} +3 -3
  34. package/dist/{PurchaseOrderPrintPreview-C0jCmI9L.js → PurchaseOrderPrintPreview-25dHfVKp.js} +2 -2
  35. package/dist/{ReceiveRequestView-i7ibPfIE.js → ReceiveRequestView-BO4Z2dZu.js} +15 -16
  36. package/dist/RecipeView-B_AE7QQv.js +3428 -0
  37. package/dist/{SettingsView-CdBloj9k.js → SettingsView-qTUvQCuu.js} +163 -168
  38. package/dist/{StockView-g_6eJ62R.js → StockView-yh6qkYUS.js} +269 -270
  39. package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-C1rKc7MA.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-Cn_fx9qG.js} +1 -1
  40. package/dist/{SupplierView-DkYp_Frj.js → SupplierView-Dqzu1Bvh.js} +14 -14
  41. package/dist/{SurchargeView-CfkV4Y3y.js → SurchargeView-CDosn36c.js} +7 -7
  42. package/dist/{SystemTrailDialog.vue_vue_type_script_setup_true_lang-2MtN1p5t.js → SystemTrailDialog.vue_vue_type_script_setup_true_lang-DZ3Gdlp9.js} +2 -2
  43. package/dist/{TemplatePublishDialog.vue_vue_type_script_setup_true_lang-CYMjKXq4.js → TemplatePublishDialog.vue_vue_type_script_setup_true_lang-CWoh2FqQ.js} +1 -1
  44. package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-D0zNr_vQ.js → TransferDetails.vue_vue_type_script_setup_true_lang-BtjKnIwf.js} +867 -844
  45. package/dist/{TransferTemplateView-Ne2gYUSn.js → TransferTemplateView-fDZcC9i4.js} +22 -23
  46. package/dist/{UnitCostHistoryView-Db0_otOb.js → UnitCostHistoryView-CmTTIXAp.js} +4 -4
  47. package/dist/{UnitDisplayControl.vue_vue_type_script_setup_true_lang-BzO1lq7j.js → UnitDisplayControl.vue_vue_type_script_setup_true_lang-DZihCM0T.js} +4 -4
  48. package/dist/{UnitView-CiCeQ63i.js → UnitView-BTx59sFK.js} +8 -8
  49. package/dist/{WarehouseView-BcuJSOMF.js → WarehouseView-BIFe08FJ.js} +8 -8
  50. package/dist/{WastageTemplateView-CPQmtOKQ.js → WastageTemplateView-B_oJqm0_.js} +15 -15
  51. package/dist/api/feature-flags.d.ts +2 -0
  52. package/dist/api/license.d.ts +0 -2
  53. package/dist/{app-DqJp3dcI.js → app-DyEvx3Em.js} +1628 -1817
  54. package/dist/app.d.ts +0 -150
  55. package/dist/app.js +1 -1
  56. package/dist/{closing-template-BNlgZviN.js → closing-template-FgcLy4RT.js} +1 -1
  57. package/dist/components/FeatureCapabilityBadge.vue.d.ts +1 -1
  58. package/dist/{date2-Ci7521dn.js → date2-Rv4IwT9a.js} +1 -1
  59. package/dist/{dayjs.min-Cyp32v4J.js → dayjs.min-DOq1QM_M.js} +1 -1
  60. package/dist/{decimal-BGdm5R3A.js → decimal-7vA05AaD.js} +2 -2
  61. package/dist/{defineDeepModel-B2cJ-rtd.js → defineDeepModel-22Md2SKY.js} +1 -1
  62. package/dist/{duplicate-template-By5WeKZ0.js → duplicate-template-D2tjCY7C.js} +1 -1
  63. package/dist/{core-Js7d-3Pv.js → feature-BMTKl6PK.js} +732 -389
  64. package/dist/feature-flags/core.d.ts +3 -2
  65. package/dist/feature-flags/portal-feature-catalog.d.ts +0 -5
  66. package/dist/feature-flags/vue.d.ts +2 -0
  67. package/dist/{format-time-from-id-Q8C2P96H.js → format-time-from-id-DXhm_Ji1.js} +1 -1
  68. package/dist/{format-unit-display-CICrmm8r.js → format-unit-display-DxWLjFPz.js} +13 -13
  69. package/dist/helper/menu-usage-module.d.ts +1 -1
  70. package/dist/{id-to-date-DeN5x0LR.js → id-to-date-VKlOL3mN.js} +1 -1
  71. package/dist/{import-export.helper-BOTQWxr6.js → import-export.helper-BiF5aKUp.js} +28 -28
  72. package/dist/{index-BbbqCCfp.js → index-DEl_gZn0.js} +3 -3
  73. package/dist/{index-tCYhLCKP.js → index-DdtsVAcv.js} +1 -1
  74. package/dist/{index-Cxm3Sgfv.js → index-DoBWE4Ci.js} +1 -1
  75. package/dist/{lz-string-Dy4Pg8mh.js → lz-string-BwQj8QRN.js} +1 -1
  76. package/dist/{netsuite-BaJjkDM8.js → netsuite-s1S33-lP.js} +2 -2
  77. package/dist/{number-CB36d2PQ.js → number-BmKjsNrc.js} +3 -3
  78. package/dist/{predefined-templates-DLm93Bpx.js → predefined-templates-BZ2KqNix.js} +1 -1
  79. package/dist/{purchase-order-template-CDhn9ZIF.js → purchase-order-template-CINU4my1.js} +1 -1
  80. package/dist/{recalculationUtils-Cqvefakh.js → recalculationUtils-R5tFu_ts.js} +1 -1
  81. package/dist/router/name.d.ts +0 -1
  82. package/dist/{row-action.enum-NTfVmGY8.js → row-action.enum-ePO-Py0V.js} +1 -1
  83. package/dist/{rules-C8dfM84-.js → rules-BZrZVzw7.js} +2 -2
  84. package/dist/{stock-BGB0Siue.js → stock-C2HOKq0k.js} +8 -8
  85. package/dist/{stock-Qu5IiN2_.js → stock-Ce1UvAZ3.js} +1 -1
  86. package/dist/stores/feature.d.ts +10 -9
  87. package/dist/stores/inventory.d.ts +0 -47
  88. package/dist/stores/supplier.d.ts +1 -1
  89. package/dist/style.css +1 -1
  90. package/dist/{supplier-CZdNOSMN.js → supplier-DgT66emI.js} +17 -17
  91. package/dist/{surcharge-Cm40oJvU.js → surcharge-CsVMuzPM.js} +1 -1
  92. package/dist/tsconfig.app.tsbuildinfo +1 -1
  93. package/dist/{uom-rules-L-IW4Nwk.js → uom-rules-CR1XukyM.js} +1 -1
  94. package/dist/{use-ingredient-select-dialog-B2TDVJM6.js → use-ingredient-select-dialog-CJkG4hEX.js} +2 -2
  95. package/dist/use-inventory-binding-dialog-B36kPj4V.js +113 -0
  96. package/dist/{use-template-enabled-locations-DYAPMvo9.js → use-template-enabled-locations-Boa9QLPV.js} +2 -2
  97. package/dist/{use-transfer-locations-w-9tymYS.js → use-transfer-locations-BxOygSUg.js} +2 -2
  98. package/dist/{useHrmPermission-BFCIo5sA.js → useHrmPermission-DLHAqbLV.js} +1 -1
  99. package/dist/{useNavigationMenu-BPHAH5sJ.js → useNavigationMenu-D6abZMGz.js} +102 -109
  100. package/dist/{useSseClient-CWjRacRs.js → useSseClient-C7pff-EW.js} +1 -1
  101. package/dist/views/ingredients/components/inventory-binding/InventoryBindingForm.vue.d.ts +0 -1
  102. package/dist/views/ingredients/components/inventory-binding/composables/use-inventory-binding-dialog.d.ts +0 -1
  103. package/dist/views/ingredients/components/inventory-binding/v2/InventoryBindingFormV2.vue.d.ts +0 -1
  104. package/dist/views/ingredients/components/inventory-binding/v2/composables/use-inventory-binding-dialog.d.ts +0 -1
  105. package/dist/views/ingredients/helper/is-linked-ingredient-error.d.ts +1 -1
  106. package/dist/views/integration/components/IntegrationCard.vue.d.ts +3 -3
  107. package/dist/views/recipe/helper/bulk-edit-simulation.helper.d.ts +0 -1
  108. package/dist/views/recipe/helper/import-recipe.d.ts +2 -2
  109. package/dist/{vue-i18n-S4YQ9w6a.js → vue-i18n-CpOOFhVU.js} +219 -219
  110. package/dist/{xlsx.util-CP8_VajN.js → xlsx.util-xwI5tVz6.js} +2 -2
  111. package/package.json +5 -5
  112. package/dist/App-DRXADP0k.js +0 -1498
  113. package/dist/DeprecateSoonWarningDialog.vue_vue_type_script_setup_true_lang-Bp8bjDU1.js +0 -58
  114. package/dist/FmMultiselectDialog-BqZgHP8s.js +0 -77
  115. package/dist/ImportView-DqQG673_.js +0 -1302
  116. package/dist/IngredientBindedItem.vue_vue_type_script_setup_true_lang-DfvNUu80.js +0 -51
  117. package/dist/IngredientGroupView-CyngKxPo.js +0 -1000
  118. package/dist/InventoryBindingForm.vue_vue_type_script_setup_true_lang-CYDuu4kU.js +0 -563
  119. package/dist/RecipeView-C5VO7yr3.js +0 -3625
  120. package/dist/feature-fG7d73oi.js +0 -371
  121. package/dist/index-Dqf27vLH.js +0 -841
  122. package/dist/random-CSbEbElR.js +0 -10
  123. package/dist/use-inventory-binding-dialog-BJ00hl5f.js +0 -152
  124. package/dist/usePromise-CbVUCxhj.js +0 -29
  125. package/dist/views/ingredient-group/IngredientGroupView.vue.d.ts +0 -3
  126. package/dist/views/ingredient-group/components/ingredient-group-dialog/IngredientGroupDialog.vue.d.ts +0 -31
  127. package/dist/views/ingredient-group/components/ingredient-group-dialog/IngredientGroupDialogProps.d.ts +0 -10
  128. package/dist/views/ingredient-group/components/ingredient-group-form/IngredientGroupForm.vue.d.ts +0 -21
  129. package/dist/views/ingredient-group/components/ingredient-group-form/IngredientGroupFormProps.d.ts +0 -12
  130. package/dist/views/ingredient-group/components/ingredient-group-rule-field/IngredientGroupRuleField.vue.d.ts +0 -37
  131. package/dist/views/ingredient-group/composables/use-ingredient-group-actions.d.ts +0 -24
  132. package/dist/views/ingredient-group/composables/use-ingredient-group-rule-item.d.ts +0 -31
  133. package/dist/views/ingredient-group/composables/use-ingredient-group-table.d.ts +0 -77
@@ -1,271 +1,262 @@
1
- import { defineComponent as g, resolveComponent as m, createBlock as c, createCommentVNode as u, openBlock as i, createElementBlock as y, createVNode as _, createTextVNode as k, computed as d } from "vue";
2
- import { h as v, u as h } from "./index-Dqf27vLH.js";
3
- import { _ as P } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
- function R(r) {
5
- return r;
1
+ import { computed as u, defineComponent as g, resolveComponent as m, createBlock as i, createCommentVNode as l, openBlock as n, createElementBlock as d, createVNode as b, createTextVNode as _ } from "vue";
2
+ import { u as y } from "./feature-BMTKl6PK.js";
3
+ import { useCoreStore as k } from "@feedmepos/mf-common";
4
+ import { u as v } from "./app-DyEvx3Em.js";
5
+ import { _ as h } from "./_plugin-vue_export-helper-CHgC5LLL.js";
6
+ function E(e) {
7
+ return e;
6
8
  }
7
- function D(r, t) {
8
- const a = r.release ?? { stage: "ga" }, n = v(t.planTier, r.minimumTier), l = a.stage === "ga" || a.stage === "beta", o = n && l, s = n ? a.stage === "off" ? "This feature is not currently available." : void 0 : `Requires the ${r.minimumTier} plan.`;
9
+ function j(e, t) {
10
+ var p;
11
+ const r = e.release ?? { stage: "ga" }, a = !((p = e.flagKeys) != null && p.length) || e.flagKeys.some(t.isFlagOn), o = r.stage === "ga" || r.stage === "beta", s = a && o, c = a ? r.stage === "off" ? "This feature is not currently available." : void 0 : `Requires the ${e.minimumTier} plan.`;
9
12
  return {
10
- enabled: o,
11
- disabled: !o,
12
- stage: a.stage,
13
- eligible: l,
14
- reason: s
13
+ enabled: s,
14
+ disabled: !s,
15
+ stage: r.stage,
16
+ eligible: o,
17
+ reason: c
15
18
  };
16
19
  }
17
- function e(r, t) {
20
+ function P({
21
+ key: e,
22
+ category: t,
23
+ flagKeys: r
24
+ }) {
18
25
  return {
19
- key: r,
26
+ key: e,
20
27
  minimumTier: t === "premium" ? "premium" : "standard",
21
- release: { stage: t === "beta" ? "beta" : "ga" }
28
+ release: { stage: t === "beta" ? "beta" : "ga" },
29
+ flagKeys: r
22
30
  };
23
31
  }
24
- const f = [
32
+ const F = [
25
33
  {
26
34
  key: "total-cost",
27
35
  label: "Total Cost",
28
36
  category: "premium",
29
37
  flagKeys: ["inventory_pos_costing"],
30
- controls: "Cost history, stock, ingredient, supplier, purchase-order, and template cost UI.",
31
- definition: e("total-cost", "premium")
38
+ controls: "Cost history, stock, ingredient, supplier, purchase-order, and template cost UI."
32
39
  },
33
40
  {
34
41
  key: "wastage-template",
35
42
  label: "Wastage Template",
36
43
  category: "premium",
37
44
  flagKeys: ["inventory_pos_adjust_v2_wastage"],
38
- controls: "Wastage navigation, templates, and ingredient template links.",
39
- definition: e("wastage-template", "premium")
45
+ controls: "Wastage navigation, templates, and ingredient template links."
40
46
  },
41
47
  {
42
48
  key: "purchase-order-template",
43
49
  label: "Purchase-Order Template",
44
50
  category: "premium",
45
51
  flagKeys: ["inventory_portal_must_use_transfer_template", "inventory_pos_allow_receive_order"],
46
- controls: "Template navigation, forms, and ingredient template links.",
47
- definition: e("purchase-order-template", "premium")
52
+ controls: "Template navigation, forms, and ingredient template links."
48
53
  },
49
54
  {
50
55
  key: "closing-template",
51
56
  label: "Closing Template",
52
57
  category: "premium",
53
58
  flagKeys: ["inventory_pos_closing_v2"],
54
- controls: "Closing Template, Closing Draft, and ingredient template links.",
55
- definition: e("closing-template", "premium")
56
- },
57
- {
58
- key: "ingredient-group",
59
- label: "Ingredient Group",
60
- category: "standard",
61
- deprecateSoon: !0,
62
- controls: "Ingredient Group navigation and recipe group selection.",
63
- definition: e("ingredient-group", "standard")
59
+ controls: "Closing Template, Closing Draft, and ingredient template links."
64
60
  },
65
61
  {
66
62
  key: "production-runs",
67
63
  label: "Production Runs",
68
64
  category: "beta",
69
- controls: "Production navigation, routes, and detail view.",
70
- definition: e("production-runs", "beta")
65
+ controls: "Production navigation, routes, and detail view."
71
66
  },
72
67
  {
73
68
  key: "bulk-receive-transfer",
74
69
  label: "Bulk Receive / Transfer",
75
70
  category: "beta",
76
- controls: "Purchase / Transfer in (New) navigation and bulk receive page.",
77
- definition: e("bulk-receive-transfer", "beta")
71
+ controls: "Purchase / Transfer in (New) navigation and bulk receive page."
78
72
  },
79
73
  {
80
74
  key: "surcharge",
81
75
  label: "Surcharge",
82
76
  category: "beta",
83
- controls: "Surcharge navigation and management page.",
84
- definition: e("surcharge", "beta")
77
+ controls: "Surcharge navigation and management page."
85
78
  },
86
79
  {
87
80
  key: "bulk-import",
88
81
  label: "Bulk Import",
89
- category: "standard",
90
- controls: "Import navigation and import page.",
91
- definition: e("bulk-import", "standard")
82
+ category: "beta",
83
+ controls: "Import navigation and import page."
92
84
  },
93
85
  {
94
86
  key: "custom-po-cost",
95
87
  label: "Custom PO Cost",
96
88
  category: "premium",
97
89
  flagKeys: ["inventory_purchase_order_custom_cost"],
98
- controls: "Delivery-order create/edit cost override controls.",
99
- definition: e("custom-po-cost", "premium")
90
+ controls: "Delivery-order create/edit cost override controls."
100
91
  },
101
92
  {
102
93
  key: "po-cost-edit",
103
94
  label: "PO Cost Edit",
104
95
  category: "premium",
105
96
  flagKeys: ["inventory_purchase_order_cost_edit"],
106
- controls: "Purchase/transfer item cost editing.",
107
- definition: e("po-cost-edit", "premium")
97
+ controls: "Purchase/transfer item cost editing."
108
98
  },
109
99
  {
110
100
  key: "po-price-adjustment",
111
101
  label: "PO Price Adjustment",
112
102
  category: "premium",
113
103
  flagKeys: ["inventory_purchase_order_price_adjustment"],
114
- controls: "Purchase-order price-adjustment editor and list.",
115
- definition: e("po-price-adjustment", "premium")
104
+ controls: "Purchase-order price-adjustment editor and list."
116
105
  },
117
106
  {
118
107
  key: "unit-cost-recalculation",
119
108
  label: "Unit Cost / Recalculation",
120
109
  category: "premium",
121
110
  flagKeys: ["inventory_pos_closing_recalculation"],
122
- controls: "Unit Cost History and recalculation dialog.",
123
- definition: e("unit-cost-recalculation", "premium")
111
+ controls: "Unit Cost History and recalculation dialog."
124
112
  },
125
113
  {
126
114
  key: "backdated-po",
127
115
  label: "Backdated PO",
128
116
  category: "premium",
129
117
  flagKeys: ["inventory_purchase_order_backdate", "inventory_backdate_receive"],
130
- controls: "Purchase/transfer date controls and list columns.",
131
- definition: e("backdated-po", "premium")
118
+ controls: "Purchase/transfer date controls and list columns."
132
119
  },
133
120
  {
134
121
  key: "po-email",
135
122
  label: "PO Email",
136
123
  category: "beta",
137
- controls: "Purchase-order email actions.",
138
- definition: e("po-email", "beta")
124
+ controls: "Purchase-order email actions."
139
125
  },
140
126
  {
141
127
  key: "print-templates",
142
128
  label: "Print Templates",
143
129
  category: "beta",
144
- controls: "Custom purchase-order print actions.",
145
- definition: e("print-templates", "beta")
130
+ controls: "Custom purchase-order print actions."
146
131
  },
147
132
  {
148
133
  key: "recipe-v2",
149
134
  label: "Recipe V2",
150
135
  category: "beta",
151
- controls: "Recipe V2 fields and alternatives controls.",
152
- definition: e("recipe-v2", "beta")
136
+ controls: "Recipe V2 fields and alternatives controls."
153
137
  },
154
138
  {
155
139
  key: "recipe-bulk-edit",
156
140
  label: "Recipe Bulk Edit",
157
141
  category: "beta",
158
- controls: "Recipe bulk-editor action and dialog.",
159
- definition: e("recipe-bulk-edit", "beta")
142
+ controls: "Recipe bulk-editor action and dialog."
160
143
  },
161
144
  {
162
145
  key: "supplier-preparation-time",
163
146
  label: "Supplier Preparation Time",
164
147
  category: "beta",
165
- controls: "Supplier and warehouse preparation-time fields.",
166
- definition: e("supplier-preparation-time", "beta")
148
+ controls: "Supplier and warehouse preparation-time fields."
167
149
  },
168
150
  {
169
151
  key: "xilnex-transfer-note",
170
152
  label: "Xilnex Transfer Note",
171
153
  category: "beta",
172
- controls: "Purchase/transfer columns and Xilnex upload actions.",
173
- definition: e("xilnex-transfer-note", "beta")
154
+ controls: "Purchase/transfer columns and Xilnex upload actions."
174
155
  },
175
156
  {
176
157
  key: "purchase-order-v2",
177
158
  label: "Purchase-Order V2 / Operate V2",
178
159
  category: "premium",
179
160
  flagKeys: ["inventory_portal_purchase_order_v2"],
180
- controls: "All Premium plans use the new purchase-order workflow.",
181
- definition: e("purchase-order-v2", "premium")
161
+ controls: "All Premium plans use the new purchase-order workflow."
182
162
  },
183
163
  {
184
164
  key: "transfer-fulfillment",
185
165
  label: "Transfer Fulfillment",
186
166
  category: "beta",
187
- controls: "Transfer form fulfillment behavior.",
188
- definition: e("transfer-fulfillment", "beta")
167
+ controls: "Transfer form fulfillment behavior."
189
168
  },
190
169
  {
191
170
  key: "po-workflow-completion",
192
171
  label: "PO Workflow Completion",
193
172
  category: "beta",
194
- controls: "Mark-as-completed purchase-order action.",
195
- definition: e("po-workflow-completion", "beta")
173
+ controls: "Mark-as-completed purchase-order action."
196
174
  },
197
175
  {
198
176
  key: "opening-migration",
199
177
  label: "Xilnex / Synergy Opening Migration",
200
178
  category: "beta",
201
- controls: "Xilnex and Synergy migration views.",
202
- definition: e("opening-migration", "beta")
179
+ controls: "Xilnex and Synergy migration views."
203
180
  },
204
181
  {
205
182
  key: "netsuite-transfer-out",
206
183
  label: "NetSuite Transfer Out",
207
184
  category: "beta",
208
- controls: "NetSuite integration transfer-out functionality.",
209
- definition: e("netsuite-transfer-out", "beta")
185
+ controls: "NetSuite integration transfer-out functionality."
210
186
  },
211
187
  {
212
188
  key: "delivery-order-write",
213
189
  label: "Delivery-Order Write",
214
190
  category: "beta",
215
- controls: "Delivery-order create/write UI.",
216
- definition: e("delivery-order-write", "beta")
191
+ controls: "Delivery-order create/write UI."
217
192
  },
218
193
  {
219
194
  key: "custom-attributes",
220
195
  label: "Custom Attributes",
221
196
  category: "standard",
222
- controls: "Inventory custom-attribute controls.",
223
- definition: e("custom-attributes", "standard")
197
+ controls: "Inventory custom-attribute controls."
224
198
  },
225
199
  {
226
200
  key: "legacy-receiving",
227
201
  label: "Legacy Warehouse / Manual Receiving",
228
202
  category: "standard",
229
203
  deprecateSoon: !0,
230
- controls: "Legacy receive-flow behavior.",
231
- definition: e("legacy-receiving", "standard")
204
+ controls: "Legacy receive-flow behavior."
232
205
  }
233
- ];
234
- function w(r) {
235
- return f.find((t) => t.key === r);
206
+ ], f = F.map(
207
+ (e) => ({ ...e, definition: P(e) })
208
+ );
209
+ function w(e) {
210
+ return f.find((t) => t.key === e);
236
211
  }
237
- function V(r) {
212
+ function W(e) {
238
213
  return f.find((t) => {
239
- var a;
240
- return (a = t.flagKeys) == null ? void 0 : a.includes(r);
214
+ var r;
215
+ return (r = t.flagKeys) == null ? void 0 : r.includes(e);
241
216
  });
242
217
  }
243
- const T = /* @__PURE__ */ g({
218
+ function A() {
219
+ const e = y(), t = k(), r = v();
220
+ return u(() => {
221
+ var a, o;
222
+ return {
223
+ isFlagOn: (s) => e.isFlagOn(s),
224
+ businessId: (a = t.currentBusiness.value) == null ? void 0 : a._id,
225
+ locationId: (o = r._currentLocation) == null ? void 0 : o.doc._id
226
+ };
227
+ });
228
+ }
229
+ function C(e) {
230
+ var a;
231
+ const t = y();
232
+ return (((a = w(e ?? "")) == null ? void 0 : a.flagKeys) ?? []).some((o) => t.isFlagOn(o));
233
+ }
234
+ const S = /* @__PURE__ */ g({
244
235
  __name: "PlanTierBadge",
245
236
  props: {
246
237
  tier: {}
247
238
  },
248
- setup(r) {
249
- return (t, a) => {
250
- const n = m("FmPill");
251
- return t.tier === "premium" ? (i(), c(n, {
239
+ setup(e) {
240
+ return (t, r) => {
241
+ const a = m("FmPill");
242
+ return t.tier === "premium" ? (n(), i(a, {
252
243
  key: 0,
253
244
  variant: "premium"
254
- })) : u("", !0);
245
+ })) : l("", !0);
255
246
  };
256
247
  }
257
- }), C = {}, F = { class: "inline-flex items-center gap-1 rounded-full border border-fm-color-state-warning-base bg-fm-color-state-warning-subtle px-2 py-0.5 text-xs font-medium text-fm-color-state-warning-base" };
258
- function x(r, t) {
259
- const a = m("FmIcon");
260
- return i(), y("span", F, [
261
- _(a, {
248
+ }), T = {}, K = { class: "inline-flex items-center gap-1 rounded-full border border-fm-color-state-warning-base bg-fm-color-state-warning-subtle px-2 py-0.5 text-xs font-medium text-fm-color-state-warning-base" };
249
+ function O(e, t) {
250
+ const r = m("FmIcon");
251
+ return n(), d("span", K, [
252
+ b(r, {
262
253
  name: "warning",
263
254
  size: "sm"
264
255
  }),
265
- t[0] || (t[0] = k(" Deprecate Soon "))
256
+ t[0] || (t[0] = _(" Deprecate Soon "))
266
257
  ]);
267
258
  }
268
- const K = /* @__PURE__ */ P(C, [["render", x]]), S = { class: "inline-flex items-center gap-1" }, N = /* @__PURE__ */ g({
259
+ const x = /* @__PURE__ */ h(T, [["render", O]]), B = { class: "inline-flex items-center gap-1" }, L = /* @__PURE__ */ g({
269
260
  __name: "FeatureCapabilityBadge",
270
261
  props: {
271
262
  tier: {},
@@ -274,35 +265,33 @@ const K = /* @__PURE__ */ P(C, [["render", x]]), S = { class: "inline-flex items
274
265
  featureKey: {},
275
266
  informative: { type: Boolean }
276
267
  },
277
- setup(r) {
278
- const t = r, { getFlagValue: a } = h(), n = d(() => {
279
- var s;
280
- return (((s = w(t.featureKey ?? "")) == null ? void 0 : s.flagKeys) ?? []).some((p) => a(p, (b) => b === "true") === !0);
281
- }), l = d(
282
- () => t.tier === "premium" && (t.informative || !n.value)
268
+ setup(e) {
269
+ const t = e, r = u(() => C(t.featureKey)), a = u(
270
+ () => t.tier === "premium" && (t.informative || !r.value)
283
271
  );
284
272
  return (o, s) => {
285
- const p = m("FmPill");
286
- return i(), y("span", S, [
287
- o.deprecateSoon ? (i(), c(K, { key: 0 })) : u("", !0),
288
- o.category === "beta" ? (i(), c(p, {
273
+ const c = m("FmPill");
274
+ return n(), d("span", B, [
275
+ o.deprecateSoon ? (n(), i(x, { key: 0 })) : l("", !0),
276
+ o.category === "beta" ? (n(), i(c, {
289
277
  key: 1,
290
278
  variant: "beta"
291
- })) : u("", !0),
292
- l.value ? (i(), c(T, {
279
+ })) : l("", !0),
280
+ a.value ? (n(), i(S, {
293
281
  key: 2,
294
282
  tier: o.tier
295
- }, null, 8, ["tier"])) : u("", !0)
283
+ }, null, 8, ["tier"])) : l("", !0)
296
284
  ]);
297
285
  };
298
286
  }
299
287
  });
300
288
  export {
301
- K as D,
302
- T as _,
303
- N as a,
304
- V as b,
305
- R as d,
306
- D as e,
307
- w as g
289
+ x as D,
290
+ S as _,
291
+ L as a,
292
+ W as b,
293
+ E as d,
294
+ j as e,
295
+ w as g,
296
+ A as u
308
297
  };
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as g, ref as _, watch as d, computed as v, resolveComponent as l, createBlock as h, openBlock as y, withCtx as R, createElementVNode as i, createVNode as w, toDisplayString as x } from "vue";
2
- import { c } from "./date2-Ci7521dn.js";
2
+ import { c } from "./date2-Rv4IwT9a.js";
3
3
  function F() {
4
4
  const t = /* @__PURE__ */ new Date();
5
5
  return t.setDate(t.getDate() - 15), {
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as g, mergeModels as I, useModel as z, computed as b, ref as _, resolveComponent as n, createElementBlock as h, openBlock as o, normalizeStyle as B, createElementVNode as f, createVNode as N, withCtx as E, createBlock as s, createCommentVNode as F, Fragment as S, renderList as R, unref as r } from "vue";
2
- import { z as u } from "./app-DqJp3dcI.js";
3
- import { F as T } from "./FmMultiselectDialog-CULwA_hi.js";
2
+ import { z as u } from "./app-DyEvx3Em.js";
3
+ import { F as T } from "./FmMultiselectDialog-BE8BlO6_.js";
4
4
  const q = { class: "overflow-y-auto h-full pb-8" }, L = /* @__PURE__ */ g({
5
5
  __name: "FmFilterableMenuOptions",
6
6
  props: /* @__PURE__ */ I({
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as V, mergeModels as F, computed as M, useModel as f, resolveComponent as g, createElementBlock as s, openBlock as l, unref as n, renderSlot as R, createElementVNode as p, normalizeClass as b, createCommentVNode as r, createBlock as a, withCtx as C, createVNode as U, Fragment as A, renderList as L } from "vue";
2
2
  import { useI18n as T } from "@feedmepos/mf-common";
3
- import { _ as D } from "./ChangeLocationComponent.vue_vue_type_script_setup_true_lang-BaMcGU-x.js";
4
- import { _ as I } from "./FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-BqCh_vTP.js";
3
+ import { _ as D } from "./ChangeLocationComponent.vue_vue_type_script_setup_true_lang-DoAv2mHA.js";
4
+ import { _ as I } from "./FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-CoUWxHlj.js";
5
5
  import { useBreakpoints as N } from "@feedmepos/ui-library";
6
6
  import { u as Q } from "./SingleColumnLayout.vue_vue_type_script_setup_true_lang-DpwneGOV.js";
7
7
  import { D as k } from "./app-C39bYJmq.js";
@@ -3,8 +3,8 @@ var Pe = (F, i, l) => i in F ? He(F, i, { enumerable: !0, configurable: !0, writ
3
3
  var ve = (F, i, l) => Pe(F, typeof i != "symbol" ? i + "" : i, l);
4
4
  import { defineComponent as ye, computed as x, ref as $, watch as ge, createElementBlock as f, openBlock as d, normalizeStyle as z, Fragment as V, renderList as O, createCommentVNode as D, renderSlot as ke, useSlots as Oe, onMounted as Ue, onUnmounted as Ee, reactive as ee, resolveComponent as T, createElementVNode as B, createVNode as k, createTextVNode as Ke, toDisplayString as P, unref as L, createSlots as je, withCtx as w, createBlock as I, resolveDynamicComponent as pe, normalizeClass as fe, withModifiers as Ne, Transition as ze } from "vue";
5
5
  import { useDialogChild as Ge } from "@feedmepos/ui-library";
6
- import { z as he } from "./app-DqJp3dcI.js";
7
- import { d as Je } from "./index-tCYhLCKP.js";
6
+ import { z as he } from "./app-DyEvx3Em.js";
7
+ import { d as Je } from "./index-DdtsVAcv.js";
8
8
  /* empty css */
9
9
  import { useI18n as Re } from "@feedmepos/mf-common";
10
10
  import { P as We, J as be, D as Qe } from "./app-C39bYJmq.js";
@@ -0,0 +1,123 @@
1
+ import { defineComponent as b, createElementBlock as c, openBlock as m, createElementVNode as p, toDisplayString as a, unref as _, Fragment as B, renderList as P, h as A } from "vue";
2
+ import { a as d, e as C } from "./number-BmKjsNrc.js";
3
+ import { useI18n as h } from "@feedmepos/mf-common";
4
+ import { defineStore as k } from "pinia";
5
+ import { useDialog as w } from "@feedmepos/ui-library";
6
+ import { a as g } from "./FmMultiselectDialog-BE8BlO6_.js";
7
+ const D = { class: "flex flex-col" }, I = { class: "flex flex-row fm-typo-en-body-md-600 bg-fm-color-neutral-gray-100 text-fm-color-typo-secondary h-48 items-center" }, M = { class: "flex-1 py-8 px-16" }, $ = {
8
+ class: "flex-0 py-8 px-16",
9
+ style: { "flex-basis": "120px" }
10
+ }, F = { class: "flex-1 py-8 px-16" }, R = {
11
+ key: 0,
12
+ class: "flex-0 py-8 px-16",
13
+ style: { "flex-basis": "120px" }
14
+ }, j = {
15
+ key: 1,
16
+ class: "flex-0 py-8 px-16",
17
+ style: { "flex-basis": "120px" }
18
+ }, q = /* @__PURE__ */ b({
19
+ __name: "IngredientBindedItem",
20
+ props: {
21
+ name: {},
22
+ bindings: {}
23
+ },
24
+ setup(u) {
25
+ const { t: r } = h();
26
+ function v(t, o) {
27
+ var e;
28
+ if (t.measurement) {
29
+ const s = C(t.amount, t.measurement.conversion);
30
+ return `${d(s, !1)} ${(e = t.measurement) == null ? void 0 : e.abbrev}`;
31
+ }
32
+ return `${d(t.amount, !1)} ${o.abbrev}`;
33
+ }
34
+ function x(t) {
35
+ return t.unit !== void 0;
36
+ }
37
+ return (t, o) => (m(), c("div", D, [
38
+ p("div", I, [
39
+ p("div", M, a(t.name), 1),
40
+ p("div", $, a(_(r)("inventory.ingredient.bindedItems.amount")), 1)
41
+ ]),
42
+ (m(!0), c(B, null, P(t.bindings, (e) => (m(), c("div", {
43
+ key: e.id,
44
+ class: "flex flex-row fm-typo-en-body-md-400 h-48 items-center border-b border-b-fm-color-neutral-gray-100"
45
+ }, [
46
+ p("div", F, a(e.name), 1),
47
+ x(e) ? (m(), c("div", R, a(v(e, e.unit)), 1)) : (m(), c("div", j, a(_(d)(e.amount, !1)), 1))
48
+ ]))), 128))
49
+ ]));
50
+ }
51
+ }), z = k("inventoryMultiSelectDialog", () => {
52
+ const u = w(), { t: r } = h();
53
+ return { multiSelect: async (o, e, s) => {
54
+ const l = s ?? ((n) => n), { promise: f, resolve: i } = Promise.withResolvers();
55
+ return u.open({
56
+ title: "Select items",
57
+ closeButton: !0,
58
+ contentComponent: g,
59
+ contentComponentProps: {
60
+ modelValue: e ?? [],
61
+ items: o,
62
+ virtualScroll: !0,
63
+ onClose: () => i(null)
64
+ },
65
+ primaryActions: {
66
+ text: r("common.confirm"),
67
+ close: !0
68
+ },
69
+ secondaryActions: {
70
+ text: r("common.close"),
71
+ close: !0,
72
+ variant: "tertiary"
73
+ }
74
+ }).onPrimary((n) => {
75
+ const y = n.map((S) => l(S));
76
+ i(y);
77
+ }), f;
78
+ }, singleSelect: async (o, e, s) => {
79
+ const l = s ?? ((n) => n), { promise: f, resolve: i } = Promise.withResolvers();
80
+ return u.open({
81
+ title: "Select items",
82
+ closeButton: !0,
83
+ contentComponent: g,
84
+ contentComponentProps: {
85
+ modelValue: e ? [e] : [],
86
+ items: o,
87
+ virtualScroll: !0,
88
+ onClose: () => i(void 0),
89
+ singleSelect: !0
90
+ },
91
+ primaryActions: {
92
+ text: r("common.confirm"),
93
+ close: !0
94
+ },
95
+ secondaryActions: {
96
+ text: r("common.close"),
97
+ close: !0,
98
+ variant: "tertiary"
99
+ }
100
+ }).onPrimary((n) => {
101
+ if (!n.length)
102
+ return i(null);
103
+ const y = l(n[0]);
104
+ i(y);
105
+ }), f;
106
+ }, alert: (o, e) => {
107
+ const { promise: s, resolve: l } = Promise.withResolvers();
108
+ return u.open({
109
+ title: o,
110
+ closeButton: !0,
111
+ contentComponent: typeof e == "string" ? A("div", e) : e,
112
+ secondaryActions: {
113
+ text: r("common.close"),
114
+ close: !0,
115
+ variant: "tertiary"
116
+ }
117
+ }).onSecondary(() => l()).onClose(() => l()), s;
118
+ } };
119
+ });
120
+ export {
121
+ q as _,
122
+ z as u
123
+ };
@@ -1,11 +1,11 @@
1
1
  import { defineComponent as ue, mergeModels as W, useModel as re, computed as v, ref as k, watch as H, onBeforeUnmount as me, inject as ce, resolveComponent as x, createElementBlock as y, openBlock as d, createElementVNode as u, createVNode as M, createCommentVNode as A, withCtx as _, renderSlot as Q, withDirectives as de, normalizeClass as q, toDisplayString as h, vModelText as pe, createBlock as R, Fragment as fe, renderList as ve, createSlots as be, createTextVNode as ye } from "vue";
2
- import { l as he } from "./netsuite-BaJjkDM8.js";
3
- import { w as D } from "./app-DqJp3dcI.js";
4
- import { g as O, c as xe, a as b, e as G, o as Me, b as ge, u as _e, t as Fe } from "./number-CB36d2PQ.js";
5
- import { I as U, a as Ae } from "./rules-C8dfM84-.js";
2
+ import { l as he } from "./netsuite-s1S33-lP.js";
3
+ import { w as D } from "./app-DyEvx3Em.js";
4
+ import { g as O, c as xe, a as b, e as G, o as Me, b as ge, u as _e, t as Fe } from "./number-BmKjsNrc.js";
5
+ import { I as U, a as Ae } from "./rules-BZrZVzw7.js";
6
6
  import "@feedmepos/ui-library";
7
- import { P as Ue } from "./core-Js7d-3Pv.js";
8
- import { u as Be, a as Ie } from "./uom-rules-L-IW4Nwk.js";
7
+ import { P as Ue } from "./feature-BMTKl6PK.js";
8
+ import { u as Be, a as Ie } from "./uom-rules-CR1XukyM.js";
9
9
  function Z() {
10
10
  return {
11
11
  amount: D.reset()