@feedmepos/mf-inventory-portal 1.8.0-dev.8 → 1.8.0
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.
- package/dist/{App-C8i7vBxz.js → App-BPdZMhM8.js} +515 -536
- package/dist/{ApprovalView-GHgTeCBV.js → ApprovalView-UzjSuZ2L.js} +26 -25
- package/dist/{BindingsDialog-C4-S2CWk.js → BindingsDialog-Cb6WRlKq.js} +2 -2
- package/dist/{BindingsPicker-C7YUArBj.js → BindingsPicker-CtD4U4lv.js} +2 -2
- package/dist/{BindingsTable-1Zoqi4ZS.js → BindingsTable-CX-3403K.js} +10 -10
- package/dist/BulkReceiveRequestPage-CUq1Lmww.js +2839 -0
- package/dist/{ChangeLocationComponent.vue_vue_type_script_setup_true_lang-DFSg0-gv.js → ChangeLocationComponent.vue_vue_type_script_setup_true_lang-C5cA-lGH.js} +1 -1
- package/dist/{ClosingDraftView-CnWFyWSE.js → ClosingDraftView-Ca_SvdWQ.js} +748 -746
- package/dist/{ClosingHistoryView-Bkm0voU6.js → ClosingHistoryView-DzkeJYoe.js} +7 -7
- package/dist/{ClosingTemplateView-Bz81JTsg.js → ClosingTemplateView-DSrelbso.js} +22 -21
- package/dist/{CustomPrintTemplatePreview.vue_vue_type_script_setup_true_lang-6s-24euf.js → CustomPrintTemplatePreview.vue_vue_type_script_setup_true_lang-BuOuXPy1.js} +1 -1
- package/dist/{DefaultView-1RRzbPB3.js → DefaultView-Dw-7Y8vD.js} +2 -2
- package/dist/{DeliveryOrderPrintPreview-KcLqjOj1.js → DeliveryOrderPrintPreview-C5qJsv_O.js} +15 -15
- package/dist/{EmailDialog.vue_vue_type_script_setup_true_lang-r0Q0qhoK.js → EmailDialog.vue_vue_type_script_setup_true_lang-D8od7aKT.js} +9847 -9723
- package/dist/{FeatureCapabilityBadge.vue_vue_type_script_setup_true_lang-Cwmk3NLS.js → FeatureCapabilityBadge.vue_vue_type_script_setup_true_lang-ChekXW32.js} +11 -10
- package/dist/FeatureCapabilityGate-C-IM5_7n.js +82 -0
- package/dist/FeaturePageGate.vue_vue_type_script_setup_true_lang-DEDU1XUC.js +189 -0
- package/dist/{FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-pzIzIWpX.js → FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-B861gqIJ.js} +1 -1
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-B6cFB4vX.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-Ckli_nZx.js} +2 -2
- package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-D_o6pX9i.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-BEjFoMJJ.js} +2 -2
- package/dist/{FmMultiselectDialog-CC_Na_p1.js → FmMultiselectDialog-CShFKSIW.js} +2 -2
- package/dist/{FmMultiselectDialog-D0GhmOQ9.js → FmMultiselectDialog-Ci-6NMsV.js} +2 -2
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-DQlSMRoB.js → FmUnitInput.vue_vue_type_script_setup_true_lang-Dkx5vVap.js} +105 -99
- package/dist/ImportView-7ij7RUHI.js +1540 -0
- package/dist/{IngredientsView-B2I2OPSb.js → IngredientsView-fIPtTyFD.js} +367 -365
- package/dist/{IntegrationExplorerView-WK1EmwLA.js → IntegrationExplorerView-DLYT4T-I.js} +1537 -1620
- package/dist/IntegrationPlatformView-CwywuK_y.js +13385 -0
- package/dist/{IntegrationView-CeaL92Yj.js → IntegrationView-DnyVHXge.js} +2380 -2340
- package/dist/{InventoryBindingForm-DgtaDM0I.js → InventoryBindingForm-BBs8v7CL.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-CqDN355J.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang--pI5wz_M.js} +134 -134
- package/dist/{InventoryBindingSummary-C_W456aj.js → InventoryBindingSummary-CwIrQ8lG.js} +1 -1
- package/dist/JsonViewer.vue_vue_type_script_setup_true_lang-C_hg75l0.js +25 -0
- package/dist/NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DJSbskyn.js +79 -0
- package/dist/PlanTierBadge.vue_vue_type_script_setup_true_lang-CM3gtYZo.js +19 -0
- package/dist/{PlanUpgradeDialog.vue_vue_type_script_setup_true_lang-D6-lo7iI.js → PlanUpgradeDialog.vue_vue_type_script_setup_true_lang-0F-yOcPC.js} +1 -1
- package/dist/PremiumUpgradePage.vue_vue_type_script_setup_true_lang-DGAxPOEh.js +58 -0
- package/dist/ProductionRunDetailPage-C_WC4qfP.js +2317 -0
- package/dist/{ProductionRunLifecycleDialogs.vue_vue_type_script_setup_true_lang-DwBY6gIb.js → ProductionRunLifecycleDialogs.vue_vue_type_script_setup_true_lang-BIkoMOM2.js} +3051 -3161
- package/dist/ProductionRunPage-DuzVrjbZ.js +954 -0
- package/dist/{PublishView-Dv-W6ntx.js → PublishView-BVg44yke.js} +3 -3
- package/dist/{PurchaseOrderPrintPreview-D1TAnJd_.js → PurchaseOrderPrintPreview-CNx6unyj.js} +17 -17
- package/dist/{ReceiveRequestView-Rc_uw_Ad.js → ReceiveRequestView-DeNrYOUt.js} +17 -16
- package/dist/RecipeView-De3pLsPR.js +3272 -0
- package/dist/{SettingsView-K5wAt8oo.js → SettingsView-B5ud0KtI.js} +398 -425
- package/dist/StockView-4N3NRjY8.js +3003 -0
- package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-CsRLy0xI.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-DvlRRKdt.js} +1 -1
- package/dist/{SupplierView-CLVupRN0.js → SupplierView-fC9oe5nu.js} +21 -20
- package/dist/{SurchargeView-CToB_z5v.js → SurchargeView-H6rv7u8A.js} +7 -7
- package/dist/{SystemTrailDialog.vue_vue_type_script_setup_true_lang-CvqIw9q6.js → SystemTrailDialog.vue_vue_type_script_setup_true_lang-DFdrmR2Z.js} +2 -2
- package/dist/TableActionableRow.vue_vue_type_script_setup_true_lang-gJQQKKAC.js +71 -0
- package/dist/TemplatePublishDialog.vue_vue_type_script_setup_true_lang-BivHE94R.js +332 -0
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-Df01LqHp.js +4953 -0
- package/dist/TransferTemplateView-CVUnofkI.js +2347 -0
- package/dist/{UnitCostHistoryView-BMB2MeTh.js → UnitCostHistoryView-DjD2WAFI.js} +4 -4
- package/dist/{UnitDisplayControl.vue_vue_type_script_setup_true_lang-Dn8Y8zfp.js → UnitDisplayControl.vue_vue_type_script_setup_true_lang-CE0zHU6c.js} +4 -4
- package/dist/{UnitView-Bl8jws6R.js → UnitView-DCfsbE8e.js} +111 -106
- package/dist/{WarehouseView-BurSM1jg.js → WarehouseView-BCebmbcj.js} +12 -11
- package/dist/{WastageTemplateView-DRfJ9LGR.js → WastageTemplateView-BXYNMBun.js} +19 -18
- package/dist/api/bill.d.ts +4 -2
- package/dist/api/bill.spec.d.ts +1 -0
- package/dist/api/closing.d.ts +1 -0
- package/dist/api/feature-flags.d.ts +2 -0
- package/dist/api/integration-sync-log.d.ts +0 -13
- package/dist/api/inventory.d.ts +9 -9
- package/dist/api/license.d.ts +0 -1
- package/dist/api/netsuite-explorer.d.ts +1 -0
- package/dist/api/stock.d.ts +1 -1
- package/dist/{app-Duum3eHx.js → app-VtVYHCDF.js} +9785 -9546
- package/dist/app.d.ts +151 -14
- package/dist/app.js +1 -1
- package/dist/bulk-edit-simulation.helper-Nd6CtWGf.js +178 -0
- package/dist/{closing-template-BE41yfue.js → closing-template-LCe0U9w9.js} +4 -4
- package/dist/components/FeatureCapabilityGate.vue.d.ts +3 -0
- package/dist/components/FeatureGateLayout.vue.d.ts +11 -0
- package/dist/components/FeaturePageGate.spec.d.ts +1 -0
- package/dist/components/FeaturePageGate.vue.d.ts +34 -0
- package/dist/components/FmAdminCollapsiblePanel.vue.d.ts +1 -1
- package/dist/components/FmDroppableField.vue.d.ts +1 -1
- package/dist/components/FmInventoryTableToolbar.vue.d.ts +2 -2
- package/dist/components/FmUnitInputProps.d.ts +1 -0
- package/dist/components/FmUnitInputRules.d.ts +1 -1
- package/dist/components/HrmPermissionGuard.vue.d.ts +1 -1
- package/dist/components/MultiLocationSelector.vue.d.ts +6 -6
- package/dist/components/NumberPrecisionInput.spec.d.ts +1 -0
- package/dist/components/PremiumUpgradePage.vue.d.ts +2 -0
- package/dist/components/TemplatePublishDialog.d.ts +2 -0
- package/dist/components/TemplatePublishDialog.spec.d.ts +1 -0
- package/dist/composable/defineApi.d.ts +1 -1
- package/dist/{date2-DrhO3BxU.js → date2-Cfb6DXM4.js} +1 -1
- package/dist/{dayjs.min-CQp6EpOp.js → dayjs.min-BOndKK7B.js} +1 -1
- package/dist/{decimal-Cq0qUT4r.js → decimal-nbuisP61.js} +2 -2
- package/dist/{defineDeepModel-DRC39nJs.js → defineDeepModel-DKySrdwp.js} +5 -5
- package/dist/{duplicate-template-j2ymeDNH.js → duplicate-template-BxcKb3Jp.js} +1 -1
- package/dist/{feature-C0hQza5A.js → feature-VDUlSvM1.js} +435 -359
- package/dist/feature-flags/core.d.ts +1 -0
- package/dist/feature-flags/vue.d.ts +22 -1
- package/dist/{format-time-from-id-BmJoI3jT.js → format-time-from-id-CfVH4LZ_.js} +1 -1
- package/dist/{format-unit-display-CRgIMXsD.js → format-unit-display-BjTeAtgS.js} +209 -208
- package/dist/helper/country.spec.d.ts +1 -0
- package/dist/helper/menu-usage-module.d.ts +2 -1
- package/dist/helper/number.d.ts +5 -1
- package/dist/helper/rules.d.ts +1 -1
- package/dist/{id-to-date-CuFZDvIr.js → id-to-date-Jr9SlHLO.js} +1 -1
- package/dist/{import-export.helper-B43zbsbj.js → import-export.helper-FT9Wbigh.js} +17 -17
- package/dist/{index-BYDjs08n.js → index-BV9b3Ulp.js} +2234 -2163
- package/dist/{index-DXNYZeq3.js → index-By5-VjVg.js} +1 -1
- package/dist/{JsonViewer.vue_vue_type_script_setup_true_lang-ig2zSXAB.js → index-C25C1Dg7.js} +1074 -1066
- package/dist/{index-Cwvg7EHd.js → index-DXHVgUHU.js} +3 -3
- package/dist/index-eGvSlWMU.js +1892 -0
- package/dist/layout/SingleColumnLayout.vue.d.ts +1 -1
- package/dist/{lz-string-6DgW1cPF.js → lz-string-BAzqO9xf.js} +1 -1
- package/dist/menu-usage-module-Bq_KLsO4.js +74 -0
- package/dist/{netsuite-BSpmyaE1.js → netsuite-BhGuduqd.js} +254 -263
- package/dist/netsuite-explorer-9Qj7qAum.js +79 -0
- package/dist/{predefined-templates-C0jtb4T7.js → predefined-templates-BlRafgnc.js} +1 -1
- package/dist/production-run-list-DR1WsaBR.js +61 -0
- package/dist/{purchase-order-template-B5Pjddfi.js → purchase-order-template-By_Zxu1b.js} +1 -1
- package/dist/{recalculationUtils-DtJWwWSj.js → recalculationUtils-VsBar7jB.js} +1 -1
- package/dist/router/name.d.ts +2 -1
- package/dist/{row-action.enum-BDDJNSi0.js → row-action.enum-76yLYmPA.js} +1 -1
- package/dist/rules-fOcvgt4t.js +243 -0
- package/dist/{stock-BKMDvf5S.js → stock-C-dQaxY2.js} +1 -1
- package/dist/stock-Dh0KXA1P.js +78 -0
- package/dist/stores/feature.d.ts +26 -2
- package/dist/stores/feature.load-state.spec.d.ts +1 -0
- package/dist/stores/integration/netsuite.d.ts +2 -2
- package/dist/stores/inventory.no-location.spec.d.ts +1 -0
- package/dist/stores/location.d.ts +42 -42
- package/dist/stores/supplier.d.ts +48 -48
- package/dist/stores/warehouse.d.ts +2 -2
- package/dist/style.css +1 -1
- package/dist/{supplier-Cv8HRNou.js → supplier-XHHHN8vZ.js} +2 -2
- package/dist/{surcharge-ktE1pRyy.js → surcharge-0-oBiYoF.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{uom-rules-DCnXmEkb.js → uom-rules-DrRuSFgM.js} +1 -1
- package/dist/{use-ingredient-select-dialog-CYUUVrCI.js → use-ingredient-select-dialog-mQ7aQChK.js} +2 -2
- package/dist/{use-inventory-binding-dialog-Dugj9i-6.js → use-inventory-binding-dialog-5Wu0ItnH.js} +2 -2
- package/dist/{use-template-enabled-locations-BlZ7WAqX.js → use-template-enabled-locations-CgpPMl8g.js} +2 -2
- package/dist/{use-transfer-locations-CUDFnsVH.js → use-transfer-locations-DZ6B7eMT.js} +14 -14
- package/dist/{useHrmPermission-BOwmXi9H.js → useHrmPermission-BaGxz4EV.js} +1 -1
- package/dist/{useNavigationMenu-CbNKFBwx.js → useNavigationMenu-CyP39v3U.js} +39 -39
- package/dist/{useSseClient-CdyQh47h.js → useSseClient-CaD4MVg0.js} +1 -1
- package/dist/views/adjustment-template/wastage-template/actions.d.ts +36 -36
- package/dist/views/adjustment-template/wastage-template/table.d.ts +36 -36
- package/dist/views/changelog/composables/use-snapshot-diff.d.ts +2 -2
- package/dist/views/closing-draft/components/closing-draft-dialog/ClosingDraftApprovalDialog.vue.d.ts +6 -6
- package/dist/views/closing-draft/components/closing-draft-dialog/ClosingDraftDialog.vue.d.ts +12 -12
- package/dist/views/closing-draft/components/closing-draft-groups/ClosingGroupDetailSideSheet.vue.d.ts +6 -6
- package/dist/views/closing-draft/composables/use-closing-draft-import.d.ts +3 -3
- package/dist/views/closing-draft/composables/use-closing-draft-table.d.ts +19 -19
- package/dist/views/closing-draft/helpers/draft-status-to-class-name.helper.d.ts +1 -1
- package/dist/views/closing-template/composables/use-closing-template-actions.d.ts +45 -45
- package/dist/views/closing-template/composables/use-closing-template-table.d.ts +36 -36
- package/dist/views/import/helper/submit-rows.d.ts +1 -1
- package/dist/views/ingredients/components/inventory-binding/recipe-amount-validation.spec.d.ts +1 -0
- package/dist/views/ingredients/helper/is-linked-ingredient-error.d.ts +3 -1
- package/dist/views/integration/IntegrationPlatformView.vue.d.ts +24 -0
- package/dist/views/integration/components/IntegrationCard.vue.d.ts +3 -3
- package/dist/views/integration/components/Synergy/importFn.spec.d.ts +1 -0
- package/dist/views/integration/components/Xilnex/importFn.spec.d.ts +1 -0
- package/dist/views/integration/components/netsuite/business/AddLocationDialog.vue.d.ts +36 -36
- package/dist/views/integration/components/netsuite/business/AddVendorDialog.vue.d.ts +24 -24
- package/dist/views/integration/helper/opening-balance.d.ts +22 -0
- package/dist/views/integration/helper/opening-balance.spec.d.ts +1 -0
- package/dist/views/production-run/ProductionRunDetailPage.spec.d.ts +1 -0
- package/dist/views/{integration/components/IntegrationSyncLogTab.vue.d.ts → production-run/ProductionRunDetailPage.vue.d.ts} +2 -2
- package/dist/views/production-run/ProductionRunPage.vue.d.ts +2 -0
- package/dist/views/production-run/features/detail/ProductionRunItemsTable.vue.d.ts +2 -2
- package/dist/views/production-run/features/detail/ProductionRunOverviewTab.vue.d.ts +4 -4
- package/dist/views/production-run/features/detail/use-production-run-detail.d.ts +19 -9
- package/dist/views/production-run/features/lifecycle/CancelRunDialog.vue.d.ts +4 -4
- package/dist/views/production-run/features/lifecycle/CloseRunDialog.vue.d.ts +4 -4
- package/dist/views/production-run/features/lifecycle/ProductionRunLifecycleDialogs.vue.d.ts +14 -14
- package/dist/views/production-run/features/lifecycle/TargetReachedDialog.vue.d.ts +4 -4
- package/dist/views/production-run/features/planning/ProductionRunFormDialog.vue.d.ts +4 -4
- package/dist/views/production-run/features/planning/ProductionRunPlanner.vue.d.ts +1 -1
- package/dist/views/production-run/features/planning/use-production-run-duplicate-sources.d.ts +6 -6
- package/dist/views/production-run/shared/helpers/production-run-navigation.d.ts +0 -1
- package/dist/views/production-run/shared/model/production-run-list.d.ts +1 -1
- package/dist/views/production-run/shared/ui/ProductionRunInfoBadge.vue.d.ts +1 -1
- package/dist/views/production-run/shared/ui/ProductionRunInfoText.vue.d.ts +1 -1
- package/dist/views/production-run/shared/ui/ProductionRunScrollHint.vue.d.ts +2 -2
- package/dist/views/production-run/shared/ui/ProductionRunTextarea.vue.d.ts +3 -3
- package/dist/views/receive-request/components/transfer-form/TransferFormWithController.vue.d.ts +5 -5
- package/dist/views/receive-request/composables/netsuite-order-label.d.ts +11 -0
- package/dist/views/receive-request/composables/netsuite-order-label.spec.d.ts +1 -0
- package/dist/views/receive-request/composables/use-process-purchase-order.d.ts +6 -6
- package/dist/views/receive-request/composables/use-receive-request-form.d.ts +48 -48
- package/dist/views/receive-request/composables/use-receive-request-form.spec.d.ts +1 -0
- package/dist/views/receive-request/composables/use-receive-request-table.d.ts +42 -42
- package/dist/views/receive-request/import/export.spec.d.ts +1 -0
- package/dist/views/receive-request-bulk/BulkReceiveRequestPage.vue.d.ts +2 -0
- package/dist/views/receive-request-bulk/components/CreateTransferWizard.spec.d.ts +1 -0
- package/dist/views/receive-request-bulk/composables/use-bulk-receive-request-form.d.ts +54 -54
- package/dist/views/receive-request-bulk/composables/use-bulk-receive-request-form.readiness.spec.d.ts +1 -0
- package/dist/views/receive-request-bulk/composables/use-bulk-receive-request-table.d.ts +8 -8
- package/dist/views/recipe/components/recipe-bulk-editor/components/ModificationCard.spec.d.ts +1 -0
- package/dist/views/recipe/helper/import-recipe.d.ts +30 -0
- package/dist/views/recipe/helper/import-recipe.spec.d.ts +1 -0
- package/dist/views/settings/PlanLicenseDisplay.vue.d.ts +1 -14
- package/dist/views/stock/components/StockRecordCard.spec.d.ts +1 -0
- package/dist/views/stock/components/StockRecordCard.vue.d.ts +19 -865
- package/dist/views/stock/components/dialog/AmendAdjustmentForm.spec.d.ts +1 -0
- package/dist/views/stock/components/dialog/BillInventoryInfoDialog.spec.d.ts +1 -0
- package/dist/views/stock/components/dialog/BillInventoryInfoDialog.vue.d.ts +36 -0
- package/dist/views/stock/components/dialog/ConvertSkuDialog.spec.d.ts +1 -0
- package/dist/views/stock/composables/use-last-closing-summary.d.ts +4 -0
- package/dist/views/stock/composables/use-last-closing-summary.spec.d.ts +1 -0
- package/dist/views/supplier/components/SupplierForm.vue.d.ts +4 -4
- package/dist/views/supplier/composables/use-supplier-table.d.ts +2 -2
- package/dist/views/transfer-template/components/transfer-template-dialog/TransferTemplateDialog.vue.d.ts +8 -8
- package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-locations.d.ts +4 -4
- package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-template-items.spec.d.ts +1 -0
- package/dist/views/transfer-template/composables/use-template-item-bulk-editor.d.ts +24 -24
- package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +48 -48
- package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +48 -48
- package/dist/views/transfer-template/helpers/template-item.error.helper.spec.d.ts +1 -0
- package/dist/views/unit/composables/use-unit-form.spec.d.ts +1 -0
- package/dist/views/warehouse/components/WarehouseForm.vue.d.ts +4 -4
- package/dist/{PlanTierBadge.vue_vue_type_script_setup_true_lang-BSR_nyHY.js → vue-KHCpiw_e.js} +101 -80
- package/dist/{vue-i18n-dSKy66Jh.js → vue-i18n-D6btLtve.js} +513 -513
- package/dist/{xlsx.util-pjzuMquw.js → xlsx.util-Dr5i_LBa.js} +2 -2
- package/package.json +71 -66
- package/dist/BulkReceiveRequestView-Lakk8011.js +0 -2656
- package/dist/FeatureCapabilityGate-C6t1VwKD.js +0 -74
- package/dist/ImportView-DCcdEvy4.js +0 -1291
- package/dist/NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BMDjCk9T.js +0 -72
- package/dist/ProductionRunDetailView-C9rxLBbL.js +0 -2312
- package/dist/ProductionRunView-DvMdVGz1.js +0 -930
- package/dist/RecipeView-ByUaGc4w.js +0 -3428
- package/dist/StockView-B3EjdjVx.js +0 -2615
- package/dist/TableActionableRow.vue_vue_type_script_setup_true_lang-DAMpuZ1X.js +0 -84
- package/dist/TemplatePublishDialog.vue_vue_type_script_setup_true_lang-BGPuaJlU.js +0 -299
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-8ydaQEw-.js +0 -4836
- package/dist/TransferTemplateView-BnfALwmw.js +0 -2326
- package/dist/menu-usage-module-BdjYEk3s.js +0 -57
- package/dist/number-5ZeFx-wN.js +0 -138
- package/dist/rules-CinZKpvV.js +0 -98
- package/dist/stock-1n-4iyqz.js +0 -75
- package/dist/views/integration/composables/use-integration-sync-log.d.ts +0 -45
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { ref as x, defineComponent as Q, computed as h, resolveComponent as U, createElementBlock as _, openBlock as d, createVNode as g, withModifiers as se, withCtx as $, createElementVNode as t, createCommentVNode as L, toDisplayString as a, unref as r, Fragment as O, createBlock as M, createTextVNode as H, renderList as ne, normalizeClass as E, normalizeStyle as ae, Teleport as X } from "vue";
|
|
2
2
|
import { u as le, _ as re } from "./SingleColumnLayout.vue_vue_type_script_setup_true_lang-DpwneGOV.js";
|
|
3
|
-
import { d as ie, u as J, a as Z } from "./app-
|
|
3
|
+
import { d as ie, u as J, a as Z } from "./app-VtVYHCDF.js";
|
|
4
4
|
import { useSnackbar as q, useBreakpoints as ce } from "@feedmepos/ui-library";
|
|
5
|
-
import { _ as ue } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-
|
|
5
|
+
import { _ as ue } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-BEjFoMJJ.js";
|
|
6
6
|
import { useCoreStore as ee, useI18n as te } from "@feedmepos/mf-common";
|
|
7
|
-
import { c as Y } from "./date2-
|
|
8
|
-
import { d as j } from "./
|
|
7
|
+
import { c as Y } from "./date2-Cfb6DXM4.js";
|
|
8
|
+
import { d as j } from "./rules-fOcvgt4t.js";
|
|
9
9
|
import { F as de } from "./FmAdminBadge-DlplQOHb.js";
|
|
10
10
|
import { P as me, J as fe } from "./app-C39bYJmq.js";
|
|
11
11
|
const oe = ie((D, C) => {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent as U, ref as _, computed as g, resolveComponent as p, createBlock as v, openBlock as f, withCtx as b, createElementBlock as F, Fragment as h, renderList as E, createElementVNode as k, normalizeClass as I, createVNode as $, toDisplayString as N, unref as x } from "vue";
|
|
2
|
-
import { g as m } from "./decimal-
|
|
3
|
-
import { d as w } from "./dayjs.min-
|
|
4
|
-
import { u as d, e as B, w as L } from "./xlsx.util-
|
|
5
|
-
import { u as Y } from "./app-
|
|
2
|
+
import { g as m } from "./decimal-nbuisP61.js";
|
|
3
|
+
import { d as w } from "./dayjs.min-BOndKK7B.js";
|
|
4
|
+
import { u as d, e as B, w as L } from "./xlsx.util-Dr5i_LBa.js";
|
|
5
|
+
import { u as Y } from "./app-VtVYHCDF.js";
|
|
6
6
|
function O(a, o) {
|
|
7
7
|
return o.map((t) => typeof t.selector == "function" ? t.selector(a) : a[t.selector]);
|
|
8
8
|
}
|
|
@@ -1,48 +1,48 @@
|
|
|
1
|
-
import { defineComponent as W, computed as b, createElementBlock as F, openBlock as y, createElementVNode as l, createCommentVNode as K, Fragment as G, renderList as O, toDisplayString as U, ref as D, watch as ne, resolveComponent as I, createBlock as P, withCtx as M, createVNode as x, unref as s, isRef as le, normalizeClass as
|
|
2
|
-
import { a as Y, S as
|
|
3
|
-
import { useDialog as
|
|
4
|
-
import { i as he, _ as Ve, m as Ue } from "./menu-usage-module-
|
|
1
|
+
import { defineComponent as W, computed as b, createElementBlock as F, openBlock as y, createElementVNode as l, createCommentVNode as K, Fragment as G, renderList as O, toDisplayString as U, ref as D, watch as ne, resolveComponent as I, createBlock as P, withCtx as M, createVNode as x, unref as s, isRef as le, normalizeClass as pe, normalizeStyle as ve, Teleport as fe, normalizeProps as ye, guardReactiveProps as be } from "vue";
|
|
2
|
+
import { a as Y, S as ge, c as ue, s as se, j as ae, u as xe } from "./app-VtVYHCDF.js";
|
|
3
|
+
import { useDialog as de, useSnackbar as Z, useProxiedModel as re, useBreakpoints as _e } from "@feedmepos/ui-library";
|
|
4
|
+
import { i as he, _ as Ve, m as Ue } from "./menu-usage-module-Bq_KLsO4.js";
|
|
5
5
|
import { F as C } from "./form-mode.enum-BKiNVH6A.js";
|
|
6
6
|
import { defineStore as we, storeToRefs as Se } from "pinia";
|
|
7
|
-
import { D as
|
|
7
|
+
import { D as ie, R as q } from "./row-action.enum-76yLYmPA.js";
|
|
8
8
|
import { c as Ce } from "./component-BmLAdDiY.js";
|
|
9
9
|
import { useI18n as J } from "@feedmepos/mf-common";
|
|
10
10
|
import { u as Fe, _ as ke } from "./SingleColumnLayout.vue_vue_type_script_setup_true_lang-DpwneGOV.js";
|
|
11
|
-
import { R as H, A as Ee,
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import { _ as
|
|
18
|
-
const
|
|
11
|
+
import { R as H, A as Ee, a as Q, f as $e } from "./rules-fOcvgt4t.js";
|
|
12
|
+
import { F as Ie } from "./decimal-nbuisP61.js";
|
|
13
|
+
import { _ as De } from "./NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DJSbskyn.js";
|
|
14
|
+
import { u as me } from "./netsuite-BhGuduqd.js";
|
|
15
|
+
import { _ as Re } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-gJQQKKAC.js";
|
|
16
|
+
import { F as Ae } from "./index-eGvSlWMU.js";
|
|
17
|
+
import { _ as Me } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-BEjFoMJJ.js";
|
|
18
|
+
const Pe = { class: "flex flex-col gap-8" }, Te = {
|
|
19
19
|
key: 0,
|
|
20
20
|
class: "flex flex-col"
|
|
21
|
-
},
|
|
21
|
+
}, Be = { class: "flex-1 py-8 px-16" }, Ne = {
|
|
22
22
|
class: "flex-0 py-8 px-16",
|
|
23
23
|
style: { "flex-basis": "240px" }
|
|
24
|
-
},
|
|
24
|
+
}, Le = {
|
|
25
25
|
key: 1,
|
|
26
26
|
class: "flex flex-col"
|
|
27
|
-
},
|
|
27
|
+
}, ze = { class: "flex-1 py-8 px-16" }, je = {
|
|
28
28
|
class: "flex-0 py-8 px-16",
|
|
29
29
|
style: { "flex-basis": "240px" }
|
|
30
|
-
},
|
|
30
|
+
}, qe = {
|
|
31
31
|
key: 2,
|
|
32
32
|
class: "flex flex-col"
|
|
33
|
-
},
|
|
33
|
+
}, He = { class: "flex-1 py-8 px-16" }, Ke = {
|
|
34
34
|
class: "flex-0 py-8 px-16",
|
|
35
35
|
style: { "flex-basis": "240px" }
|
|
36
|
-
},
|
|
36
|
+
}, Ge = /* @__PURE__ */ W({
|
|
37
37
|
__name: "UnitUsedBy",
|
|
38
38
|
props: {
|
|
39
39
|
unit: {}
|
|
40
40
|
},
|
|
41
41
|
setup(k) {
|
|
42
42
|
const p = k, _ = Y(), v = b(() => _.validateUnitUsage(p.unit)), d = b(() => v.value.filter((t) => t.from === "INGREDIENT")), n = b(() => v.value.filter((t) => t.from === "RECIPE")), c = b(() => v.value.filter((t) => t.from === "MENU"));
|
|
43
|
-
return (t, f) => (y(), F("div",
|
|
43
|
+
return (t, f) => (y(), F("div", Pe, [
|
|
44
44
|
f[3] || (f[3] = l("div", { class: "fm-typo-en-body-md-400" }, "Sorry, this unit is used in the following modules:", -1)),
|
|
45
|
-
d.value.length ? (y(), F("div",
|
|
45
|
+
d.value.length ? (y(), F("div", Te, [
|
|
46
46
|
f[0] || (f[0] = l("div", { 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" }, [
|
|
47
47
|
l("div", { class: "flex-1 py-8 px-16" }, "Ingredient"),
|
|
48
48
|
l("div", {
|
|
@@ -56,12 +56,12 @@ const Te = { class: "flex flex-col gap-8" }, Be = {
|
|
|
56
56
|
key: a.code,
|
|
57
57
|
class: "flex flex-row fm-typo-en-body-md-400 h-48 items-center border-b border-b-fm-color-neutral-gray-100"
|
|
58
58
|
}, [
|
|
59
|
-
l("div",
|
|
60
|
-
l("div",
|
|
59
|
+
l("div", Be, U(a.code) + " " + U(a.name), 1),
|
|
60
|
+
l("div", Ne, U((o = a.bindedIngredient) != null && o.length ? "Convert binding" : "Item unit"), 1)
|
|
61
61
|
]);
|
|
62
62
|
}), 128))
|
|
63
63
|
])) : K("", !0),
|
|
64
|
-
n.value.length ? (y(), F("div",
|
|
64
|
+
n.value.length ? (y(), F("div", Le, [
|
|
65
65
|
f[1] || (f[1] = l("div", { 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" }, [
|
|
66
66
|
l("div", { class: "flex-1 py-8 px-16" }, "Recipe"),
|
|
67
67
|
l("div", {
|
|
@@ -75,12 +75,12 @@ const Te = { class: "flex flex-col gap-8" }, Be = {
|
|
|
75
75
|
key: a.code,
|
|
76
76
|
class: "flex flex-row fm-typo-en-body-md-400 h-48 items-center border-b border-b-fm-color-neutral-gray-100"
|
|
77
77
|
}, [
|
|
78
|
-
l("div",
|
|
79
|
-
l("div",
|
|
78
|
+
l("div", ze, U(a.code) + " " + U(a.name), 1),
|
|
79
|
+
l("div", je, U((o = a.bindedIngredient) == null ? void 0 : o.slice(0, 3).map((w) => w.code).join(", ")) + " " + U(a.bindedIngredient && ((r = a.bindedIngredient) == null ? void 0 : r.length) > 3 ? `and ${((m = a.bindedIngredient) == null ? void 0 : m.length) - 3} more` : ""), 1)
|
|
80
80
|
]);
|
|
81
81
|
}), 128))
|
|
82
82
|
])) : K("", !0),
|
|
83
|
-
c.value.length ? (y(), F("div",
|
|
83
|
+
c.value.length ? (y(), F("div", qe, [
|
|
84
84
|
f[2] || (f[2] = l("div", { 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" }, [
|
|
85
85
|
l("div", { class: "flex-1 py-8 px-16" }, "Menu"),
|
|
86
86
|
l("div", {
|
|
@@ -94,15 +94,15 @@ const Te = { class: "flex flex-col gap-8" }, Be = {
|
|
|
94
94
|
key: a.code,
|
|
95
95
|
class: "flex flex-row fm-typo-en-body-md-400 h-48 items-center border-b border-b-fm-color-neutral-gray-100"
|
|
96
96
|
}, [
|
|
97
|
-
l("div",
|
|
98
|
-
l("div",
|
|
97
|
+
l("div", He, U(a.code) + " " + U(a.name), 1),
|
|
98
|
+
l("div", Ke, U((o = a.bindedIngredient) == null ? void 0 : o.slice(0, 3).map((w) => w.code).join(", ")) + " " + U(a.bindedIngredient && ((r = a.bindedIngredient) == null ? void 0 : r.length) > 3 ? `and ${((m = a.bindedIngredient) == null ? void 0 : m.length) - 3} more` : ""), 1)
|
|
99
99
|
]);
|
|
100
100
|
}), 128))
|
|
101
101
|
])) : K("", !0)
|
|
102
102
|
]));
|
|
103
103
|
}
|
|
104
104
|
}), X = we("unitForm", function() {
|
|
105
|
-
const p =
|
|
105
|
+
const p = de(), _ = Z(), v = Y(), d = D(!1), n = D();
|
|
106
106
|
function c() {
|
|
107
107
|
const o = {
|
|
108
108
|
unit: {},
|
|
@@ -134,28 +134,33 @@ const Te = { class: "flex flex-col gap-8" }, Be = {
|
|
|
134
134
|
type: "success"
|
|
135
135
|
});
|
|
136
136
|
} catch (r) {
|
|
137
|
-
r instanceof
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
137
|
+
if (r instanceof ge && he(r)) {
|
|
138
|
+
p.open({
|
|
139
|
+
title: "Cannot delete unit",
|
|
140
|
+
contentComponent: Ve,
|
|
141
|
+
contentComponentProps: {
|
|
142
|
+
subject: (o == null ? void 0 : o.name) ?? "",
|
|
143
|
+
items: r.errorResponse.errors.map((m) => {
|
|
144
|
+
var w;
|
|
145
|
+
return {
|
|
146
|
+
chain: [
|
|
147
|
+
{
|
|
148
|
+
itemName: m.name,
|
|
149
|
+
moduleKey: (w = m.message) != null && w.startsWith("modules.") ? Ue(m.message) : m.module
|
|
150
|
+
}
|
|
151
|
+
]
|
|
152
|
+
};
|
|
153
|
+
})
|
|
154
|
+
},
|
|
155
|
+
secondaryActions: {
|
|
156
|
+
text: "Close",
|
|
157
|
+
close: !0
|
|
158
|
+
}
|
|
159
|
+
});
|
|
160
|
+
return;
|
|
161
|
+
} else
|
|
162
|
+
console.log("unable to delete unit", r);
|
|
163
|
+
_.open({
|
|
159
164
|
title: `Cannot delete ${o.name}`,
|
|
160
165
|
message: "Please try again.",
|
|
161
166
|
type: "error"
|
|
@@ -171,7 +176,7 @@ const Te = { class: "flex flex-col gap-8" }, Be = {
|
|
|
171
176
|
overlay: !0,
|
|
172
177
|
dismissAway: !0,
|
|
173
178
|
closeButton: !0,
|
|
174
|
-
contentComponent:
|
|
179
|
+
contentComponent: Ge,
|
|
175
180
|
contentComponentProps: {
|
|
176
181
|
unit: o
|
|
177
182
|
},
|
|
@@ -205,10 +210,10 @@ const Te = { class: "flex flex-col gap-8" }, Be = {
|
|
|
205
210
|
unitViewLoading: d
|
|
206
211
|
};
|
|
207
212
|
});
|
|
208
|
-
function
|
|
213
|
+
function Oe() {
|
|
209
214
|
const { updateUnit: k, deleteUnit: p } = X(), { t: _ } = J();
|
|
210
215
|
async function v(n, c) {
|
|
211
|
-
const t =
|
|
216
|
+
const t = ue(c);
|
|
212
217
|
if (n === q.Edit) {
|
|
213
218
|
await k(t);
|
|
214
219
|
return;
|
|
@@ -236,7 +241,7 @@ function We() {
|
|
|
236
241
|
header: "",
|
|
237
242
|
cell(n) {
|
|
238
243
|
return Ce(
|
|
239
|
-
[
|
|
244
|
+
[ie[q.Edit], ie[q.Delete]],
|
|
240
245
|
(c) => {
|
|
241
246
|
v(c, n.row.original);
|
|
242
247
|
}
|
|
@@ -251,7 +256,7 @@ function We() {
|
|
|
251
256
|
}
|
|
252
257
|
] };
|
|
253
258
|
}
|
|
254
|
-
const
|
|
259
|
+
const We = { class: "flex flex-col gap-24" }, Ye = { class: "flex gap-24" }, Je = { class: "flex-1" }, Qe = { class: "flex-1" }, Xe = { class: "flex" }, Ze = { class: "flex items-center" }, et = { class: "fm-typo-en-body-lg-600 flex-grow" }, tt = { class: "flex flex-col gap-24" }, ot = { class: "flex gap-24" }, nt = { class: "flex-1" }, lt = { class: "flex-1" }, st = /* @__PURE__ */ W({
|
|
255
260
|
__name: "UnitForm",
|
|
256
261
|
props: {
|
|
257
262
|
mode: {},
|
|
@@ -310,7 +315,7 @@ const Ye = { class: "flex flex-col gap-24" }, Je = { class: "flex gap-24" }, Qe
|
|
|
310
315
|
if (typeof e == "number" && !isNaN(e)) {
|
|
311
316
|
const u = r.value.map((i) => ({
|
|
312
317
|
...i,
|
|
313
|
-
conversion:
|
|
318
|
+
conversion: se.convertPrecision({
|
|
314
319
|
value: i.conversion,
|
|
315
320
|
precision: e
|
|
316
321
|
})
|
|
@@ -354,7 +359,7 @@ const Ye = { class: "flex flex-col gap-24" }, Je = { class: "flex gap-24" }, Qe
|
|
|
354
359
|
(u = (e = $.value) == null ? void 0 : e.resetInputs) == null || u.call(e);
|
|
355
360
|
}
|
|
356
361
|
}), (e, u) => {
|
|
357
|
-
const i = I("FmTextField"), g = I("FmStepperField"),
|
|
362
|
+
const i = I("FmTextField"), g = I("FmStepperField"), R = I("FmButton"), A = I("FmCard"), S = I("FmForm");
|
|
358
363
|
return y(), P(S, {
|
|
359
364
|
ref_key: "formRef",
|
|
360
365
|
ref: $,
|
|
@@ -364,9 +369,9 @@ const Ye = { class: "flex flex-col gap-24" }, Je = { class: "flex gap-24" }, Qe
|
|
|
364
369
|
default: M(() => {
|
|
365
370
|
var B;
|
|
366
371
|
return [
|
|
367
|
-
l("div",
|
|
368
|
-
l("div",
|
|
369
|
-
l("div",
|
|
372
|
+
l("div", We, [
|
|
373
|
+
l("div", Ye, [
|
|
374
|
+
l("div", Je, [
|
|
370
375
|
x(i, {
|
|
371
376
|
disabled: e.disabled,
|
|
372
377
|
label: s(n)("inventory.unit.name"),
|
|
@@ -376,7 +381,7 @@ const Ye = { class: "flex flex-col gap-24" }, Je = { class: "flex gap-24" }, Qe
|
|
|
376
381
|
"label-mark": "required"
|
|
377
382
|
}, null, 8, ["disabled", "label", "modelValue", "rules"])
|
|
378
383
|
]),
|
|
379
|
-
l("div",
|
|
384
|
+
l("div", Qe, [
|
|
380
385
|
x(i, {
|
|
381
386
|
disabled: e.disabled,
|
|
382
387
|
label: s(n)("inventory.unit.symbol"),
|
|
@@ -398,8 +403,8 @@ const Ye = { class: "flex flex-col gap-24" }, Je = { class: "flex gap-24" }, Qe
|
|
|
398
403
|
}, null, 8, ["disabled", "label", "modelValue", "rules"])
|
|
399
404
|
])
|
|
400
405
|
]),
|
|
401
|
-
l("div",
|
|
402
|
-
x(
|
|
406
|
+
l("div", Xe, [
|
|
407
|
+
x(R, {
|
|
403
408
|
disabled: e.disabled,
|
|
404
409
|
type: "button",
|
|
405
410
|
"prepend-icon": "add",
|
|
@@ -408,24 +413,24 @@ const Ye = { class: "flex flex-col gap-24" }, Je = { class: "flex gap-24" }, Qe
|
|
|
408
413
|
onClick: m
|
|
409
414
|
}, null, 8, ["disabled", "label"])
|
|
410
415
|
]),
|
|
411
|
-
(y(!0), F(G, null, O((B = e.modelValue) == null ? void 0 : B.measurements, (h, V) => (y(), P(
|
|
416
|
+
(y(!0), F(G, null, O((B = e.modelValue) == null ? void 0 : B.measurements, (h, V) => (y(), P(A, {
|
|
412
417
|
class: "flex flex-col gap-16 p-16",
|
|
413
418
|
variant: "outlined",
|
|
414
419
|
key: h.id
|
|
415
420
|
}, {
|
|
416
421
|
default: M(() => [
|
|
417
|
-
l("div",
|
|
418
|
-
l("div",
|
|
419
|
-
x(
|
|
422
|
+
l("div", Ze, [
|
|
423
|
+
l("div", et, U(s(n)("inventory.unit.measurement.measurementDefault", [V + 1])), 1),
|
|
424
|
+
x(R, {
|
|
420
425
|
disabled: e.disabled,
|
|
421
426
|
variant: "tertiary",
|
|
422
427
|
"prepend-icon": "delete",
|
|
423
428
|
onClick: (E) => w(V)
|
|
424
429
|
}, null, 8, ["disabled", "onClick"])
|
|
425
430
|
]),
|
|
426
|
-
l("div",
|
|
427
|
-
l("div",
|
|
428
|
-
l("div",
|
|
431
|
+
l("div", tt, [
|
|
432
|
+
l("div", ot, [
|
|
433
|
+
l("div", nt, [
|
|
429
434
|
x(i, {
|
|
430
435
|
disabled: e.disabled,
|
|
431
436
|
class: "col-span-2",
|
|
@@ -436,7 +441,7 @@ const Ye = { class: "flex flex-col gap-24" }, Je = { class: "flex gap-24" }, Qe
|
|
|
436
441
|
"label-mark": "required"
|
|
437
442
|
}, null, 8, ["disabled", "label", "modelValue", "onUpdate:modelValue", "rules"])
|
|
438
443
|
]),
|
|
439
|
-
l("div",
|
|
444
|
+
l("div", lt, [
|
|
440
445
|
x(i, {
|
|
441
446
|
disabled: e.disabled,
|
|
442
447
|
label: s(n)("inventory.unit.measurement.symbol"),
|
|
@@ -447,7 +452,7 @@ const Ye = { class: "flex flex-col gap-24" }, Je = { class: "flex gap-24" }, Qe
|
|
|
447
452
|
}, null, 8, ["disabled", "label", "modelValue", "onUpdate:modelValue", "rules"])
|
|
448
453
|
])
|
|
449
454
|
]),
|
|
450
|
-
x(
|
|
455
|
+
x(De, {
|
|
451
456
|
disabled: e.disabled,
|
|
452
457
|
class: "col-span-3",
|
|
453
458
|
label: s(n)("inventory.unit.measurement.conversion"),
|
|
@@ -455,8 +460,8 @@ const Ye = { class: "flex flex-col gap-24" }, Je = { class: "flex gap-24" }, Qe
|
|
|
455
460
|
"onUpdate:modelValue": (E) => r.value = r.value.map(
|
|
456
461
|
(T, N) => N === V ? {
|
|
457
462
|
...T,
|
|
458
|
-
conversion: s(
|
|
459
|
-
s(
|
|
463
|
+
conversion: s(Ie).toPrecision(
|
|
464
|
+
s(se).fromNumber(E),
|
|
460
465
|
o.value
|
|
461
466
|
)
|
|
462
467
|
} : T
|
|
@@ -479,7 +484,7 @@ const Ye = { class: "flex flex-col gap-24" }, Je = { class: "flex gap-24" }, Qe
|
|
|
479
484
|
}, 512);
|
|
480
485
|
};
|
|
481
486
|
}
|
|
482
|
-
}),
|
|
487
|
+
}), at = { class: "flex gap-4" }, rt = /* @__PURE__ */ W({
|
|
483
488
|
__name: "UnitDialog",
|
|
484
489
|
props: {
|
|
485
490
|
show: { type: Boolean },
|
|
@@ -488,7 +493,7 @@ const Ye = { class: "flex flex-col gap-24" }, Je = { class: "flex gap-24" }, Qe
|
|
|
488
493
|
},
|
|
489
494
|
emits: ["update:show"],
|
|
490
495
|
setup(k) {
|
|
491
|
-
const p = k, _ = Y(), v =
|
|
496
|
+
const p = k, _ = Y(), v = me(), d = Z(), { t: n } = J(), c = re(p, "show"), t = re(p, "unit"), f = b(() => {
|
|
492
497
|
switch (p.mode) {
|
|
493
498
|
case C.READ:
|
|
494
499
|
return "";
|
|
@@ -512,14 +517,14 @@ const Ye = { class: "flex flex-col gap-24" }, Je = { class: "flex gap-24" }, Qe
|
|
|
512
517
|
async function w() {
|
|
513
518
|
r.value = !0;
|
|
514
519
|
try {
|
|
515
|
-
const i =
|
|
520
|
+
const i = ue(t.value);
|
|
516
521
|
i.precision ?? (i.precision = 0), i.measurements ?? (i.measurements = []), await _.createUnit(i), c.value = !1, d.open({
|
|
517
522
|
title: n("inventory.common.success"),
|
|
518
523
|
message: n("inventory.unit.create.success", { name: t.value.name }),
|
|
519
524
|
type: "success"
|
|
520
525
|
});
|
|
521
526
|
} catch (i) {
|
|
522
|
-
i instanceof
|
|
527
|
+
i instanceof ae || d.open({
|
|
523
528
|
title: n("inventory.unit.create.error.title"),
|
|
524
529
|
message: n("inventory.unit.create.error.message"),
|
|
525
530
|
type: "error"
|
|
@@ -537,7 +542,7 @@ const Ye = { class: "flex flex-col gap-24" }, Je = { class: "flex gap-24" }, Qe
|
|
|
537
542
|
type: "success"
|
|
538
543
|
});
|
|
539
544
|
} catch (i) {
|
|
540
|
-
i instanceof
|
|
545
|
+
i instanceof ae || d.open({
|
|
541
546
|
title: n("inventory.unit.update.error.title"),
|
|
542
547
|
message: n("inventory.unit.update.error.message"),
|
|
543
548
|
type: "error"
|
|
@@ -561,8 +566,8 @@ const Ye = { class: "flex flex-col gap-24" }, Je = { class: "flex gap-24" }, Qe
|
|
|
561
566
|
}
|
|
562
567
|
}
|
|
563
568
|
return (i, g) => {
|
|
564
|
-
const
|
|
565
|
-
return y(), P(
|
|
569
|
+
const R = I("FmButton"), A = I("FmSideSheet");
|
|
570
|
+
return y(), P(A, {
|
|
566
571
|
"model-value": s(c),
|
|
567
572
|
"onUpdate:modelValue": g[3] || (g[3] = (S) => le(c) ? c.value = S : null),
|
|
568
573
|
header: f.value,
|
|
@@ -571,14 +576,14 @@ const Ye = { class: "flex flex-col gap-24" }, Je = { class: "flex gap-24" }, Qe
|
|
|
571
576
|
"max-width": 500
|
|
572
577
|
}, {
|
|
573
578
|
"side-sheet-footer": M(() => [
|
|
574
|
-
l("div",
|
|
575
|
-
s(v).isEnabled ? K("", !0) : (y(), P(
|
|
579
|
+
l("div", at, [
|
|
580
|
+
s(v).isEnabled ? K("", !0) : (y(), P(R, {
|
|
576
581
|
key: 0,
|
|
577
582
|
loading: r.value,
|
|
578
583
|
label: a.value,
|
|
579
584
|
onClick: e
|
|
580
585
|
}, null, 8, ["loading", "label"])),
|
|
581
|
-
x(
|
|
586
|
+
x(R, {
|
|
582
587
|
disabled: r.value,
|
|
583
588
|
label: s(n)("common.close"),
|
|
584
589
|
variant: "tertiary",
|
|
@@ -587,7 +592,7 @@ const Ye = { class: "flex flex-col gap-24" }, Je = { class: "flex gap-24" }, Qe
|
|
|
587
592
|
])
|
|
588
593
|
]),
|
|
589
594
|
default: M(() => [
|
|
590
|
-
x(
|
|
595
|
+
x(st, {
|
|
591
596
|
class: "w-full",
|
|
592
597
|
ref_key: "hasValidationExpose",
|
|
593
598
|
ref: o,
|
|
@@ -602,19 +607,19 @@ const Ye = { class: "flex flex-col gap-24" }, Je = { class: "flex gap-24" }, Qe
|
|
|
602
607
|
}, 8, ["model-value", "header"]);
|
|
603
608
|
};
|
|
604
609
|
}
|
|
605
|
-
}),
|
|
610
|
+
}), it = { class: "flex flex-col py-8" }, ut = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, dt = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, kt = /* @__PURE__ */ W({
|
|
606
611
|
__name: "UnitView",
|
|
607
612
|
setup(k) {
|
|
608
|
-
const p = Y(), _ = xe(), v =
|
|
609
|
-
|
|
610
|
-
const { t: d } = J(), n = b(() => p.units), { createUnit: c, updateUnit: t } = X(), { unitDialogProps: f, unitViewLoading: a } = Se(X()), { columnDefs: o } =
|
|
611
|
-
function r(
|
|
612
|
-
switch (
|
|
613
|
+
const p = Y(), _ = xe(), v = me();
|
|
614
|
+
de(), Z();
|
|
615
|
+
const { t: d } = J(), n = b(() => p.units), { createUnit: c, updateUnit: t } = X(), { unitDialogProps: f, unitViewLoading: a } = Se(X()), { columnDefs: o } = Oe();
|
|
616
|
+
function r(A) {
|
|
617
|
+
switch (A) {
|
|
613
618
|
case "add":
|
|
614
619
|
return v.isEnabled ? void 0 : c();
|
|
615
620
|
}
|
|
616
621
|
}
|
|
617
|
-
const m = D(""), w = D(!1), $ = b(() => w.value || a.value), { breakpoints: e } = _e(), u = b(() => e.value.xs || e.value.sm), i = b(() => u.value ? 10 : 20), g = Fe(),
|
|
622
|
+
const m = D(""), w = D(!1), $ = b(() => w.value || a.value), { breakpoints: e } = _e(), u = b(() => e.value.xs || e.value.sm), i = b(() => u.value ? 10 : 20), g = Fe(), R = b(() => [
|
|
618
623
|
...v.isEnabled ? [] : [
|
|
619
624
|
{
|
|
620
625
|
label: d("inventory.unit.create.title"),
|
|
@@ -624,16 +629,16 @@ const Ye = { class: "flex flex-col gap-24" }, Je = { class: "flex gap-24" }, Qe
|
|
|
624
629
|
}
|
|
625
630
|
]
|
|
626
631
|
]);
|
|
627
|
-
return (
|
|
632
|
+
return (A, S) => {
|
|
628
633
|
const B = I("FmTable");
|
|
629
634
|
return y(), P(ke, {
|
|
630
635
|
title: s(d)("inventory.unit.title"),
|
|
631
|
-
actions:
|
|
636
|
+
actions: R.value,
|
|
632
637
|
"onClick:action": r
|
|
633
638
|
}, {
|
|
634
639
|
default: M(() => [
|
|
635
640
|
l("div", {
|
|
636
|
-
class:
|
|
641
|
+
class: pe([
|
|
637
642
|
"relative flex flex-col gap-8 max-h-full",
|
|
638
643
|
{
|
|
639
644
|
"p-0": u.value,
|
|
@@ -641,13 +646,13 @@ const Ye = { class: "flex flex-col gap-24" }, Je = { class: "flex gap-24" }, Qe
|
|
|
641
646
|
}
|
|
642
647
|
])
|
|
643
648
|
}, [
|
|
644
|
-
x(
|
|
649
|
+
x(Me, {
|
|
645
650
|
searchable: "",
|
|
646
651
|
search: m.value,
|
|
647
652
|
"onUpdate:search": S[0] || (S[0] = (h) => m.value = h)
|
|
648
653
|
}, null, 8, ["search"]),
|
|
649
654
|
x(B, {
|
|
650
|
-
style:
|
|
655
|
+
style: ve(s(g).tableHeight),
|
|
651
656
|
"column-defs": s(o),
|
|
652
657
|
"row-data": n.value,
|
|
653
658
|
"search-value": m.value,
|
|
@@ -663,14 +668,14 @@ const Ye = { class: "flex flex-col gap-24" }, Je = { class: "flex gap-24" }, Qe
|
|
|
663
668
|
default: M((V) => {
|
|
664
669
|
var E, T, N, L, ee, z, te, j, oe;
|
|
665
670
|
return [
|
|
666
|
-
l("div",
|
|
667
|
-
l("div",
|
|
668
|
-
x(s(
|
|
671
|
+
l("div", it, [
|
|
672
|
+
l("div", ut, [
|
|
673
|
+
x(s(Ae), {
|
|
669
674
|
render: (N = (T = (E = V.name) == null ? void 0 : E.column) == null ? void 0 : T.columnDef) == null ? void 0 : N.cell,
|
|
670
675
|
props: (ee = (L = V.name) == null ? void 0 : L.getContext) == null ? void 0 : ee.call(L)
|
|
671
676
|
}, null, 8, ["render", "props"])
|
|
672
677
|
]),
|
|
673
|
-
l("div",
|
|
678
|
+
l("div", dt, U((oe = (j = (te = (z = h.original.measurements) == null ? void 0 : z.map) == null ? void 0 : te.call(z, (ce) => ce.name)) == null ? void 0 : j.join) == null ? void 0 : oe.call(j, ", ")), 1)
|
|
674
679
|
])
|
|
675
680
|
];
|
|
676
681
|
}),
|
|
@@ -680,8 +685,8 @@ const Ye = { class: "flex flex-col gap-24" }, Je = { class: "flex gap-24" }, Qe
|
|
|
680
685
|
_: 1
|
|
681
686
|
}, 8, ["style", "column-defs", "row-data", "search-value", "loading", "page-size"])
|
|
682
687
|
], 2),
|
|
683
|
-
(y(), P(
|
|
684
|
-
x(
|
|
688
|
+
(y(), P(fe, { to: "body" }, [
|
|
689
|
+
x(rt, ye(be(s(f))), null, 16)
|
|
685
690
|
]))
|
|
686
691
|
]),
|
|
687
692
|
_: 1
|
|
@@ -690,5 +695,5 @@ const Ye = { class: "flex flex-col gap-24" }, Je = { class: "flex gap-24" }, Qe
|
|
|
690
695
|
}
|
|
691
696
|
});
|
|
692
697
|
export {
|
|
693
|
-
|
|
698
|
+
kt as default
|
|
694
699
|
};
|
|
@@ -1,21 +1,22 @@
|
|
|
1
1
|
import { ref as T, defineComponent as j, watch as te, onMounted as le, onUnmounted as De, createElementBlock as q, openBlock as D, toRaw as Ve, reactive as Re, createElementVNode as V, createVNode as k, toDisplayString as P, unref as r, resolveComponent as I, createBlock as O, createCommentVNode as oe, createSlots as We, withCtx as B, createTextVNode as Me, renderSlot as Ee, computed as C, isRef as _e, normalizeClass as Ue, normalizeStyle as Pe } from "vue";
|
|
2
|
-
import { d as Ne, n as Le, o as Ie, c as z, p as Be, S as qe, u as ze } from "./app-
|
|
2
|
+
import { d as Ne, n as Le, o as Ie, c as z, p as Be, S as qe, u as ze } from "./app-VtVYHCDF.js";
|
|
3
3
|
import { useCoreStore as Se, useI18n as G } from "@feedmepos/mf-common";
|
|
4
|
-
import { D as ke, R as Q } from "./row-action.enum-
|
|
4
|
+
import { D as ke, R as Q } from "./row-action.enum-76yLYmPA.js";
|
|
5
5
|
import { c as Oe } from "./component-BmLAdDiY.js";
|
|
6
|
-
import { u as Fe } from "./netsuite-
|
|
6
|
+
import { u as Fe } from "./netsuite-BhGuduqd.js";
|
|
7
7
|
import { u as je, _ as Ge } from "./SingleColumnLayout.vue_vue_type_script_setup_true_lang-DpwneGOV.js";
|
|
8
8
|
import { F as $ } from "./form-mode.enum-BKiNVH6A.js";
|
|
9
9
|
import { useDialogChild as Ke, useDialog as xe, useSnackbar as se, useProxiedModel as ae, useBreakpoints as He } from "@feedmepos/ui-library";
|
|
10
|
-
import { R as L } from "./rules-
|
|
10
|
+
import { R as L } from "./rules-fOcvgt4t.js";
|
|
11
11
|
import { c as $e, u as re, g as Ye } from "./googlemap-D9vA7GsS.js";
|
|
12
|
-
import { d as Ze } from "./index-
|
|
12
|
+
import { d as Ze } from "./index-By5-VjVg.js";
|
|
13
13
|
import { _ as Je } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
14
14
|
import { _ as Qe } from "./FmCustomAttribute.vue_vue_type_script_setup_true_lang-CG1m-B2p.js";
|
|
15
|
-
import { _ as Xe } from "./FeatureCapabilityBadge.vue_vue_type_script_setup_true_lang-
|
|
16
|
-
import { u as eo } from "./feature-
|
|
17
|
-
import { _ as oo
|
|
18
|
-
import {
|
|
15
|
+
import { _ as Xe } from "./FeatureCapabilityBadge.vue_vue_type_script_setup_true_lang-ChekXW32.js";
|
|
16
|
+
import { u as eo } from "./feature-VDUlSvM1.js";
|
|
17
|
+
import { _ as oo } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-gJQQKKAC.js";
|
|
18
|
+
import { F as X } from "./index-eGvSlWMU.js";
|
|
19
|
+
import { _ as to } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-BEjFoMJJ.js";
|
|
19
20
|
const ee = Ne((f, b) => {
|
|
20
21
|
const g = Se();
|
|
21
22
|
return {
|
|
@@ -912,7 +913,7 @@ const bo = { class: "flex gap-8 items-center" }, go = { key: 0 }, wo = { key: 1
|
|
|
912
913
|
}), Po = { class: "flex flex-col py-8" }, No = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, Lo = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Io = {
|
|
913
914
|
key: 0,
|
|
914
915
|
class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
|
|
915
|
-
}, Bo = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary line-clamp-3" },
|
|
916
|
+
}, Bo = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary line-clamp-3" }, nt = /* @__PURE__ */ j({
|
|
916
917
|
__name: "WarehouseView",
|
|
917
918
|
setup(f) {
|
|
918
919
|
const b = Te(), g = ze(), a = Fe(), l = C(() => b.warehouses), d = xe(), n = se(), u = T(!1), { t: y } = G();
|
|
@@ -1082,5 +1083,5 @@ const bo = { class: "flex gap-8 items-center" }, go = { key: 0 }, wo = { key: 1
|
|
|
1082
1083
|
}
|
|
1083
1084
|
});
|
|
1084
1085
|
export {
|
|
1085
|
-
|
|
1086
|
+
nt as default
|
|
1086
1087
|
};
|