@feedmepos/mf-inventory-portal 1.8.0-dev.8 → 1.8.1
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-BPhAFsnf.js} +515 -536
- package/dist/{ApprovalView-GHgTeCBV.js → ApprovalView-DuJIX7ux.js} +26 -25
- package/dist/{BindingsDialog-C4-S2CWk.js → BindingsDialog-BiNopu6T.js} +2 -2
- package/dist/{BindingsPicker-C7YUArBj.js → BindingsPicker-C2GUK3np.js} +2 -2
- package/dist/{BindingsTable-1Zoqi4ZS.js → BindingsTable-DlPl5o1h.js} +10 -10
- package/dist/BulkReceiveRequestPage-YtqUSPUN.js +2839 -0
- package/dist/{ChangeLocationComponent.vue_vue_type_script_setup_true_lang-DFSg0-gv.js → ChangeLocationComponent.vue_vue_type_script_setup_true_lang-CAKGP0N3.js} +1 -1
- package/dist/{ClosingDraftView-CnWFyWSE.js → ClosingDraftView-C0XEpqat.js} +748 -746
- package/dist/{ClosingHistoryView-Bkm0voU6.js → ClosingHistoryView-C2Bl2vnF.js} +7 -7
- package/dist/{ClosingTemplateView-Bz81JTsg.js → ClosingTemplateView-DAXyH1l9.js} +22 -21
- package/dist/{CustomPrintTemplatePreview.vue_vue_type_script_setup_true_lang-6s-24euf.js → CustomPrintTemplatePreview.vue_vue_type_script_setup_true_lang-sP8-Pw8r.js} +1 -1
- package/dist/{DefaultView-1RRzbPB3.js → DefaultView-QUjOTT9z.js} +2 -2
- package/dist/{DeliveryOrderPrintPreview-KcLqjOj1.js → DeliveryOrderPrintPreview-CNO7dng4.js} +15 -15
- package/dist/{EmailDialog.vue_vue_type_script_setup_true_lang-r0Q0qhoK.js → EmailDialog.vue_vue_type_script_setup_true_lang-MiLvwxSQ.js} +9847 -9723
- package/dist/{FeatureCapabilityBadge.vue_vue_type_script_setup_true_lang-Cwmk3NLS.js → FeatureCapabilityBadge.vue_vue_type_script_setup_true_lang-Bo7xjTer.js} +11 -10
- package/dist/FeatureCapabilityGate-CQrRBMcC.js +82 -0
- package/dist/FeaturePageGate.vue_vue_type_script_setup_true_lang-CIKrUrln.js +189 -0
- package/dist/{FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-pzIzIWpX.js → FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-DfCQ8SNd.js} +1 -1
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-B6cFB4vX.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BTeJz4Mm.js} +2 -2
- package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-D_o6pX9i.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-DiwH0vnm.js} +2 -2
- package/dist/{FmMultiselectDialog-D0GhmOQ9.js → FmMultiselectDialog-BZvKKnBB.js} +2 -2
- package/dist/{FmMultiselectDialog-CC_Na_p1.js → FmMultiselectDialog-Dne8GSe8.js} +2 -2
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-DQlSMRoB.js → FmUnitInput.vue_vue_type_script_setup_true_lang-D1-MLyJi.js} +105 -99
- package/dist/ImportView-Dr-2cv9N.js +1540 -0
- package/dist/{IngredientsView-B2I2OPSb.js → IngredientsView-BnaNrWb7.js} +367 -365
- package/dist/{IntegrationExplorerView-WK1EmwLA.js → IntegrationExplorerView-Bjflxeha.js} +1537 -1620
- package/dist/IntegrationPlatformView-fO7R9fGT.js +13385 -0
- package/dist/{IntegrationView-CeaL92Yj.js → IntegrationView-CxpmB0o2.js} +2380 -2340
- package/dist/{InventoryBindingForm-DgtaDM0I.js → InventoryBindingForm-DbgvnZ9I.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-CqDN355J.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-3stkPlAW.js} +134 -134
- package/dist/{InventoryBindingSummary-C_W456aj.js → InventoryBindingSummary-BrIFW5dO.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-BAVjiZbm.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-DhImFq9B.js +2317 -0
- package/dist/{ProductionRunLifecycleDialogs.vue_vue_type_script_setup_true_lang-DwBY6gIb.js → ProductionRunLifecycleDialogs.vue_vue_type_script_setup_true_lang-CCUBGX4K.js} +3051 -3161
- package/dist/ProductionRunPage-D9SaErg3.js +954 -0
- package/dist/{PublishView-Dv-W6ntx.js → PublishView-CmqorDCm.js} +3 -3
- package/dist/{PurchaseOrderPrintPreview-D1TAnJd_.js → PurchaseOrderPrintPreview-CvplcGNv.js} +17 -17
- package/dist/{ReceiveRequestView-Rc_uw_Ad.js → ReceiveRequestView-DAN7eOH5.js} +17 -16
- package/dist/RecipeView-CgJcpA_f.js +3272 -0
- package/dist/{SettingsView-K5wAt8oo.js → SettingsView-I1XEa1NJ.js} +398 -425
- package/dist/StockView-C2tK0oPv.js +3003 -0
- package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-CsRLy0xI.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-DSz37GY_.js} +1 -1
- package/dist/{SupplierView-CLVupRN0.js → SupplierView-C69gOB_i.js} +21 -20
- package/dist/{SurchargeView-CToB_z5v.js → SurchargeView-DfDtR1jP.js} +7 -7
- package/dist/{SystemTrailDialog.vue_vue_type_script_setup_true_lang-CvqIw9q6.js → SystemTrailDialog.vue_vue_type_script_setup_true_lang-CWD44FiP.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-5RLeEfkg.js +332 -0
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-Dzlex2fK.js +4953 -0
- package/dist/TransferTemplateView-Dc892CSr.js +2347 -0
- package/dist/{UnitCostHistoryView-BMB2MeTh.js → UnitCostHistoryView-DkuDLBSq.js} +4 -4
- package/dist/{UnitDisplayControl.vue_vue_type_script_setup_true_lang-Dn8Y8zfp.js → UnitDisplayControl.vue_vue_type_script_setup_true_lang-3Iyv5v10.js} +4 -4
- package/dist/{UnitView-Bl8jws6R.js → UnitView-CakqjGDe.js} +111 -106
- package/dist/{WarehouseView-BurSM1jg.js → WarehouseView-AUPuNwRA.js} +12 -11
- package/dist/{WastageTemplateView-DRfJ9LGR.js → WastageTemplateView-1kxcX31h.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-Duum3eHx.js → app-tiHt7P8o.js} +9786 -9547
- package/dist/app.d.ts +151 -14
- package/dist/app.js +1 -1
- package/dist/bulk-edit-simulation.helper-D490leZh.js +178 -0
- package/dist/{closing-template-BE41yfue.js → closing-template-CAahWrPo.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-CKKZ3b1E.js} +1 -1
- package/dist/{dayjs.min-CQp6EpOp.js → dayjs.min-CXmScEL-.js} +1 -1
- package/dist/{decimal-Cq0qUT4r.js → decimal-CE8yRxZg.js} +2 -2
- package/dist/{defineDeepModel-DRC39nJs.js → defineDeepModel-BRZrUePH.js} +5 -5
- package/dist/{duplicate-template-j2ymeDNH.js → duplicate-template-DGrH04lc.js} +1 -1
- package/dist/{feature-C0hQza5A.js → feature-BuUIX2LY.js} +327 -287
- 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-BQOfGm26.js} +1 -1
- package/dist/{format-unit-display-CRgIMXsD.js → format-unit-display-BuBfy3bb.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-B_aPAdeF.js} +1 -1
- package/dist/{import-export.helper-B43zbsbj.js → import-export.helper-DPqodvrw.js} +17 -17
- package/dist/{JsonViewer.vue_vue_type_script_setup_true_lang-ig2zSXAB.js → index-C25C1Dg7.js} +1074 -1066
- package/dist/{index-BYDjs08n.js → index-CBkSXbQw.js} +2234 -2163
- package/dist/{index-Cwvg7EHd.js → index-EgLlcZ4g.js} +3 -3
- package/dist/index-eGvSlWMU.js +1892 -0
- package/dist/{index-DXNYZeq3.js → index-yTHfPUVq.js} +1 -1
- package/dist/layout/SingleColumnLayout.vue.d.ts +1 -1
- package/dist/{lz-string-6DgW1cPF.js → lz-string-Dgq0u7oK.js} +1 -1
- package/dist/menu-usage-module-Bq_KLsO4.js +74 -0
- package/dist/{netsuite-BSpmyaE1.js → netsuite-BgB1tjJx.js} +254 -263
- package/dist/netsuite-explorer-BMtIwGyi.js +79 -0
- package/dist/{predefined-templates-C0jtb4T7.js → predefined-templates-BiuP4m7R.js} +1 -1
- package/dist/production-run-list-DR1WsaBR.js +61 -0
- package/dist/{purchase-order-template-B5Pjddfi.js → purchase-order-template-D5Z0bPLL.js} +1 -1
- package/dist/{recalculationUtils-DtJWwWSj.js → recalculationUtils-BitV6W_8.js} +1 -1
- package/dist/router/name.d.ts +2 -1
- package/dist/{row-action.enum-BDDJNSi0.js → row-action.enum-CTNl1V0l.js} +1 -1
- package/dist/rules-BpG29H9Z.js +243 -0
- package/dist/{stock-BKMDvf5S.js → stock-DNV9xfbE.js} +1 -1
- package/dist/stock-DTzUuxKl.js +78 -0
- package/dist/stores/feature.d.ts +26 -8
- 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-8uMx5fFa.js} +2 -2
- package/dist/{surcharge-ktE1pRyy.js → surcharge-D0c44dor.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{uom-rules-DCnXmEkb.js → uom-rules-BErW6UQ4.js} +1 -1
- package/dist/{use-ingredient-select-dialog-CYUUVrCI.js → use-ingredient-select-dialog-CZTe4ayv.js} +2 -2
- package/dist/{use-inventory-binding-dialog-Dugj9i-6.js → use-inventory-binding-dialog-D_N7K7pw.js} +2 -2
- package/dist/{use-template-enabled-locations-BlZ7WAqX.js → use-template-enabled-locations-C1xNZr4V.js} +2 -2
- package/dist/{use-transfer-locations-CUDFnsVH.js → use-transfer-locations-BlSNA3qv.js} +14 -14
- package/dist/{useHrmPermission-BOwmXi9H.js → useHrmPermission-Bd1_Ia_U.js} +1 -1
- package/dist/{useNavigationMenu-CbNKFBwx.js → useNavigationMenu-DXrUeRX9.js} +39 -39
- package/dist/{useSseClient-CdyQh47h.js → useSseClient-Di0ywAz-.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-C029rfpt.js} +101 -80
- package/dist/{vue-i18n-dSKy66Jh.js → vue-i18n-Bg7KOfUG.js} +416 -416
- package/dist/{xlsx.util-pjzuMquw.js → xlsx.util-BQrh6imS.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/api/license.d.ts +0 -8
- 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,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-tiHt7P8o.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-BpG29H9Z.js";
|
|
4
|
+
import { u as Be } from "./use-inventory-binding-dialog-D_N7K7pw.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-D1-MLyJi.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-tiHt7P8o.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
|
+
};
|