@feedmepos/mf-inventory-portal 1.8.0-dev.7 → 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-BPdZMhM8.js +1445 -0
- package/dist/{ApprovalView-1Y_jh_UJ.js → ApprovalView-UzjSuZ2L.js} +26 -25
- package/dist/{BindingsDialog-VMvTLguN.js → BindingsDialog-Cb6WRlKq.js} +2 -2
- package/dist/{BindingsPicker-KNRM5rMU.js → BindingsPicker-CtD4U4lv.js} +2 -2
- package/dist/{BindingsTable-CSyNlNCL.js → BindingsTable-CX-3403K.js} +10 -10
- package/dist/BulkReceiveRequestPage-CUq1Lmww.js +2839 -0
- package/dist/{ChangeLocationComponent.vue_vue_type_script_setup_true_lang-DQuI04Yj.js → ChangeLocationComponent.vue_vue_type_script_setup_true_lang-C5cA-lGH.js} +1 -1
- package/dist/{ClosingDraftView-A2pJuhIb.js → ClosingDraftView-Ca_SvdWQ.js} +748 -746
- package/dist/ClosingHistoryView-DzkeJYoe.js +769 -0
- package/dist/{ClosingTemplateView-DpkNCyoB.js → ClosingTemplateView-DSrelbso.js} +22 -21
- package/dist/{CustomPrintTemplatePreview.vue_vue_type_script_setup_true_lang-DOpIDvsy.js → CustomPrintTemplatePreview.vue_vue_type_script_setup_true_lang-BuOuXPy1.js} +1 -1
- package/dist/{DefaultView-B4UuAqYu.js → DefaultView-Dw-7Y8vD.js} +2 -2
- package/dist/{DeliveryOrderPrintPreview-w0YcNH3F.js → DeliveryOrderPrintPreview-C5qJsv_O.js} +15 -15
- package/dist/{EmailDialog.vue_vue_type_script_setup_true_lang-BimIEHsW.js → EmailDialog.vue_vue_type_script_setup_true_lang-D8od7aKT.js} +10075 -9949
- package/dist/FeatureCapabilityBadge.vue_vue_type_script_setup_true_lang-ChekXW32.js +48 -0
- 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--54VR4oB.js → FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-B861gqIJ.js} +1 -1
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-B7j4ZSOe.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_y8VcCI.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-BEjFoMJJ.js} +2 -2
- package/dist/{FmMultiselectDialog-DMA5eR0C.js → FmMultiselectDialog-CShFKSIW.js} +2 -2
- package/dist/{FmMultiselectDialog-BnZInvgp.js → FmMultiselectDialog-Ci-6NMsV.js} +2 -2
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-BXTUsnwN.js → FmUnitInput.vue_vue_type_script_setup_true_lang-Dkx5vVap.js} +105 -99
- package/dist/ImportView-7ij7RUHI.js +1540 -0
- package/dist/{IngredientsView-C4-8qNGD.js → IngredientsView-fIPtTyFD.js} +685 -688
- package/dist/{IntegrationExplorerView-D3leld2Z.js → IntegrationExplorerView-DLYT4T-I.js} +1537 -1620
- package/dist/IntegrationPlatformView-CwywuK_y.js +13385 -0
- package/dist/{IntegrationView-BhRzry3g.js → IntegrationView-DnyVHXge.js} +2380 -2340
- package/dist/{InventoryBindingForm-ewAgZ6e-.js → InventoryBindingForm-BBs8v7CL.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-Bpo7Yv9A.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang--pI5wz_M.js} +134 -134
- package/dist/{InventoryBindingSummary-e67GzHYr.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-0F-yOcPC.js +79 -0
- 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-7u0HQH67.js → ProductionRunLifecycleDialogs.vue_vue_type_script_setup_true_lang-BIkoMOM2.js} +3051 -3161
- package/dist/ProductionRunPage-DuzVrjbZ.js +954 -0
- package/dist/{PublishView-BXA3k8Cp.js → PublishView-BVg44yke.js} +3 -3
- package/dist/{PurchaseOrderPrintPreview-DRugr4BU.js → PurchaseOrderPrintPreview-CNx6unyj.js} +17 -17
- package/dist/{ReceiveRequestView-CeJs9NTD.js → ReceiveRequestView-DeNrYOUt.js} +17 -16
- package/dist/RecipeView-De3pLsPR.js +3272 -0
- package/dist/SettingsView-B5ud0KtI.js +1005 -0
- package/dist/StockView-4N3NRjY8.js +3003 -0
- package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-Ckw1_xIc.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-DvlRRKdt.js} +1 -1
- package/dist/{SupplierView-DH9u6e2M.js → SupplierView-fC9oe5nu.js} +304 -301
- package/dist/{SurchargeView-BPVEpc0f.js → SurchargeView-H6rv7u8A.js} +7 -7
- package/dist/{SystemTrailDialog.vue_vue_type_script_setup_true_lang-BRwxKmwb.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-06rIaX_M.js → UnitCostHistoryView-DjD2WAFI.js} +4 -4
- package/dist/{UnitDisplayControl.vue_vue_type_script_setup_true_lang-C2zidBrl.js → UnitDisplayControl.vue_vue_type_script_setup_true_lang-CE0zHU6c.js} +4 -4
- package/dist/{UnitView-Xk_F9SYG.js → UnitView-DCfsbE8e.js} +111 -106
- package/dist/{WarehouseView-bmpLmpcX.js → WarehouseView-BCebmbcj.js} +12 -11
- package/dist/{WastageTemplateView-CWV1pFxM.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/netsuite-explorer.d.ts +1 -0
- package/dist/api/stock.d.ts +1 -1
- package/dist/{app-CURawLhs.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-q_KGB4jO.js → closing-template-LCe0U9w9.js} +4 -4
- package/dist/components/FeatureCapabilityGate.spec.d.ts +1 -0
- package/dist/components/FeatureCapabilityGate.vue.d.ts +5 -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-3kdweNLp.js → date2-Cfb6DXM4.js} +1 -1
- package/dist/{dayjs.min-DHE73-wM.js → dayjs.min-BOndKK7B.js} +1 -1
- package/dist/{decimal-CAnQe2Ib.js → decimal-nbuisP61.js} +2 -2
- package/dist/{defineDeepModel-CctS67Do.js → defineDeepModel-DKySrdwp.js} +5 -5
- package/dist/{duplicate-template-Jk2V2Ezg.js → duplicate-template-BxcKb3Jp.js} +1 -1
- package/dist/{feature-D9n0IC0c.js → feature-VDUlSvM1.js} +452 -354
- package/dist/feature-flags/core.d.ts +1 -0
- package/dist/feature-flags/vue.d.ts +22 -1
- package/dist/feature-flags/vue.spec.d.ts +1 -0
- package/dist/{format-time-from-id-Bmzpbg-8.js → format-time-from-id-CfVH4LZ_.js} +1 -1
- package/dist/{format-unit-display-CVg4Bl5L.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-DPCcxufP.js → id-to-date-Jr9SlHLO.js} +1 -1
- package/dist/{import-export.helper-bmGZwUBB.js → import-export.helper-FT9Wbigh.js} +17 -17
- package/dist/{index-zCBA-X6R.js → index-BV9b3Ulp.js} +2234 -2163
- package/dist/{index-yt6MlAFG.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-CFNNQo-7.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-CqlY9MC2.js → lz-string-BAzqO9xf.js} +1 -1
- package/dist/menu-usage-module-Bq_KLsO4.js +74 -0
- package/dist/{netsuite-DudeltN_.js → netsuite-BhGuduqd.js} +254 -263
- package/dist/netsuite-explorer-9Qj7qAum.js +79 -0
- package/dist/{predefined-templates-DT32p04n.js → predefined-templates-BlRafgnc.js} +1 -1
- package/dist/production-run-list-DR1WsaBR.js +61 -0
- package/dist/{purchase-order-template-LaRpWA04.js → purchase-order-template-By_Zxu1b.js} +1 -1
- package/dist/{recalculationUtils-BYN393eE.js → recalculationUtils-VsBar7jB.js} +1 -1
- package/dist/router/name.d.ts +2 -1
- package/dist/{row-action.enum-BiP5wkT6.js → row-action.enum-76yLYmPA.js} +1 -1
- package/dist/rules-fOcvgt4t.js +243 -0
- package/dist/{stock-B9XerL9c.js → stock-C-dQaxY2.js} +1 -1
- package/dist/stock-Dh0KXA1P.js +78 -0
- package/dist/stores/feature.d.ts +31 -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-dpHijd2E.js → supplier-XHHHN8vZ.js} +2 -2
- package/dist/{surcharge-BZ4STY5J.js → surcharge-0-oBiYoF.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{uom-rules-Da5Lngvp.js → uom-rules-DrRuSFgM.js} +1 -1
- package/dist/{use-ingredient-select-dialog-C3YsT5l-.js → use-ingredient-select-dialog-mQ7aQChK.js} +2 -2
- package/dist/{use-inventory-binding-dialog-BSsyrcGe.js → use-inventory-binding-dialog-5Wu0ItnH.js} +2 -2
- package/dist/{use-template-enabled-locations-BmJUzSUm.js → use-template-enabled-locations-CgpPMl8g.js} +2 -2
- package/dist/{use-transfer-locations-frEk_aBH.js → use-transfer-locations-DZ6B7eMT.js} +14 -14
- package/dist/{useHrmPermission-Cyjm0y9a.js → useHrmPermission-BaGxz4EV.js} +1 -1
- package/dist/{useNavigationMenu-CnTsOF9T.js → useNavigationMenu-CyP39v3U.js} +50 -49
- package/dist/{useSseClient-D_7o9nuf.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.spec.d.ts +1 -0
- package/dist/views/settings/PlanLicenseDisplay.vue.d.ts +2 -0
- 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/{FeatureCapabilityBadge.vue_vue_type_script_setup_true_lang-BBkF9lOE.js → vue-KHCpiw_e.js} +106 -108
- package/dist/{vue-i18n-DwAcG7yc.js → vue-i18n-D6btLtve.js} +422 -422
- package/dist/{xlsx.util-C7S-uyqm.js → xlsx.util-Dr5i_LBa.js} +2 -2
- package/package.json +71 -66
- package/dist/App-Bo29Nwt0.js +0 -1537
- package/dist/BulkReceiveRequestView-vOeHbWM_.js +0 -2656
- package/dist/ClosingHistoryView-woRmvmYT.js +0 -761
- package/dist/ImportView-C7Hah7MM.js +0 -1291
- package/dist/NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CKEzy2Uo.js +0 -72
- package/dist/ProductionRunDetailView-Ct7kr5Ht.js +0 -2312
- package/dist/ProductionRunView-odWyBZGx.js +0 -930
- package/dist/RecipeView-BH0REMB3.js +0 -3428
- package/dist/SettingsView-Dc27wyk-.js +0 -977
- package/dist/StockView-DrHLzosW.js +0 -2616
- package/dist/TableActionableRow.vue_vue_type_script_setup_true_lang-DAMpuZ1X.js +0 -84
- package/dist/TemplatePublishDialog.vue_vue_type_script_setup_true_lang-BpiePSmo.js +0 -299
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-DOQGPKiv.js +0 -4820
- package/dist/TransferTemplateView-CEVRsKL7.js +0 -2326
- package/dist/menu-usage-module-BdjYEk3s.js +0 -57
- package/dist/number-BoePMDs8.js +0 -138
- package/dist/rules-CQT0uAAo.js +0 -98
- package/dist/stock-CVybjhUm.js +0 -75
- package/dist/views/integration/composables/use-integration-sync-log.d.ts +0 -45
|
@@ -1,61 +1,60 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { a as
|
|
3
|
-
import { t as
|
|
4
|
-
import { u as
|
|
5
|
-
import { useI18n as
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
function H(v, u) {
|
|
1
|
+
import { defineComponent as Y, ref as ue, computed as F, resolveComponent as E, createElementBlock as m, createCommentVNode as I, openBlock as a, createElementVNode as n, createVNode as y, toDisplayString as f, unref as s, Fragment as $, renderList as M, normalizeStyle as me, createTextVNode as ce, reactive as G, withCtx as A, createBlock as K, nextTick as pe } from "vue";
|
|
2
|
+
import { a as q, v as ye, w as fe, s as ve, F as _e } from "./app-VtVYHCDF.js";
|
|
3
|
+
import { t as xe, n as ge, i as be, e as he, f as W, I as j, a as S } from "./rules-fOcvgt4t.js";
|
|
4
|
+
import { u as Be } from "./use-inventory-binding-dialog-5Wu0ItnH.js";
|
|
5
|
+
import { useI18n as H } from "@feedmepos/mf-common";
|
|
6
|
+
import { _ as ke, c as Ie, d as Ve } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-Dkx5vVap.js";
|
|
7
|
+
const N = { amount: 1, precision: 0 };
|
|
8
|
+
function J(v, u) {
|
|
10
9
|
return { amount: v.amount * u.amount, precision: v.precision + u.precision };
|
|
11
10
|
}
|
|
12
|
-
function
|
|
13
|
-
const
|
|
14
|
-
return
|
|
11
|
+
function we(v, u) {
|
|
12
|
+
const r = Q(u), p = J(v, r);
|
|
13
|
+
return ge(p.amount / 10 ** p.precision, p.precision);
|
|
15
14
|
}
|
|
16
|
-
function
|
|
17
|
-
if (v.trim().length === 0) return
|
|
15
|
+
function Q(v) {
|
|
16
|
+
if (v.trim().length === 0) return N;
|
|
18
17
|
const u = Number(v);
|
|
19
|
-
return Number.isFinite(u) ?
|
|
18
|
+
return Number.isFinite(u) ? xe(u, be(u)) : N;
|
|
20
19
|
}
|
|
21
|
-
function
|
|
20
|
+
function X(v, u, r = 0, p = /* @__PURE__ */ new Set(), R = N) {
|
|
22
21
|
if (p.has(v)) return [];
|
|
23
22
|
const x = new Set(p).add(v);
|
|
24
23
|
return u.contentsOf(v).flatMap((t, g) => {
|
|
25
|
-
const d = t.type === "RECIPE", c =
|
|
26
|
-
key: `${
|
|
24
|
+
const d = t.type === "RECIPE", c = J(t.amount ?? N, R), b = {
|
|
25
|
+
key: `${r}-${g}-${t.id}`,
|
|
27
26
|
name: u.bindingName(t),
|
|
28
27
|
amount: c,
|
|
29
28
|
unit: u.bindingUnit(t),
|
|
30
|
-
depth:
|
|
29
|
+
depth: r,
|
|
31
30
|
isRecipe: d
|
|
32
31
|
};
|
|
33
|
-
return d ? [b, ...
|
|
32
|
+
return d ? [b, ...X(t.id, u, r + 1, x, c)] : [b];
|
|
34
33
|
});
|
|
35
34
|
}
|
|
36
|
-
const
|
|
35
|
+
const Fe = {
|
|
37
36
|
key: 0,
|
|
38
37
|
class: "flex flex-col pb-8 fm-typo-en-body-sm-400"
|
|
39
|
-
},
|
|
38
|
+
}, Ee = {
|
|
40
39
|
key: 0,
|
|
41
40
|
class: "flex items-center gap-4 px-12 text-fm-color-typo-secondary"
|
|
42
|
-
},
|
|
41
|
+
}, Re = {
|
|
43
42
|
key: 1,
|
|
44
43
|
class: "flex flex-col text-fm-color-typo-secondary"
|
|
45
|
-
},
|
|
44
|
+
}, Ce = { class: "flex-1 line-clamp-1" }, Ue = {
|
|
46
45
|
key: 0,
|
|
47
46
|
class: "text-fm-color-typo-disabled"
|
|
48
|
-
},
|
|
47
|
+
}, Ae = {
|
|
49
48
|
key: 2,
|
|
50
49
|
class: "flex gap-4 px-12 text-fm-color-system-warning-400"
|
|
51
|
-
},
|
|
50
|
+
}, $e = /* @__PURE__ */ Y({
|
|
52
51
|
__name: "RecipeBindingBreakdown",
|
|
53
52
|
props: {
|
|
54
53
|
recipeId: {},
|
|
55
54
|
multiplier: {}
|
|
56
55
|
},
|
|
57
56
|
setup(v) {
|
|
58
|
-
const u = v, { t:
|
|
57
|
+
const u = v, { t: r } = H(), p = q(), R = {
|
|
59
58
|
contentsOf: (d) => {
|
|
60
59
|
var c;
|
|
61
60
|
return ((c = p.recipeById[d]) == null ? void 0 : c.contains) ?? [];
|
|
@@ -74,12 +73,12 @@ const we = {
|
|
|
74
73
|
var c, b;
|
|
75
74
|
return d.type === "RECIPE" ? "" : ((c = d.measurement) == null ? void 0 : c.abbrev) ?? ((b = p.skuById[d.id]) == null ? void 0 : b.unit.abbrev) ?? "";
|
|
76
75
|
}
|
|
77
|
-
}, x =
|
|
76
|
+
}, x = ue(!1), t = F(() => X(u.recipeId, R)), g = F(() => Q(u.multiplier).precision > 0);
|
|
78
77
|
return (d, c) => {
|
|
79
78
|
const b = E("FmButton"), P = E("FmIcon");
|
|
80
|
-
return t.value.length || g.value ? (a(), m("div",
|
|
81
|
-
t.value.length ? (a(), m("div",
|
|
82
|
-
n("span", null, f(r
|
|
79
|
+
return t.value.length || g.value ? (a(), m("div", Fe, [
|
|
80
|
+
t.value.length ? (a(), m("div", Ee, [
|
|
81
|
+
n("span", null, f(s(r)("inventory.inventoryBindings.itemsLinked", { count: t.value.length }, t.value.length)), 1),
|
|
83
82
|
y(b, {
|
|
84
83
|
type: "button",
|
|
85
84
|
variant: "plain",
|
|
@@ -87,58 +86,58 @@ const we = {
|
|
|
87
86
|
onClick: c[0] || (c[0] = (h) => x.value = !x.value)
|
|
88
87
|
}, null, 8, ["icon"])
|
|
89
88
|
])) : I("", !0),
|
|
90
|
-
x.value ? (a(), m("div",
|
|
91
|
-
(a(!0), m(
|
|
89
|
+
x.value ? (a(), m("div", Re, [
|
|
90
|
+
(a(!0), m($, null, M(t.value, (h) => (a(), m("div", {
|
|
92
91
|
key: h.key,
|
|
93
92
|
class: "flex gap-8 py-4 px-12",
|
|
94
|
-
style:
|
|
93
|
+
style: me({ paddingLeft: `${12 + h.depth * 16}px` })
|
|
95
94
|
}, [
|
|
96
|
-
n("span",
|
|
97
|
-
|
|
98
|
-
h.isRecipe ? (a(), m("span",
|
|
95
|
+
n("span", Ce, [
|
|
96
|
+
ce(f(h.name) + " ", 1),
|
|
97
|
+
h.isRecipe ? (a(), m("span", Ue, " (" + f(s(r)("inventory.inventoryBindings.recipe")) + ") ", 1)) : I("", !0)
|
|
99
98
|
]),
|
|
100
|
-
n("span", null, f(
|
|
99
|
+
n("span", null, f(s(we)(h.amount, d.multiplier)) + " " + f(h.unit), 1)
|
|
101
100
|
], 4))), 128))
|
|
102
101
|
])) : I("", !0),
|
|
103
|
-
g.value ? (a(), m("div",
|
|
102
|
+
g.value ? (a(), m("div", Ae, [
|
|
104
103
|
y(P, {
|
|
105
104
|
name: "warning",
|
|
106
105
|
color: "system-warning-300",
|
|
107
106
|
size: "sm"
|
|
108
107
|
}),
|
|
109
|
-
n("div", null, f(r
|
|
108
|
+
n("div", null, f(s(r)("inventory.inventoryBindings.precisionWarning")), 1)
|
|
110
109
|
])) : I("", !0)
|
|
111
110
|
])) : I("", !0);
|
|
112
111
|
};
|
|
113
112
|
}
|
|
114
|
-
}),
|
|
113
|
+
}), Ne = { class: "flex flex-col gap-24" }, Pe = { class: "flex flex-col gap-16" }, Te = { class: "flex items-center" }, Se = { class: "flex-1 fm-typo-en-title-sm-600" }, Me = { class: "flex flex-col" }, De = { class: "flex py-8 px-12 border-b border-fm-color-neutral-gray-200 bg-fm-color-neutral-gray-100 h-[44px] items-center" }, ze = { class: "fm-typo-en-body-md-600 text-fm-color-typo-secondary" }, Le = {
|
|
115
114
|
class: "flex items-center",
|
|
116
115
|
style: { "min-height": "48px" }
|
|
117
|
-
},
|
|
116
|
+
}, Oe = { class: "flex-1 fm-typo-en-body-md-400 py-8 px-12" }, Ge = { class: "line-clamp-1" }, Ke = { class: "w-[200px]" }, We = {
|
|
118
117
|
key: 0,
|
|
119
118
|
class: "w-[52px]"
|
|
120
119
|
}, je = {
|
|
121
120
|
key: 0,
|
|
122
121
|
class: "flex gap-4 text-fm-color-system-error-400 fm-typo-en-body-sm-400 px-8"
|
|
123
|
-
},
|
|
122
|
+
}, Ye = { class: "flex flex-col gap-16" }, qe = { class: "flex items-center" }, He = { class: "flex-1 fm-typo-en-title-sm-600" }, Je = { class: "flex flex-col" }, Qe = { class: "flex py-8 px-12 border-b border-fm-color-neutral-gray-200 bg-fm-color-neutral-gray-100 h-[44px] items-center" }, Xe = { class: "flex-1 fm-typo-en-body-md-600 text-fm-color-typo-secondary" }, Ze = { class: "fm-typo-en-body-md-600 text-fm-color-typo-secondary w-[150px] px-16" }, en = {
|
|
124
123
|
key: 0,
|
|
125
124
|
class: "flex flex-col border-b border-fm-color-neutral-gray-100"
|
|
126
|
-
},
|
|
125
|
+
}, nn = {
|
|
127
126
|
class: "flex items-center w-full",
|
|
128
127
|
style: { "min-height": "48px" }
|
|
129
|
-
},
|
|
128
|
+
}, tn = { class: "flex-1 fm-typo-en-body-md-400 py-8 px-12 text-fm-color-typo-secondary line-clamp-1" }, on = {
|
|
130
129
|
key: 0,
|
|
131
130
|
class: "w-[52px]"
|
|
132
|
-
},
|
|
131
|
+
}, ln = { class: "flex gap-4 text-fm-color-system-error-400 fm-typo-en-body-sm-400 px-12 pb-4" }, sn = {
|
|
133
132
|
key: 1,
|
|
134
133
|
class: "flex flex-col border-b border-fm-color-neutral-gray-100"
|
|
135
|
-
},
|
|
134
|
+
}, rn = {
|
|
136
135
|
class: "flex items-center w-full",
|
|
137
136
|
style: { "min-height": "48px" }
|
|
138
|
-
},
|
|
137
|
+
}, an = { class: "flex-1 fm-typo-en-body-md-400 py-8 px-12" }, dn = { class: "line-clamp-1 w-full" }, un = { class: "w-[150px]" }, mn = {
|
|
139
138
|
key: 0,
|
|
140
139
|
class: "w-[52px]"
|
|
141
|
-
},
|
|
140
|
+
}, cn = { class: "flex flex-col px-12 pb-4" }, gn = /* @__PURE__ */ Y({
|
|
142
141
|
__name: "InventoryBindingForm",
|
|
143
142
|
props: {
|
|
144
143
|
id: {},
|
|
@@ -152,7 +151,7 @@ const we = {
|
|
|
152
151
|
},
|
|
153
152
|
emits: ["update:modelValue", "click:pick-inventory-bindings"],
|
|
154
153
|
setup(v, { emit: u }) {
|
|
155
|
-
const { t:
|
|
154
|
+
const { t: r } = H(), p = q(), R = F(() => p.recipeById), x = F(() => p.skuById), t = v, g = u, d = F(() => ye({
|
|
156
155
|
parentId: t.id,
|
|
157
156
|
bindings: t.modelValue,
|
|
158
157
|
recipes: p.recipes.map((o) => o._id === t.id ? {
|
|
@@ -166,68 +165,69 @@ const we = {
|
|
|
166
165
|
}
|
|
167
166
|
} : o),
|
|
168
167
|
skuGroups: []
|
|
169
|
-
}).inventoryBindings.filter((o) => "error" in o && o.error).map((o) => o).filter((o) => o.reason ===
|
|
168
|
+
}).inventoryBindings.filter((o) => "error" in o && o.error).map((o) => o).filter((o) => o.reason === fe.enum.circularDependency)), c = F(
|
|
170
169
|
() => new Set(d.value.map((e) => {
|
|
171
170
|
var i;
|
|
172
171
|
return (i = e.bindingPaths[0]) == null ? void 0 : i.id;
|
|
173
172
|
}))
|
|
174
173
|
), b = F(() => t.modelValue.filter((e) => e.type === "RECIPE")), P = { amount: 1, precision: 0 }, h = G({});
|
|
175
|
-
function
|
|
174
|
+
function C(e) {
|
|
176
175
|
return h[e.id] ?? S(e.amount ?? P);
|
|
177
176
|
}
|
|
178
|
-
function
|
|
179
|
-
h[e.id] = i,
|
|
177
|
+
function Z(e, i) {
|
|
178
|
+
h[e.id] = i, ie(e.id, i, t.modelValue);
|
|
180
179
|
}
|
|
181
|
-
const { promptIngredientsBinding:
|
|
182
|
-
async function
|
|
180
|
+
const { promptIngredientsBinding: ee, promptRecipesBinding: ne } = Be();
|
|
181
|
+
async function te() {
|
|
183
182
|
if (t.iframeMode) {
|
|
184
183
|
g("click:pick-inventory-bindings", "RECIPE");
|
|
185
184
|
return;
|
|
186
185
|
}
|
|
187
|
-
|
|
186
|
+
ne(
|
|
188
187
|
t.modelValue,
|
|
189
188
|
(e) => g("update:modelValue", e),
|
|
190
189
|
t.id ? [t.id] : []
|
|
191
190
|
);
|
|
192
191
|
}
|
|
193
192
|
const D = F(() => t.modelValue.filter((e) => e.type === "SKU") ?? []);
|
|
194
|
-
async function
|
|
193
|
+
async function oe() {
|
|
195
194
|
if (t.iframeMode) {
|
|
196
195
|
g("click:pick-inventory-bindings", "SKU");
|
|
197
196
|
return;
|
|
198
197
|
}
|
|
199
|
-
|
|
198
|
+
ee(
|
|
200
199
|
t.modelValue,
|
|
201
200
|
(e) => g("update:modelValue", e),
|
|
202
201
|
t.excludeBindingId,
|
|
203
202
|
t.id ? [t.id] : []
|
|
204
203
|
);
|
|
205
204
|
}
|
|
206
|
-
function
|
|
205
|
+
function ie(e, i, o) {
|
|
206
|
+
if (j()(i) !== !0) return;
|
|
207
207
|
const _ = +i;
|
|
208
208
|
let V = o;
|
|
209
|
-
i.length > 0 && isFinite(_) ? V = o.map((B) => (B.id !== e || (B.amount =
|
|
209
|
+
i.length > 0 && isFinite(_) ? V = o.map((B) => (B.id !== e || (B.amount = ve.fromNumber(_)), B)) : V = o.map((B) => (B.id !== e || (B.amount = { amount: 0, precision: 0 }), B)), g("update:modelValue", V);
|
|
210
210
|
}
|
|
211
|
-
function
|
|
211
|
+
function T(e, i) {
|
|
212
212
|
delete h[e];
|
|
213
213
|
const o = i.filter((_) => _.id !== e);
|
|
214
214
|
g("update:modelValue", o);
|
|
215
215
|
}
|
|
216
216
|
function z(e) {
|
|
217
217
|
var o, _;
|
|
218
|
-
if (e.type !==
|
|
218
|
+
if (e.type !== _e.enum.SKU)
|
|
219
219
|
throw new Error("Non-SKU binding does not have unit");
|
|
220
220
|
if (!((o = x.value[e.id]) == null ? void 0 : o.unit))
|
|
221
221
|
throw new Error(`Cannot find ingredient: ${e.id}`);
|
|
222
222
|
return (_ = x.value[e.id]) == null ? void 0 : _.unit;
|
|
223
223
|
}
|
|
224
|
-
function
|
|
224
|
+
function le(e) {
|
|
225
225
|
return !x.value[e.id];
|
|
226
226
|
}
|
|
227
|
-
function
|
|
227
|
+
function se(e) {
|
|
228
228
|
return { amount: e.amount, measurement: e.measurement };
|
|
229
229
|
}
|
|
230
|
-
function
|
|
230
|
+
function re(e, i, o) {
|
|
231
231
|
const _ = o.map((V) => V.id !== e ? V : {
|
|
232
232
|
...V,
|
|
233
233
|
amount: i.amount,
|
|
@@ -236,7 +236,7 @@ const we = {
|
|
|
236
236
|
g("update:modelValue", _);
|
|
237
237
|
}
|
|
238
238
|
const L = G({});
|
|
239
|
-
function
|
|
239
|
+
function ae(e) {
|
|
240
240
|
return L[e.id] ?? {
|
|
241
241
|
modelValue: {
|
|
242
242
|
amount: e.amount,
|
|
@@ -245,8 +245,8 @@ const we = {
|
|
|
245
245
|
amountAsString: S(e.amount)
|
|
246
246
|
};
|
|
247
247
|
}
|
|
248
|
-
function
|
|
249
|
-
|
|
248
|
+
function de(e, i) {
|
|
249
|
+
pe(() => {
|
|
250
250
|
L[e.id] = {
|
|
251
251
|
modelValue: {
|
|
252
252
|
amount: e.amount,
|
|
@@ -258,7 +258,7 @@ const we = {
|
|
|
258
258
|
}
|
|
259
259
|
return (e, i) => {
|
|
260
260
|
const o = E("FmFormGroup"), _ = E("FmButton"), V = E("FmTooltip"), B = E("FmTextField"), O = E("FmIcon");
|
|
261
|
-
return a(), m("div",
|
|
261
|
+
return a(), m("div", Ne, [
|
|
262
262
|
y(o, {
|
|
263
263
|
disabled: e.disabled,
|
|
264
264
|
"model-value": e.modelValue,
|
|
@@ -267,85 +267,85 @@ const we = {
|
|
|
267
267
|
() => d.value.length ? "There is a binding error in your configuration" : !0
|
|
268
268
|
]
|
|
269
269
|
}, {
|
|
270
|
-
label:
|
|
270
|
+
label: A(() => i[0] || (i[0] = [
|
|
271
271
|
n("div", { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, " Define the inventory bindings for this recipe or ingredient. ", -1)
|
|
272
272
|
])),
|
|
273
273
|
_: 1
|
|
274
274
|
}, 8, ["disabled", "model-value", "rules"]),
|
|
275
275
|
n("div", Pe, [
|
|
276
276
|
n("div", Te, [
|
|
277
|
-
n("div",
|
|
277
|
+
n("div", Se, f(s(r)("inventory.inventoryBindings.recipe")), 1),
|
|
278
278
|
e.readonly ? I("", !0) : (a(), K(_, {
|
|
279
279
|
key: 0,
|
|
280
280
|
variant: "secondary",
|
|
281
281
|
"text-color": "primary",
|
|
282
282
|
"border-color": "primary",
|
|
283
|
-
label: r
|
|
283
|
+
label: s(r)("inventory.inventoryBindings.linkRecipe"),
|
|
284
284
|
"prepend-icon": "link",
|
|
285
|
-
onClick:
|
|
285
|
+
onClick: te
|
|
286
286
|
}, null, 8, ["label"]))
|
|
287
287
|
]),
|
|
288
|
-
n("div",
|
|
289
|
-
n("div",
|
|
290
|
-
n("div",
|
|
288
|
+
n("div", Me, [
|
|
289
|
+
n("div", De, [
|
|
290
|
+
n("div", ze, f(s(r)("inventory.inventoryBindings.recipe")), 1),
|
|
291
291
|
i[1] || (i[1] = n("div", { class: "w-[200px]" }, null, -1)),
|
|
292
292
|
i[2] || (i[2] = n("div", { class: "w-[52px]" }, null, -1))
|
|
293
293
|
]),
|
|
294
|
-
(a(!0), m(
|
|
295
|
-
var
|
|
294
|
+
(a(!0), m($, null, M(b.value, (l) => {
|
|
295
|
+
var U;
|
|
296
296
|
return a(), m("div", {
|
|
297
297
|
key: l.id,
|
|
298
298
|
class: "flex flex-col w-full border-b border-fm-color-neutral-gray-100"
|
|
299
299
|
}, [
|
|
300
|
-
n("div",
|
|
301
|
-
n("div",
|
|
300
|
+
n("div", Le, [
|
|
301
|
+
n("div", Oe, [
|
|
302
302
|
y(V, {
|
|
303
303
|
zIndex: 51,
|
|
304
304
|
variant: "plain",
|
|
305
305
|
placement: "top",
|
|
306
|
-
content: (
|
|
306
|
+
content: (U = R.value[l.id]) == null ? void 0 : U.name
|
|
307
307
|
}, {
|
|
308
|
-
default:
|
|
308
|
+
default: A(() => {
|
|
309
309
|
var w;
|
|
310
310
|
return [
|
|
311
|
-
n("span",
|
|
311
|
+
n("span", Ge, f((w = R.value[l.id]) == null ? void 0 : w.name), 1)
|
|
312
312
|
];
|
|
313
313
|
}),
|
|
314
314
|
_: 2
|
|
315
315
|
}, 1032, ["content"])
|
|
316
316
|
]),
|
|
317
|
-
n("div",
|
|
317
|
+
n("div", Ke, [
|
|
318
318
|
y(o, {
|
|
319
319
|
disabled: e.disabled,
|
|
320
|
-
modelValue: +
|
|
321
|
-
rules: [
|
|
320
|
+
modelValue: s(j)()(C(l)) === !0 ? +C(l) : C(l),
|
|
321
|
+
rules: [s(he)(e.allowRecipeDecimal ? 5 : 0), s(W)(-1)]
|
|
322
322
|
}, {
|
|
323
|
-
default:
|
|
323
|
+
default: A(({ invalid: w }) => [
|
|
324
324
|
y(B, {
|
|
325
325
|
class: "w-full",
|
|
326
326
|
disabled: e.disabled,
|
|
327
|
-
modelValue:
|
|
328
|
-
"onUpdate:modelValue": (k) =>
|
|
327
|
+
modelValue: C(l),
|
|
328
|
+
"onUpdate:modelValue": (k) => Z(l, k),
|
|
329
329
|
invalid: w
|
|
330
330
|
}, null, 8, ["disabled", "modelValue", "onUpdate:modelValue", "invalid"])
|
|
331
331
|
]),
|
|
332
332
|
_: 2
|
|
333
333
|
}, 1032, ["disabled", "modelValue", "rules"])
|
|
334
334
|
]),
|
|
335
|
-
e.readonly ? I("", !0) : (a(), m("div",
|
|
335
|
+
e.readonly ? I("", !0) : (a(), m("div", We, [
|
|
336
336
|
y(_, {
|
|
337
337
|
disabled: e.disabled,
|
|
338
338
|
type: "button",
|
|
339
339
|
variant: "plain",
|
|
340
340
|
icon: "delete",
|
|
341
341
|
"icon-color": "#000000",
|
|
342
|
-
onClick: (w) =>
|
|
342
|
+
onClick: (w) => T(l.id, e.modelValue)
|
|
343
343
|
}, null, 8, ["disabled", "onClick"])
|
|
344
344
|
]))
|
|
345
345
|
]),
|
|
346
|
-
y(
|
|
346
|
+
y($e, {
|
|
347
347
|
"recipe-id": l.id,
|
|
348
|
-
multiplier:
|
|
348
|
+
multiplier: C(l)
|
|
349
349
|
}, null, 8, ["recipe-id", "multiplier"]),
|
|
350
350
|
c.value.has(l.id) ? (a(), m("div", je, [
|
|
351
351
|
y(O, {
|
|
@@ -353,107 +353,107 @@ const we = {
|
|
|
353
353
|
color: "system-error-300",
|
|
354
354
|
size: "sm"
|
|
355
355
|
}),
|
|
356
|
-
n("div", null, f(r
|
|
356
|
+
n("div", null, f(s(r)("inventory.inventoryBindings.circularError")), 1)
|
|
357
357
|
])) : I("", !0)
|
|
358
358
|
]);
|
|
359
359
|
}), 128))
|
|
360
360
|
])
|
|
361
361
|
]),
|
|
362
|
-
n("div",
|
|
363
|
-
n("div",
|
|
364
|
-
n("div",
|
|
362
|
+
n("div", Ye, [
|
|
363
|
+
n("div", qe, [
|
|
364
|
+
n("div", He, f(s(r)("inventory.inventoryBindings.ingredient")), 1),
|
|
365
365
|
e.readonly ? I("", !0) : (a(), K(_, {
|
|
366
366
|
key: 0,
|
|
367
367
|
variant: "secondary",
|
|
368
368
|
"text-color": "primary",
|
|
369
369
|
"border-color": "primary",
|
|
370
|
-
label: r
|
|
370
|
+
label: s(r)("inventory.inventoryBindings.linkIngredient"),
|
|
371
371
|
"prepend-icon": "link",
|
|
372
|
-
onClick:
|
|
372
|
+
onClick: oe
|
|
373
373
|
}, null, 8, ["label"]))
|
|
374
374
|
]),
|
|
375
|
-
n("div",
|
|
376
|
-
n("div",
|
|
377
|
-
n("div",
|
|
378
|
-
n("div",
|
|
375
|
+
n("div", Je, [
|
|
376
|
+
n("div", Qe, [
|
|
377
|
+
n("div", Xe, f(s(r)("inventory.inventoryBindings.ingredient")), 1),
|
|
378
|
+
n("div", Ze, f(s(r)("inventory.inventoryBindings.amount")), 1),
|
|
379
379
|
i[3] || (i[3] = n("div", { class: "w-[52px]" }, null, -1))
|
|
380
380
|
]),
|
|
381
|
-
(a(!0), m(
|
|
381
|
+
(a(!0), m($, null, M(D.value, (l, U) => {
|
|
382
382
|
var w;
|
|
383
|
-
return a(), m(
|
|
383
|
+
return a(), m($, {
|
|
384
384
|
key: l.id
|
|
385
385
|
}, [
|
|
386
|
-
|
|
387
|
-
n("div",
|
|
388
|
-
n("div",
|
|
389
|
-
e.readonly ? I("", !0) : (a(), m("div",
|
|
386
|
+
le(l) ? (a(), m("div", en, [
|
|
387
|
+
n("div", nn, [
|
|
388
|
+
n("div", tn, f(l.id), 1),
|
|
389
|
+
e.readonly ? I("", !0) : (a(), m("div", on, [
|
|
390
390
|
y(_, {
|
|
391
391
|
disabled: e.disabled,
|
|
392
392
|
type: "button",
|
|
393
393
|
variant: "tertiary",
|
|
394
394
|
icon: "delete",
|
|
395
|
-
onClick: (k) =>
|
|
395
|
+
onClick: (k) => T(l.id, e.modelValue)
|
|
396
396
|
}, null, 8, ["disabled", "onClick"])
|
|
397
397
|
]))
|
|
398
398
|
]),
|
|
399
|
-
n("div",
|
|
399
|
+
n("div", ln, [
|
|
400
400
|
y(O, {
|
|
401
401
|
name: "error",
|
|
402
402
|
color: "system-error-300",
|
|
403
403
|
size: "sm"
|
|
404
404
|
}),
|
|
405
|
-
n("div", null, f(r
|
|
405
|
+
n("div", null, f(s(r)("inventory.inventoryBindings.missingIngredient")), 1)
|
|
406
406
|
])
|
|
407
|
-
])) : (a(), m("div",
|
|
408
|
-
n("div",
|
|
409
|
-
n("div",
|
|
407
|
+
])) : (a(), m("div", sn, [
|
|
408
|
+
n("div", rn, [
|
|
409
|
+
n("div", an, [
|
|
410
410
|
y(V, {
|
|
411
411
|
zIndex: 51,
|
|
412
412
|
variant: "plain",
|
|
413
413
|
placement: "top",
|
|
414
414
|
content: (w = x.value[l.id]) == null ? void 0 : w.name
|
|
415
415
|
}, {
|
|
416
|
-
default:
|
|
416
|
+
default: A(() => {
|
|
417
417
|
var k;
|
|
418
418
|
return [
|
|
419
|
-
n("span",
|
|
419
|
+
n("span", dn, f((k = x.value[l.id]) == null ? void 0 : k.name), 1)
|
|
420
420
|
];
|
|
421
421
|
}),
|
|
422
422
|
_: 2
|
|
423
423
|
}, 1032, ["content"])
|
|
424
424
|
]),
|
|
425
|
-
n("div",
|
|
426
|
-
y(
|
|
427
|
-
"model-value":
|
|
428
|
-
"onUpdate:modelValue": (k) => k &&
|
|
429
|
-
"onUpdate:amount": (k) =>
|
|
425
|
+
n("div", un, [
|
|
426
|
+
y(ke, {
|
|
427
|
+
"model-value": se(l),
|
|
428
|
+
"onUpdate:modelValue": (k) => k && re(l.id, k, e.modelValue),
|
|
429
|
+
"onUpdate:amount": (k) => de(l, k),
|
|
430
430
|
unit: z(l),
|
|
431
|
-
placement:
|
|
431
|
+
placement: U === D.value.length - 1 ? "top" : "bottom",
|
|
432
432
|
"convert-amount-on-change-unit": "",
|
|
433
433
|
disabled: e.readonly
|
|
434
434
|
}, null, 8, ["model-value", "onUpdate:modelValue", "onUpdate:amount", "unit", "placement", "disabled"])
|
|
435
435
|
]),
|
|
436
|
-
e.readonly ? I("", !0) : (a(), m("div",
|
|
436
|
+
e.readonly ? I("", !0) : (a(), m("div", mn, [
|
|
437
437
|
y(_, {
|
|
438
438
|
disabled: e.disabled,
|
|
439
439
|
type: "button",
|
|
440
440
|
variant: "tertiary",
|
|
441
441
|
icon: "delete",
|
|
442
|
-
onClick: (k) =>
|
|
442
|
+
onClick: (k) => T(l.id, e.modelValue)
|
|
443
443
|
}, null, 8, ["disabled", "onClick"])
|
|
444
444
|
]))
|
|
445
445
|
]),
|
|
446
|
-
n("div",
|
|
446
|
+
n("div", cn, [
|
|
447
447
|
y(o, {
|
|
448
|
-
modelValue: +
|
|
449
|
-
rules: [
|
|
448
|
+
modelValue: +s(S)(l.amount ?? { amount: 1, precision: 0 }),
|
|
449
|
+
rules: [s(W)(0)]
|
|
450
450
|
}, null, 8, ["modelValue", "rules"]),
|
|
451
451
|
y(o, {
|
|
452
|
-
modelValue:
|
|
452
|
+
modelValue: ae(l),
|
|
453
453
|
rules: [
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
() => c.value.has(l.id) ? r
|
|
454
|
+
s(Ie)(),
|
|
455
|
+
s(Ve)(z(l)),
|
|
456
|
+
() => c.value.has(l.id) ? s(r)("inventory.inventoryBindings.invalidWarning") : !0
|
|
457
457
|
]
|
|
458
458
|
}, null, 8, ["modelValue", "rules"])
|
|
459
459
|
])
|
|
@@ -468,5 +468,5 @@ const we = {
|
|
|
468
468
|
});
|
|
469
469
|
export {
|
|
470
470
|
gn as _,
|
|
471
|
-
|
|
471
|
+
$e as a
|
|
472
472
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as l, resolveComponent as m, createBlock as c, openBlock as d, h as g } from "vue";
|
|
2
2
|
import { useI18n as p } from "@feedmepos/mf-common";
|
|
3
3
|
import { components as u } from "@feedmepos/ui-library";
|
|
4
|
-
import { F as r } from "./app-
|
|
4
|
+
import { F as r } from "./app-VtVYHCDF.js";
|
|
5
5
|
const w = /* @__PURE__ */ l({
|
|
6
6
|
__name: "InventoryBindingSummary",
|
|
7
7
|
props: {
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { defineComponent as s, ref as a, onMounted as i, onBeforeUnmount as l, createElementBlock as c, openBlock as p } from "vue";
|
|
2
|
+
import { E as e, b as u, j as f } from "./index-C25C1Dg7.js";
|
|
3
|
+
const w = /* @__PURE__ */ s({
|
|
4
|
+
__name: "JsonViewer",
|
|
5
|
+
props: {
|
|
6
|
+
value: {}
|
|
7
|
+
},
|
|
8
|
+
setup(t) {
|
|
9
|
+
const r = t, n = a(null);
|
|
10
|
+
let o;
|
|
11
|
+
return i(() => {
|
|
12
|
+
o = new e({
|
|
13
|
+
parent: n.value,
|
|
14
|
+
doc: JSON.stringify(r.value, null, 2),
|
|
15
|
+
extensions: [u, f(), e.editable.of(!1), e.lineWrapping]
|
|
16
|
+
});
|
|
17
|
+
}), l(() => o.destroy()), (m, _) => (p(), c("div", {
|
|
18
|
+
ref_key: "container",
|
|
19
|
+
ref: n
|
|
20
|
+
}, null, 512));
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
export {
|
|
24
|
+
w as _
|
|
25
|
+
};
|