@feedmepos/mf-inventory-portal 1.7.15-dev.3 → 1.7.16-dev.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-B1h66sv9.js → App-DFSszWS2.js} +7 -7
- package/dist/{ApprovalView-DKlVcGah.js → ApprovalView-sHjUr1tA.js} +9 -9
- package/dist/{BindingsDialog-CxHlh0kQ.js → BindingsDialog-B-64TNTI.js} +2 -2
- package/dist/{BindingsPicker-BiF5OZEi.js → BindingsPicker-Czn-jEHe.js} +2 -2
- package/dist/{BindingsTable-CygkFbyE.js → BindingsTable-CmB0b3ov.js} +4 -4
- package/dist/{BulkReceiveRequestView-Cf4IHMVn.js → BulkReceiveRequestView-BjGCwQiH.js} +19 -19
- package/dist/{ClosingDraftView-DFnGCAHQ.js → ClosingDraftView-DJLqwVmZ.js} +19 -19
- package/dist/{ClosingHistoryView-c51cSbco.js → ClosingHistoryView-Dj170bDN.js} +5 -5
- package/dist/{ClosingTemplateView-tKdJEP6p.js → ClosingTemplateView-DsfJz31T.js} +16 -16
- package/dist/{CustomPrintTemplatePreview.vue_vue_type_script_setup_true_lang-Br8lpoIh.js → CustomPrintTemplatePreview.vue_vue_type_script_setup_true_lang-CitZIaJ7.js} +1 -1
- package/dist/{DefaultView-2PPCmcbd.js → DefaultView-CsI2C4Hr.js} +2 -2
- package/dist/{DeliveryOrderPrintPreview-BKSQLP79.js → DeliveryOrderPrintPreview-8EupGZmv.js} +12 -12
- package/dist/{EmailDialog.vue_vue_type_script_setup_true_lang-DNbWlGwL.js → EmailDialog.vue_vue_type_script_setup_true_lang-DX_o7mMG.js} +23 -23
- package/dist/{FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-D-EePpPI.js → FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-Vn94NCmp.js} +1 -1
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BUrLcbIR.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-nq-MgcVV.js} +2 -2
- package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-DAFZz6rG.js +243 -0
- package/dist/{FmMultiselectDialog-4K4U13Fa.js → FmMultiselectDialog-B5gQRKE6.js} +1 -1
- package/dist/{FmMultiselectDialog-CMUU4YMv.js → FmMultiselectDialog-CZr-dX4K.js} +2 -2
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-CWPYtvi-.js → FmUnitInput.vue_vue_type_script_setup_true_lang-BtZOjqlQ.js} +66 -63
- package/dist/{ImportView-3BL5dbPC.js → ImportView-Htolj46U.js} +6 -6
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-Gt9-RVuI.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-CTlKy5y-.js} +1 -1
- package/dist/{IngredientGroupView-CrQr-Wcc.js → IngredientGroupView-zZgJ3F9O.js} +5 -5
- package/dist/{IngredientsView-Co_ULkb6.js → IngredientsView-BhIIUpq5.js} +15 -15
- package/dist/{IntegrationExplorerView-Byz0ZiN7.js → IntegrationExplorerView-a7EEa4a4.js} +4 -4
- package/dist/{IntegrationView-BZvXCtuu.js → IntegrationView-Dbr7gTAK.js} +14 -14
- package/dist/{InventoryBindingForm-D7at6ntj.js → InventoryBindingForm-DSAHtnBI.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-BfN7YCnp.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-CQToFOhK.js} +5 -5
- package/dist/{InventoryBindingSummary-DIWHwJwb.js → InventoryBindingSummary-D_jEP9vJ.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DLIYFBaL.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BNsoxRX6.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-BIjAFa7R.js → PremiumBadge.vue_vue_type_script_setup_true_lang-BdqeMPWW.js} +1 -1
- package/dist/ProductionRunDetailView-DnIVaUbO.js +2284 -0
- package/dist/ProductionRunPreparePrintView-B7KsNPgV.js +34 -0
- package/dist/ProductionRunTabs.vue_vue_type_script_setup_true_lang-DkvVIKgN.js +7543 -0
- package/dist/ProductionRunView-9tC9ljDT.js +911 -0
- package/dist/{PublishView-qzVWXhU2.js → PublishView-tOyFyzkR.js} +3 -3
- package/dist/{PurchaseOrderPrintPreview-Dv107ZcE.js → PurchaseOrderPrintPreview-CKyZ5jco.js} +7 -7
- package/dist/{ReceiveRequestView-BoDIlSIR.js → ReceiveRequestView-Brjz7YtB.js} +14 -14
- package/dist/{RecipeView-CZExmd9h.js → RecipeView-DntISZwO.js} +17 -17
- package/dist/{SettingsView-JvHtBOeh.js → SettingsView-_uzG3DYW.js} +4 -4
- package/dist/{StockView-DtAlqzrF.js → StockView-D0ns42PP.js} +363 -363
- package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-DWxA3wuR.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-KlyTPTxq.js} +1 -1
- package/dist/{SupplierView-DIxYLwEk.js → SupplierView-Cg0BEv_J.js} +12 -12
- package/dist/{SurchargeView-BeMy7-Lu.js → SurchargeView-CtNt10E_.js} +6 -6
- package/dist/{SystemTrailDialog.vue_vue_type_script_setup_true_lang-DrOVu6wg.js → SystemTrailDialog.vue_vue_type_script_setup_true_lang-Dm31p8O3.js} +2 -2
- package/dist/{TemplatePublishDialog.vue_vue_type_script_setup_true_lang-Chhxtkov.js → TemplatePublishDialog.vue_vue_type_script_setup_true_lang-C4zoOWNW.js} +1 -1
- package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-2LCcSzCa.js → TransferDetails.vue_vue_type_script_setup_true_lang-nWON2kfX.js} +120 -120
- package/dist/{TransferTemplateView-DK_UHrGt.js → TransferTemplateView-DA-0VP3h.js} +20 -20
- package/dist/{UnitCostHistoryView-CbX9hG9F.js → UnitCostHistoryView-BIcZSZeY.js} +4 -4
- package/dist/{UnitDisplayControl.vue_vue_type_script_setup_true_lang-CDQ7c1Gl.js → UnitDisplayControl.vue_vue_type_script_setup_true_lang-D2dmslg4.js} +4 -4
- package/dist/{UnitView-Cc_PTKs_.js → UnitView-B7hMqpmo.js} +7 -7
- package/dist/{WarehouseView-a-D3zs6h.js → WarehouseView-DQZhCobt.js} +334 -334
- package/dist/{WastageTemplateView-CFRi5Pvf.js → WastageTemplateView-Bg4oY2Vw.js} +14 -14
- package/dist/api/netsuite.d.ts +14 -8
- package/dist/api/production-run-error.d.ts +36 -0
- package/dist/api/production-run-error.spec.d.ts +1 -0
- package/dist/api/production-run.d.ts +80 -0
- package/dist/api/production-run.spec.d.ts +1 -0
- package/dist/{app-D8j93Oqu.js → app-CNKD3vjZ.js} +20007 -15586
- package/dist/app.d.ts +2998 -2
- package/dist/app.js +1 -1
- package/dist/{closing-template-C1b4O-N3.js → closing-template-BeegNS6p.js} +1 -1
- package/dist/components/FmUnitInput.spec.d.ts +1 -0
- package/dist/components/FmUnitInputProps.d.ts +2 -0
- package/dist/composable/useNavigationMenu.production.spec.d.ts +1 -0
- package/dist/{date2-uOSplHdf.js → date2-B00CYgio.js} +1 -1
- package/dist/{dayjs.min-jzzpE5jZ.js → dayjs.min-DPQzGVmJ.js} +1 -1
- package/dist/{decimal-8I4iIvBr.js → decimal-mk8IRyTq.js} +2 -2
- package/dist/{defineDeepModel-DBat73w6.js → defineDeepModel-DPmaWR48.js} +5 -5
- package/dist/{duplicate-template-hyvvKKZn.js → duplicate-template-CMddJ7le.js} +1 -1
- package/dist/{feature-BtW2IuYH.js → feature-fzePklTK.js} +28 -28
- package/dist/{format-time-from-id-TNzYsGd2.js → format-time-from-id-CX7mBtQD.js} +1 -1
- package/dist/{format-unit-display-Bv9J30wI.js → format-unit-display-C-WI6eC7.js} +12 -12
- package/dist/{import-export.helper-xpElLH-b.js → import-export.helper-BXXH9AYn.js} +6 -6
- package/dist/{index-CCpcCOf2.js → index-BGVJky7a.js} +1 -1
- package/dist/{index-BH22SMzP.js → index-D1nPGK7U.js} +3 -3
- package/dist/{index-CTQTVKeu.js → index-DJQBhZfo.js} +1 -1
- package/dist/{inventory-core-dart.default-BfVqWKxc.js → inventory-core-dart.default-CSFkzl91.js} +2928 -6981
- package/dist/{lz-string-BXcuXXWX.js → lz-string-CzFlgjO3.js} +1 -1
- package/dist/{netsuite-Bawdsy6u.js → netsuite-yzjEuV4c.js} +5 -3
- package/dist/{number-q25U2atb.js → number-LQ8tdP_1.js} +6 -6
- package/dist/{predefined-templates-DFETDxr0.js → predefined-templates-Db7qjPHc.js} +1 -1
- package/dist/production-run-prepare-sheet-BVAUvVqt.js +17411 -0
- package/dist/{purchase-order-template-BTSTgbF-.js → purchase-order-template-bBTN12Ij.js} +1 -1
- package/dist/{recalculationUtils-B-9ZEV5d.js → recalculationUtils-DN6oOoMX.js} +1 -1
- package/dist/router/name.d.ts +3 -1
- package/dist/router/shared.production.spec.d.ts +1 -0
- package/dist/{rules-_M2oshOW.js → rules-BdR1TB3v.js} +2 -2
- package/dist/{stock-CUsHHW7_.js → stock-AwNCy6xY.js} +1 -1
- package/dist/{stock-BdtZ5yDl.js → stock-BgGttjDF.js} +3 -3
- package/dist/stores/feature.d.ts +1 -1
- package/dist/stores/integration/codemax.d.ts +1 -1
- package/dist/stores/inventory.d.ts +10 -8
- package/dist/stores/stock.d.ts +10 -8
- package/dist/style.css +1 -1
- package/dist/{supplier-By-0Dy62.js → supplier-BNoSljLB.js} +2 -2
- package/dist/{surcharge-60G2Qke7.js → surcharge-pUc66ZZJ.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{uom-rules-DeGuMW0s.js → uom-rules-BP8Vk8Rl.js} +1 -1
- package/dist/{use-ingredient-select-dialog-BVOtYoKp.js → use-ingredient-select-dialog-DTOzSrjt.js} +2 -2
- package/dist/{use-inventory-binding-dialog-CHm1Ezmr.js → use-inventory-binding-dialog-lHpBzqDy.js} +2 -2
- package/dist/{use-template-enabled-locations-C9vWaXj1.js → use-template-enabled-locations-DmCbj6aZ.js} +2 -2
- package/dist/{use-transfer-locations-VSzkSxBy.js → use-transfer-locations-BeARyv2s.js} +2 -2
- package/dist/{useHrmPermission-B48iHLre.js → useHrmPermission-DScCpS0P.js} +1 -1
- package/dist/{useNavigationMenu-DwRXSSh_.js → useNavigationMenu-B5pf21hS.js} +17 -17
- package/dist/{useSseClient-QeF0izVY.js → useSseClient-BPR5sQ_S.js} +1 -1
- package/dist/views/closing-draft/components/closing-draft-dialog/ClosingDraftApprovalDialog.vue.d.ts +20 -16
- package/dist/views/closing-draft/components/closing-draft-dialog/ClosingDraftDialog.vue.d.ts +40 -32
- package/dist/views/closing-draft/components/closing-draft-groups/ClosingGroupDetailSideSheet.vue.d.ts +20 -16
- package/dist/views/closing-draft/composables/use-closing-draft-actions.d.ts +60 -48
- package/dist/views/closing-draft/composables/use-closing-draft-import.d.ts +10 -8
- package/dist/views/closing-draft/helpers/draft-status-to-class-name.helper.d.ts +1 -1
- package/dist/views/integration/components/ApplyProductDialogCodemax.vue.d.ts +2 -2
- package/dist/views/integration/components/CodemaxDialog.vue.d.ts +2 -2
- package/dist/views/production-run/ProductionRunDetailView.spec.d.ts +1 -0
- package/dist/views/production-run/ProductionRunDetailView.vue.d.ts +15 -0
- package/dist/views/production-run/ProductionRunPreparePrintView.spec.d.ts +1 -0
- package/dist/views/production-run/ProductionRunView.spec.d.ts +1 -0
- package/dist/views/production-run/ProductionRunView.vue.d.ts +2 -0
- package/dist/views/production-run/features/detail/ProductionRunActivityTab.spec.d.ts +1 -0
- package/dist/views/production-run/features/detail/ProductionRunActivityTab.vue.d.ts +15 -0
- package/dist/views/production-run/features/detail/ProductionRunHeader.spec.d.ts +1 -0
- package/dist/views/production-run/features/detail/ProductionRunHeader.vue.d.ts +67 -0
- package/dist/views/production-run/features/detail/ProductionRunIngredientsTab.spec.d.ts +1 -0
- package/dist/views/production-run/features/detail/ProductionRunIngredientsTab.vue.d.ts +52 -0
- package/dist/views/production-run/features/detail/ProductionRunItemsTable.spec.d.ts +1 -0
- package/dist/views/production-run/features/detail/ProductionRunItemsTable.vue.d.ts +80 -0
- package/dist/views/production-run/features/detail/ProductionRunOverviewTab.spec.d.ts +1 -0
- package/dist/views/production-run/features/detail/ProductionRunOverviewTab.vue.d.ts +1066 -0
- package/dist/views/production-run/features/detail/ProductionRunResultTable.spec.d.ts +1 -0
- package/dist/views/{production/ProductionBindingsCell.vue.d.ts → production-run/features/detail/ProductionRunResultTable.vue.d.ts} +10 -14
- package/dist/views/production-run/features/detail/ProductionRunTabs.spec.d.ts +1 -0
- package/dist/views/production-run/features/detail/ProductionRunTabs.vue.d.ts +47 -0
- package/dist/views/production-run/features/detail/ProductionRunTerminalNotice.spec.d.ts +1 -0
- package/dist/views/production-run/features/detail/ProductionRunTerminalNotice.vue.d.ts +15 -0
- package/dist/views/production-run/features/detail/use-production-run-detail.d.ts +2098 -0
- package/dist/views/production-run/features/detail/use-production-run-detail.spec.d.ts +1 -0
- package/dist/views/production-run/features/lifecycle/CancelRunDialog.spec.d.ts +1 -0
- package/dist/views/production-run/features/lifecycle/CancelRunDialog.vue.d.ts +1020 -0
- package/dist/views/production-run/features/lifecycle/CancelRunDialogProps.d.ts +9 -0
- package/dist/views/production-run/features/lifecycle/CloseRunDialog.spec.d.ts +1 -0
- package/dist/views/production-run/features/lifecycle/CloseRunDialog.vue.d.ts +1020 -0
- package/dist/views/production-run/features/lifecycle/CloseRunDialogProps.d.ts +9 -0
- package/dist/views/production-run/features/lifecycle/ProductionRunLifecycleDialogs.spec.d.ts +1 -0
- package/dist/views/production-run/features/lifecycle/ProductionRunLifecycleDialogs.vue.d.ts +3573 -0
- package/dist/views/production-run/features/lifecycle/TargetReachedDialog.spec.d.ts +1 -0
- package/dist/views/production-run/features/lifecycle/TargetReachedDialog.vue.d.ts +1026 -0
- package/dist/views/production-run/features/list/ProductionRunActionMenu.vue.d.ts +56 -0
- package/dist/views/production-run/features/list/ProductionRunActionMenuItem.spec.d.ts +1 -0
- package/dist/views/{production/ProductionCompletionDialog.vue.d.ts → production-run/features/list/ProductionRunActionMenuItem.vue.d.ts} +8 -21
- package/dist/views/production-run/features/list/ProductionRunActionsCell.spec.d.ts +1 -0
- package/dist/views/production-run/features/list/ProductionRunActionsCell.vue.d.ts +20 -0
- package/dist/views/production-run/features/list/ProductionRunItemsCell.spec.d.ts +1 -0
- package/dist/views/production-run/features/list/ProductionRunItemsCell.vue.d.ts +40 -0
- package/dist/views/production-run/features/list/ProductionRunNameCell.spec.d.ts +1 -0
- package/dist/views/production-run/features/list/ProductionRunNameCell.vue.d.ts +43 -0
- package/dist/views/production-run/features/list/ProductionRunSortHeader.spec.d.ts +1 -0
- package/dist/views/production-run/features/list/ProductionRunSortHeader.vue.d.ts +25 -0
- package/dist/views/production-run/features/list/use-production-run-table.d.ts +18 -0
- package/dist/views/production-run/features/list/use-production-run-table.spec.d.ts +1 -0
- package/dist/views/production-run/features/output/ProductionRunBatchCard.spec.d.ts +1 -0
- package/dist/views/production-run/features/output/ProductionRunBatchCard.vue.d.ts +70 -0
- package/dist/views/production-run/features/output/ProductionRunBatchWastageDetails.spec.d.ts +1 -0
- package/dist/views/production-run/features/output/ProductionRunBatchWastageDetails.vue.d.ts +33 -0
- package/dist/views/production-run/features/output/ProductionRunOutputTab.spec.d.ts +1 -0
- package/dist/views/production-run/features/output/ProductionRunOutputTab.vue.d.ts +26 -0
- package/dist/views/production-run/features/output/ProductionRunRecordOutputDetails.spec.d.ts +1 -0
- package/dist/views/production-run/features/output/ProductionRunRecordOutputDetails.vue.d.ts +43 -0
- package/dist/views/production-run/features/output/ProductionRunRecordOutputWastageStatus.spec.d.ts +1 -0
- package/dist/views/production-run/features/output/ProductionRunRecordOutputWastageStatus.vue.d.ts +31 -0
- package/dist/views/production-run/features/output/ProductionRunWastageDisclosure.spec.d.ts +1 -0
- package/dist/views/production-run/features/output/ProductionRunWastageDisclosure.vue.d.ts +23 -0
- package/dist/views/production-run/features/output/ProductionRunWastageRemarkField.spec.d.ts +1 -0
- package/dist/views/production-run/features/output/ProductionRunWastageRemarkField.vue.d.ts +33 -0
- package/dist/views/production-run/features/output/RecordOutputDialog.spec.d.ts +1 -0
- package/dist/views/production-run/features/output/RecordOutputDialog.vue.d.ts +20 -0
- package/dist/views/production-run/features/output/RecordOutputDialogProps.d.ts +28 -0
- package/dist/views/production-run/features/output/use-production-run-record-output.d.ts +245 -0
- package/dist/views/production-run/features/output/use-production-run-record-output.spec.d.ts +1 -0
- package/dist/views/production-run/features/planning/ProductionRunContributorBranch.spec.d.ts +1 -0
- package/dist/views/production-run/features/planning/ProductionRunContributorBranch.vue.d.ts +25 -0
- package/dist/views/production-run/features/planning/ProductionRunDiscardDialog.spec.d.ts +1 -0
- package/dist/views/production-run/features/planning/ProductionRunDiscardDialog.vue.d.ts +21 -0
- package/dist/views/production-run/features/planning/ProductionRunDuplicateDialog.spec.d.ts +1 -0
- package/dist/views/production-run/features/planning/ProductionRunDuplicateDialog.vue.d.ts +61 -0
- package/dist/views/production-run/features/planning/ProductionRunFormDialog.spec.d.ts +1 -0
- package/dist/views/production-run/features/planning/ProductionRunFormDialog.vue.d.ts +1022 -0
- package/dist/views/production-run/features/planning/ProductionRunFormDialogProps.d.ts +25 -0
- package/dist/views/production-run/features/planning/ProductionRunIngredientTree.spec.d.ts +1 -0
- package/dist/views/production-run/features/planning/ProductionRunIngredientTree.vue.d.ts +65 -0
- package/dist/views/production-run/features/planning/ProductionRunInstructionsCard.spec.d.ts +1 -0
- package/dist/views/production-run/features/planning/ProductionRunInstructionsCard.vue.d.ts +15 -0
- package/dist/views/production-run/features/planning/ProductionRunItemPickerDialog.spec.d.ts +1 -0
- package/dist/views/production-run/features/planning/ProductionRunItemPickerDialog.vue.d.ts +30 -0
- package/dist/views/production-run/features/planning/ProductionRunPlanCard.spec.d.ts +1 -0
- package/dist/views/production-run/features/planning/ProductionRunPlanCard.vue.d.ts +67 -0
- package/dist/views/production-run/features/planning/ProductionRunPlanner.spec.d.ts +1 -0
- package/dist/views/production-run/features/planning/ProductionRunPlanner.vue.d.ts +85 -0
- package/dist/views/production-run/features/planning/ProductionRunRequestedOverview.spec.d.ts +1 -0
- package/dist/views/production-run/features/planning/ProductionRunRequestedOverview.vue.d.ts +78 -0
- package/dist/views/production-run/features/planning/production-run-frozen-ingredients.d.ts +49 -0
- package/dist/views/production-run/features/planning/production-run-frozen-ingredients.spec.d.ts +1 -0
- package/dist/views/production-run/features/planning/use-production-run-duplicate-sources.d.ts +1525 -0
- package/dist/views/production-run/features/planning/use-production-run-duplicate-sources.spec.d.ts +1 -0
- package/dist/views/production-run/features/planning/use-production-run-form.d.ts +275 -0
- package/dist/views/production-run/features/planning/use-production-run-form.spec.d.ts +1 -0
- package/dist/views/production-run/features/prepare/PrepareRunConfirmationDialog.spec.d.ts +1 -0
- package/dist/views/production-run/features/prepare/PrepareRunConfirmationDialog.vue.d.ts +32 -0
- package/dist/views/production-run/features/prepare/PrepareRunDialog.spec.d.ts +1 -0
- package/dist/views/production-run/features/prepare/PrepareRunDialog.vue.d.ts +18 -0
- package/dist/views/production-run/features/prepare/PrepareRunDialogProps.d.ts +29 -0
- package/dist/views/production-run/features/prepare/PrepareSheetDialog.spec.d.ts +1 -0
- package/dist/views/production-run/features/prepare/PrepareSheetDialog.vue.d.ts +26 -0
- package/dist/views/production-run/features/prepare/ProductionRunPrepareSheet.vue.d.ts +16 -0
- package/dist/views/production-run/features/prepare/production-run-prepare-sheet-cleanup.spec.d.ts +1 -0
- package/dist/views/production-run/features/prepare/production-run-prepare-sheet.d.ts +18 -0
- package/dist/views/production-run/shared/helpers/production-run-navigation.d.ts +6 -0
- package/dist/views/production-run/shared/helpers/production-run-navigation.spec.d.ts +1 -0
- package/dist/views/production-run/shared/helpers/production-run-precision.helper.d.ts +31 -0
- package/dist/views/production-run/shared/helpers/production-run-quantity.helper.d.ts +57 -0
- package/dist/views/production-run/shared/helpers/production-run-quantity.helper.spec.d.ts +1 -0
- package/dist/views/production-run/shared/model/production-run-display.d.ts +187 -0
- package/dist/views/production-run/shared/model/production-run-display.spec.d.ts +1 -0
- package/dist/views/production-run/shared/model/production-run-item-ingredients.d.ts +22 -0
- package/dist/views/production-run/shared/model/production-run-list.d.ts +46 -0
- package/dist/views/production-run/shared/model/production-run-list.spec.d.ts +1 -0
- package/dist/views/production-run/shared/model/production-run-request-confirmation.d.ts +20 -0
- package/dist/views/production-run/shared/model/production-run-text-limit.d.ts +22 -0
- package/dist/views/production-run/shared/model/production-run-text-limit.spec.d.ts +1 -0
- package/dist/views/production-run/shared/model/production-run-unit-snapshot.d.ts +39 -0
- package/dist/views/production-run/shared/model/use-production-run-actions.d.ts +39 -0
- package/dist/views/production-run/shared/model/use-production-run-actions.spec.d.ts +1 -0
- package/dist/views/production-run/shared/model/use-production-run-ingredients.d.ts +658 -0
- package/dist/views/production-run/shared/model/use-production-run-ingredients.spec.d.ts +1 -0
- package/dist/views/production-run/shared/ui/ProductionRunBanner.vue.d.ts +39 -0
- package/dist/views/production-run/shared/ui/ProductionRunBindingsDisclosure.spec.d.ts +1 -0
- package/dist/views/production-run/shared/ui/ProductionRunBindingsDisclosure.vue.d.ts +25 -0
- package/dist/views/production-run/shared/ui/ProductionRunBindingsList.vue.d.ts +51 -0
- package/dist/views/production-run/shared/ui/ProductionRunCompactBanner.spec.d.ts +1 -0
- package/dist/views/production-run/shared/ui/ProductionRunCompactBanner.vue.d.ts +23 -0
- package/dist/views/production-run/shared/ui/ProductionRunCompactDisclosure.vue.d.ts +25 -0
- package/dist/views/production-run/shared/ui/ProductionRunCostingUnavailable.vue.d.ts +2 -0
- package/dist/views/production-run/shared/ui/ProductionRunDialog.spec.d.ts +1 -0
- package/dist/views/production-run/shared/ui/ProductionRunDialog.vue.d.ts +24 -0
- package/dist/views/production-run/shared/ui/ProductionRunDialogProps.d.ts +15 -0
- package/dist/views/production-run/shared/ui/ProductionRunDialogSurface.vue.d.ts +33 -0
- package/dist/views/production-run/shared/ui/ProductionRunHelpPopover.spec.d.ts +1 -0
- package/dist/views/production-run/shared/ui/ProductionRunHelpPopover.vue.d.ts +67 -0
- package/dist/views/production-run/shared/ui/ProductionRunInfoBadge.spec.d.ts +1 -0
- package/dist/views/production-run/shared/ui/ProductionRunInfoBadge.vue.d.ts +70 -0
- package/dist/views/production-run/shared/ui/ProductionRunInfoText.spec.d.ts +1 -0
- package/dist/views/production-run/shared/ui/ProductionRunInfoText.vue.d.ts +71 -0
- package/dist/views/production-run/shared/ui/ProductionRunNoBindingsHelp.spec.d.ts +1 -0
- package/dist/views/production-run/shared/ui/ProductionRunNoBindingsHelp.vue.d.ts +15 -0
- package/dist/views/production-run/shared/ui/ProductionRunProjectionFeedback.spec.d.ts +1 -0
- package/dist/views/production-run/shared/ui/ProductionRunProjectionFeedback.vue.d.ts +46 -0
- package/dist/views/production-run/shared/ui/ProductionRunScrollHint.spec.d.ts +1 -0
- package/dist/views/production-run/shared/ui/ProductionRunScrollHint.vue.d.ts +31 -0
- package/dist/views/production-run/shared/ui/ProductionRunSelectionCheckbox.vue.d.ts +31 -0
- package/dist/views/production-run/shared/ui/ProductionRunSelectionControls.spec.d.ts +1 -0
- package/dist/views/production-run/shared/ui/ProductionRunSelectionRadio.spec.d.ts +1 -0
- package/dist/views/production-run/shared/ui/ProductionRunSelectionRadio.vue.d.ts +37 -0
- package/dist/views/production-run/shared/ui/ProductionRunSideSheet.spec.d.ts +1 -0
- package/dist/views/production-run/shared/ui/ProductionRunSideSheet.vue.d.ts +77 -0
- package/dist/views/production-run/shared/ui/ProductionRunSideSheetSurface.vue.d.ts +52 -0
- package/dist/views/production-run/shared/ui/ProductionRunStatusBadge.spec.d.ts +1 -0
- package/dist/views/production-run/shared/ui/ProductionRunStatusBadge.vue.d.ts +21 -0
- package/dist/views/production-run/shared/ui/ProductionRunTextLimitLabel.spec.d.ts +1 -0
- package/dist/views/production-run/shared/ui/ProductionRunTextLimitLabel.vue.d.ts +23 -0
- package/dist/views/production-run/shared/ui/ProductionRunTextarea.spec.d.ts +1 -0
- package/dist/views/production-run/shared/ui/ProductionRunTextarea.vue.d.ts +62 -0
- package/dist/views/production-run/shared/ui/ProductionRunUnitInput.spec.d.ts +1 -0
- package/dist/views/production-run/shared/ui/ProductionRunUnitInput.vue.d.ts +34 -0
- package/dist/views/production-run/shared/ui/production-run-info.types.d.ts +11 -0
- package/dist/views/production-run/shared/ui/use-production-run-disclosure.d.ts +15 -0
- package/dist/views/production-run/shared/ui/use-production-run-disclosure.spec.d.ts +1 -0
- package/dist/views/production-run/shared/ui/use-production-run-modal-a11y.d.ts +17 -0
- package/dist/views/production-run/shared/ui/use-production-run-modal-a11y.spec.d.ts +1 -0
- package/dist/views/production-run/shared/ui/use-production-run-scroll-hint.d.ts +9 -0
- package/dist/views/production-run/test-support/production-run.fixture.d.ts +88 -0
- package/dist/views/production-run/test-support/production-run.fixture.spec.d.ts +1 -0
- package/dist/views/production-run/tests/contracts/ProductionRunLoadBannerContract.spec.d.ts +1 -0
- package/dist/views/production-run/tests/contracts/production-run-deduction-parity.spec.d.ts +1 -0
- package/dist/views/production-run/tests/contracts/production-run-typography-contract.spec.d.ts +1 -0
- package/dist/views/receive-request/composables/use-receive-request-form.d.ts +3 -3
- package/dist/views/receive-request-bulk/composables/use-bulk-receive-request-form.d.ts +3 -3
- package/dist/views/stock/components/dialog/AdjustedItemForm.vue.d.ts +12 -8
- package/dist/views/stock/components/dialog/AmendAdjustmentForm.vue.d.ts +2 -0
- package/dist/{vue-i18n-DLckaDV3.js → vue-i18n-DLJI5tIS.js} +395 -395
- package/dist/{xlsx.util-BjqUaVU_.js → xlsx.util-CZOxuAL-.js} +2 -2
- package/package.json +5 -4
- package/dist/ChangeLocationComponent.vue_vue_type_script_setup_true_lang-D6ehNvzX.js +0 -130
- package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-BpACpi1j.js +0 -120
- package/dist/ProductionView-Cg8tXEj7.js +0 -1441
- package/dist/api/production.d.ts +0 -30
- package/dist/views/production/ProductionDetailSheet.vue.d.ts +0 -42
- package/dist/views/production/ProductionDuplicateDialog.vue.d.ts +0 -282
- package/dist/views/production/ProductionPrepareBuilder.vue.d.ts +0 -282
- /package/dist/views/{production/ProductionView.vue.d.ts → production-run/ProductionRunPreparePrintView.vue.d.ts} +0 -0
|
@@ -0,0 +1,187 @@
|
|
|
1
|
+
import type { FdoDecimal } from '@feedmepos/core/entity';
|
|
2
|
+
/**
|
|
3
|
+
* Pure display derivation for the production run view. Kept out of the .vue
|
|
4
|
+
* files so the "nothing yet is not failure" and reveal-by-status rules are
|
|
5
|
+
* testable — see production-run-display.spec.ts.
|
|
6
|
+
*
|
|
7
|
+
* There is no status normalisation anywhere in here. A run document is correct
|
|
8
|
+
* by construction: `FdoProductionRun` is a NEW entity with no pre-enum
|
|
9
|
+
* ancestors, so a lookup keyed on `status` may index the table directly.
|
|
10
|
+
*/
|
|
11
|
+
/** The em dash used for "we cannot say yet". NEVER `0`, never `RM 0.00`, never `0%`. */
|
|
12
|
+
export declare const NOT_YET = "\u2014";
|
|
13
|
+
/**
|
|
14
|
+
* One timestamp form across the Production listing, header and output cards.
|
|
15
|
+
*
|
|
16
|
+
* A malformed stored string stays visible verbatim: replacing corrupt data
|
|
17
|
+
* with `—` would make the document look merely incomplete. An invalid `Date`
|
|
18
|
+
* has no source text to preserve, so it uses the ordinary unavailable marker.
|
|
19
|
+
*/
|
|
20
|
+
export declare function formatProductionTimestamp(value: Date | string): string;
|
|
21
|
+
export interface QuantityFormat {
|
|
22
|
+
/**
|
|
23
|
+
* Decimal places this quantity is meaningful to — `FdoInventoryUnit.precision`,
|
|
24
|
+
* read through `getAllowedPrecision` so the answer agrees with what the entry
|
|
25
|
+
* inputs allow. Null when the unit could not be resolved.
|
|
26
|
+
*
|
|
27
|
+
* It is a property of the UNIT, not of this screen: a kilogram base unit
|
|
28
|
+
* carrying a gram measurement is meaningful to 0.001, a unit counted in
|
|
29
|
+
* pieces to 1. A single hard-coded figure is wrong for one of them whichever
|
|
30
|
+
* figure is picked.
|
|
31
|
+
*/
|
|
32
|
+
precision?: number | null;
|
|
33
|
+
/**
|
|
34
|
+
* The value is a positive MAGNITUDE leaving stock, so the sign is this
|
|
35
|
+
* function's to draw.
|
|
36
|
+
*
|
|
37
|
+
* Owned here rather than as a `−` in the template because the sign and the
|
|
38
|
+
* rounding are one decision: a template minus in front of a rounded-away
|
|
39
|
+
* quantity is exactly the `−0 kg` this function exists to prevent, and a
|
|
40
|
+
* template minus in front of a true zero says stock leaves when none does.
|
|
41
|
+
*/
|
|
42
|
+
deduction?: boolean;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Quantity, trailing zeros trimmed, at the precision its unit is meaningful to.
|
|
46
|
+
* `1` not `1.00`, `0.35` stays `0.35`.
|
|
47
|
+
*
|
|
48
|
+
* **A non-zero quantity is never rendered as zero** (ISSUE-001). Three branches,
|
|
49
|
+
* and getting any two of them confused is the defect:
|
|
50
|
+
*
|
|
51
|
+
* 1. **Exactly zero** → `0`. Nothing moves, and that is worth saying plainly.
|
|
52
|
+
* 2. **Non-zero but below the unit's smallest increment** → a BOUND, `<0.001`.
|
|
53
|
+
* A one-piece run can draw 0.0004 kg of an ingredient; `0` told the reader
|
|
54
|
+
* nothing would move and then stock moved. The bound is signed, so a
|
|
55
|
+
* deduction reads `−<0.001 kg` rather than losing the direction with the
|
|
56
|
+
* digits.
|
|
57
|
+
* 3. **Anything else** → the figure, rounded to the unit's places.
|
|
58
|
+
*/
|
|
59
|
+
export declare function formatQuantity(value: number | FdoDecimal, unit?: string | null, options?: QuantityFormat): string;
|
|
60
|
+
/** Percent at whole numbers, or `—` when nothing is produced yet. */
|
|
61
|
+
export declare function formatPercent(value: FdoDecimal | null | undefined): string;
|
|
62
|
+
export declare function pluralise(count: number, singular: string, plural?: string): string;
|
|
63
|
+
/**
|
|
64
|
+
* Committed minus produced, floored at 0 — what the run still owes.
|
|
65
|
+
*
|
|
66
|
+
* Overproduction is legal (the kitchen made more than it committed to), and it
|
|
67
|
+
* leaves NOTHING unaccounted, so it clamps to 0 rather than reading as a
|
|
68
|
+
* negative remainder in close/shortfall copy.
|
|
69
|
+
*/
|
|
70
|
+
export declare function remainingQuantity(committed: FdoDecimal, produced: FdoDecimal): number;
|
|
71
|
+
/**
|
|
72
|
+
* The base unit shared by EVERY production item, or null when they differ or
|
|
73
|
+
* cannot be resolved.
|
|
74
|
+
*
|
|
75
|
+
* Aggregate quantities (committed/produced totals) sum base amounts across
|
|
76
|
+
* skus, which is only meaningful when the skus share a unit. When they do not,
|
|
77
|
+
* callers render the total WITHOUT a unit rather than mislabelling `4 kg` on a
|
|
78
|
+
* run that made kg and litres. Per-item figures are always unit-correct.
|
|
79
|
+
*
|
|
80
|
+
* A run carries no sku snapshot on `items` — a DRAFT or REQUESTING run is a
|
|
81
|
+
* plan, so display resolves against live inventory. Issuance lines DO carry a
|
|
82
|
+
* snapshot and it wins: it is the unit the movement was actually valued in.
|
|
83
|
+
* With neither available (an unissued run in a view that has not loaded
|
|
84
|
+
* inventory) the answer is null, and the caller drops the unit.
|
|
85
|
+
*/
|
|
86
|
+
export declare function sharedUnitAbbrev(run: FdoProductionRun, resolveSku?: (skuId: string) => FdoInventorySku | null | undefined): string | null;
|
|
87
|
+
/**
|
|
88
|
+
* Whether the outputs resolve to MORE THAN ONE unit.
|
|
89
|
+
*
|
|
90
|
+
* Deliberately distinct from `sharedUnitAbbrev` returning null, which also
|
|
91
|
+
* happens when a unit is merely unknown — a DRAFT whose skus are not in any
|
|
92
|
+
* issuance yet. Blanking a total needs the stronger claim: not "we cannot name
|
|
93
|
+
* the unit" but "there are two, so no single total exists". Grams cannot be
|
|
94
|
+
* added to bottles; grams can be added to grams we have not named.
|
|
95
|
+
*/
|
|
96
|
+
export declare function outputUnitsDiffer(run: FdoProductionRun, resolveSku?: (skuId: string) => FdoInventorySku | null | undefined): boolean;
|
|
97
|
+
/**
|
|
98
|
+
* `_id` where the unit has one; the abbrev is only a fallback for fixtures.
|
|
99
|
+
*
|
|
100
|
+
* Exported so every production surface decides "same unit" the same way as
|
|
101
|
+
* {@link outputUnitsDiffer}. A second copy of this rule is how two surfaces
|
|
102
|
+
* eventually disagree about whether a run's quantities are addable.
|
|
103
|
+
*/
|
|
104
|
+
export declare function unitKey(unit: FdoInventoryUnit): string;
|
|
105
|
+
export interface ProductionOutputBatchItem {
|
|
106
|
+
skuId: string;
|
|
107
|
+
/** Base units — a batch line's stored amount is in its own `measurement`. */
|
|
108
|
+
amount: number;
|
|
109
|
+
}
|
|
110
|
+
export interface ProductionOutputBatch {
|
|
111
|
+
/** Present on current records; older display fixtures may omit it. */
|
|
112
|
+
stockApplicationStatus?: 'PENDING' | 'APPLIED' | null;
|
|
113
|
+
id: string;
|
|
114
|
+
adjustmentId: string;
|
|
115
|
+
/** 1-based, in the chronological order shown. Not a traceability lot code. */
|
|
116
|
+
index: number;
|
|
117
|
+
/** When the kitchen actually finished this batch — user-entered. */
|
|
118
|
+
producedAt: string;
|
|
119
|
+
/** When the system recorded it — server clock, never client-supplied. */
|
|
120
|
+
recordedAt: string;
|
|
121
|
+
/** True when output was keyed in after the fact; the gap is what a variance investigation asks about. */
|
|
122
|
+
isBackdated: boolean;
|
|
123
|
+
recordedBy: string;
|
|
124
|
+
items: ProductionOutputBatchItem[];
|
|
125
|
+
/** Why this particular production event had the result it did. */
|
|
126
|
+
remark: string | null;
|
|
127
|
+
wastages: (FdoProductionWastageLine & {
|
|
128
|
+
remark?: string | null;
|
|
129
|
+
})[];
|
|
130
|
+
}
|
|
131
|
+
export declare function productionOutputBatches(run: FdoProductionRun): ProductionOutputBatch[];
|
|
132
|
+
/**
|
|
133
|
+
* The FIXED wastage-reason vocabulary (`F_PRODUCTION_WASTAGE_REASON`), in the
|
|
134
|
+
* order the picker shows it. Deliberately NOT the business's adjustment-template
|
|
135
|
+
* reasons — production loss categories are universal, so the picker works the
|
|
136
|
+
* same in every location and needs no fetch.
|
|
137
|
+
*/
|
|
138
|
+
export declare const PRODUCTION_WASTAGE_REASONS: F_PRODUCTION_WASTAGE_REASON[];
|
|
139
|
+
/** Display labels for the fixed vocabulary — the enum values stay UPPER in data. */
|
|
140
|
+
/**
|
|
141
|
+
* The i18n key for a wastage reason.
|
|
142
|
+
*
|
|
143
|
+
* The words used to live here as a literal map, which put five user-facing
|
|
144
|
+
* strings somewhere a translator cannot reach — the module is
|
|
145
|
+
* English-only-by-construction rather than merely untranslated. The vocabulary
|
|
146
|
+
* itself is fixed and cross-business (so it stays comparable across locations);
|
|
147
|
+
* only its rendering is a locale concern.
|
|
148
|
+
*/
|
|
149
|
+
export declare function wastageReasonKey(reason: F_PRODUCTION_WASTAGE_REASON | string): string;
|
|
150
|
+
/**
|
|
151
|
+
* Enum value → display label. Null when there is no reason at all, so callers
|
|
152
|
+
* can skip the segment entirely.
|
|
153
|
+
*/
|
|
154
|
+
export declare function formatWastageReason(reason: string | null | undefined): string | null;
|
|
155
|
+
/**
|
|
156
|
+
* Has the run stopped producing for good?
|
|
157
|
+
*
|
|
158
|
+
* The line between "no output yet" and "no output, final". Shared because the
|
|
159
|
+
* listing and the detail page must answer it identically — they disagreed once,
|
|
160
|
+
* and a run closed with nothing showed 0% in one place and `—` in the other.
|
|
161
|
+
*/
|
|
162
|
+
export declare function hasStopped(run: FdoProductionRun): boolean;
|
|
163
|
+
/**
|
|
164
|
+
* How a stopped run ended, in terms of what it made — never of which status it
|
|
165
|
+
* carries.
|
|
166
|
+
*
|
|
167
|
+
* Closure is one terminal now, at target or short, because reaching the
|
|
168
|
+
* committed quantity is a measurement and stopping is a decision. So the
|
|
169
|
+
* outcome is DERIVED from committed versus produced, both already on the
|
|
170
|
+
* document. Storing it would create durable state able to disagree with its own
|
|
171
|
+
* inputs, and a closed run's batches are immutable, so there is nothing to gain
|
|
172
|
+
* by caching it.
|
|
173
|
+
*
|
|
174
|
+
* `null` while the run can still produce — an open run has no outcome yet, and
|
|
175
|
+
* a cancelled run never committed to one.
|
|
176
|
+
*/
|
|
177
|
+
export declare function closureOutcome(run: FdoProductionRun): 'target-reached' | 'below-target' | null;
|
|
178
|
+
export type ProductionRunTerminalOutputOutcome = 'below-target' | 'at-target' | 'above-target';
|
|
179
|
+
/**
|
|
180
|
+
* A stopped run's output outcome, compared per sku.
|
|
181
|
+
*
|
|
182
|
+
* Cross-output totals are deliberately absent. Five kilograms above target
|
|
183
|
+
* cannot cancel one litre below target, and mixed-unit runs have no meaningful
|
|
184
|
+
* aggregate percentage. A run is above target only when every commitment was
|
|
185
|
+
* met and at least one was exceeded; any short item keeps the outcome below.
|
|
186
|
+
*/
|
|
187
|
+
export declare function terminalOutputOutcome(run: FdoProductionRun): ProductionRunTerminalOutputOutcome | null;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export interface ProductionRunItemIngredientLine {
|
|
2
|
+
id: string;
|
|
3
|
+
name: string;
|
|
4
|
+
amount: number;
|
|
5
|
+
unit: string;
|
|
6
|
+
}
|
|
7
|
+
export interface ProductionRunItemIngredientBreakdown {
|
|
8
|
+
basisUnit: string;
|
|
9
|
+
lines: ProductionRunItemIngredientLine[];
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Present one output's concrete resolved allocation per output base unit.
|
|
13
|
+
* This reads the whole current plan, so stock-driven alternative splits stay
|
|
14
|
+
* identical to the ingredient projection the operator is reviewing.
|
|
15
|
+
*/
|
|
16
|
+
export declare function resolvedIngredientLinesPerOutputBaseUnit(requirements: FdoProductionIngredientRequirements, outputSkuId: string, outputBaseAmount: number): ProductionRunItemIngredientLine[];
|
|
17
|
+
/**
|
|
18
|
+
* Rebuild the per-output fact sheets from a durable requested plan. Recipe,
|
|
19
|
+
* binding and alternative definitions are deliberately absent: the request
|
|
20
|
+
* already froze the concrete ingredient identities, amounts and rate basis.
|
|
21
|
+
*/
|
|
22
|
+
export declare function frozenItemIngredientBreakdowns(plan: FdoProductionRun['plan']): Map<string, ProductionRunItemIngredientBreakdown>;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Pure derivation for the production-run listing. Kept out of the .vue so the
|
|
3
|
+
* tab grouping, search, lifecycle sorting and display identity are testable.
|
|
4
|
+
*/
|
|
5
|
+
export type ProductionRunTabKey = 'all' | 'drafts' | 'active' | 'history';
|
|
6
|
+
export interface ProductionRunTabDef {
|
|
7
|
+
key: ProductionRunTabKey;
|
|
8
|
+
label: string;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Tabs are grouped by operator intent, not one per lifecycle value.
|
|
12
|
+
*
|
|
13
|
+
* Reaching the committed quantity is a measurement, not a place a run goes. A
|
|
14
|
+
* run kept open at target is still active; History holds only runs that have
|
|
15
|
+
* stopped. Together the three filtered tabs partition All exactly.
|
|
16
|
+
*/
|
|
17
|
+
export declare const PRODUCTION_RUN_TABS: ProductionRunTabDef[];
|
|
18
|
+
/** Lifecycle order for the status column; alphabetical order is operational noise. */
|
|
19
|
+
export declare const STATUS_ORDER: {
|
|
20
|
+
readonly DRAFT: 0;
|
|
21
|
+
readonly REQUESTING: 1;
|
|
22
|
+
readonly PREPARING: 2;
|
|
23
|
+
readonly CLOSED: 3;
|
|
24
|
+
readonly CANCEL: 4;
|
|
25
|
+
};
|
|
26
|
+
/** Reject an obsolete or corrupt status instead of silently sorting it as NaN. */
|
|
27
|
+
export declare function productionRunStatusOrder(status: F_PRODUCTION_RUN_STATUS): number;
|
|
28
|
+
export declare function matchesProductionRunTab(run: FdoProductionRun, tab: ProductionRunTabKey): boolean;
|
|
29
|
+
export declare function productionRunTabCounts(runs: FdoProductionRun[]): Record<ProductionRunTabKey, number>;
|
|
30
|
+
/** Last audited event on the run, for the Updated column. */
|
|
31
|
+
export declare function productionRunLastActivity(run: FdoProductionRun): {
|
|
32
|
+
action: F_PRODUCTION_RUN_ACTION;
|
|
33
|
+
at: string;
|
|
34
|
+
} | null;
|
|
35
|
+
/** `runName` when supplied, otherwise the translated fallback plus durable run number. */
|
|
36
|
+
export declare function productionRunDisplayName(run: FdoProductionRun, untitledName: string): string;
|
|
37
|
+
/**
|
|
38
|
+
* Locale-independent sort identity shared by whole-list paging and FmTable.
|
|
39
|
+
*
|
|
40
|
+
* Named runs sort by their stored name. Unnamed runs sort by the durable run
|
|
41
|
+
* number rather than by translated presentation copy, so changing locale
|
|
42
|
+
* cannot move a row or produce a different page boundary.
|
|
43
|
+
*/
|
|
44
|
+
export declare function productionRunNameSortValue(run: FdoProductionRun): string;
|
|
45
|
+
/** Search the run's durable identity and the live names of its output items. */
|
|
46
|
+
export declare function matchesProductionRunSearch(run: FdoProductionRun, search: string, resolveSku?: (skuId: string) => FdoInventorySku | null | undefined): boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* One confirmation contract for every Draft handoff entry point.
|
|
3
|
+
*
|
|
4
|
+
* The form, listing and detail page can all submit the same lifecycle event.
|
|
5
|
+
* Keeping the copy and button semantics here prevents one surface from
|
|
6
|
+
* becoming an unconfirmed shortcut around the others.
|
|
7
|
+
*/
|
|
8
|
+
export declare function productionRunRequestConfirmation(t: (key: string) => string): {
|
|
9
|
+
title: string;
|
|
10
|
+
message: string;
|
|
11
|
+
primaryActions: {
|
|
12
|
+
text: string;
|
|
13
|
+
close: boolean;
|
|
14
|
+
};
|
|
15
|
+
secondaryActions: {
|
|
16
|
+
text: string;
|
|
17
|
+
close: boolean;
|
|
18
|
+
variant: "tertiary";
|
|
19
|
+
};
|
|
20
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { type Ref } from 'vue';
|
|
2
|
+
import { codePointLength } from '@feedmepos/zod-inventory';
|
|
3
|
+
/**
|
|
4
|
+
* Portal-facing aliases of FM-186's durable ceilings. The values remain owned
|
|
5
|
+
* by zod-inventory so UI validation cannot drift from the HTTP/entity boundary.
|
|
6
|
+
*/
|
|
7
|
+
export declare const PRODUCTION_RUN_NAME_LIMIT = 100;
|
|
8
|
+
export declare const PRODUCTION_INSTRUCTIONS_LIMIT = 2000;
|
|
9
|
+
export declare const PRODUCTION_REMARK_LIMIT = 500;
|
|
10
|
+
export { codePointLength };
|
|
11
|
+
/**
|
|
12
|
+
* Production-specific counter/error state for one authored text field, held
|
|
13
|
+
* to a code-point ceiling. Deliberately does not truncate — a form must never
|
|
14
|
+
* cut off paste or IME composition input, only report that the box is over
|
|
15
|
+
* and block submission until it is fixed.
|
|
16
|
+
*/
|
|
17
|
+
export declare function useProductionRunTextLimit(value: Ref<string>, max: number): {
|
|
18
|
+
length: import("vue").ComputedRef<number>;
|
|
19
|
+
exceeded: import("vue").ComputedRef<boolean>;
|
|
20
|
+
helperText: import("vue").ComputedRef<string>;
|
|
21
|
+
helperState: import("vue").ComputedRef<"error" | "none">;
|
|
22
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import type { FmUnitInputModel } from '@/components/FmUnitInputProps';
|
|
2
|
+
/**
|
|
3
|
+
* Production stores the unit-of-record with every durable quantity. The shared
|
|
4
|
+
* unit input represents the base-unit choice as `null`; Production cannot,
|
|
5
|
+
* because a stored null would ask a future SKU definition to reinterpret an
|
|
6
|
+
* old number.
|
|
7
|
+
*
|
|
8
|
+
* This local spelling is the rebase seam for PR 1's generated
|
|
9
|
+
* `FdoProductionUnitSnapshot`.
|
|
10
|
+
*/
|
|
11
|
+
export interface ProductionRunUnitSnapshot extends FdoUnitMeasurement {
|
|
12
|
+
baseUnitId: string;
|
|
13
|
+
}
|
|
14
|
+
export interface ProductionRunQuantityModel extends Omit<FmUnitInputModel, 'measurement'> {
|
|
15
|
+
measurement: ProductionRunUnitSnapshot | null;
|
|
16
|
+
}
|
|
17
|
+
export declare function baseUnitSnapshot(unit: FdoInventoryUnit): ProductionRunUnitSnapshot;
|
|
18
|
+
export declare function measurementSnapshot(unit: FdoInventoryUnit, measurement: FdoUnitMeasurement): ProductionRunUnitSnapshot;
|
|
19
|
+
/**
|
|
20
|
+
* Runtime guard for persisted retry intents. Storage outlives the build that
|
|
21
|
+
* wrote it, so presence of `baseUnitId` alone is not enough: a malformed or
|
|
22
|
+
* zero conversion would either crash hydration or change the movement on
|
|
23
|
+
* resend.
|
|
24
|
+
*/
|
|
25
|
+
export declare function isProductionRunUnitSnapshot(value: unknown): value is ProductionRunUnitSnapshot;
|
|
26
|
+
/** Same stored unit identity, allowing equivalent fixed-point spellings. */
|
|
27
|
+
export declare function productionRunUnitSnapshotsEqual(left: ProductionRunUnitSnapshot, right: ProductionRunUnitSnapshot): boolean;
|
|
28
|
+
/**
|
|
29
|
+
* A structurally valid snapshot must also belong to the frozen SKU unit it is
|
|
30
|
+
* being used with. Matching the id without the conversion would reinterpret a
|
|
31
|
+
* historical number after a unit is redefined under the same id.
|
|
32
|
+
*/
|
|
33
|
+
export declare function productionRunSnapshotMatchesUnit(snapshot: ProductionRunUnitSnapshot, unit: FdoInventoryUnit): boolean;
|
|
34
|
+
/**
|
|
35
|
+
* Resolve a durable Production snapshot against the current unit definition.
|
|
36
|
+
* Missing or legacy generic measurements stay unresolved: inferring today's
|
|
37
|
+
* base would silently reinterpret the stored number.
|
|
38
|
+
*/
|
|
39
|
+
export declare function storedProductionRunUnitSnapshot(stored: unknown, unit: FdoInventoryUnit): ProductionRunUnitSnapshot | null;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { type MaybeRefOrGetter } from 'vue';
|
|
2
|
+
/** Lifecycle actions a user can trigger (create is not an edge on an existing run). */
|
|
3
|
+
export type ProductionRunLifecycleAction = Exclude<F_PRODUCTION_RUN_ACTION, 'create'>;
|
|
4
|
+
/**
|
|
5
|
+
* Single source for action labels, so the row button, the row menu and the run
|
|
6
|
+
* footer cannot drift into three names for one action.
|
|
7
|
+
*/
|
|
8
|
+
export declare const PRODUCTION_RUN_ACTION_LABELS: Record<ProductionRunLifecycleAction, string>;
|
|
9
|
+
export interface ProductionRunAction {
|
|
10
|
+
action: ProductionRunLifecycleAction;
|
|
11
|
+
label: string;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Ordinary lifecycle actions come from the `FfProductionRunWorkflow`
|
|
15
|
+
* legality table — which reads status **and** data,
|
|
16
|
+
* so a run that has issued offers no cancel and a drifted document offers
|
|
17
|
+
* nothing at all. Views render this list; adding a status or an edge touches
|
|
18
|
+
* the core table, not view code.
|
|
19
|
+
*
|
|
20
|
+
* There is no normalisation and no try/catch here on purpose. Run documents are
|
|
21
|
+
* correct by construction — `FdoProductionRun` is a new entity with no pre-enum
|
|
22
|
+
* ancestors — so a status the bridge cannot decode is a real defect, and
|
|
23
|
+
* swallowing it would hide the defect behind an empty menu.
|
|
24
|
+
*/
|
|
25
|
+
/** An accepted output command is not yet proof of its stock application. */
|
|
26
|
+
export declare function hasPendingProductionOutput(run: FdoProductionRun): boolean;
|
|
27
|
+
export declare function productionRunActionsFor(run: FdoProductionRun): ProductionRunAction[];
|
|
28
|
+
/** Reactive wrapper for components holding the run in a ref/prop/getter. */
|
|
29
|
+
export declare function useProductionRunActions(run: MaybeRefOrGetter<FdoProductionRun | null | undefined>): import("vue").ComputedRef<ProductionRunAction[]>;
|
|
30
|
+
/**
|
|
31
|
+
* The `.fm-status-badge-*` modifier for a run status, paired with the base
|
|
32
|
+
* `fm-status-badge` class by the caller (see `draftStatusToClassName`).
|
|
33
|
+
*
|
|
34
|
+
* The shared modifiers are palette names rather than Production statuses.
|
|
35
|
+
* REQUESTING is the informational hand-off, while PREPARING is the warning-
|
|
36
|
+
* toned work-in-flight state. Keeping that mapping here makes the list and
|
|
37
|
+
* detail surfaces agree without changing the shared badge styles.
|
|
38
|
+
*/
|
|
39
|
+
export declare function productionRunStatusBadge(status: F_PRODUCTION_RUN_STATUS): "fm-status-badge-draft" | "fm-status-badge-receiving" | "fm-status-badge-requesting" | "fm-status-badge-close" | "fm-status-badge-cancel";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|