@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,243 +0,0 @@
1
- import { defineComponent as D, computed as g, ref as O, resolveComponent as w, createElementBlock as i, openBlock as l, createVNode as M, withCtx as N, createElementVNode as m, unref as t, createBlock as d, createCommentVNode as b, Fragment as k, renderList as S, createTextVNode as $, toDisplayString as R, mergeModels as j, useModel as I, renderSlot as H, normalizeClass as T } from "vue";
2
- import { useCoreStore as W, useI18n as z } from "@feedmepos/mf-common";
3
- import { u as q } from "./app-Cb5s4jMu.js";
4
- import { _ as G } from "./FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-CI2KTzDs.js";
5
- import { useBreakpoints as J } from "@feedmepos/ui-library";
6
- import { u as K } from "./SingleColumnLayout.vue_vue_type_script_setup_true_lang-DpwneGOV.js";
7
- import { D as A } from "./app-C39bYJmq.js";
8
- import { F as P } from "./FmAdminBadge-DlplQOHb.js";
9
- const X = { class: "inline-flex" }, Y = {
10
- "data-testid": "inventory-location-selector",
11
- class: "inline-flex rounded-md items-center gap-4 justify-center h-[30px] px-8 py-4 bg-fm-color-neutral-gray-100 cursor-pointer text-fm-color-neutral-gray-400"
12
- }, Z = { class: "fm-typo-en-body-md-600 select-none text-ellipsis overflow-hidden whitespace-nowrap" }, ee = { class: "relative" }, oe = { class: "sticky top-0 py-8 bg-white translate-y-[-12px]" }, le = /* @__PURE__ */ D({
13
- __name: "ChangeLocationComponent",
14
- props: {
15
- showBusiness: { type: Boolean }
16
- },
17
- setup(_) {
18
- const a = q(), y = W(), B = g(() => {
19
- var e;
20
- return (e = y.currentBusiness.value) == null ? void 0 : e.name;
21
- }), { t: c } = z(), v = O(""), u = g({
22
- get() {
23
- return a.businessLevel;
24
- },
25
- set(e) {
26
- a.businessLevel = e;
27
- }
28
- }), p = g(
29
- () => a.locations.map((e) => ({
30
- label: e.name,
31
- value: e.dbName,
32
- type: e.type,
33
- code: e.doc.profile.code ?? "--"
34
- })).filter((e) => {
35
- var f;
36
- if (!v.value) return !0;
37
- const o = v.value.toLocaleLowerCase();
38
- return e.label.toLocaleLowerCase().includes(o) || ((f = e.code) == null ? void 0 : f.toLocaleLowerCase().includes(o));
39
- })
40
- ), n = g(
41
- () => p.value.filter((e) => e.type === "restaurant")
42
- ), s = g(
43
- () => p.value.filter((e) => e.type === "warehouse")
44
- );
45
- function x({ value: e }) {
46
- u.value = !1, a.selectLocation(a.locations.find((o) => o.dbName === e));
47
- }
48
- return (e, o) => {
49
- const f = w("FmIcon"), Q = w("FmSearch"), C = w("FmMenuItem"), E = w("FmMenu");
50
- return l(), i("div", X, [
51
- M(E, { "close-on-click": !0 }, {
52
- "menu-button": N(() => [
53
- m("div", Y, [
54
- M(f, {
55
- name: e.showBusiness && u.value ? "store" : "storefront",
56
- size: "sm"
57
- }, null, 8, ["name"]),
58
- m("div", Z, [
59
- e.showBusiness && u.value ? (l(), i(k, { key: 0 }, [
60
- $(R(B.value), 1)
61
- ], 64)) : t(a)._currentLocation ? (l(), i(k, { key: 1 }, [
62
- $(R(t(a)._currentLocation.name) + " (" + R(t(a)._currentLocation.doc.profile.code ?? "--") + ") ", 1)
63
- ], 64)) : (l(), i(k, { key: 2 }, [
64
- $(R(t(c)("inventory.common.noLocationSelected")), 1)
65
- ], 64))
66
- ]),
67
- M(f, {
68
- name: "expand_more",
69
- size: "sm"
70
- })
71
- ])
72
- ]),
73
- default: N(() => [
74
- m("div", ee, [
75
- m("div", oe, [
76
- M(Q, {
77
- "model-value": v.value,
78
- "onUpdate:modelValue": o[0] || (o[0] = (r) => v.value = r),
79
- placeholder: t(c)("inventory.common.table.toolbar.filterItems")
80
- }, null, 8, ["model-value", "placeholder"])
81
- ]),
82
- m("div", null, [
83
- e.showBusiness ? (l(), d(C, {
84
- key: 0,
85
- "data-testid": "inventory-business-selector",
86
- "model-value": u.value,
87
- label: B.value,
88
- sublabel: "Business",
89
- onClick: o[1] || (o[1] = (r) => u.value = !0)
90
- }, null, 8, ["model-value", "label"])) : b("", !0),
91
- (l(!0), i(k, null, S(n.value, (r) => {
92
- var L;
93
- return l(), d(C, {
94
- key: r.value,
95
- "model-value": !u.value && ((L = t(a)._currentLocation) == null ? void 0 : L.dbName) === r.value,
96
- label: `${r.label} (${r.code})`,
97
- sublabel: "Restaurant",
98
- onClick: (h) => x(r),
99
- onVnodeMounted: (h) => {
100
- var V, F, U;
101
- return !u.value && ((V = t(a)._currentLocation) == null ? void 0 : V.dbName) === r.value && ((F = h.el) == null || F.scrollIntoView({ behavior: "instant", block: "end" }), (U = h.el) == null || U.scrollIntoView({ behavior: "smooth", block: "center" })), void 0;
102
- }
103
- }, null, 8, ["model-value", "label", "onClick", "onVnodeMounted"]);
104
- }), 128)),
105
- (l(!0), i(k, null, S(s.value, (r) => {
106
- var L;
107
- return l(), d(C, {
108
- key: r.value,
109
- "model-value": !u.value && ((L = t(a)._currentLocation) == null ? void 0 : L.dbName) === r.value,
110
- label: r.label,
111
- sublabel: "Warehouse",
112
- onClick: (h) => x(r),
113
- onVnodeMounted: (h) => {
114
- var V, F;
115
- return !u.value && ((V = t(a)._currentLocation) == null ? void 0 : V.dbName) === r.value && ((F = h.el) == null || F.scrollIntoView({ behavior: "smooth", block: "center" })), void 0;
116
- }
117
- }, null, 8, ["model-value", "label", "onClick", "onVnodeMounted"]);
118
- }), 128)),
119
- !e.showBusiness && !n.value.length && !s.value.length ? (l(), d(C, {
120
- key: 1,
121
- disabled: "",
122
- label: t(c)("inventory.common.noResultFound")
123
- }, null, 8, ["label"])) : b("", !0)
124
- ])
125
- ])
126
- ]),
127
- _: 1
128
- })
129
- ]);
130
- };
131
- }
132
- }), ne = { class: "flex-1 w-full flex items-center gap-4 xs:flex-col-reverse sm:flex-col-reverse" }, te = {
133
- key: 0,
134
- class: "flex-1 xs:w-full sm:w-full"
135
- }, ae = {
136
- key: 1,
137
- class: "flex-1"
138
- }, se = { class: "w-full max-w-[343px] xs:max-w-[unset] sm:max-w-[unset]" }, fe = /* @__PURE__ */ D({
139
- __name: "FmInventoryTableToolbar",
140
- props: /* @__PURE__ */ j({
141
- dateRangeQuery: { type: Boolean },
142
- predefinedDateRanges: {},
143
- changeLocation: { type: Boolean },
144
- searchable: { type: Boolean },
145
- hideFilterOptions: { type: Boolean },
146
- filterable: { type: Boolean },
147
- filterAttributes: {},
148
- actions: {},
149
- usingBusinessHelperText: {},
150
- showBusiness: { type: Boolean }
151
- }, {
152
- search: {},
153
- searchModifiers: {},
154
- filter: {},
155
- filterModifiers: {},
156
- dateRange: {},
157
- dateRangeModifiers: {}
158
- }),
159
- emits: ["update:search", "update:filter", "update:dateRange"],
160
- setup(_) {
161
- const { breakpoints: a } = J(), y = g(() => a.value.xs || a.value.sm), B = I(_, "search"), c = I(_, "filter"), v = I(_, "dateRange"), { t: u } = z(), p = K();
162
- return (n, s) => {
163
- const x = w("FmTextField"), e = w("FmButton");
164
- return l(), i("div", {
165
- class: "flex flex-col gap-8",
166
- onVnodeMounted: s[4] || (s[4] = //@ts-ignore
167
- (...o) => t(p).onMounted && t(p).onMounted(...o)),
168
- onVnodeUnmounted: s[5] || (s[5] = //@ts-ignore
169
- (...o) => t(p).onUnmounted && t(p).onUnmounted(...o))
170
- }, [
171
- H(n.$slots, "default"),
172
- m("div", {
173
- class: T([
174
- "flex gap-8 items-center",
175
- {
176
- "px-8 flex-col-reverse h-[unset]": y.value,
177
- "h-48": !y.value
178
- }
179
- ])
180
- }, [
181
- n.changeLocation || n.dateRangeQuery ? (l(), i("div", {
182
- key: 0,
183
- class: T([
184
- "flex gap-8 items-center",
185
- {
186
- "w-full overflow-x-auto": y.value
187
- }
188
- ])
189
- }, [
190
- n.changeLocation ? (l(), d(le, {
191
- key: 0,
192
- "show-business": n.showBusiness
193
- }, null, 8, ["show-business"])) : b("", !0),
194
- n.dateRangeQuery ? (l(), d(G, {
195
- key: 1,
196
- "model-value": v.value,
197
- "onUpdate:modelValue": s[0] || (s[0] = (o) => v.value = o),
198
- "predefined-range": n.predefinedDateRanges
199
- }, null, 8, ["model-value", "predefined-range"])) : b("", !0)
200
- ], 2)) : b("", !0),
201
- m("div", ne, [
202
- n.filterable && n.filterAttributes ? (l(), i("div", te, [
203
- n.hideFilterOptions ? (l(), d(P, { key: 1 }, {
204
- default: N(() => [
205
- M(t(A), {
206
- modelValue: c.value,
207
- "onUpdate:modelValue": s[2] || (s[2] = (o) => c.value = o),
208
- attributes: n.filterAttributes
209
- }, null, 8, ["modelValue", "attributes"])
210
- ]),
211
- _: 1
212
- })) : (l(), d(t(A), {
213
- key: 0,
214
- modelValue: c.value,
215
- "onUpdate:modelValue": s[1] || (s[1] = (o) => c.value = o),
216
- attributes: n.filterAttributes
217
- }, null, 8, ["modelValue", "attributes"]))
218
- ])) : y.value ? b("", !0) : (l(), i("div", ae)),
219
- m("div", se, [
220
- n.searchable ? (l(), d(x, {
221
- key: 0,
222
- "model-value": B.value,
223
- "onUpdate:modelValue": s[3] || (s[3] = (o) => B.value = o),
224
- "prepend-icon": "search",
225
- placeholder: t(u)("inventory.common.table.toolbar.filterItems"),
226
- class: "w-full"
227
- }, null, 8, ["model-value", "placeholder"])) : b("", !0)
228
- ]),
229
- (l(!0), i(k, null, S(n.actions, (o, f) => (l(), d(e, {
230
- key: f,
231
- variant: "tertiary",
232
- "prepend-icon": o.icon,
233
- onClick: o.onClick
234
- }, null, 8, ["prepend-icon", "onClick"]))), 128))
235
- ])
236
- ], 2)
237
- ], 512);
238
- };
239
- }
240
- });
241
- export {
242
- fe as _
243
- };
@@ -1,77 +0,0 @@
1
- import { defineStore as p } from "pinia";
2
- import { useDialog as y } from "@feedmepos/ui-library";
3
- import { useI18n as v } from "@feedmepos/mf-common";
4
- import { a } from "./FmMultiselectDialog-CYUxtxnS.js";
5
- import { h as S } from "vue";
6
- const w = p("inventoryMultiSelectDialog", () => {
7
- const l = y(), { t: n } = v();
8
- return { multiSelect: async (s, t, c) => {
9
- const o = c ?? ((e) => e), { promise: i, resolve: r } = Promise.withResolvers();
10
- return l.open({
11
- title: "Select items",
12
- closeButton: !0,
13
- contentComponent: a,
14
- contentComponentProps: {
15
- modelValue: t ?? [],
16
- items: s,
17
- virtualScroll: !0,
18
- onClose: () => r(null)
19
- },
20
- primaryActions: {
21
- text: n("common.confirm"),
22
- close: !0
23
- },
24
- secondaryActions: {
25
- text: n("common.close"),
26
- close: !0,
27
- variant: "tertiary"
28
- }
29
- }).onPrimary((e) => {
30
- const m = e.map((u) => o(u));
31
- r(m);
32
- }), i;
33
- }, singleSelect: async (s, t, c) => {
34
- const o = c ?? ((e) => e), { promise: i, resolve: r } = Promise.withResolvers();
35
- return l.open({
36
- title: "Select items",
37
- closeButton: !0,
38
- contentComponent: a,
39
- contentComponentProps: {
40
- modelValue: t ? [t] : [],
41
- items: s,
42
- virtualScroll: !0,
43
- onClose: () => r(void 0),
44
- singleSelect: !0
45
- },
46
- primaryActions: {
47
- text: n("common.confirm"),
48
- close: !0
49
- },
50
- secondaryActions: {
51
- text: n("common.close"),
52
- close: !0,
53
- variant: "tertiary"
54
- }
55
- }).onPrimary((e) => {
56
- if (!e.length)
57
- return r(null);
58
- const m = o(e[0]);
59
- r(m);
60
- }), i;
61
- }, alert: (s, t) => {
62
- const { promise: c, resolve: o } = Promise.withResolvers();
63
- return l.open({
64
- title: s,
65
- closeButton: !0,
66
- contentComponent: typeof t == "string" ? S("div", t) : t,
67
- secondaryActions: {
68
- text: n("common.close"),
69
- close: !0,
70
- variant: "tertiary"
71
- }
72
- }).onSecondary(() => o()).onClose(() => o()), c;
73
- } };
74
- });
75
- export {
76
- w as u
77
- };