@feedmepos/mf-inventory-portal 1.8.0-dev.1 → 1.8.0-dev.11

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 (219) hide show
  1. package/dist/App-BTUjyQbn.js +1466 -0
  2. package/dist/{ApprovalView-C8_ax05b.js → ApprovalView-CTOTedxc.js} +26 -25
  3. package/dist/{BindingsDialog-t0ZY9eh5.js → BindingsDialog-C9v4TTzJ.js} +2 -2
  4. package/dist/{BindingsPicker-C0Qblmml.js → BindingsPicker-B5b0lavg.js} +8 -8
  5. package/dist/{BindingsTable-CsqUBbRA.js → BindingsTable-CQPan4pU.js} +4 -4
  6. package/dist/{BulkReceiveRequestView-DAG-TMox.js → BulkReceiveRequestView-BVrrjoYW.js} +21 -21
  7. package/dist/ChangeLocationComponent.vue_vue_type_script_setup_true_lang-D4Z56y7h.js +151 -0
  8. package/dist/{ClosingDraftView-CdKp4Ny6.js → ClosingDraftView-5ETKikfT.js} +748 -746
  9. package/dist/ClosingHistoryView-GM0DRWhq.js +769 -0
  10. package/dist/{ClosingTemplateView-C326DL4q.js → ClosingTemplateView-Czz--dWq.js} +303 -291
  11. package/dist/{CustomPrintTemplatePreview.vue_vue_type_script_setup_true_lang-CXjubRbj.js → CustomPrintTemplatePreview.vue_vue_type_script_setup_true_lang-Bjs8hW_q.js} +1 -1
  12. package/dist/{DefaultView-CsIMmQAY.js → DefaultView-Baksd_Lk.js} +2 -2
  13. package/dist/{DeliveryOrderPrintPreview-eTrMvJzA.js → DeliveryOrderPrintPreview-CUdMQmLf.js} +9 -9
  14. package/dist/{EmailDialog.vue_vue_type_script_setup_true_lang-B7nBbxMo.js → EmailDialog.vue_vue_type_script_setup_true_lang-CDta65pB.js} +6228 -6216
  15. package/dist/FeatureCapabilityBadge.vue_vue_type_script_setup_true_lang-CrCdJfOf.js +47 -0
  16. package/dist/FeatureCapabilityGate-C34Z4k5D.js +74 -0
  17. package/dist/{FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-CI2KTzDs.js → FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-C43lHbmc.js} +1 -1
  18. package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-Db_FiSRe.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CIMCZnY9.js} +2 -2
  19. package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-UbMV3dKh.js +120 -0
  20. package/dist/{FmMultiselectDialog-CYUxtxnS.js → FmMultiselectDialog-DYM4qyMH.js} +2 -2
  21. package/dist/FmMultiselectDialog-tbS01AI7.js +123 -0
  22. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-DOkV11NN.js → FmUnitInput.vue_vue_type_script_setup_true_lang-DaOKC6RQ.js} +72 -73
  23. package/dist/ImportView-CPf8zj0t.js +1290 -0
  24. package/dist/{IngredientsView-CZ6E7cXf.js → IngredientsView-N4CH6zdo.js} +656 -649
  25. package/dist/{IntegrationExplorerView-B15ND4Fg.js → IntegrationExplorerView-Ds5fTNi3.js} +602 -614
  26. package/dist/IntegrationPlatformView-wuOLFIQR.js +13073 -0
  27. package/dist/{IntegrationView-hkNhsqx2.js → IntegrationView-Bhxwz6Ha.js} +2956 -2922
  28. package/dist/{InventoryBindingForm-SfuUF0_O.js → InventoryBindingForm-DWm9pOH_.js} +1 -1
  29. package/dist/InventoryBindingForm.vue_vue_type_script_setup_true_lang-TvwD5HcR.js +472 -0
  30. package/dist/{InventoryBindingSummary-DUcukkyJ.js → InventoryBindingSummary-DI6H0ehi.js} +1 -1
  31. package/dist/JsonViewer.vue_vue_type_script_setup_true_lang-C_hg75l0.js +25 -0
  32. package/dist/NumberPrecisionInput.vue_vue_type_script_setup_true_lang-ngeYJhtg.js +79 -0
  33. package/dist/PlanTierBadge.vue_vue_type_script_setup_true_lang-Cr1LFRUd.js +274 -0
  34. package/dist/PlanUpgradeDialog.vue_vue_type_script_setup_true_lang-CtoPkGo2.js +79 -0
  35. package/dist/{ProductionRunDetailView-BwgRX-14.js → ProductionRunDetailView-rGGuDANE.js} +4 -4
  36. package/dist/{ProductionRunLifecycleDialogs.vue_vue_type_script_setup_true_lang-BbNXNhpr.js → ProductionRunLifecycleDialogs.vue_vue_type_script_setup_true_lang-CTseB9Sn.js} +9 -9
  37. package/dist/{ProductionRunView-CZU7LY9-.js → ProductionRunView-BLBIYhKd.js} +16 -15
  38. package/dist/{PublishView-DS2FZ66p.js → PublishView-D_H_LAq2.js} +3 -3
  39. package/dist/{PurchaseOrderPrintPreview-CZa0MVAs.js → PurchaseOrderPrintPreview-DZy57dQ6.js} +7 -7
  40. package/dist/{ReceiveRequestView-Bk5b3nVB.js → ReceiveRequestView-qFQPah64.js} +15 -15
  41. package/dist/RecipeView-BPQ_MlxJ.js +3440 -0
  42. package/dist/SettingsView-DF_HGtkr.js +1032 -0
  43. package/dist/StockView-De_R8pxv.js +2651 -0
  44. package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-DdZg9T4n.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-B3tBgcH7.js} +1 -1
  45. package/dist/{SupplierView-D8q6siZW.js → SupplierView-DvvB_Nn0.js} +577 -571
  46. package/dist/{SurchargeView-Db_5YFoR.js → SurchargeView-6gQPyGqi.js} +7 -7
  47. package/dist/{SystemTrailDialog.vue_vue_type_script_setup_true_lang-WOVs4Fr1.js → SystemTrailDialog.vue_vue_type_script_setup_true_lang-D6gnQpe-.js} +2 -2
  48. package/dist/TableActionableRow.vue_vue_type_script_setup_true_lang-gJQQKKAC.js +71 -0
  49. package/dist/{TemplatePublishDialog.vue_vue_type_script_setup_true_lang-BtoP4XgE.js → TemplatePublishDialog.vue_vue_type_script_setup_true_lang-CiuRBHBL.js} +1 -1
  50. package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-Bljc4Vuy.js → TransferDetails.vue_vue_type_script_setup_true_lang-B-1-jtmF.js} +1707 -1657
  51. package/dist/TransferTemplateView-Dcc9K-AJ.js +2343 -0
  52. package/dist/{UnitCostHistoryView-BqDiQ4IE.js → UnitCostHistoryView-e1MYu0_N.js} +4 -4
  53. package/dist/{UnitDisplayControl.vue_vue_type_script_setup_true_lang-BjSmg5LX.js → UnitDisplayControl.vue_vue_type_script_setup_true_lang-DQWOi2ol.js} +4 -4
  54. package/dist/{UnitView-CM695-VI.js → UnitView-BaLqtGk3.js} +84 -84
  55. package/dist/{WarehouseView-BdidU4p6.js → WarehouseView-CKYdpZoP.js} +194 -189
  56. package/dist/{WastageTemplateView-DdhwdXT6.js → WastageTemplateView-DazO6lu1.js} +19 -18
  57. package/dist/api/feature-flags.d.ts +12 -0
  58. package/dist/api/integration-sync-log.d.ts +0 -13
  59. package/dist/api/inventory.d.ts +9 -9
  60. package/dist/api/license.d.ts +8 -0
  61. package/dist/{app-Cb5s4jMu.js → app-ZyQBMnlh.js} +6102 -6066
  62. package/dist/app.d.ts +36 -150
  63. package/dist/app.js +1 -1
  64. package/dist/{closing-template-DnqnpXxn.js → closing-template-BZfYcHAK.js} +1 -1
  65. package/dist/components/ChangeLocationComponent.vue.d.ts +21 -14
  66. package/dist/components/DeprecateSoonWarningDialog.vue.d.ts +22 -0
  67. package/dist/components/FeatureCapabilityBadge.vue.d.ts +29 -0
  68. package/dist/components/FeatureCapabilityGate.spec.d.ts +1 -0
  69. package/dist/components/FeatureCapabilityGate.vue.d.ts +29 -0
  70. package/dist/components/FmUnitInputRules.d.ts +1 -1
  71. package/dist/components/MultiLocationSelector.vue.d.ts +6 -6
  72. package/dist/components/NumberPrecisionInput.spec.d.ts +1 -0
  73. package/dist/components/{PremiumBadge.vue.d.ts → PlanTierBadge.vue.d.ts} +5 -13
  74. package/dist/components/PlanUpgradeDialog.vue.d.ts +30 -0
  75. package/dist/composable/useNavigationMenu.d.ts +2 -1
  76. package/dist/{date2-BPhD_1Of.js → date2-CtVXF-Pl.js} +1 -1
  77. package/dist/{dayjs.min-Zbd6-uVD.js → dayjs.min-BG2xA9Zk.js} +1 -1
  78. package/dist/{decimal-Df6a50Ld.js → decimal-C0ERI9wc.js} +2 -2
  79. package/dist/{defineDeepModel-Brbsikbi.js → defineDeepModel-CAK0Fghp.js} +6 -6
  80. package/dist/{duplicate-template-B9kuShaF.js → duplicate-template-DwAQVTH7.js} +1 -1
  81. package/dist/{inventory-core-dart.default-DDRxXXnt.js → feature-1IL43YWw.js} +766 -398
  82. package/dist/feature-flags/core.d.ts +28 -0
  83. package/dist/feature-flags/core.spec.d.ts +1 -0
  84. package/dist/feature-flags/navigation-capabilities.d.ts +23 -0
  85. package/dist/feature-flags/navigation-capabilities.spec.d.ts +1 -0
  86. package/dist/feature-flags/plan-tier.d.ts +6 -0
  87. package/dist/feature-flags/plan-tier.spec.d.ts +1 -0
  88. package/dist/feature-flags/portal-feature-catalog.d.ts +19 -0
  89. package/dist/feature-flags/portal-feature-catalog.spec.d.ts +1 -0
  90. package/dist/feature-flags/vue.d.ts +16 -0
  91. package/dist/feature-flags/vue.spec.d.ts +1 -0
  92. package/dist/{format-time-from-id-DmUjUcVj.js → format-time-from-id-QIs7t8ML.js} +1 -1
  93. package/dist/{format-unit-display-CsQA0SQd.js → format-unit-display-DiTPPgut.js} +118 -119
  94. package/dist/helper/menu-usage-module.d.ts +1 -1
  95. package/dist/helper/number.d.ts +5 -1
  96. package/dist/helper/rules.d.ts +1 -1
  97. package/dist/id-to-date-DcuC_yKQ.js +67 -0
  98. package/dist/{import-export.helper-DCQ6oX9s.js → import-export.helper-grsZqa63.js} +16 -17
  99. package/dist/{JsonViewer.vue_vue_type_script_setup_true_lang-ig2zSXAB.js → index-C25C1Dg7.js} +1074 -1066
  100. package/dist/{index-UmM6gHJ1.js → index-DN5mjbXr.js} +1 -1
  101. package/dist/{index-C-mazZwS.js → index-DdSQrnuw.js} +3 -3
  102. package/dist/index-eGvSlWMU.js +1892 -0
  103. package/dist/{index-BXaIMGnI.js → index-twVxfWIB.js} +190 -190
  104. package/dist/{lz-string-Bibw5D_6.js → lz-string-DrKhkO_Q.js} +1 -1
  105. package/dist/{netsuite-Bev0OtQT.js → netsuite-C_EH9MVy.js} +9 -3
  106. package/dist/{predefined-templates-BHvUnTk_.js → predefined-templates-mWX1M2Dn.js} +1 -1
  107. package/dist/{purchase-order-template-DgOKEzhS.js → purchase-order-template-DZ3DsIUr.js} +1 -1
  108. package/dist/{recalculationUtils-Dv__DzZh.js → recalculationUtils-BZ5ccSeX.js} +1 -1
  109. package/dist/router/name.d.ts +2 -2
  110. package/dist/{row-action.enum-ncgDYAjP.js → row-action.enum-B2z1DXD9.js} +2 -2
  111. package/dist/rules-BpTWt_Y_.js +238 -0
  112. package/dist/stock-BO2mbTLO.js +74 -0
  113. package/dist/{stock-CxCRZo_D.js → stock-D9dhzEKk.js} +1 -1
  114. package/dist/stores/feature.d.ts +20 -2
  115. package/dist/stores/integration/netsuite.d.ts +2 -2
  116. package/dist/stores/inventory.d.ts +0 -47
  117. package/dist/stores/inventory.no-location.spec.d.ts +1 -0
  118. package/dist/stores/location.d.ts +42 -42
  119. package/dist/stores/supplier.d.ts +49 -49
  120. package/dist/stores/warehouse.d.ts +1 -1
  121. package/dist/style.css +1 -1
  122. package/dist/{supplier-CkZdeMcl.js → supplier-C-Ra1omj.js} +2 -2
  123. package/dist/{surcharge-FRSFqjGl.js → surcharge-BFDrFP1T.js} +1 -1
  124. package/dist/tsconfig.app.tsbuildinfo +1 -1
  125. package/dist/{uom-rules-Cm1styDr.js → uom-rules-B8pou4DQ.js} +1 -1
  126. package/dist/{use-ingredient-select-dialog-ntAqHX04.js → use-ingredient-select-dialog-DJvcL3EP.js} +2 -2
  127. package/dist/use-inventory-binding-dialog-DQBcnw0G.js +113 -0
  128. package/dist/{use-template-enabled-locations-CIZqw-Z8.js → use-template-enabled-locations-CSgJma2Z.js} +2 -2
  129. package/dist/{use-transfer-locations-CM5vNttA.js → use-transfer-locations-CkeJ5Nng.js} +14 -14
  130. package/dist/{useHrmPermission-CslLuBoP.js → useHrmPermission-BDc1xULx.js} +1 -1
  131. package/dist/useNavigationMenu-B7jkRkTi.js +346 -0
  132. package/dist/{useSseClient-CCV4mPzD.js → useSseClient-Bxl6D4Xs.js} +1 -1
  133. package/dist/views/adjustment-template/wastage-template/actions.d.ts +36 -36
  134. package/dist/views/adjustment-template/wastage-template/table.d.ts +36 -36
  135. package/dist/views/closing-draft/components/closing-draft-dialog/ClosingDraftApprovalDialog.vue.d.ts +6 -6
  136. package/dist/views/closing-draft/components/closing-draft-dialog/ClosingDraftDialog.vue.d.ts +12 -12
  137. package/dist/views/closing-draft/components/closing-draft-groups/ClosingGroupDetailSideSheet.vue.d.ts +6 -6
  138. package/dist/views/closing-draft/composables/use-closing-draft-import.d.ts +3 -3
  139. package/dist/views/closing-draft/composables/use-closing-draft-table.d.ts +18 -18
  140. package/dist/views/closing-template/composables/use-closing-template-actions.d.ts +45 -45
  141. package/dist/views/closing-template/composables/use-closing-template-table.d.ts +36 -36
  142. package/dist/views/ingredients/components/inventory-binding/InventoryBindingForm.vue.d.ts +0 -1
  143. package/dist/views/ingredients/components/inventory-binding/composables/use-inventory-binding-dialog.d.ts +0 -1
  144. package/dist/views/ingredients/components/inventory-binding/recipe-amount-validation.spec.d.ts +1 -0
  145. package/dist/views/ingredients/components/inventory-binding/v2/InventoryBindingFormV2.vue.d.ts +0 -1
  146. package/dist/views/ingredients/components/inventory-binding/v2/composables/use-inventory-binding-dialog.d.ts +0 -1
  147. package/dist/views/ingredients/helper/is-linked-ingredient-error.d.ts +1 -1
  148. package/dist/{components/PreviewBadge.vue.d.ts → views/integration/IntegrationPlatformView.vue.d.ts} +11 -13
  149. package/dist/views/integration/components/IntegrationCard.vue.d.ts +38 -0
  150. package/dist/views/integration/components/Synergy/importFn.spec.d.ts +1 -0
  151. package/dist/views/integration/components/Xilnex/importFn.spec.d.ts +1 -0
  152. package/dist/views/integration/components/netsuite/business/AddLocationDialog.vue.d.ts +36 -36
  153. package/dist/views/integration/components/netsuite/business/AddVendorDialog.vue.d.ts +24 -24
  154. package/dist/views/integration/helper/opening-balance.d.ts +22 -0
  155. package/dist/views/integration/helper/opening-balance.spec.d.ts +1 -0
  156. package/dist/views/receive-request/components/transfer-form/TransferFormWithController.vue.d.ts +5 -5
  157. package/dist/views/receive-request/composables/netsuite-order-label.d.ts +11 -0
  158. package/dist/views/receive-request/composables/netsuite-order-label.spec.d.ts +1 -0
  159. package/dist/views/receive-request/composables/use-process-purchase-order.d.ts +5 -5
  160. package/dist/views/receive-request/composables/use-receive-request-form.d.ts +39 -39
  161. package/dist/views/receive-request/composables/use-receive-request-table.d.ts +35 -35
  162. package/dist/views/receive-request/import/export.spec.d.ts +1 -0
  163. package/dist/views/receive-request-bulk/composables/use-bulk-receive-request-form.d.ts +34 -34
  164. package/dist/views/receive-request-bulk/composables/use-bulk-receive-request-table.d.ts +6 -6
  165. package/dist/views/recipe/components/recipe-bulk-editor/components/ModificationCard.spec.d.ts +1 -0
  166. package/dist/views/recipe/helper/bulk-edit-simulation.helper.d.ts +0 -1
  167. package/dist/views/recipe/helper/import-recipe.d.ts +2 -2
  168. package/dist/views/recipe/helper/import-recipe.spec.d.ts +1 -0
  169. package/dist/views/{ingredient-group/IngredientGroupView.vue.d.ts → settings/FeatureFlagView.vue.d.ts} +0 -1
  170. package/dist/views/settings/PlanLicenseDisplay.spec.d.ts +1 -0
  171. package/dist/views/{integration/components/IntegrationSyncLogTab.vue.d.ts → settings/PlanLicenseDisplay.vue.d.ts} +2 -2
  172. package/dist/views/stock/components/dialog/AmendAdjustmentForm.spec.d.ts +1 -0
  173. package/dist/views/stock/components/dialog/ConvertSkuDialog.spec.d.ts +1 -0
  174. package/dist/views/supplier/components/SupplierForm.vue.d.ts +4 -4
  175. package/dist/views/supplier/composables/use-supplier-table.d.ts +2 -2
  176. package/dist/views/transfer-template/components/transfer-template-dialog/TransferTemplateDialog.vue.d.ts +8 -8
  177. package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-locations.d.ts +4 -4
  178. package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-template-items.spec.d.ts +1 -0
  179. package/dist/views/transfer-template/composables/use-template-item-bulk-editor.d.ts +24 -24
  180. package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +48 -48
  181. package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +48 -48
  182. package/dist/views/warehouse/components/WarehouseForm.vue.d.ts +2 -2
  183. package/dist/{vue-i18n-C5j4EQhi.js → vue-i18n-gaCwgS41.js} +355 -355
  184. package/dist/{xlsx.util-B50OvX4z.js → xlsx.util-lW-27xp-.js} +2 -2
  185. package/package.json +71 -66
  186. package/dist/App-BXgpGzGR.js +0 -1476
  187. package/dist/ClosingHistoryView-Blyq9-BS.js +0 -761
  188. package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-zcEv1Swg.js +0 -243
  189. package/dist/FmMultiselectDialog-BAw-gp5K.js +0 -77
  190. package/dist/ImportView-BmotFC-3.js +0 -1302
  191. package/dist/IngredientBindedItem.vue_vue_type_script_setup_true_lang-DVCCpvS4.js +0 -51
  192. package/dist/IngredientGroupView-qrR9ksEn.js +0 -985
  193. package/dist/InventoryBindingForm.vue_vue_type_script_setup_true_lang-Zq81p_MF.js +0 -563
  194. package/dist/NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BmfROiLM.js +0 -72
  195. package/dist/PremiumBadge.vue_vue_type_script_setup_true_lang-3e3kDsbN.js +0 -93
  196. package/dist/PreviewBadge.vue_vue_type_script_setup_true_lang-DX2MJqL4.js +0 -29
  197. package/dist/RecipeView-DvI6X-uN.js +0 -3625
  198. package/dist/SettingsView-sThYErMz.js +0 -698
  199. package/dist/StockView-Z9wGihT7.js +0 -2612
  200. package/dist/TableActionableRow.vue_vue_type_script_setup_true_lang-DAMpuZ1X.js +0 -84
  201. package/dist/TransferTemplateView-DtsJzmUr.js +0 -2327
  202. package/dist/feature-Ckn5ra3z.js +0 -1136
  203. package/dist/number-y_W4pn_d.js +0 -138
  204. package/dist/random-CSbEbElR.js +0 -10
  205. package/dist/rules-CZTBvenw.js +0 -98
  206. package/dist/stock-XINW8JOM.js +0 -75
  207. package/dist/use-inventory-binding-dialog-DVIJO8Cl.js +0 -152
  208. package/dist/useNavigationMenu-CSinmNCY.js +0 -172
  209. package/dist/usePromise-CbVUCxhj.js +0 -29
  210. package/dist/views/ingredient-group/components/ingredient-group-dialog/IngredientGroupDialog.vue.d.ts +0 -31
  211. package/dist/views/ingredient-group/components/ingredient-group-dialog/IngredientGroupDialogProps.d.ts +0 -10
  212. package/dist/views/ingredient-group/components/ingredient-group-form/IngredientGroupForm.vue.d.ts +0 -21
  213. package/dist/views/ingredient-group/components/ingredient-group-form/IngredientGroupFormProps.d.ts +0 -12
  214. package/dist/views/ingredient-group/components/ingredient-group-rule-field/IngredientGroupRuleField.vue.d.ts +0 -37
  215. package/dist/views/ingredient-group/composables/use-ingredient-group-actions.d.ts +0 -24
  216. package/dist/views/ingredient-group/composables/use-ingredient-group-rule-item.d.ts +0 -31
  217. package/dist/views/ingredient-group/composables/use-ingredient-group-table.d.ts +0 -77
  218. package/dist/views/integration/composables/use-integration-sync-log.d.ts +0 -45
  219. /package/dist/components/{FmFeatureFlagDialog.vue.d.ts → DeprecateSoonPill.vue.d.ts} +0 -0
@@ -1,5 +1,5 @@
1
1
  import { computed as o } from "vue";
2
- import { u } from "./netsuite-Bev0OtQT.js";
2
+ import { u } from "./netsuite-C_EH9MVy.js";
3
3
  function i(e) {
4
4
  const t = (n) => !!n && n.toLocaleLowerCase().includes("inactive");
5
5
  return t(e.name) || t(e.abbrev);
@@ -1,6 +1,6 @@
1
1
  import { defineStore as S } from "pinia";
2
- import { a as b } from "./app-Cb5s4jMu.js";
3
- import { a as A } from "./FmMultiselectDialog-CYUxtxnS.js";
2
+ import { a as b } from "./app-ZyQBMnlh.js";
3
+ import { a as A } from "./FmMultiselectDialog-DYM4qyMH.js";
4
4
  import { useDialog as I } from "@feedmepos/ui-library";
5
5
  import { useI18n as D } from "@feedmepos/mf-common";
6
6
  const w = S(
@@ -0,0 +1,113 @@
1
+ import { a as y } from "./FmMultiselectDialog-DYM4qyMH.js";
2
+ import { a as S } from "./app-ZyQBMnlh.js";
3
+ import { useDialog as E } from "@feedmepos/ui-library";
4
+ function w() {
5
+ const c = S(), g = E();
6
+ async function _(s, p, d, f = []) {
7
+ var n, a;
8
+ const b = s.filter((i) => i.type === "SKU"), l = s.filter((i) => i.type !== "SKU"), r = /* @__PURE__ */ new Set();
9
+ if (d)
10
+ for (const i of c.skus)
11
+ !f.some((o) => o === i._id) && i._id !== d && !((a = (n = i.convert) == null ? void 0 : n.inventoryBindings) != null && a.some((o) => o.id === d)) || r.add(i._id);
12
+ const m = c.skus.map((i) => ({
13
+ label: i.name,
14
+ sublabel: `${i.code}${r.has(i._id) ? " (Cannot bind, will cause recursive binding)" : ""}`,
15
+ value: i,
16
+ disabled: r.has(i._id)
17
+ })), u = m.filter(
18
+ (i) => b.find((t) => t.id === i.value._id) && !r.has(i.value._id)
19
+ ).map((i) => i.value);
20
+ g.open({
21
+ title: "Select ingredients",
22
+ contentComponent: y,
23
+ contentComponentProps: {
24
+ items: m,
25
+ modelValue: u,
26
+ virtualScroll: !0
27
+ },
28
+ primaryActions: {
29
+ text: "Confirm",
30
+ close: !0
31
+ },
32
+ secondaryActions: {
33
+ text: "Close",
34
+ close: !0,
35
+ variant: "tertiary"
36
+ }
37
+ }).onPrimary((i) => {
38
+ const t = [
39
+ ...l,
40
+ ...s.filter((o) => i.find((e) => e._id === o.id)),
41
+ ...i.filter((o) => !s.find((e) => e.id === o._id)).map((o) => ({
42
+ type: "SKU",
43
+ id: o._id,
44
+ amount: {
45
+ amount: 1,
46
+ precision: 0
47
+ }
48
+ }))
49
+ ];
50
+ p(t);
51
+ });
52
+ }
53
+ async function v(s, p, d = []) {
54
+ var u;
55
+ const f = s.filter((n) => n.type === "RECIPE"), b = s.filter((n) => n.type !== "RECIPE"), l = /* @__PURE__ */ new Set();
56
+ if (d.length)
57
+ for (const n of c.recipes) {
58
+ const a = ((u = c.recipeBindingFlattenCache[n._id]) == null ? void 0 : u.inventoryBindings) ?? [], i = a.some(
59
+ (e) => e.bindingPaths.some((C) => d.some((h) => h === C.id))
60
+ ), t = a.some(
61
+ (e) => "success" in e && d.includes(e.ingredient._id)
62
+ );
63
+ (d.some((e) => e === n._id) || i || t) && l.add(n._id);
64
+ }
65
+ const r = c.recipes.filter((n) => !d.includes(n._id)).map((n) => ({
66
+ label: n.name,
67
+ sublabel: l.has(n._id) ? "(Cannot bind, will cause recursive binding)" : `${n.contains.length} inventory bindings`,
68
+ value: n,
69
+ disabled: l.has(n._id)
70
+ })), m = r.filter(
71
+ (n) => f.find((a) => a.id === n.value._id) && !l.has(n.value._id)
72
+ ).map((n) => n.value);
73
+ g.open({
74
+ title: "Select recipes",
75
+ contentComponent: y,
76
+ contentComponentProps: {
77
+ items: r,
78
+ modelValue: m,
79
+ virtualScroll: !0
80
+ },
81
+ primaryActions: {
82
+ text: "Confirm",
83
+ close: !0
84
+ },
85
+ secondaryActions: {
86
+ text: "Close",
87
+ close: !0,
88
+ variant: "tertiary"
89
+ }
90
+ }).onPrimary((n) => {
91
+ const a = [
92
+ ...s.filter((i) => n.find((t) => t._id === i.id)),
93
+ ...n.filter((i) => !s.find((t) => t.id === i._id)).map((i) => ({
94
+ type: "RECIPE",
95
+ id: i._id,
96
+ amount: {
97
+ amount: 1,
98
+ precision: 0
99
+ }
100
+ })),
101
+ ...b
102
+ ];
103
+ p(a);
104
+ });
105
+ }
106
+ return {
107
+ promptIngredientsBinding: _,
108
+ promptRecipesBinding: v
109
+ };
110
+ }
111
+ export {
112
+ w as u
113
+ };
@@ -1,5 +1,5 @@
1
- import { a as A } from "./FmMultiselectDialog-CYUxtxnS.js";
2
- import { u as S } from "./app-Cb5s4jMu.js";
1
+ import { a as A } from "./FmMultiselectDialog-DYM4qyMH.js";
2
+ import { u as S } from "./app-ZyQBMnlh.js";
3
3
  import { useI18n as w, useCoreStore as i, useCustomAttributes as _ } from "@feedmepos/mf-common";
4
4
  import { useDialog as C, components as p } from "@feedmepos/ui-library";
5
5
  import { computed as r, h as c } from "vue";
@@ -1,5 +1,5 @@
1
- import { u as g, r as l, $ as w, a2 as R } from "./app-Cb5s4jMu.js";
2
- import { u as E } from "./supplier-CkZdeMcl.js";
1
+ import { u as g, r as l, a0 as w, a3 as R } from "./app-ZyQBMnlh.js";
2
+ import { u as E } from "./supplier-C-Ra1omj.js";
3
3
  import { computed as u } from "vue";
4
4
  function d(n) {
5
5
  const c = R.safeParse(n);
@@ -26,13 +26,13 @@ function _(n) {
26
26
  };
27
27
  }
28
28
  function F(n, c, y = !1, f = !1) {
29
- const p = E(), t = g();
29
+ const a = E(), t = g();
30
30
  t.watchLocation(async () => {
31
- var a;
32
- await p.readSuppliers();
31
+ var p;
32
+ await a.readSuppliers();
33
33
  const s = n();
34
- if ((a = s.supplier) != null && a._id || s.template) return;
35
- const e = f ? p.suppliers[0] : p.businessSuppliers[0], r = (y ? t.locations.filter((i) => i.doc._id !== t.currentLocation.doc._id) : t.locations)[0];
34
+ if ((p = s.supplier) != null && p._id || s.template) return;
35
+ const e = f ? a.suppliers[0] : a.businessSuppliers[0], r = (y ? t.locations.filter((i) => i.doc._id !== t.currentLocation.doc._id) : t.locations)[0];
36
36
  c({
37
37
  ...s,
38
38
  supplier: e ? d(e) : r ? _(r) : s.supplier
@@ -50,22 +50,22 @@ function F(n, c, y = !1, f = !1) {
50
50
  set(s) {
51
51
  const e = n() ?? {};
52
52
  if (L.value === l.enum.purchase) {
53
- const m = (f ? p.suppliers : p.businessSuppliers).find((N) => N._id === s);
53
+ const m = (f ? a.suppliers : a.businessSuppliers).find((N) => N._id === s);
54
54
  c({
55
55
  ...e,
56
56
  supplier: m ? d(m) : e.supplier
57
57
  });
58
58
  return;
59
59
  }
60
- const a = (y ? t.allLocations.filter(
60
+ const p = (y ? t.allLocations.filter(
61
61
  (i) => i.doc._id !== t.currentLocation.doc._id
62
62
  ) : t.allLocations).find((i) => i.doc._id === s);
63
63
  c({
64
64
  ...e,
65
- supplier: a ? _(a) : e.supplier
65
+ supplier: p ? _(p) : e.supplier
66
66
  });
67
67
  }
68
- }), v = u(() => p.locationSuppliers.map(d)), T = u(() => p.businessSuppliers.map(d)), S = u(() => {
68
+ }), v = u(() => a.locationSuppliers.map(d)), T = u(() => a.businessSuppliers.map(d)), S = u(() => {
69
69
  const s = [...v.value], e = [...T.value];
70
70
  return f ? [...e, ...s] : e;
71
71
  }), b = u(() => {
@@ -92,10 +92,10 @@ function F(n, c, y = !1, f = !1) {
92
92
  value: e._id
93
93
  }));
94
94
  }), P = u(() => {
95
- var r, a;
96
- const s = (a = (r = n()) == null ? void 0 : r.supplier) == null ? void 0 : a._id;
95
+ var r, p;
96
+ const s = (p = (r = n()) == null ? void 0 : r.supplier) == null ? void 0 : p._id;
97
97
  if (L.value === l.enum.purchase) {
98
- const i = p.suppliers.find((m) => m._id === s);
98
+ const i = a.suppliers.find((m) => m._id === s);
99
99
  return i ? d(i) : null;
100
100
  }
101
101
  const o = t.allLocations.find((i) => i.doc._id);
@@ -1,5 +1,5 @@
1
1
  import { computed as p, toValue as o } from "vue";
2
- import { ab as n } from "./app-Cb5s4jMu.js";
2
+ import { ac as n } from "./app-ZyQBMnlh.js";
3
3
  import { useCoreStore as c } from "@feedmepos/mf-common";
4
4
  function g(t, i = "all") {
5
5
  const m = c();
@@ -0,0 +1,346 @@
1
+ import { computed as R, h as P } from "vue";
2
+ import { R as e, ad as O, ae as A, ac as U } from "./app-ZyQBMnlh.js";
3
+ import { useCoreStore as b, useI18n as L } from "@feedmepos/mf-common";
4
+ import { u as y, I as E, f as v } from "./feature-1IL43YWw.js";
5
+ import { e as G, g, d as M, i as H } from "./PlanTierBadge.vue_vue_type_script_setup_true_lang-Cr1LFRUd.js";
6
+ import { _ as K } from "./FeatureCapabilityBadge.vue_vue_type_script_setup_true_lang-CrCdJfOf.js";
7
+ const _ = [
8
+ {
9
+ route: e.STOCK,
10
+ module: "Stock",
11
+ tier: "standard",
12
+ description: "View current stock balances and inventory movement."
13
+ },
14
+ {
15
+ route: e.PRODUCTION_RUN,
16
+ module: "Stock",
17
+ tier: "standard",
18
+ description: "Record production items and consume their component stock.",
19
+ featureKey: "production-runs"
20
+ },
21
+ {
22
+ route: e.UNIT_COST_HISTORY,
23
+ module: "Costing",
24
+ tier: "premium",
25
+ description: "Review unit-cost history and costing changes.",
26
+ featureKey: "unit-cost"
27
+ },
28
+ {
29
+ route: e.WASTAGE_TEMPLATE,
30
+ module: "Stock",
31
+ tier: "premium",
32
+ description: "Create reusable wastage-adjustment templates.",
33
+ featureKey: "wastage-template"
34
+ },
35
+ {
36
+ route: e.CLOSING_HISTORY,
37
+ module: "Closing",
38
+ tier: "standard",
39
+ description: "Review completed inventory closings and their variances."
40
+ },
41
+ {
42
+ route: e.CLOSING_TEMPLATE,
43
+ module: "Closing",
44
+ tier: "premium",
45
+ description: "Set up reusable stock-closing templates.",
46
+ featureKey: "closing-template"
47
+ },
48
+ {
49
+ route: e.CLOSING_DRAFT,
50
+ module: "Closing",
51
+ tier: "premium",
52
+ description: "Prepare and continue draft stock closings.",
53
+ featureKey: "closing-template"
54
+ },
55
+ {
56
+ route: e.INGREDIENTS,
57
+ module: "Catalogue",
58
+ tier: "standard",
59
+ description: "Manage ingredients and SKUs."
60
+ },
61
+ {
62
+ route: e.RECIPE,
63
+ module: "Catalogue",
64
+ tier: "standard",
65
+ description: "Create and maintain recipes and bills of materials."
66
+ },
67
+ {
68
+ route: e.UNIT,
69
+ module: "Catalogue",
70
+ tier: "standard",
71
+ description: "Manage inventory units of measure and conversions."
72
+ },
73
+ {
74
+ route: e.RECEIVE_REQUEST,
75
+ module: "Purchasing & transfers",
76
+ tier: "standard",
77
+ description: "Create, receive, and track purchase orders and transfers."
78
+ },
79
+ {
80
+ route: e.RECEIVE_REQUEST_BULK,
81
+ module: "Purchasing & transfers",
82
+ tier: "standard",
83
+ description: "Create and receive purchase orders across multiple locations.",
84
+ featureKey: "bulk-receive-transfer"
85
+ },
86
+ {
87
+ route: e.APPROVAL,
88
+ module: "Purchasing & transfers",
89
+ tier: "standard",
90
+ description: "Review and action stock-transfer approvals."
91
+ },
92
+ {
93
+ route: e.SURCHARGE,
94
+ module: "Purchasing & transfers",
95
+ tier: "standard",
96
+ description: "Configure purchase-order surcharges.",
97
+ featureKey: "surcharge"
98
+ },
99
+ {
100
+ route: e.TRANSFER_TEMPLATE,
101
+ module: "Purchasing & transfers",
102
+ tier: "premium",
103
+ description: "Create reusable purchase-order and transfer templates.",
104
+ featureKey: "purchase-order-template"
105
+ },
106
+ {
107
+ route: e.SUPPLIER,
108
+ module: "Suppliers",
109
+ tier: "standard",
110
+ description: "Manage supplier records and purchasing details."
111
+ },
112
+ {
113
+ route: e.WAREHOUSE,
114
+ module: "Warehouse",
115
+ tier: "standard",
116
+ description: "Manage warehouses; additional warehouse fees may apply."
117
+ },
118
+ {
119
+ route: e.PUBLISH,
120
+ module: "Publishing",
121
+ tier: "standard",
122
+ description: "Publish inventory catalogue changes to connected systems."
123
+ },
124
+ {
125
+ route: e.IMPORT,
126
+ module: "Data management",
127
+ tier: "standard",
128
+ description: "Bulk import units, ingredients, and recipes.",
129
+ featureKey: "bulk-import"
130
+ },
131
+ {
132
+ route: e.INTEGRATION,
133
+ module: "Integrations",
134
+ tier: "standard",
135
+ description: "Configure supported third-party inventory integrations."
136
+ },
137
+ {
138
+ route: e.INTEGRATION_EXPLORER,
139
+ module: "Integrations",
140
+ tier: "standard",
141
+ description: "Inspect and manage integration records and synchronization."
142
+ }
143
+ ], F = Object.fromEntries(
144
+ _.map((s) => {
145
+ var u;
146
+ const o = g(s.featureKey ?? "");
147
+ return [
148
+ s.route,
149
+ M({
150
+ key: s.route,
151
+ minimumTier: s.tier,
152
+ release: s.release ?? ((u = o == null ? void 0 : o.definition) == null ? void 0 : u.release),
153
+ flagKeys: o == null ? void 0 : o.flagKeys
154
+ })
155
+ ];
156
+ })
157
+ );
158
+ function k(s) {
159
+ return _.find((o) => o.route === s) ?? null;
160
+ }
161
+ function B(s) {
162
+ return s ? F[s] ?? null : null;
163
+ }
164
+ function q(s, o) {
165
+ const u = B(s);
166
+ return u ? G(u, o) : { enabled: !0, disabled: !1, stage: "ga", eligible: !0 };
167
+ }
168
+ const D = A.reduce(
169
+ (s, o) => {
170
+ var u;
171
+ return o.name && (s[o.name] = (u = o.meta) == null ? void 0 : u.validationManifest), s;
172
+ },
173
+ {}
174
+ );
175
+ function x() {
176
+ const s = b(), o = y(), { t: u } = L(), a = (t) => O(t, u), h = R(
177
+ () => {
178
+ var t;
179
+ return ((t = s.sessionUser.value) == null ? void 0 : t.permissions) ?? [];
180
+ }
181
+ ), N = (t = []) => t.length === 0 ? !0 : U(t, h.value).granted, n = (t) => {
182
+ const r = D[t];
183
+ return N(r == null ? void 0 : r.requiredCaslPermissions);
184
+ }, c = (t) => {
185
+ var r;
186
+ return ((r = o.flags.find((d) => d.name === t)) == null ? void 0 : r.beta) !== !1 && !o.isFlagOn(t);
187
+ }, m = (t) => t.filter((r) => !r.hide).map((r) => r.children ? { ...r, children: m(r.children) } : r).filter((r) => !r.children || r.children.length > 0), I = (t) => t.map((r) => {
188
+ const { hide: d, children: i, ...l } = r, T = { ...l };
189
+ return i && (T.children = I(i)), T;
190
+ }), p = (t) => t.map((r) => {
191
+ const d = r.value, i = k(d), l = g((i == null ? void 0 : i.featureKey) ?? ""), T = l == null ? void 0 : l.category, C = i && (i.tier === "premium" || T === "beta" || l != null && l.deprecateSoon) ? () => P(K, {
192
+ tier: i.tier,
193
+ category: T,
194
+ deprecateSoon: l == null ? void 0 : l.deprecateSoon,
195
+ featureKey: i.featureKey
196
+ }) : void 0;
197
+ return {
198
+ ...r,
199
+ badge: C,
200
+ children: r.children ? p(r.children) : void 0
201
+ };
202
+ }), S = R(() => {
203
+ var d;
204
+ const t = [
205
+ {
206
+ label: a(e.STOCK),
207
+ children: [
208
+ {
209
+ label: u("inventory.stock.stock_balance.title"),
210
+ value: e.STOCK,
211
+ hide: !n(e.STOCK)
212
+ },
213
+ {
214
+ label: a(e.PRODUCTION_RUN),
215
+ value: e.PRODUCTION_RUN,
216
+ hide: !n(e.PRODUCTION_RUN) || c(E.inventory_portal_production_item)
217
+ },
218
+ {
219
+ label: a(e.WASTAGE_TEMPLATE),
220
+ value: e.WASTAGE_TEMPLATE,
221
+ hide: !n(e.WASTAGE_TEMPLATE) || c(E.inventory_pos_adjust_v2_wastage)
222
+ },
223
+ {
224
+ label: a(e.UNIT_COST_HISTORY),
225
+ value: e.UNIT_COST_HISTORY,
226
+ hide: !n(e.UNIT_COST_HISTORY) || o.isModuleBeta(v.Costing) && !o.isModuleEnabled(v.Costing)
227
+ }
228
+ ]
229
+ },
230
+ {
231
+ label: u("inventory.closing.title"),
232
+ children: [
233
+ {
234
+ label: a(e.CLOSING_HISTORY),
235
+ value: e.CLOSING_HISTORY,
236
+ hide: !n(e.CLOSING_HISTORY)
237
+ },
238
+ {
239
+ label: a(e.CLOSING_TEMPLATE),
240
+ value: e.CLOSING_TEMPLATE,
241
+ hide: !n(e.CLOSING_TEMPLATE) || c(E.inventory_pos_closing_v2)
242
+ },
243
+ {
244
+ label: a(e.CLOSING_DRAFT),
245
+ value: e.CLOSING_DRAFT,
246
+ hide: !n(e.CLOSING_DRAFT) || c(E.inventory_pos_closing_v2)
247
+ }
248
+ ]
249
+ },
250
+ {
251
+ label: a(e.INGREDIENTS),
252
+ value: e.INGREDIENTS,
253
+ hide: !n(e.INGREDIENTS)
254
+ },
255
+ {
256
+ label: a(e.RECIPE),
257
+ value: e.RECIPE,
258
+ hide: !n(e.RECIPE)
259
+ },
260
+ {
261
+ label: a(e.UNIT),
262
+ value: e.UNIT,
263
+ hide: !n(e.UNIT)
264
+ },
265
+ {
266
+ label: u("inventory.transfer.title"),
267
+ children: [
268
+ {
269
+ label: a(e.RECEIVE_REQUEST),
270
+ value: e.RECEIVE_REQUEST,
271
+ hide: !n(e.RECEIVE_REQUEST)
272
+ },
273
+ {
274
+ label: a(e.RECEIVE_REQUEST_BULK),
275
+ value: e.RECEIVE_REQUEST_BULK,
276
+ hide: !n(e.RECEIVE_REQUEST_BULK) || c(E.inventory_receive_request_beta)
277
+ },
278
+ {
279
+ label: a(e.APPROVAL),
280
+ value: e.APPROVAL,
281
+ hide: !n(e.APPROVAL)
282
+ },
283
+ {
284
+ label: a(e.SURCHARGE),
285
+ value: e.SURCHARGE,
286
+ hide: !n(e.SURCHARGE) || c(E.inventory_portal_surcharge)
287
+ },
288
+ {
289
+ label: a(e.TRANSFER_TEMPLATE),
290
+ value: e.TRANSFER_TEMPLATE,
291
+ hide: !n(e.TRANSFER_TEMPLATE) || c(E.inventory_portal_must_use_transfer_template) && !H("purchase-order-template")
292
+ }
293
+ ]
294
+ },
295
+ {
296
+ label: a(e.SUPPLIER),
297
+ value: e.SUPPLIER,
298
+ hide: !n(e.SUPPLIER)
299
+ },
300
+ {
301
+ label: a(e.WAREHOUSE),
302
+ value: e.WAREHOUSE,
303
+ hide: !n(e.WAREHOUSE)
304
+ },
305
+ {
306
+ label: a(e.PUBLISH),
307
+ value: e.PUBLISH,
308
+ hide: !n(e.PUBLISH)
309
+ },
310
+ {
311
+ label: a(e.IMPORT),
312
+ value: e.IMPORT,
313
+ hide: !n(e.IMPORT) || c(E.inventory_bulk_import)
314
+ },
315
+ {
316
+ label: a(e.INTEGRATION),
317
+ value: e.INTEGRATION,
318
+ hide: !n(e.INTEGRATION)
319
+ },
320
+ {
321
+ label: a(e.SETTINGS),
322
+ value: e.SETTINGS,
323
+ hide: !n(e.SETTINGS)
324
+ }
325
+ ], r = p(I(m(t)));
326
+ return ((d = s.currentBusiness.value) == null ? void 0 : d.menuVersion) === "v3" ? r.filter(
327
+ (i) => i.value !== e.INGREDIENTS && i.value !== e.RECIPE && i.value !== e.UNIT && i.value !== e.PUBLISH
328
+ ) : r;
329
+ }), f = R(() => {
330
+ function t(d) {
331
+ for (const i of d)
332
+ if (i.children && i.children.length > 0) {
333
+ const l = t(i.children);
334
+ if (l) return l;
335
+ } else if (i.value)
336
+ return i.value;
337
+ }
338
+ return t(S.value) ?? null;
339
+ });
340
+ return { menuItems: S, firstAccessibleRouteName: f };
341
+ }
342
+ export {
343
+ q as e,
344
+ _ as n,
345
+ x as u
346
+ };
@@ -1,4 +1,4 @@
1
- import { d as se } from "./app-Cb5s4jMu.js";
1
+ import { d as se } from "./app-ZyQBMnlh.js";
2
2
  import { useCoreStore as ne } from "@feedmepos/mf-common";
3
3
  const re = se((e, t) => ({
4
4
  getSubscribeUrl(s, r, a) {