@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,911 @@
|
|
|
1
|
+
import { defineComponent as se, computed as m, createElementBlock as $, createCommentVNode as B, openBlock as y, withModifiers as ot, createVNode as A, unref as r, ref as _, watch as ye, onMounted as we, onBeforeUnmount as ke, resolveComponent as oe, Fragment as ne, createElementVNode as a, createTextVNode as Ze, toDisplayString as h, withCtx as U, renderList as ge, normalizeClass as re, nextTick as rt, watchEffect as gt, h as W, createBlock as J, normalizeStyle as xt } from "vue";
|
|
2
|
+
import { _ as wt, F as X } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-DAMpuZ1X.js";
|
|
3
|
+
import { useRouter as kt } from "vue-router";
|
|
4
|
+
import { useDialog as Rt, useSnackbar as It, useBreakpoints as $t } from "@feedmepos/ui-library";
|
|
5
|
+
import { useI18n as ae, useCoreStore as St } from "@feedmepos/mf-common";
|
|
6
|
+
import { u as At, _ as Ct } from "./SingleColumnLayout.vue_vue_type_script_setup_true_lang-DpwneGOV.js";
|
|
7
|
+
import { F as st } from "./FmAdminBadge-DlplQOHb.js";
|
|
8
|
+
import { p as Re, a as Ft, _ as Nt, h as Pt, i as Dt, b as Tt, c as at, u as zt, d as Mt, e as Lt, f as Vt, P as Et, m as Ot, g as qt, j as Ut, k as jt, l as Wt, n as Bt, o as he, q as et, r as tt, s as Ht } from "./ProductionRunTabs.vue_vue_type_script_setup_true_lang-DkvVIKgN.js";
|
|
9
|
+
import { _ as Yt } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-DAFZz6rG.js";
|
|
10
|
+
import { u as Qt, a as Gt } from "./app-CNKD3vjZ.js";
|
|
11
|
+
import { i as xe, f as Kt, a as Jt, p as nt } from "./production-run-prepare-sheet-BVAUvVqt.js";
|
|
12
|
+
import { _ as it } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
13
|
+
const Xt = /* @__PURE__ */ se({
|
|
14
|
+
__name: "ProductionRunActionsCell",
|
|
15
|
+
props: {
|
|
16
|
+
run: {}
|
|
17
|
+
},
|
|
18
|
+
emits: ["action"],
|
|
19
|
+
setup(V, { emit: n }) {
|
|
20
|
+
const i = V, N = n, { t: l } = ae(), R = m(
|
|
21
|
+
() => Re(i.run, l("inventory.production.run.list.untitled"))
|
|
22
|
+
), x = {
|
|
23
|
+
request: 0,
|
|
24
|
+
prepare: 0,
|
|
25
|
+
complete: 0,
|
|
26
|
+
update: 1,
|
|
27
|
+
close: 1,
|
|
28
|
+
cancel: 2
|
|
29
|
+
}, v = m(
|
|
30
|
+
() => Ft(i.run).filter(({ action: t }) => t !== "request" || i.run.plan.items.length > 0).sort((t, u) => xe(i.run) && t.action === "close" ? -1 : xe(i.run) && u.action === "close" ? 1 : x[t.action] - x[u.action]).map(({ action: t }) => t)
|
|
31
|
+
);
|
|
32
|
+
function C(t) {
|
|
33
|
+
return t === "complete" && Pt(i.run) ? l("inventory.production.run.detail.pendingStock.resume") : l(`inventory.production.run.list.rowActions.${t}`);
|
|
34
|
+
}
|
|
35
|
+
const c = m(
|
|
36
|
+
() => v.value.map((t) => ({
|
|
37
|
+
id: t,
|
|
38
|
+
label: C(t),
|
|
39
|
+
destructive: t === "cancel"
|
|
40
|
+
}))
|
|
41
|
+
);
|
|
42
|
+
function p(t) {
|
|
43
|
+
N("action", t);
|
|
44
|
+
}
|
|
45
|
+
return (t, u) => v.value.length ? (y(), $("div", {
|
|
46
|
+
key: 0,
|
|
47
|
+
class: "production-run-action-interactive relative z-[1] flex items-center justify-center",
|
|
48
|
+
onClick: u[0] || (u[0] = ot(() => {
|
|
49
|
+
}, ["stop"]))
|
|
50
|
+
}, [
|
|
51
|
+
A(Nt, {
|
|
52
|
+
items: c.value,
|
|
53
|
+
placement: "bottom-end",
|
|
54
|
+
"menu-testid": "run-actions-menu",
|
|
55
|
+
"accessible-label": r(l)("inventory.production.run.list.actionsFor", { name: R.value }),
|
|
56
|
+
onSelect: p
|
|
57
|
+
}, null, 8, ["items", "accessible-label"])
|
|
58
|
+
])) : B("", !0);
|
|
59
|
+
}
|
|
60
|
+
}), Zt = ["id"], en = {
|
|
61
|
+
key: 0,
|
|
62
|
+
class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
|
|
63
|
+
}, tn = {
|
|
64
|
+
key: 1,
|
|
65
|
+
class: "production-run-items-interactive relative z-[1] min-w-0"
|
|
66
|
+
}, nn = ["data-hidden-count"], on = ["aria-label"], rn = { class: "fm-typo-en-body-sm-600 mb-8 text-fm-color-typo-primary" }, sn = { class: "flex flex-col gap-8 border-t border-fm-color-neutral-gray-100 pt-8" }, an = { class: "text-fm-color-typo-primary" }, ln = { class: "shrink-0 text-fm-color-typo-secondary" };
|
|
67
|
+
let un = 0;
|
|
68
|
+
const cn = /* @__PURE__ */ se({
|
|
69
|
+
__name: "ProductionRunItemsCell",
|
|
70
|
+
props: {
|
|
71
|
+
run: {},
|
|
72
|
+
resolveSku: {},
|
|
73
|
+
rowLinkFocused: { type: Boolean, default: !1 },
|
|
74
|
+
descriptionId: {},
|
|
75
|
+
wrap: { type: Boolean, default: !1 }
|
|
76
|
+
},
|
|
77
|
+
setup(V) {
|
|
78
|
+
const n = V, { t: i } = ae(), N = _(!1), l = m(() => N.value || n.rowLinkFocused), R = _(null), x = _(null), v = _(null), C = _(Number.POSITIVE_INFINITY), c = ++un, p = `production-run-items-tooltip-${c}`, t = `production-run-items-description-${c}`, u = m(() => n.descriptionId ?? t), D = 44;
|
|
79
|
+
let b = null, s = null, w = null, k = !1;
|
|
80
|
+
const I = m(
|
|
81
|
+
() => n.run.plan.items.map((f, S) => {
|
|
82
|
+
const P = n.resolveSku(f.skuId), g = Dt(f.measurement) ? f.measurement : null, q = (g == null ? void 0 : g.abbrev) ?? null, Q = Kt(f.requestedAmount, q, {
|
|
83
|
+
precision: f.requestedAmount.precision
|
|
84
|
+
});
|
|
85
|
+
return {
|
|
86
|
+
key: `${f.skuId}-${S}`,
|
|
87
|
+
name: (P == null ? void 0 : P.name) ?? f.skuId,
|
|
88
|
+
quantity: q ? Q : `${Q} · ${i("inventory.production.run.list.itemsUnitUnresolved")}`
|
|
89
|
+
};
|
|
90
|
+
})
|
|
91
|
+
), G = m(() => I.value.slice(0, C.value)), K = m(() => I.value.map(({ name: f }) => f).join(", ")), F = m(
|
|
92
|
+
() => n.wrap ? 0 : Math.max(0, I.value.length - G.value.length)
|
|
93
|
+
), H = m(() => F.value > 99 ? "99+" : `+${F.value}`), E = m(
|
|
94
|
+
() => I.value.map(({ name: f, quantity: S }) => `${f}: ${S}`).join(", ")
|
|
95
|
+
);
|
|
96
|
+
function Y() {
|
|
97
|
+
if (n.wrap) {
|
|
98
|
+
C.value = I.value.length;
|
|
99
|
+
return;
|
|
100
|
+
}
|
|
101
|
+
const f = x.value, S = v.value;
|
|
102
|
+
if (!f || !S || f.clientWidth <= 0) return;
|
|
103
|
+
const P = Array.from(S.children).map((j) => j.offsetWidth);
|
|
104
|
+
if (!P.length || P.reduce((j, le) => j + le, 0) <= f.clientWidth) {
|
|
105
|
+
C.value = I.value.length;
|
|
106
|
+
return;
|
|
107
|
+
}
|
|
108
|
+
const g = Math.max(0, f.clientWidth - D);
|
|
109
|
+
let q = 0, Q = 0;
|
|
110
|
+
for (const j of P) {
|
|
111
|
+
if (q + j > g) break;
|
|
112
|
+
q += j, Q++;
|
|
113
|
+
}
|
|
114
|
+
C.value = Math.min(I.value.length, Math.max(1, Q + 1));
|
|
115
|
+
}
|
|
116
|
+
function O() {
|
|
117
|
+
k || (k = !0, rt(() => {
|
|
118
|
+
k = !1, Y();
|
|
119
|
+
}));
|
|
120
|
+
}
|
|
121
|
+
function ie() {
|
|
122
|
+
b && (s !== x.value && (s && b.unobserve(s), s = x.value, s && b.observe(s)), w !== v.value && (w && b.unobserve(w), w = v.value, w && b.observe(w)), O());
|
|
123
|
+
}
|
|
124
|
+
ye(
|
|
125
|
+
() => I.value.map(({ name: f }) => f).join("\0"),
|
|
126
|
+
() => {
|
|
127
|
+
C.value = Number.POSITIVE_INFINITY, O();
|
|
128
|
+
},
|
|
129
|
+
{ flush: "post" }
|
|
130
|
+
), ye(
|
|
131
|
+
() => n.wrap,
|
|
132
|
+
() => {
|
|
133
|
+
C.value = Number.POSITIVE_INFINITY, O();
|
|
134
|
+
},
|
|
135
|
+
{ flush: "post" }
|
|
136
|
+
), ye([x, v], ie, { flush: "post" }), we(() => {
|
|
137
|
+
typeof ResizeObserver < "u" && (b = new ResizeObserver(O), ie()), O();
|
|
138
|
+
}), ke(() => b == null ? void 0 : b.disconnect());
|
|
139
|
+
function be(f) {
|
|
140
|
+
var S, P;
|
|
141
|
+
f !== l.value && (l.value ? (S = R.value) == null || S.show() : (P = R.value) == null || P.hide());
|
|
142
|
+
}
|
|
143
|
+
return (f, S) => {
|
|
144
|
+
const P = oe("FmPopover");
|
|
145
|
+
return y(), $(ne, null, [
|
|
146
|
+
a("span", {
|
|
147
|
+
id: u.value,
|
|
148
|
+
"data-testid": "run-items-a11y-description",
|
|
149
|
+
class: "sr-only"
|
|
150
|
+
}, [
|
|
151
|
+
F.value ? (y(), $(ne, { key: 0 }, [
|
|
152
|
+
Ze(h(r(i)("inventory.production.run.list.itemsHidden", { count: F.value })) + ". ", 1)
|
|
153
|
+
], 64)) : B("", !0),
|
|
154
|
+
Ze(" " + h(I.value.length ? r(i)("inventory.production.run.list.itemsLabel", { names: E.value }) : r(i)("inventory.production.run.list.itemsNone")), 1)
|
|
155
|
+
], 8, Zt),
|
|
156
|
+
I.value.length === 0 ? (y(), $("span", en, h(r(i)("inventory.production.run.list.itemsNone")), 1)) : (y(), $("div", tn, [
|
|
157
|
+
A(P, {
|
|
158
|
+
ref_key: "popover",
|
|
159
|
+
ref: R,
|
|
160
|
+
"show-popover": l.value,
|
|
161
|
+
placement: "bottom-start",
|
|
162
|
+
onPopoverChanged: be
|
|
163
|
+
}, {
|
|
164
|
+
"popover-button": U(() => [
|
|
165
|
+
a("div", {
|
|
166
|
+
ref_key: "disclosureContainer",
|
|
167
|
+
ref: x,
|
|
168
|
+
"data-testid": "items-disclosure-container",
|
|
169
|
+
class: re(["flex w-full max-w-full min-w-0 gap-4 text-left", f.wrap ? "items-start overflow-visible" : "items-center overflow-hidden"]),
|
|
170
|
+
onMouseenter: S[0] || (S[0] = (g) => N.value = !0),
|
|
171
|
+
onMouseleave: S[1] || (S[1] = (g) => N.value = !1)
|
|
172
|
+
}, [
|
|
173
|
+
a("span", {
|
|
174
|
+
"data-testid": "run-items-summary",
|
|
175
|
+
class: re(["fm-typo-en-body-md-400 min-w-0 flex-1 text-fm-color-typo-primary", f.wrap ? "whitespace-normal break-words" : "truncate"])
|
|
176
|
+
}, h(K.value), 3),
|
|
177
|
+
F.value ? (y(), $("span", {
|
|
178
|
+
key: 0,
|
|
179
|
+
"data-testid": "run-items-overflow",
|
|
180
|
+
"data-hidden-count": F.value,
|
|
181
|
+
"data-production-info-size": "sm",
|
|
182
|
+
"aria-hidden": "true",
|
|
183
|
+
class: "inline-flex h-[20px] shrink-0 items-center justify-center whitespace-nowrap rounded-full bg-fm-color-neutral-gray-100 px-[8px] text-[12px] font-normal leading-[18px] text-fm-color-typo-primary"
|
|
184
|
+
}, h(H.value), 9, nn)) : B("", !0),
|
|
185
|
+
a("span", {
|
|
186
|
+
ref_key: "measureRail",
|
|
187
|
+
ref: v,
|
|
188
|
+
"data-testid": "run-items-measure",
|
|
189
|
+
"aria-hidden": "true",
|
|
190
|
+
class: "fm-typo-en-body-md-400 pointer-events-none invisible absolute w-max whitespace-nowrap"
|
|
191
|
+
}, [
|
|
192
|
+
(y(!0), $(ne, null, ge(I.value, (g, q) => (y(), $("span", {
|
|
193
|
+
key: g.key,
|
|
194
|
+
"data-testid": "run-item-measure"
|
|
195
|
+
}, h(q ? `, ${g.name}` : g.name), 1))), 128))
|
|
196
|
+
], 512)
|
|
197
|
+
], 34)
|
|
198
|
+
]),
|
|
199
|
+
default: U(() => [
|
|
200
|
+
a("div", {
|
|
201
|
+
id: p,
|
|
202
|
+
"data-testid": "run-items-disclosure",
|
|
203
|
+
role: "tooltip",
|
|
204
|
+
"aria-label": r(i)("inventory.production.run.list.itemsDisclosure"),
|
|
205
|
+
class: "pointer-events-none min-w-[288px] p-12"
|
|
206
|
+
}, [
|
|
207
|
+
a("h3", rn, h(r(i)("inventory.production.run.list.itemsCount", { count: I.value.length })), 1),
|
|
208
|
+
a("ul", sn, [
|
|
209
|
+
(y(!0), $(ne, null, ge(I.value, (g) => (y(), $("li", {
|
|
210
|
+
key: g.key,
|
|
211
|
+
class: "fm-typo-en-body-sm-400 flex items-start justify-between gap-16"
|
|
212
|
+
}, [
|
|
213
|
+
a("span", an, h(g.name), 1),
|
|
214
|
+
a("span", ln, h(g.quantity), 1)
|
|
215
|
+
]))), 128))
|
|
216
|
+
])
|
|
217
|
+
], 8, on)
|
|
218
|
+
]),
|
|
219
|
+
_: 1
|
|
220
|
+
}, 8, ["show-popover"])
|
|
221
|
+
]))
|
|
222
|
+
], 64);
|
|
223
|
+
};
|
|
224
|
+
}
|
|
225
|
+
}), dn = ["href", "aria-describedby"], pn = /* @__PURE__ */ se({
|
|
226
|
+
__name: "ProductionRunNameCell",
|
|
227
|
+
props: {
|
|
228
|
+
name: {},
|
|
229
|
+
href: {},
|
|
230
|
+
descriptionId: {},
|
|
231
|
+
wrap: { type: Boolean, default: !1 }
|
|
232
|
+
},
|
|
233
|
+
emits: ["open", "focus", "blur"],
|
|
234
|
+
setup(V, { emit: n }) {
|
|
235
|
+
const i = V, N = n, l = _(null), R = _(!1);
|
|
236
|
+
let x = null, v = !1;
|
|
237
|
+
function C() {
|
|
238
|
+
const t = l.value;
|
|
239
|
+
R.value = !i.wrap && !!t && t.scrollWidth > t.clientWidth;
|
|
240
|
+
}
|
|
241
|
+
function c() {
|
|
242
|
+
v || (v = !0, rt(() => {
|
|
243
|
+
v = !1, C();
|
|
244
|
+
}));
|
|
245
|
+
}
|
|
246
|
+
ye(() => [i.name, i.wrap], c, { flush: "post" }), we(() => {
|
|
247
|
+
typeof ResizeObserver < "u" && l.value && (x = new ResizeObserver(c), x.observe(l.value)), c();
|
|
248
|
+
}), ke(() => x == null ? void 0 : x.disconnect());
|
|
249
|
+
function p(t) {
|
|
250
|
+
t.preventDefault(), t.stopPropagation(), N("open");
|
|
251
|
+
}
|
|
252
|
+
return (t, u) => {
|
|
253
|
+
const D = oe("FmTooltip");
|
|
254
|
+
return y(), $("a", {
|
|
255
|
+
href: t.href,
|
|
256
|
+
"aria-describedby": t.descriptionId,
|
|
257
|
+
class: "production-run-row-link fm-typo-en-body-md-600 block min-w-0 max-w-full text-left text-fm-color-typo-primary",
|
|
258
|
+
onClick: p,
|
|
259
|
+
onFocus: u[0] || (u[0] = (b) => N("focus")),
|
|
260
|
+
onBlur: u[1] || (u[1] = (b) => N("blur"))
|
|
261
|
+
}, [
|
|
262
|
+
A(D, {
|
|
263
|
+
content: t.name,
|
|
264
|
+
disabled: !R.value,
|
|
265
|
+
placement: "top",
|
|
266
|
+
"z-index": 51,
|
|
267
|
+
"content-class": "production-run-name-tooltip-reference"
|
|
268
|
+
}, {
|
|
269
|
+
default: U(() => [
|
|
270
|
+
a("span", {
|
|
271
|
+
ref_key: "label",
|
|
272
|
+
ref: l,
|
|
273
|
+
"data-testid": "run-name-label",
|
|
274
|
+
class: re(["relative z-[1] block min-w-0", t.wrap ? "whitespace-normal break-words" : "truncate"])
|
|
275
|
+
}, h(t.name), 3)
|
|
276
|
+
]),
|
|
277
|
+
_: 1
|
|
278
|
+
}, 8, ["content", "disabled"])
|
|
279
|
+
], 40, dn);
|
|
280
|
+
};
|
|
281
|
+
}
|
|
282
|
+
}), mn = /* @__PURE__ */ it(pn, [["__scopeId", "data-v-93792658"]]), vn = ["aria-label"], fn = { class: "min-w-0 truncate" }, yn = /* @__PURE__ */ se({
|
|
283
|
+
__name: "ProductionRunSortHeader",
|
|
284
|
+
props: {
|
|
285
|
+
columnId: {},
|
|
286
|
+
label: {},
|
|
287
|
+
activeColumnId: {},
|
|
288
|
+
descending: { type: Boolean }
|
|
289
|
+
},
|
|
290
|
+
emits: ["toggle"],
|
|
291
|
+
setup(V, { emit: n }) {
|
|
292
|
+
const i = V, N = n, { t: l } = ae(), R = m(() => i.activeColumnId === i.columnId), x = m(
|
|
293
|
+
() => R.value ? l(`inventory.production.run.list.sort.${i.descending ? "descending" : "ascending"}`) : l("inventory.production.run.list.sort.unsorted")
|
|
294
|
+
), v = m(
|
|
295
|
+
() => R.value ? i.descending ? "arrow_downward" : "arrow_upward" : "unfold_more"
|
|
296
|
+
), C = m(
|
|
297
|
+
() => l("inventory.production.run.list.sort.label", {
|
|
298
|
+
column: i.label,
|
|
299
|
+
direction: x.value
|
|
300
|
+
})
|
|
301
|
+
), c = _(null), p = _(null);
|
|
302
|
+
return we(() => {
|
|
303
|
+
var t;
|
|
304
|
+
p.value = ((t = c.value) == null ? void 0 : t.closest("th")) ?? null;
|
|
305
|
+
}), gt(() => {
|
|
306
|
+
p.value && p.value.setAttribute(
|
|
307
|
+
"aria-sort",
|
|
308
|
+
R.value ? i.descending ? "descending" : "ascending" : "none"
|
|
309
|
+
);
|
|
310
|
+
}), ke(() => {
|
|
311
|
+
var t;
|
|
312
|
+
return (t = p.value) == null ? void 0 : t.removeAttribute("aria-sort");
|
|
313
|
+
}), (t, u) => {
|
|
314
|
+
const D = oe("FmIcon");
|
|
315
|
+
return y(), $("button", {
|
|
316
|
+
ref_key: "button",
|
|
317
|
+
ref: c,
|
|
318
|
+
type: "button",
|
|
319
|
+
class: "production-run-sort-header flex h-[35px] w-full items-center gap-4 px-16 text-left fm-typo-en-body-md-600 text-fm-color-typo-secondary hover:text-fm-color-typo-primary focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-[-2px] focus-visible:outline-fm-color-primary",
|
|
320
|
+
"aria-label": C.value,
|
|
321
|
+
onClick: u[0] || (u[0] = ot((b) => N("toggle", t.columnId), ["stop"]))
|
|
322
|
+
}, [
|
|
323
|
+
a("span", fn, h(t.label), 1),
|
|
324
|
+
A(D, {
|
|
325
|
+
name: v.value,
|
|
326
|
+
size: "sm",
|
|
327
|
+
"aria-hidden": "true",
|
|
328
|
+
class: "shrink-0"
|
|
329
|
+
}, null, 8, ["name"])
|
|
330
|
+
], 8, vn);
|
|
331
|
+
};
|
|
332
|
+
}
|
|
333
|
+
});
|
|
334
|
+
let bn = 0;
|
|
335
|
+
function _n(V, n = () => null, i = () => {
|
|
336
|
+
}, N = () => {
|
|
337
|
+
}, l = () => {
|
|
338
|
+
}, R = () => !1, x = (v) => `/production-run/${encodeURIComponent(v._id)}`) {
|
|
339
|
+
var b;
|
|
340
|
+
const { t: v } = ae(), C = St(), c = ++bn, p = _(null), t = (s) => `production-run-table-${c}-items-${encodeURIComponent(s._id)}`, u = (s, w) => {
|
|
341
|
+
const k = N();
|
|
342
|
+
return W(yn, {
|
|
343
|
+
columnId: s,
|
|
344
|
+
label: w,
|
|
345
|
+
activeColumnId: k == null ? void 0 : k.id,
|
|
346
|
+
descending: k == null ? void 0 : k.desc,
|
|
347
|
+
onToggle: l
|
|
348
|
+
});
|
|
349
|
+
};
|
|
350
|
+
return { columnDefs: [
|
|
351
|
+
{
|
|
352
|
+
id: "runNo",
|
|
353
|
+
header: () => u("runNo", "#"),
|
|
354
|
+
enableSorting: !1,
|
|
355
|
+
size: 80,
|
|
356
|
+
meta: { headerClass: "p-0" },
|
|
357
|
+
cell: (s) => W(
|
|
358
|
+
"span",
|
|
359
|
+
{ class: "fm-typo-en-body-md-600 text-fm-color-typo-primary" },
|
|
360
|
+
`${s.row.original.runNo}`
|
|
361
|
+
)
|
|
362
|
+
},
|
|
363
|
+
{
|
|
364
|
+
id: "name",
|
|
365
|
+
header: () => u("name", v("inventory.production.run.list.columns.name")),
|
|
366
|
+
enableSorting: !1,
|
|
367
|
+
minSize: 240,
|
|
368
|
+
size: 320,
|
|
369
|
+
maxSize: 320,
|
|
370
|
+
meta: { headerClass: "p-0" },
|
|
371
|
+
cell: (s) => W(mn, {
|
|
372
|
+
name: Re(
|
|
373
|
+
s.row.original,
|
|
374
|
+
v("inventory.production.run.list.untitled")
|
|
375
|
+
),
|
|
376
|
+
href: x(s.row.original),
|
|
377
|
+
descriptionId: t(s.row.original),
|
|
378
|
+
wrap: R(),
|
|
379
|
+
onOpen: () => i(s.row.original),
|
|
380
|
+
onFocus: () => {
|
|
381
|
+
p.value = s.row.original._id;
|
|
382
|
+
},
|
|
383
|
+
onBlur: () => {
|
|
384
|
+
p.value === s.row.original._id && (p.value = null);
|
|
385
|
+
}
|
|
386
|
+
})
|
|
387
|
+
},
|
|
388
|
+
{
|
|
389
|
+
id: "items",
|
|
390
|
+
header: () => v("inventory.production.run.list.columns.items"),
|
|
391
|
+
enableSorting: !1,
|
|
392
|
+
minSize: 220,
|
|
393
|
+
size: 280,
|
|
394
|
+
maxSize: 280,
|
|
395
|
+
cell: (s) => W(cn, {
|
|
396
|
+
run: s.row.original,
|
|
397
|
+
resolveSku: n,
|
|
398
|
+
descriptionId: t(s.row.original),
|
|
399
|
+
wrap: R(),
|
|
400
|
+
rowLinkFocused: p.value === s.row.original._id
|
|
401
|
+
})
|
|
402
|
+
},
|
|
403
|
+
...(b = C.sessionUser.value) != null && b.role.isAdmin ? [
|
|
404
|
+
{
|
|
405
|
+
id: "statusForAdmin",
|
|
406
|
+
header: () => W(st, {}, () => v("inventory.production.run.list.columns.status")),
|
|
407
|
+
cell: (s) => s.row.original.status,
|
|
408
|
+
enableSorting: !1,
|
|
409
|
+
size: 120
|
|
410
|
+
}
|
|
411
|
+
] : [],
|
|
412
|
+
{
|
|
413
|
+
id: "status",
|
|
414
|
+
header: () => u("status", v("inventory.production.run.list.columns.status")),
|
|
415
|
+
enableSorting: !1,
|
|
416
|
+
size: 120,
|
|
417
|
+
meta: { headerClass: "p-0" },
|
|
418
|
+
cell: (s) => W(Tt, { status: s.row.original.status })
|
|
419
|
+
},
|
|
420
|
+
{
|
|
421
|
+
id: "updatedAt",
|
|
422
|
+
header: () => u("updatedAt", v("inventory.production.run.list.columns.updated")),
|
|
423
|
+
enableSorting: !1,
|
|
424
|
+
minSize: 180,
|
|
425
|
+
size: 200,
|
|
426
|
+
maxSize: 200,
|
|
427
|
+
meta: { headerClass: "p-0" },
|
|
428
|
+
cell: (s) => {
|
|
429
|
+
const w = s.row.original, k = at(w);
|
|
430
|
+
return W(
|
|
431
|
+
"span",
|
|
432
|
+
{ class: "fm-typo-en-body-md-400 text-fm-color-typo-primary whitespace-nowrap" },
|
|
433
|
+
Jt((k == null ? void 0 : k.at) ?? w.createdAt)
|
|
434
|
+
);
|
|
435
|
+
}
|
|
436
|
+
},
|
|
437
|
+
{
|
|
438
|
+
id: "action",
|
|
439
|
+
header: "",
|
|
440
|
+
enableSorting: !1,
|
|
441
|
+
cell: (s) => W(Xt, {
|
|
442
|
+
run: s.row.original,
|
|
443
|
+
onAction: (w) => V(w, s.row.original)
|
|
444
|
+
}),
|
|
445
|
+
size: 40,
|
|
446
|
+
meta: {
|
|
447
|
+
cellClass: "",
|
|
448
|
+
headerClass: ""
|
|
449
|
+
}
|
|
450
|
+
}
|
|
451
|
+
] };
|
|
452
|
+
}
|
|
453
|
+
const hn = { class: "sr-only" }, gn = {
|
|
454
|
+
key: 0,
|
|
455
|
+
"data-testid": "production-run-history-scope",
|
|
456
|
+
class: "flex shrink-0 flex-wrap items-center justify-between gap-8"
|
|
457
|
+
}, xn = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, wn = {
|
|
458
|
+
key: 1,
|
|
459
|
+
role: "alert",
|
|
460
|
+
class: "w-full fm-typo-en-body-sm-400 text-fm-color-typo-secondary"
|
|
461
|
+
}, kn = ["aria-labelledby"], Rn = ["aria-label"], In = {
|
|
462
|
+
key: 2,
|
|
463
|
+
"data-testid": "production-run-list-empty",
|
|
464
|
+
class: "rounded-md border border-dashed border-fm-color-neutral-gray-200 p-48 text-center"
|
|
465
|
+
}, $n = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, Sn = { class: "mx-auto mt-4 max-w-[25rem] fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, An = {
|
|
466
|
+
key: 3,
|
|
467
|
+
"data-testid": "production-run-list-no-match",
|
|
468
|
+
class: "rounded-md border border-dashed border-fm-color-neutral-gray-200 p-40 text-center"
|
|
469
|
+
}, Cn = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, Fn = { class: "mx-auto mt-4 max-w-[25rem] fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Nn = { class: "flex flex-col gap-[8px] py-[8px]" }, Pn = {
|
|
470
|
+
"data-testid": "production-run-mobile-run-number",
|
|
471
|
+
class: "flex items-center gap-[4px]"
|
|
472
|
+
}, Dn = { class: "fm-typo-en-body-md-400 text-fm-color-typo-primary" }, Tn = { class: "flex min-w-0 flex-col gap-[2px]" }, zn = { class: "text-[12px] font-medium leading-[18px] text-fm-color-typo-secondary" }, Mn = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, Ln = { class: "flex min-w-0 flex-col gap-[2px]" }, Vn = { class: "text-[12px] font-medium leading-[18px] text-fm-color-typo-secondary" }, En = {
|
|
473
|
+
"data-testid": "production-run-admin-status",
|
|
474
|
+
class: "flex flex-col gap-[4px]"
|
|
475
|
+
}, On = { class: "text-[12px] font-medium leading-[18px] text-fm-color-typo-secondary" }, qn = { class: "flex flex-col gap-[2px]" }, Un = { class: "text-[12px] font-medium leading-[18px] text-fm-color-typo-secondary" }, jn = { class: "flex flex-col gap-[2px]" }, Wn = { class: "text-[12px] font-medium leading-[18px] text-fm-color-typo-secondary" }, Bn = /* @__PURE__ */ se({
|
|
476
|
+
__name: "ProductionRunView",
|
|
477
|
+
setup(V) {
|
|
478
|
+
const { t: n } = ae(), i = kt(), N = Rt(), l = It(), R = zt(), x = Qt(), v = Gt(), C = At();
|
|
479
|
+
Mt();
|
|
480
|
+
const c = _([]), p = _(!1), t = _(null), u = _(null), D = _(!1), b = _(null), s = m(() => ({
|
|
481
|
+
loading: p.value || D.value,
|
|
482
|
+
loaded: !p.value && !t.value,
|
|
483
|
+
hasMore: u.value !== null,
|
|
484
|
+
error: b.value ?? t.value
|
|
485
|
+
})), w = _(""), k = _("all"), I = _([{ id: "updatedAt", desc: !0 }]), G = _(!1), K = _(null), F = _(null), H = _(null);
|
|
486
|
+
let E = 0, Y = 0;
|
|
487
|
+
const O = m(
|
|
488
|
+
() => c.value.find((e) => e._id === F.value) ?? null
|
|
489
|
+
), ie = Lt(() => O.value), be = m(() => !!O.value && xe(O.value)), f = m(
|
|
490
|
+
() => ie.ingredientLines.value.map((e) => ({
|
|
491
|
+
skuId: e.skuId,
|
|
492
|
+
name: e.name,
|
|
493
|
+
unit: e.unit,
|
|
494
|
+
unitRef: e.unitRef,
|
|
495
|
+
outputSkuIds: e.outputSkuIds
|
|
496
|
+
}))
|
|
497
|
+
);
|
|
498
|
+
function S() {
|
|
499
|
+
return t.value ? g() : q();
|
|
500
|
+
}
|
|
501
|
+
function P() {
|
|
502
|
+
Y++, H.value = null, F.value = null, K.value = null, G.value = !1;
|
|
503
|
+
}
|
|
504
|
+
async function g() {
|
|
505
|
+
const e = ++E;
|
|
506
|
+
p.value = !0, t.value = null, u.value = null, D.value = !1, b.value = null;
|
|
507
|
+
try {
|
|
508
|
+
const o = await R.list();
|
|
509
|
+
if (e !== E) return;
|
|
510
|
+
c.value = o.items, u.value = o.nextCursor;
|
|
511
|
+
} catch (o) {
|
|
512
|
+
if (e !== E) return;
|
|
513
|
+
const d = he(o);
|
|
514
|
+
t.value = d.message, l == null || l.open({
|
|
515
|
+
title: n("inventory.production.run.list.error.load"),
|
|
516
|
+
message: d.message,
|
|
517
|
+
type: "error"
|
|
518
|
+
});
|
|
519
|
+
} finally {
|
|
520
|
+
e === E && (p.value = !1);
|
|
521
|
+
}
|
|
522
|
+
}
|
|
523
|
+
async function q() {
|
|
524
|
+
const e = u.value;
|
|
525
|
+
if (!e || p.value || D.value) return;
|
|
526
|
+
const o = E;
|
|
527
|
+
D.value = !0, b.value = null;
|
|
528
|
+
try {
|
|
529
|
+
const d = await R.list({ cursor: e });
|
|
530
|
+
if (o !== E || e !== u.value) return;
|
|
531
|
+
if (d.nextCursor === e)
|
|
532
|
+
throw new Error(n("inventory.production.run.list.history.cursorError"));
|
|
533
|
+
const T = new Set(c.value.map((M) => M._id));
|
|
534
|
+
c.value = [...c.value, ...d.items.filter((M) => !T.has(M._id))], u.value = d.nextCursor;
|
|
535
|
+
} catch (d) {
|
|
536
|
+
o === E && (b.value = he(d).message);
|
|
537
|
+
} finally {
|
|
538
|
+
o === E && (D.value = !1);
|
|
539
|
+
}
|
|
540
|
+
}
|
|
541
|
+
x.watchLocation(() => (P(), g()));
|
|
542
|
+
const Q = m(() => Vt(c.value)), j = m(
|
|
543
|
+
() => Et.map((e) => ({
|
|
544
|
+
label: n(`inventory.production.run.list.tabs.${e.key}`),
|
|
545
|
+
value: e.key,
|
|
546
|
+
badge: Q.value[e.key],
|
|
547
|
+
id: `production-run-list-tab-${e.key}`,
|
|
548
|
+
controls: "production-run-list-panel"
|
|
549
|
+
}))
|
|
550
|
+
);
|
|
551
|
+
function le(e) {
|
|
552
|
+
var o;
|
|
553
|
+
return ((o = at(e)) == null ? void 0 : o.at) ?? e.createdAt;
|
|
554
|
+
}
|
|
555
|
+
function ue(e, o, d) {
|
|
556
|
+
switch (d) {
|
|
557
|
+
case "runNo":
|
|
558
|
+
return e.runNo - o.runNo;
|
|
559
|
+
case "name":
|
|
560
|
+
return tt(e).localeCompare(tt(o));
|
|
561
|
+
case "status":
|
|
562
|
+
return et(e.status) - et(o.status);
|
|
563
|
+
case "updatedAt":
|
|
564
|
+
return Date.parse(le(e)) - Date.parse(le(o));
|
|
565
|
+
default:
|
|
566
|
+
return 0;
|
|
567
|
+
}
|
|
568
|
+
}
|
|
569
|
+
const Z = m(() => {
|
|
570
|
+
const e = c.value.filter(
|
|
571
|
+
(T) => Ot(T, k.value) && qt(T, w.value, $e)
|
|
572
|
+
), o = I.value[0];
|
|
573
|
+
if (!o)
|
|
574
|
+
return e.sort(
|
|
575
|
+
(T, M) => ue(M, T, "updatedAt") || ue(M, T, "runNo")
|
|
576
|
+
);
|
|
577
|
+
const d = o.desc ? -1 : 1;
|
|
578
|
+
return e.sort(
|
|
579
|
+
(T, M) => d * ue(T, M, o.id) || ue(M, T, "runNo")
|
|
580
|
+
);
|
|
581
|
+
}), { breakpoints: Ie } = $t(), ee = m(() => Ie.value.xs || Ie.value.sm), lt = m(() => ee.value ? 10 : 20), ut = m(
|
|
582
|
+
() => ee.value ? Z.value.map((e) => `${e._id}:${e._rev}`).join("|") : "desktop"
|
|
583
|
+
);
|
|
584
|
+
function ct() {
|
|
585
|
+
w.value = "", k.value = "all";
|
|
586
|
+
}
|
|
587
|
+
function dt(e) {
|
|
588
|
+
const o = I.value[0];
|
|
589
|
+
I.value = [
|
|
590
|
+
(o == null ? void 0 : o.id) === e ? { id: e, desc: !o.desc } : { id: e, desc: !1 }
|
|
591
|
+
];
|
|
592
|
+
}
|
|
593
|
+
function $e(e) {
|
|
594
|
+
return v.skuById[e];
|
|
595
|
+
}
|
|
596
|
+
function _e(e) {
|
|
597
|
+
i.push(nt(e._id));
|
|
598
|
+
}
|
|
599
|
+
function pt(e) {
|
|
600
|
+
return i.resolve(nt(e._id)).href;
|
|
601
|
+
}
|
|
602
|
+
function mt(e, o) {
|
|
603
|
+
const d = ++Y;
|
|
604
|
+
if (F.value = o._id, H.value = null, e === "request") {
|
|
605
|
+
N.open(Ht(n)).onPrimary(() => void vt(o._id, d));
|
|
606
|
+
return;
|
|
607
|
+
}
|
|
608
|
+
H.value = e;
|
|
609
|
+
}
|
|
610
|
+
async function vt(e, o) {
|
|
611
|
+
if (!(o !== Y || F.value !== e))
|
|
612
|
+
try {
|
|
613
|
+
const d = await R.request(e);
|
|
614
|
+
if (o !== Y || F.value !== e || !Se(d)) return;
|
|
615
|
+
l == null || l.open({
|
|
616
|
+
title: n("inventory.production.run.list.request.success"),
|
|
617
|
+
message: n("inventory.production.run.list.request.successMessage", {
|
|
618
|
+
name: Re(d, n("inventory.production.run.list.untitled"))
|
|
619
|
+
}),
|
|
620
|
+
type: "success"
|
|
621
|
+
}), F.value = null;
|
|
622
|
+
} catch (d) {
|
|
623
|
+
if (o !== Y || F.value !== e) return;
|
|
624
|
+
l == null || l.open({
|
|
625
|
+
title: n("inventory.production.run.list.error.action", {
|
|
626
|
+
action: n("inventory.production.run.list.rowActions.request")
|
|
627
|
+
}),
|
|
628
|
+
message: he(d).message,
|
|
629
|
+
type: "error"
|
|
630
|
+
});
|
|
631
|
+
}
|
|
632
|
+
}
|
|
633
|
+
function Se(e) {
|
|
634
|
+
const o = c.value.findIndex((T) => T._id === e._id);
|
|
635
|
+
if (o < 0) return !1;
|
|
636
|
+
const d = [...c.value];
|
|
637
|
+
return d[o] = e, c.value = d, !0;
|
|
638
|
+
}
|
|
639
|
+
function te(e) {
|
|
640
|
+
F.value === e._id && Se(e);
|
|
641
|
+
}
|
|
642
|
+
function ft(e) {
|
|
643
|
+
e === null && (H.value = null, F.value = null);
|
|
644
|
+
}
|
|
645
|
+
function yt() {
|
|
646
|
+
P(), g();
|
|
647
|
+
}
|
|
648
|
+
const { columnDefs: bt } = _n(
|
|
649
|
+
mt,
|
|
650
|
+
$e,
|
|
651
|
+
_e,
|
|
652
|
+
() => I.value[0],
|
|
653
|
+
dt,
|
|
654
|
+
() => ee.value,
|
|
655
|
+
pt
|
|
656
|
+
);
|
|
657
|
+
function Ae(e) {
|
|
658
|
+
e === "refresh" && g(), e === "create" && (K.value = null, G.value = !0);
|
|
659
|
+
}
|
|
660
|
+
const _t = m(() => [
|
|
661
|
+
{
|
|
662
|
+
label: n("inventory.common.refresh"),
|
|
663
|
+
value: "refresh",
|
|
664
|
+
prependIcon: "refresh"
|
|
665
|
+
},
|
|
666
|
+
{
|
|
667
|
+
label: n("inventory.production.run.list.actions.create"),
|
|
668
|
+
value: "create",
|
|
669
|
+
prependIcon: "add",
|
|
670
|
+
testId: "production-run-mobile-create",
|
|
671
|
+
isPrimary: !0
|
|
672
|
+
}
|
|
673
|
+
]);
|
|
674
|
+
function ht() {
|
|
675
|
+
K.value = null, g();
|
|
676
|
+
}
|
|
677
|
+
return (e, o) => {
|
|
678
|
+
const d = oe("FmButton"), T = oe("FmTable");
|
|
679
|
+
return y(), J(Ct, {
|
|
680
|
+
title: r(n)("inventory.production.run.list.title"),
|
|
681
|
+
"helper-text": r(n)("inventory.production.run.list.caption"),
|
|
682
|
+
actions: _t.value,
|
|
683
|
+
"onClick:action": Ae
|
|
684
|
+
}, {
|
|
685
|
+
default: U(() => {
|
|
686
|
+
var M;
|
|
687
|
+
return [
|
|
688
|
+
a("div", {
|
|
689
|
+
"data-testid": "production-run-list-content",
|
|
690
|
+
class: re([
|
|
691
|
+
"flex w-full max-h-full flex-col gap-12",
|
|
692
|
+
{
|
|
693
|
+
"p-0": ee.value,
|
|
694
|
+
"px-24": !ee.value
|
|
695
|
+
}
|
|
696
|
+
])
|
|
697
|
+
}, [
|
|
698
|
+
a("h1", hn, h(r(n)("inventory.production.run.list.title")), 1),
|
|
699
|
+
A(Yt, {
|
|
700
|
+
"change-location": "",
|
|
701
|
+
searchable: "",
|
|
702
|
+
search: w.value,
|
|
703
|
+
"onUpdate:search": o[1] || (o[1] = (L) => w.value = L)
|
|
704
|
+
}, {
|
|
705
|
+
default: U(() => [
|
|
706
|
+
A(Ut, {
|
|
707
|
+
modelValue: k.value,
|
|
708
|
+
"onUpdate:modelValue": o[0] || (o[0] = (L) => k.value = L),
|
|
709
|
+
items: j.value,
|
|
710
|
+
ariaLabel: r(n)("inventory.production.run.list.tabsLabel"),
|
|
711
|
+
density: "list"
|
|
712
|
+
}, null, 8, ["modelValue", "items", "ariaLabel"])
|
|
713
|
+
]),
|
|
714
|
+
_: 1
|
|
715
|
+
}, 8, ["search"]),
|
|
716
|
+
!p.value && !t.value && (u.value || b.value) ? (y(), $("div", gn, [
|
|
717
|
+
a("p", xn, h(r(n)("inventory.production.run.list.history.scope", { count: c.value.length })), 1),
|
|
718
|
+
u.value ? (y(), J(d, {
|
|
719
|
+
key: 0,
|
|
720
|
+
"data-testid": "production-run-load-more",
|
|
721
|
+
variant: "secondary",
|
|
722
|
+
label: r(n)("inventory.production.run.list.history.loadMore"),
|
|
723
|
+
loading: D.value,
|
|
724
|
+
disabled: D.value,
|
|
725
|
+
onClick: q
|
|
726
|
+
}, null, 8, ["label", "loading", "disabled"])) : B("", !0),
|
|
727
|
+
b.value ? (y(), $("p", wn, h(b.value), 1)) : B("", !0)
|
|
728
|
+
])) : B("", !0),
|
|
729
|
+
a("div", {
|
|
730
|
+
id: "production-run-list-panel",
|
|
731
|
+
role: "tabpanel",
|
|
732
|
+
"aria-labelledby": `production-run-list-tab-${k.value}`,
|
|
733
|
+
class: re(["flex min-h-0 flex-col", !p.value && !t.value && Z.value.length ? "overflow-hidden" : "overflow-y-auto"]),
|
|
734
|
+
style: xt(!p.value && !t.value && Z.value.length ? r(C).tableHeight : void 0)
|
|
735
|
+
}, [
|
|
736
|
+
p.value ? (y(), $("div", {
|
|
737
|
+
key: 0,
|
|
738
|
+
"data-testid": "production-run-list-loading",
|
|
739
|
+
role: "status",
|
|
740
|
+
class: "w-full space-y-12",
|
|
741
|
+
"aria-busy": "true",
|
|
742
|
+
"aria-label": r(n)("inventory.production.run.list.loading")
|
|
743
|
+
}, [
|
|
744
|
+
(y(), $(ne, null, ge(6, (L) => a("div", {
|
|
745
|
+
key: L,
|
|
746
|
+
"data-testid": "production-run-list-skeleton-row",
|
|
747
|
+
class: "h-80 w-full animate-pulse rounded-md bg-fm-color-neutral-gray-100"
|
|
748
|
+
})), 64))
|
|
749
|
+
], 8, Rn)) : t.value ? (y(), J(jt, {
|
|
750
|
+
key: 1,
|
|
751
|
+
"data-testid": "production-run-list-error",
|
|
752
|
+
class: "m-16",
|
|
753
|
+
role: "alert",
|
|
754
|
+
tone: "critical",
|
|
755
|
+
title: r(n)("inventory.production.run.list.error.load"),
|
|
756
|
+
message: t.value
|
|
757
|
+
}, {
|
|
758
|
+
actions: U(() => [
|
|
759
|
+
A(d, {
|
|
760
|
+
"data-testid": "production-run-list-retry",
|
|
761
|
+
label: r(n)("inventory.production.run.list.error.retry"),
|
|
762
|
+
variant: "secondary",
|
|
763
|
+
onClick: g
|
|
764
|
+
}, null, 8, ["label"])
|
|
765
|
+
]),
|
|
766
|
+
_: 1
|
|
767
|
+
}, 8, ["title", "message"])) : c.value.length === 0 ? (y(), $("div", In, [
|
|
768
|
+
a("div", $n, h(r(n)("inventory.production.run.list.empty.noneTitle")), 1),
|
|
769
|
+
a("div", Sn, h(r(n)("inventory.production.run.list.empty.noneDescription")), 1),
|
|
770
|
+
A(d, {
|
|
771
|
+
"data-testid": "production-run-list-empty-create",
|
|
772
|
+
class: "mx-auto mt-16",
|
|
773
|
+
label: r(n)("inventory.production.run.list.empty.create"),
|
|
774
|
+
"prepend-icon": "add",
|
|
775
|
+
onClick: o[2] || (o[2] = (L) => Ae("create"))
|
|
776
|
+
}, null, 8, ["label"])
|
|
777
|
+
])) : Z.value.length === 0 ? (y(), $("div", An, [
|
|
778
|
+
a("div", Cn, h(r(n)("inventory.production.run.list.empty.noMatchTitle")), 1),
|
|
779
|
+
a("div", Fn, h(w.value.trim() ? r(n)("inventory.production.run.list.empty.searchDescription", {
|
|
780
|
+
query: w.value.trim()
|
|
781
|
+
}) : r(n)("inventory.production.run.list.empty.noMatchDescription")), 1),
|
|
782
|
+
A(d, {
|
|
783
|
+
"data-testid": "production-run-list-clear-filters",
|
|
784
|
+
class: "mx-auto mt-12",
|
|
785
|
+
label: r(n)("inventory.production.run.list.empty.clearFilters"),
|
|
786
|
+
"aria-label": r(n)("inventory.production.run.list.empty.clearFilters"),
|
|
787
|
+
variant: "tertiary",
|
|
788
|
+
onClick: ct
|
|
789
|
+
}, null, 8, ["label", "aria-label"])
|
|
790
|
+
])) : (y(), J(T, {
|
|
791
|
+
key: ut.value,
|
|
792
|
+
class: "production-run-table min-h-0 flex-1",
|
|
793
|
+
"column-defs": r(bt),
|
|
794
|
+
"row-data": Z.value,
|
|
795
|
+
loading: p.value,
|
|
796
|
+
"page-size": lt.value,
|
|
797
|
+
"auto-reset-page-index": !0,
|
|
798
|
+
onRowClick: o[3] || (o[3] = (L) => _e(L.original))
|
|
799
|
+
}, {
|
|
800
|
+
"list-row": U((L) => [
|
|
801
|
+
A(wt, {
|
|
802
|
+
"data-testid": "production-run-mobile-row",
|
|
803
|
+
class: "production-run-mobile-row !py-8",
|
|
804
|
+
row: L,
|
|
805
|
+
onRowClick: _e
|
|
806
|
+
}, {
|
|
807
|
+
default: U((z) => {
|
|
808
|
+
var Ce, Fe, Ne, ce, Pe, De, Te, ze, de, Me, Le, Ve, Ee, pe, Oe, qe, Ue, je, me, We, Be, He, Ye, ve, Qe;
|
|
809
|
+
return [
|
|
810
|
+
a("div", Nn, [
|
|
811
|
+
a("div", Pn, [
|
|
812
|
+
o[5] || (o[5] = a("span", { class: "text-[12px] font-medium leading-[18px] text-fm-color-typo-secondary" }, "#", -1)),
|
|
813
|
+
a("div", Dn, [
|
|
814
|
+
A(r(X), {
|
|
815
|
+
render: (Ne = (Fe = (Ce = z.runNo) == null ? void 0 : Ce.column) == null ? void 0 : Fe.columnDef) == null ? void 0 : Ne.cell,
|
|
816
|
+
props: (Pe = (ce = z.runNo) == null ? void 0 : ce.getContext) == null ? void 0 : Pe.call(ce)
|
|
817
|
+
}, null, 8, ["render", "props"])
|
|
818
|
+
])
|
|
819
|
+
]),
|
|
820
|
+
a("div", Tn, [
|
|
821
|
+
a("span", zn, h(r(n)("inventory.production.run.list.columns.name")), 1),
|
|
822
|
+
a("div", Mn, [
|
|
823
|
+
A(r(X), {
|
|
824
|
+
render: (ze = (Te = (De = z.name) == null ? void 0 : De.column) == null ? void 0 : Te.columnDef) == null ? void 0 : ze.cell,
|
|
825
|
+
props: (Me = (de = z.name) == null ? void 0 : de.getContext) == null ? void 0 : Me.call(de)
|
|
826
|
+
}, null, 8, ["render", "props"])
|
|
827
|
+
])
|
|
828
|
+
]),
|
|
829
|
+
a("div", Ln, [
|
|
830
|
+
a("span", Vn, h(r(n)("inventory.production.run.list.columns.items")), 1),
|
|
831
|
+
A(r(X), {
|
|
832
|
+
render: (Ee = (Ve = (Le = z.items) == null ? void 0 : Le.column) == null ? void 0 : Ve.columnDef) == null ? void 0 : Ee.cell,
|
|
833
|
+
props: (Oe = (pe = z.items) == null ? void 0 : pe.getContext) == null ? void 0 : Oe.call(pe)
|
|
834
|
+
}, null, 8, ["render", "props"])
|
|
835
|
+
]),
|
|
836
|
+
z.statusForAdmin ? (y(), J(st, { key: 0 }, {
|
|
837
|
+
default: U(() => {
|
|
838
|
+
var Ge, Ke, Je, fe, Xe;
|
|
839
|
+
return [
|
|
840
|
+
a("div", En, [
|
|
841
|
+
a("span", On, h(r(n)("inventory.production.run.list.columns.status")), 1),
|
|
842
|
+
A(r(X), {
|
|
843
|
+
render: (Je = (Ke = (Ge = z.statusForAdmin) == null ? void 0 : Ge.column) == null ? void 0 : Ke.columnDef) == null ? void 0 : Je.cell,
|
|
844
|
+
props: (Xe = (fe = z.statusForAdmin) == null ? void 0 : fe.getContext) == null ? void 0 : Xe.call(fe)
|
|
845
|
+
}, null, 8, ["render", "props"])
|
|
846
|
+
])
|
|
847
|
+
];
|
|
848
|
+
}),
|
|
849
|
+
_: 2
|
|
850
|
+
}, 1024)) : B("", !0),
|
|
851
|
+
a("div", qn, [
|
|
852
|
+
a("span", Un, h(r(n)("inventory.production.run.list.columns.status")), 1),
|
|
853
|
+
A(r(X), {
|
|
854
|
+
render: (je = (Ue = (qe = z.status) == null ? void 0 : qe.column) == null ? void 0 : Ue.columnDef) == null ? void 0 : je.cell,
|
|
855
|
+
props: (We = (me = z.status) == null ? void 0 : me.getContext) == null ? void 0 : We.call(me)
|
|
856
|
+
}, null, 8, ["render", "props"])
|
|
857
|
+
]),
|
|
858
|
+
a("div", jn, [
|
|
859
|
+
a("span", Wn, h(r(n)("inventory.production.run.list.columns.updated")), 1),
|
|
860
|
+
A(r(X), {
|
|
861
|
+
render: (Ye = (He = (Be = z.updatedAt) == null ? void 0 : Be.column) == null ? void 0 : He.columnDef) == null ? void 0 : Ye.cell,
|
|
862
|
+
props: (Qe = (ve = z.updatedAt) == null ? void 0 : ve.getContext) == null ? void 0 : Qe.call(ve)
|
|
863
|
+
}, null, 8, ["render", "props"])
|
|
864
|
+
])
|
|
865
|
+
])
|
|
866
|
+
];
|
|
867
|
+
}),
|
|
868
|
+
_: 2
|
|
869
|
+
}, 1032, ["row"])
|
|
870
|
+
]),
|
|
871
|
+
_: 1
|
|
872
|
+
}, 8, ["column-defs", "row-data", "loading", "page-size"]))
|
|
873
|
+
], 14, kn)
|
|
874
|
+
], 2),
|
|
875
|
+
G.value ? (y(), J(Wt, {
|
|
876
|
+
key: 0,
|
|
877
|
+
show: !0,
|
|
878
|
+
run: K.value,
|
|
879
|
+
"duplicate-sources": c.value,
|
|
880
|
+
"duplicate-source-state": s.value,
|
|
881
|
+
onLoadMoreDuplicateSources: S,
|
|
882
|
+
"onUpdate:show": o[4] || (o[4] = (L) => G.value = L),
|
|
883
|
+
onSaved: ht
|
|
884
|
+
}, null, 8, ["run", "duplicate-sources", "duplicate-source-state"])) : B("", !0),
|
|
885
|
+
A(Bt, {
|
|
886
|
+
action: H.value,
|
|
887
|
+
run: O.value,
|
|
888
|
+
"location-name": ((M = r(x)._currentLocation) == null ? void 0 : M.name) ?? null,
|
|
889
|
+
"duplicate-sources": c.value,
|
|
890
|
+
"duplicate-source-state": s.value,
|
|
891
|
+
onLoadMoreDuplicateSources: S,
|
|
892
|
+
"at-target": be.value,
|
|
893
|
+
ingredients: f.value,
|
|
894
|
+
"onUpdate:action": ft,
|
|
895
|
+
onEdited: te,
|
|
896
|
+
onIssued: te,
|
|
897
|
+
onRecorded: te,
|
|
898
|
+
onClosed: te,
|
|
899
|
+
onCancelled: te,
|
|
900
|
+
onReload: yt
|
|
901
|
+
}, null, 8, ["action", "run", "location-name", "duplicate-sources", "duplicate-source-state", "at-target", "ingredients"])
|
|
902
|
+
];
|
|
903
|
+
}),
|
|
904
|
+
_: 1
|
|
905
|
+
}, 8, ["title", "helper-text", "actions"]);
|
|
906
|
+
};
|
|
907
|
+
}
|
|
908
|
+
}), ro = /* @__PURE__ */ it(Bn, [["__scopeId", "data-v-88282346"]]);
|
|
909
|
+
export {
|
|
910
|
+
ro as default
|
|
911
|
+
};
|