@feedmepos/mf-inventory-portal 1.7.13-dev.3 → 1.7.13-dev.6
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-OcI38sEw.js → App-JqoqVVdP.js} +471 -460
- package/dist/{ApprovalView-qTRrEvTp.js → ApprovalView-JiWbXkVU.js} +9 -9
- package/dist/{BindingsDialog-G8tFbm7v.js → BindingsDialog-BK4xofWu.js} +2 -2
- package/dist/{BindingsPicker-DB3mjjVh.js → BindingsPicker-CLMsAseG.js} +2 -2
- package/dist/{BindingsTable-DLf8XLyn.js → BindingsTable-DKrBQTxN.js} +4 -4
- package/dist/{BulkReceiveRequestView-2AWitWXo.js → BulkReceiveRequestView-bttHw2ub.js} +19 -19
- package/dist/{ClosingDraftView-c25_GCaw.js → ClosingDraftView-Bhdwo-n8.js} +19 -19
- package/dist/ClosingHistoryView-DrQPWnr6.js +761 -0
- package/dist/{ClosingTemplateView-BzaVZ1Mf.js → ClosingTemplateView-UkwXCrz_.js} +16 -16
- package/dist/{CustomPrintTemplatePreview.vue_vue_type_script_setup_true_lang-Dlh4ThV0.js → CustomPrintTemplatePreview.vue_vue_type_script_setup_true_lang-DNtMdFVF.js} +1 -1
- package/dist/{DefaultView-e9RSHejw.js → DefaultView-sGrYeUGh.js} +2 -2
- package/dist/{DeliveryOrderPrintPreview-BSbiO2Vd.js → DeliveryOrderPrintPreview-CVnqC9Jy.js} +10 -10
- package/dist/{EmailDialog.vue_vue_type_script_setup_true_lang-D_8msVau.js → EmailDialog.vue_vue_type_script_setup_true_lang-CYtHQ2Ru.js} +2250 -2250
- package/dist/{FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-DUjcebMR.js → FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-DXTdvT0C.js} +1 -1
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BA6stZHF.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DtfiRgsD.js} +2 -2
- package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-yBIbCJYy.js +243 -0
- package/dist/{FmMultiselectDialog-DEg8KNwS.js → FmMultiselectDialog-A9VIMLGn.js} +1 -1
- package/dist/{FmMultiselectDialog-DsA4X91e.js → FmMultiselectDialog-DL00XnUc.js} +2 -2
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-CPlywwpg.js → FmUnitInput.vue_vue_type_script_setup_true_lang-RJKOB-cm.js} +66 -63
- package/dist/{ImportView-D9QCHpOd.js → ImportView-DPrLnJO8.js} +6 -6
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-C7iOvnZV.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-IAQyFPmi.js} +1 -1
- package/dist/{IngredientGroupView-BRH304Pf.js → IngredientGroupView-DyhC6lJ8.js} +5 -5
- package/dist/{IngredientsView-BUGYJ6cN.js → IngredientsView-P4AqPikD.js} +15 -15
- package/dist/{IntegrationExplorerView-Z3_x4C5I.js → IntegrationExplorerView-CujhjHHV.js} +4 -4
- package/dist/{IntegrationView-ClWTgLai.js → IntegrationView-CFqsZyzI.js} +3077 -2998
- package/dist/{InventoryBindingForm-B7tGISLQ.js → InventoryBindingForm-B0NJ8H51.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-DOWePtXq.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-bbIpFo_4.js} +5 -5
- package/dist/{InventoryBindingSummary-j3YGRPOt.js → InventoryBindingSummary-CBgO_tCz.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CPpO-iyC.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DuuXzyKH.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-BP8f4hlw.js → PremiumBadge.vue_vue_type_script_setup_true_lang-C418f34P.js} +1 -1
- package/dist/ProductionRunDetailView-tSByC3nQ.js +5165 -0
- package/dist/ProductionRunPreparePrintView-zPAATL-n.js +31 -0
- package/dist/ProductionRunTabs.vue_vue_type_script_setup_true_lang-DgtZJgrs.js +3506 -0
- package/dist/ProductionRunView-BsP02jgC.js +815 -0
- package/dist/{PublishView-CL747KZU.js → PublishView-Cf0Tn7xt.js} +3 -3
- package/dist/{PurchaseOrderPrintPreview-C5AB03ht.js → PurchaseOrderPrintPreview-BTlSyQqZ.js} +6 -6
- package/dist/{ReceiveRequestView-BDy40tBg.js → ReceiveRequestView-9LFOl2hJ.js} +14 -14
- package/dist/{RecipeView-BbBZGBPb.js → RecipeView-C4KxMCpQ.js} +17 -17
- package/dist/{SettingsView-rcalnrlB.js → SettingsView-ShrefnTM.js} +4 -4
- package/dist/{StockView-BSLGMo1e.js → StockView-BVd6f7Fr.js} +21 -21
- package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-DeEq2HQe.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-B-rB7p9o.js} +1 -1
- package/dist/{SupplierView-DOq8oosU.js → SupplierView-DZSY6_eU.js} +12 -12
- package/dist/{SurchargeView-BK9Yakao.js → SurchargeView-UUYoT8MK.js} +6 -6
- package/dist/{SystemTrailDialog.vue_vue_type_script_setup_true_lang-DQRfvdyo.js → SystemTrailDialog.vue_vue_type_script_setup_true_lang-BLMxzi1C.js} +2 -2
- package/dist/{TemplatePublishDialog.vue_vue_type_script_setup_true_lang-CjfzWy2p.js → TemplatePublishDialog.vue_vue_type_script_setup_true_lang-z3qIVKP7.js} +1 -1
- package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-6qKRU6v7.js → TransferDetails.vue_vue_type_script_setup_true_lang-DEO8CP-X.js} +20 -20
- package/dist/{TransferTemplateView-BmWxWDe8.js → TransferTemplateView-C21o2V_1.js} +20 -20
- package/dist/{UnitCostHistoryView-BCvCf-2e.js → UnitCostHistoryView-DPEGVLBP.js} +4 -4
- package/dist/{UnitDisplayControl.vue_vue_type_script_setup_true_lang-DJu3u-cT.js → UnitDisplayControl.vue_vue_type_script_setup_true_lang-BuGmmHBk.js} +4 -4
- package/dist/{UnitView-CW8GRw2n.js → UnitView-Bx03E4uc.js} +7 -7
- package/dist/{WarehouseView-ZWuCwzuM.js → WarehouseView-BehHQ9Ao.js} +6 -6
- package/dist/{WastageTemplateView-DkwVp2Bc.js → WastageTemplateView-gmr7doXL.js} +14 -14
- package/dist/api/netsuite.d.ts +13 -0
- 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 +58 -0
- package/dist/api/stock.d.ts +0 -6
- package/dist/{app-BJsy0dhl.js → app-BT7hD4az.js} +16523 -12629
- package/dist/app.d.ts +3047 -71
- package/dist/app.js +1 -1
- package/dist/{closing-template-DdxIx-dq.js → closing-template-BNfr1RIX.js} +1 -1
- package/dist/components/FmInventoryBanner.vue.d.ts +39 -0
- package/dist/components/FmUnitInput.spec.d.ts +1 -0
- package/dist/components/FmUnitInputProps.d.ts +2 -0
- package/dist/composable/useModalA11y.d.ts +9 -0
- package/dist/composable/useModalA11y.spec.d.ts +1 -0
- package/dist/cypress/component/ChangelogPanel.cy.d.ts +1 -0
- package/dist/cypress/support/component.d.ts +1 -2
- package/dist/{date2-BySoG7zL.js → date2-CAh7rsAp.js} +1 -1
- package/dist/{dayjs.min-CEK_HLa5.js → dayjs.min-BJk-edO7.js} +7 -7
- package/dist/{decimal-CxH3h_oz.js → decimal-DYlKNkVX.js} +2 -2
- package/dist/{defineDeepModel-BiNh3hbS.js → defineDeepModel-BPHl7mTD.js} +1 -1
- package/dist/{duplicate-template-BqTirEVQ.js → duplicate-template-BWUUIdzG.js} +1 -1
- package/dist/{feature-CtiarMKO.js → feature-CSvVyBN2.js} +2 -2
- package/dist/{format-time-from-id-BZlQSqcg.js → format-time-from-id-Dh3lxXpc.js} +1 -1
- package/dist/{format-unit-display-Ckyw7NDq.js → format-unit-display-B1ft2wxm.js} +12 -12
- package/dist/{import-export.helper-93ZgMgfA.js → import-export.helper-txDvkMf0.js} +6 -6
- package/dist/{index-6U0mJTRK.js → index-AmTodx3_.js} +1 -1
- package/dist/{index-OMz6kBpd.js → index-B4wQijn6.js} +1 -1
- package/dist/{index-BDmWjw_1.js → index-TIX5DyQk.js} +3 -3
- package/dist/inventory-core-dart.default-BpMxAF-0.js +31060 -0
- package/dist/{lz-string-BgsMxnd4.js → lz-string-CFDYH-K6.js} +1 -1
- package/dist/{netsuite-DFRzj2t1.js → netsuite-CdW9v92G.js} +477 -462
- package/dist/{number-D-_PL2pH.js → number-DRRlTYv7.js} +6 -6
- package/dist/{predefined-templates-Ccsy5pq1.js → predefined-templates-C68U85pc.js} +1 -1
- package/dist/production-run-display-DmyfdjHR.js +239 -0
- package/dist/production-run-prepare-sheet-BvxMd19E.js +189 -0
- package/dist/{purchase-order-template-DhWqGEYn.js → purchase-order-template-BvED3CpO.js} +1 -1
- package/dist/{recalculationUtils-DBZx8AEF.js → recalculationUtils-9rFepwwr.js} +1 -1
- package/dist/router/name.d.ts +2 -0
- package/dist/{rules-14YnQFVP.js → rules-C8RmopTe.js} +2 -2
- package/dist/{stock-CqPXExNE.js → stock-BKkluaaM.js} +26 -36
- package/dist/{stock-NwBpU2GU.js → stock-CiCsT5JK.js} +3 -3
- package/dist/stores/integration/codemax.d.ts +1 -1
- package/dist/stores/integration/netsuite.d.ts +54 -0
- package/dist/style.css +1 -1
- package/dist/{supplier-BGh3ELiI.js → supplier--zZMQHPc.js} +2 -2
- package/dist/{surcharge-B2A5F8CG.js → surcharge-BLF3XV0G.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{uom-rules-B9vLSzRQ.js → uom-rules-CjCCXiGL.js} +1 -1
- package/dist/{use-ingredient-select-dialog-vwF7iReq.js → use-ingredient-select-dialog-DnUiY-Ic.js} +2 -2
- package/dist/{use-inventory-binding-dialog-DBp_gbnj.js → use-inventory-binding-dialog-BAU-P8kV.js} +2 -2
- package/dist/{use-template-enabled-locations-DSvlNPYu.js → use-template-enabled-locations-DZMzYCi-.js} +2 -2
- package/dist/{use-transfer-locations-OMxT9ofA.js → use-transfer-locations-DomGLsT2.js} +2 -2
- package/dist/{useHrmPermission-BbjcDYMn.js → useHrmPermission-CrhsV_5z.js} +1 -1
- package/dist/{useNavigationMenu-CJw7QuVt.js → useNavigationMenu-1h-G_-el.js} +2 -2
- package/dist/{useSseClient-CT69SXDP.js → useSseClient-o_3wiqhX.js} +1 -1
- package/dist/views/changelog/components/ChangelogFloatingButton.spec.d.ts +1 -0
- package/dist/views/changelog/composables/fab-position.d.ts +21 -0
- package/dist/views/changelog/composables/use-inventory-record-commits.d.ts +1 -1
- 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/integration/components/netsuite/business/vendor-publish.d.ts +7 -0
- package/dist/views/integration/components/netsuite/business/vendor-publish.spec.d.ts +1 -0
- 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/ProductionRunPreparePrintView.vue.d.ts +2 -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/components/CancelRunDialog.spec.d.ts +1 -0
- package/dist/views/production-run/components/CancelRunDialog.vue.d.ts +918 -0
- package/dist/views/production-run/components/CancelRunDialogProps.d.ts +9 -0
- package/dist/views/production-run/components/CloseRunDialog.spec.d.ts +1 -0
- package/dist/views/production-run/components/CloseRunDialog.vue.d.ts +918 -0
- package/dist/views/production-run/components/CloseRunDialogProps.d.ts +29 -0
- package/dist/views/production-run/components/PrepareRunConfirmationDialog.spec.d.ts +1 -0
- package/dist/views/production-run/components/PrepareRunConfirmationDialog.vue.d.ts +29 -0
- package/dist/views/production-run/components/PrepareRunDialog.spec.d.ts +1 -0
- package/dist/views/production-run/components/PrepareRunDialog.vue.d.ts +18 -0
- package/dist/views/production-run/components/PrepareRunDialogProps.d.ts +29 -0
- package/dist/views/production-run/components/PrepareSheetDialog.spec.d.ts +1 -0
- package/dist/views/production-run/components/PrepareSheetDialog.vue.d.ts +26 -0
- package/dist/views/{stock/components/dialog/SnapshotRecalculationDialog.vue.d.ts → production-run/components/ProductionRunActionMenuItem.vue.d.ts} +7 -10
- package/dist/views/production-run/components/ProductionRunActionsCell.spec.d.ts +1 -0
- package/dist/views/production-run/components/ProductionRunActionsCell.vue.d.ts +20 -0
- package/dist/views/production-run/components/ProductionRunActivityTab.spec.d.ts +1 -0
- package/dist/views/production-run/components/ProductionRunActivityTab.vue.d.ts +15 -0
- package/dist/views/production-run/components/ProductionRunBanner.spec.d.ts +1 -0
- package/dist/views/production-run/components/ProductionRunBanner.vue.d.ts +42 -0
- package/dist/views/production-run/components/ProductionRunBatchCard.spec.d.ts +1 -0
- package/dist/views/production-run/components/ProductionRunBatchCard.vue.d.ts +69 -0
- package/dist/views/production-run/components/ProductionRunBatchWastageDetails.spec.d.ts +1 -0
- package/dist/views/production-run/components/ProductionRunBatchWastageDetails.vue.d.ts +33 -0
- package/dist/views/production-run/components/ProductionRunBindingsDisclosure.spec.d.ts +1 -0
- package/dist/views/production-run/components/ProductionRunBindingsDisclosure.vue.d.ts +25 -0
- package/dist/views/production-run/components/ProductionRunBindingsList.vue.d.ts +51 -0
- package/dist/views/production-run/components/ProductionRunCompactDisclosure.vue.d.ts +25 -0
- package/dist/views/production-run/components/ProductionRunContributorBranch.spec.d.ts +1 -0
- package/dist/views/production-run/components/ProductionRunContributorBranch.vue.d.ts +25 -0
- package/dist/views/production-run/components/ProductionRunCostRail.spec.d.ts +1 -0
- package/dist/views/production-run/components/ProductionRunCostRail.vue.d.ts +77 -0
- package/dist/views/production-run/components/ProductionRunDialog.spec.d.ts +1 -0
- package/dist/views/production-run/components/ProductionRunDialog.vue.d.ts +24 -0
- package/dist/views/production-run/components/ProductionRunDialogProps.d.ts +15 -0
- package/dist/views/production-run/components/ProductionRunDialogSurface.vue.d.ts +33 -0
- package/dist/views/production-run/components/ProductionRunDiscardDialog.spec.d.ts +1 -0
- package/dist/views/production-run/components/ProductionRunDiscardDialog.vue.d.ts +21 -0
- package/dist/views/production-run/components/ProductionRunDuplicateDialog.spec.d.ts +1 -0
- package/dist/views/production-run/components/ProductionRunDuplicateDialog.vue.d.ts +51 -0
- package/dist/views/production-run/components/ProductionRunFormDialog.spec.d.ts +1 -0
- package/dist/views/production-run/components/ProductionRunFormDialog.vue.d.ts +918 -0
- package/dist/views/production-run/components/ProductionRunFormDialogProps.d.ts +22 -0
- package/dist/views/production-run/components/ProductionRunHeader.spec.d.ts +1 -0
- package/dist/views/production-run/components/ProductionRunHeader.vue.d.ts +65 -0
- package/dist/views/production-run/components/ProductionRunHelpPopover.spec.d.ts +1 -0
- package/dist/views/production-run/components/ProductionRunHelpPopover.vue.d.ts +52 -0
- package/dist/views/production-run/components/ProductionRunIngredientTree.spec.d.ts +1 -0
- package/dist/views/production-run/components/ProductionRunIngredientTree.vue.d.ts +42 -0
- package/dist/views/production-run/components/ProductionRunIngredientsTab.spec.d.ts +1 -0
- package/dist/views/production-run/components/ProductionRunIngredientsTab.vue.d.ts +63 -0
- package/dist/views/production-run/components/ProductionRunInstructionsCard.spec.d.ts +1 -0
- package/dist/views/production-run/components/ProductionRunInstructionsCard.vue.d.ts +15 -0
- package/dist/views/production-run/components/ProductionRunItemPickerDialog.spec.d.ts +1 -0
- package/dist/views/production-run/components/ProductionRunItemPickerDialog.vue.d.ts +30 -0
- package/dist/views/production-run/components/ProductionRunItemsCell.spec.d.ts +1 -0
- package/dist/views/production-run/components/ProductionRunItemsCell.vue.d.ts +33 -0
- package/dist/views/production-run/components/ProductionRunItemsTable.spec.d.ts +1 -0
- package/dist/views/production-run/components/ProductionRunItemsTable.vue.d.ts +73 -0
- package/dist/views/production-run/components/ProductionRunLoadBannerContract.spec.d.ts +1 -0
- package/dist/views/production-run/components/ProductionRunNoBindingsHelp.spec.d.ts +1 -0
- package/dist/views/production-run/components/ProductionRunNoBindingsHelp.vue.d.ts +15 -0
- package/dist/views/production-run/components/ProductionRunOutputTab.spec.d.ts +1 -0
- package/dist/views/production-run/components/ProductionRunOutputTab.vue.d.ts +26 -0
- package/dist/views/production-run/components/ProductionRunOverviewTab.spec.d.ts +1 -0
- package/dist/views/production-run/components/ProductionRunOverviewTab.vue.d.ts +999 -0
- package/dist/views/production-run/components/ProductionRunPlanCard.spec.d.ts +1 -0
- package/dist/views/production-run/components/ProductionRunPlanCard.vue.d.ts +50 -0
- package/dist/views/production-run/components/ProductionRunPlanner.spec.d.ts +1 -0
- package/dist/views/production-run/components/ProductionRunPlanner.vue.d.ts +61 -0
- package/dist/views/production-run/components/ProductionRunPrepareSheet.vue.d.ts +16 -0
- package/dist/views/production-run/components/ProductionRunProjectionFeedback.spec.d.ts +1 -0
- package/dist/views/production-run/components/ProductionRunProjectionFeedback.vue.d.ts +41 -0
- package/dist/views/production-run/components/ProductionRunRecordOutputDetails.spec.d.ts +1 -0
- package/dist/views/production-run/components/ProductionRunRecordOutputDetails.vue.d.ts +43 -0
- package/dist/views/production-run/components/ProductionRunRecordOutputWastageStatus.spec.d.ts +1 -0
- package/dist/views/production-run/components/ProductionRunRecordOutputWastageStatus.vue.d.ts +31 -0
- package/dist/views/production-run/components/ProductionRunRequestedOverview.spec.d.ts +1 -0
- package/dist/views/production-run/components/ProductionRunRequestedOverview.vue.d.ts +48 -0
- package/dist/views/production-run/components/ProductionRunResultTable.spec.d.ts +1 -0
- package/dist/views/production-run/components/ProductionRunResultTable.vue.d.ts +31 -0
- package/dist/views/production-run/components/ProductionRunScrollHint.spec.d.ts +1 -0
- package/dist/views/production-run/components/ProductionRunScrollHint.vue.d.ts +31 -0
- package/dist/views/production-run/components/ProductionRunSelectionCheckbox.vue.d.ts +31 -0
- package/dist/views/production-run/components/ProductionRunSelectionControls.spec.d.ts +1 -0
- package/dist/views/production-run/components/ProductionRunSelectionRadio.spec.d.ts +1 -0
- package/dist/views/production-run/components/ProductionRunSelectionRadio.vue.d.ts +37 -0
- package/dist/views/production-run/components/ProductionRunSideSheet.spec.d.ts +1 -0
- package/dist/views/production-run/components/ProductionRunSideSheet.vue.d.ts +77 -0
- package/dist/views/production-run/components/ProductionRunSideSheetSurface.vue.d.ts +52 -0
- package/dist/views/production-run/components/ProductionRunSortHeader.spec.d.ts +1 -0
- package/dist/views/production-run/components/ProductionRunSortHeader.vue.d.ts +25 -0
- package/dist/views/production-run/components/ProductionRunStatusBadge.vue.d.ts +15 -0
- package/dist/views/production-run/components/ProductionRunTabs.spec.d.ts +1 -0
- package/dist/views/production-run/components/ProductionRunTabs.vue.d.ts +47 -0
- package/dist/views/production-run/components/ProductionRunTerminalNotice.spec.d.ts +1 -0
- package/dist/views/production-run/components/ProductionRunTerminalNotice.vue.d.ts +15 -0
- package/dist/views/production-run/components/ProductionRunTextarea.spec.d.ts +1 -0
- package/dist/views/production-run/components/ProductionRunTextarea.vue.d.ts +53 -0
- package/dist/views/production-run/components/ProductionRunUnitInput.spec.d.ts +1 -0
- package/dist/views/production-run/components/ProductionRunUnitInput.vue.d.ts +34 -0
- package/dist/views/production-run/components/ProductionRunWastageDisclosure.spec.d.ts +1 -0
- package/dist/views/production-run/components/ProductionRunWastageDisclosure.vue.d.ts +23 -0
- package/dist/views/production-run/components/RecordOutputDialog.spec.d.ts +1 -0
- package/dist/views/production-run/components/RecordOutputDialog.vue.d.ts +20 -0
- package/dist/views/production-run/components/RecordOutputDialogProps.d.ts +28 -0
- package/dist/views/production-run/components/TargetReachedDialog.spec.d.ts +1 -0
- package/dist/views/production-run/components/TargetReachedDialog.vue.d.ts +927 -0
- package/dist/views/production-run/components/production-run-deduction-parity.spec.d.ts +1 -0
- package/dist/views/production-run/components/production-run-prepare-sheet.d.ts +17 -0
- package/dist/views/production-run/components/production-run-typography-contract.spec.d.ts +1 -0
- package/dist/views/production-run/components/production-run-unit-snapshot.d.ts +39 -0
- package/dist/views/production-run/composables/production-run-display.d.ts +272 -0
- package/dist/views/production-run/composables/production-run-display.spec.d.ts +1 -0
- package/dist/views/production-run/composables/production-run-list.d.ts +46 -0
- package/dist/views/production-run/composables/production-run-list.spec.d.ts +1 -0
- package/dist/views/production-run/composables/production-run-request-confirmation.d.ts +20 -0
- package/dist/views/production-run/composables/use-production-run-actions.d.ts +37 -0
- package/dist/views/production-run/composables/use-production-run-actions.spec.d.ts +1 -0
- package/dist/views/production-run/composables/use-production-run-cost.d.ts +672 -0
- package/dist/views/production-run/composables/use-production-run-cost.spec.d.ts +1 -0
- package/dist/views/production-run/composables/use-production-run-detail.d.ts +1894 -0
- package/dist/views/production-run/composables/use-production-run-detail.spec.d.ts +1 -0
- package/dist/views/production-run/composables/use-production-run-disclosure.d.ts +15 -0
- package/dist/views/production-run/composables/use-production-run-disclosure.spec.d.ts +1 -0
- package/dist/views/production-run/composables/use-production-run-duplicate-sources.d.ts +19 -0
- package/dist/views/production-run/composables/use-production-run-duplicate-sources.spec.d.ts +1 -0
- package/dist/views/production-run/composables/use-production-run-economics.d.ts +92 -0
- package/dist/views/production-run/composables/use-production-run-economics.spec.d.ts +1 -0
- package/dist/views/production-run/composables/use-production-run-form.d.ts +277 -0
- package/dist/views/production-run/composables/use-production-run-form.spec.d.ts +1 -0
- package/dist/views/production-run/composables/use-production-run-record-output.d.ts +261 -0
- package/dist/views/production-run/composables/use-production-run-record-output.spec.d.ts +1 -0
- package/dist/views/production-run/composables/use-production-run-scroll-hint.d.ts +9 -0
- package/dist/views/production-run/composables/use-production-run-table.d.ts +19 -0
- package/dist/views/production-run/composables/use-production-run-table.spec.d.ts +1 -0
- package/dist/views/production-run/helpers/production-run-precision.helper.d.ts +31 -0
- package/dist/views/production-run/helpers/production-run-quantity.helper.d.ts +55 -0
- package/dist/views/production-run/helpers/production-run-quantity.helper.spec.d.ts +1 -0
- package/dist/views/production-run/production-run.fixture.d.ts +70 -0
- package/dist/views/production-run/production-run.fixture.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/RecalculationDialog.vue.d.ts +2 -17
- package/dist/{vue-i18n--DyBLMYh.js → vue-i18n-hE8n67Ig.js} +358 -358
- package/dist/{xlsx.util-BthUZo9U.js → xlsx.util-Jv7EpwFc.js} +2 -2
- package/package.json +5 -5
- package/dist/ChangeLocationComponent.vue_vue_type_script_setup_true_lang-DpqPCG-m.js +0 -126
- package/dist/ClosingHistoryView-Cy2yMiEc.js +0 -1112
- package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-C28nZw_t.js +0 -120
- package/dist/ProductionView-DGB2sdwD.js +0 -1441
- package/dist/inventory-core-dart.default-BmR8gM8k.js +0 -25155
- package/dist/views/stock/components/StockRecalculateDialog.vue.d.ts +0 -9
|
@@ -0,0 +1,815 @@
|
|
|
1
|
+
import { defineComponent as Y, createElementBlock as A, openBlock as f, withModifiers as ae, normalizeClass as j, toDisplayString as p, ref as x, computed as y, watch as re, resolveComponent as V, createCommentVNode as K, createVNode as v, withCtx as U, createElementVNode as a, unref as r, Fragment as le, renderList as ie, createBlock as Q, withKeys as nt, nextTick as Le, onMounted as rt, watchEffect as at, onBeforeUnmount as st, h as q, normalizeStyle as lt } from "vue";
|
|
2
|
+
import { _ as it, F as H } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-DAMpuZ1X.js";
|
|
3
|
+
import { useRouter as ut } from "vue-router";
|
|
4
|
+
import { useSnackbar as ct, useBreakpoints as dt } from "@feedmepos/ui-library";
|
|
5
|
+
import { useI18n as Z, useCoreStore as pt } from "@feedmepos/mf-common";
|
|
6
|
+
import { u as mt, _ as vt } from "./SingleColumnLayout.vue_vue_type_script_setup_true_lang-DpwneGOV.js";
|
|
7
|
+
import { F as Ve } from "./FmAdminBadge-DlplQOHb.js";
|
|
8
|
+
import { _ as ft } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-yBIbCJYy.js";
|
|
9
|
+
import { p as Oe, a as yt, i as gt, P as bt, b as je, u as _t, c as xt, d as ht, m as wt, e as kt, _ as $t, f as St, g as At, h as Ue, j as Ee } from "./ProductionRunTabs.vue_vue_type_script_setup_true_lang-DgtZJgrs.js";
|
|
10
|
+
import { u as Rt, a as Ct, R as Ft } from "./app-BT7hD4az.js";
|
|
11
|
+
import { i as qe, f as Pt, a as zt } from "./production-run-display-DmyfdjHR.js";
|
|
12
|
+
import { _ as Dt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
13
|
+
const Nt = /* @__PURE__ */ Y({
|
|
14
|
+
__name: "ProductionRunActionMenuItem",
|
|
15
|
+
props: {
|
|
16
|
+
label: {},
|
|
17
|
+
destructive: { type: Boolean }
|
|
18
|
+
},
|
|
19
|
+
emits: ["activate"],
|
|
20
|
+
setup(I, { emit: t }) {
|
|
21
|
+
const c = t;
|
|
22
|
+
function R(d) {
|
|
23
|
+
d.key !== "Enter" && d.key !== " " || (d.preventDefault(), d.stopPropagation(), d.repeat || c("activate"));
|
|
24
|
+
}
|
|
25
|
+
return (d, w) => (f(), A("button", {
|
|
26
|
+
type: "button",
|
|
27
|
+
role: "menuitem",
|
|
28
|
+
tabindex: "-1",
|
|
29
|
+
class: j(["fm-menu-item fm-menu-item-label fm-typo-en-body-md-400 w-full text-left", d.destructive ? "text-fm-color-typo-error" : "text-fm-color-typo-primary"]),
|
|
30
|
+
onKeydown: R,
|
|
31
|
+
onClick: w[0] || (w[0] = ae((h) => d.$emit("activate"), ["stop"]))
|
|
32
|
+
}, p(d.label), 35));
|
|
33
|
+
}
|
|
34
|
+
}), Mt = ["aria-label"], It = /* @__PURE__ */ Y({
|
|
35
|
+
__name: "ProductionRunActionsCell",
|
|
36
|
+
props: {
|
|
37
|
+
run: {}
|
|
38
|
+
},
|
|
39
|
+
emits: ["action"],
|
|
40
|
+
setup(I, { emit: t }) {
|
|
41
|
+
const c = I, R = t, { t: d } = Z(), w = x(null), h = x(null), $ = x(null), _ = x(!1), g = y(
|
|
42
|
+
() => Oe(c.run, d("inventory.production.run.list.untitled"))
|
|
43
|
+
), k = {
|
|
44
|
+
request: 0,
|
|
45
|
+
prepare: 0,
|
|
46
|
+
complete: 0,
|
|
47
|
+
update: 1,
|
|
48
|
+
close: 1,
|
|
49
|
+
cancel: 2
|
|
50
|
+
}, l = y(
|
|
51
|
+
() => yt(c.run).filter(({ action: s }) => s !== "request" || c.run.items.length > 0).sort((s, m) => qe(c.run) && s.action === "close" ? -1 : qe(c.run) && m.action === "close" ? 1 : k[s.action] - k[m.action]).map(({ action: s }) => s)
|
|
52
|
+
);
|
|
53
|
+
function o(s) {
|
|
54
|
+
return d(`inventory.production.run.list.rowActions.${s}`);
|
|
55
|
+
}
|
|
56
|
+
function u() {
|
|
57
|
+
var s;
|
|
58
|
+
return ((s = w.value) == null ? void 0 : s.querySelector("button")) ?? null;
|
|
59
|
+
}
|
|
60
|
+
async function i(s) {
|
|
61
|
+
var m, b;
|
|
62
|
+
_.value = s, s && (await Le(), (b = (m = h.value) == null ? void 0 : m.querySelector('[role="menuitem"]')) == null || b.focus());
|
|
63
|
+
}
|
|
64
|
+
async function N(s = !1) {
|
|
65
|
+
var b;
|
|
66
|
+
const m = s ? u() : null;
|
|
67
|
+
(b = $.value) == null || b.toggleMenu(!1), _.value = !1, await Le(), s && (m == null || m.focus({ preventScroll: !0 }));
|
|
68
|
+
}
|
|
69
|
+
function T() {
|
|
70
|
+
var s;
|
|
71
|
+
(s = $.value) == null || s.toggleMenu(!1), _.value = !1;
|
|
72
|
+
}
|
|
73
|
+
function B(s) {
|
|
74
|
+
var S;
|
|
75
|
+
if (s.key === "Escape") {
|
|
76
|
+
s.preventDefault(), s.stopPropagation(), N(!0);
|
|
77
|
+
return;
|
|
78
|
+
}
|
|
79
|
+
if (!["ArrowDown", "ArrowUp", "Home", "End"].includes(s.key)) return;
|
|
80
|
+
const m = (S = s.currentTarget) == null ? void 0 : S.closest('[role="menu"]'), b = [...(m == null ? void 0 : m.querySelectorAll('[role="menuitem"]')) ?? []];
|
|
81
|
+
if (!b.length) return;
|
|
82
|
+
s.preventDefault(), s.stopPropagation();
|
|
83
|
+
const z = Math.max(b.indexOf(document.activeElement), 0), M = s.key === "Home" ? 0 : s.key === "End" ? b.length - 1 : s.key === "ArrowDown" ? (z + 1) % b.length : (z - 1 + b.length) % b.length;
|
|
84
|
+
b[M].focus();
|
|
85
|
+
}
|
|
86
|
+
function se(s) {
|
|
87
|
+
T(), R("action", s);
|
|
88
|
+
}
|
|
89
|
+
return re(
|
|
90
|
+
() => `${c.run._id}:${c.run.status}:${c.run.activityLogs.length}`,
|
|
91
|
+
() => void N()
|
|
92
|
+
), (s, m) => {
|
|
93
|
+
const b = V("FmButton"), z = V("FmMenu");
|
|
94
|
+
return l.value.length ? (f(), A("div", {
|
|
95
|
+
key: 0,
|
|
96
|
+
class: "production-run-action-interactive relative z-[1] flex items-center justify-center",
|
|
97
|
+
onClick: m[1] || (m[1] = ae(() => {
|
|
98
|
+
}, ["stop"]))
|
|
99
|
+
}, [
|
|
100
|
+
v(z, {
|
|
101
|
+
ref_key: "menuController",
|
|
102
|
+
ref: $,
|
|
103
|
+
trigger: "click",
|
|
104
|
+
"close-on-click": !1,
|
|
105
|
+
placement: "bottom-end",
|
|
106
|
+
width: 176,
|
|
107
|
+
"z-index": 100,
|
|
108
|
+
offset: 4,
|
|
109
|
+
shift: !0,
|
|
110
|
+
"flip-padding": { top: 8, bottom: 8 },
|
|
111
|
+
onMenuChanged: i
|
|
112
|
+
}, {
|
|
113
|
+
"menu-button": U(() => [
|
|
114
|
+
a("span", {
|
|
115
|
+
ref_key: "triggerRoot",
|
|
116
|
+
ref: w
|
|
117
|
+
}, [
|
|
118
|
+
v(b, {
|
|
119
|
+
type: "button",
|
|
120
|
+
variant: "tertiary",
|
|
121
|
+
icon: "more_horiz",
|
|
122
|
+
"aria-label": r(d)("inventory.production.run.list.actionsFor", { name: g.value }),
|
|
123
|
+
"aria-haspopup": "menu",
|
|
124
|
+
"aria-expanded": _.value,
|
|
125
|
+
onKeydown: m[0] || (m[0] = nt(ae((M) => N(!0), ["prevent", "stop"]), ["esc"]))
|
|
126
|
+
}, null, 8, ["aria-label", "aria-expanded"])
|
|
127
|
+
], 512)
|
|
128
|
+
]),
|
|
129
|
+
default: U(() => [
|
|
130
|
+
a("div", {
|
|
131
|
+
ref_key: "menuContent",
|
|
132
|
+
ref: h,
|
|
133
|
+
role: "menu",
|
|
134
|
+
"data-testid": "run-actions-menu",
|
|
135
|
+
class: "w-full bg-white p-4",
|
|
136
|
+
"aria-label": r(d)("inventory.production.run.list.actionsFor", { name: g.value }),
|
|
137
|
+
onKeydown: B
|
|
138
|
+
}, [
|
|
139
|
+
(f(!0), A(le, null, ie(l.value, (M) => (f(), Q(Nt, {
|
|
140
|
+
key: M,
|
|
141
|
+
label: o(M),
|
|
142
|
+
destructive: M === "cancel",
|
|
143
|
+
onActivate: (S) => se(M)
|
|
144
|
+
}, null, 8, ["label", "destructive", "onActivate"]))), 128))
|
|
145
|
+
], 40, Mt)
|
|
146
|
+
]),
|
|
147
|
+
_: 1
|
|
148
|
+
}, 512)
|
|
149
|
+
])) : K("", !0);
|
|
150
|
+
};
|
|
151
|
+
}
|
|
152
|
+
}), Tt = {
|
|
153
|
+
key: 0,
|
|
154
|
+
class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
|
|
155
|
+
}, Lt = {
|
|
156
|
+
key: 1,
|
|
157
|
+
class: "production-run-items-interactive relative z-[1] min-w-0"
|
|
158
|
+
}, Ut = ["aria-label"], Et = {
|
|
159
|
+
"data-testid": "run-items-summary",
|
|
160
|
+
class: "fm-typo-en-body-md-400 min-w-0 truncate text-fm-color-typo-primary"
|
|
161
|
+
}, qt = {
|
|
162
|
+
key: 0,
|
|
163
|
+
"data-testid": "run-items-overflow",
|
|
164
|
+
class: "fm-typo-en-body-sm-600 shrink-0 rounded-full bg-fm-color-neutral-gray-100 px-6 py-2 text-fm-color-typo-secondary"
|
|
165
|
+
}, Vt = ["aria-label"], Ot = { class: "fm-typo-en-body-sm-600 mb-8 text-fm-color-typo-primary" }, jt = { class: "flex flex-col gap-8 border-t border-fm-color-neutral-gray-100 pt-8" }, Bt = { class: "text-fm-color-typo-primary" }, Ht = { class: "shrink-0 text-fm-color-typo-secondary" }, Kt = /* @__PURE__ */ Y({
|
|
166
|
+
__name: "ProductionRunItemsCell",
|
|
167
|
+
props: {
|
|
168
|
+
run: {},
|
|
169
|
+
resolveSku: {},
|
|
170
|
+
rowLinkFocused: { type: Boolean, default: !1 }
|
|
171
|
+
},
|
|
172
|
+
setup(I) {
|
|
173
|
+
const t = I, { t: c } = Z(), R = x(!1), d = y(() => R.value || t.rowLinkFocused), w = x(null), h = `production-run-items-${t.run._id.replace(/[^a-zA-Z0-9_-]/g, "-")}`, $ = y(
|
|
174
|
+
() => t.run.items.map((l, o) => {
|
|
175
|
+
const u = t.resolveSku(l.skuId), i = gt(l.measurement) ? l.measurement : null, N = (i == null ? void 0 : i.abbrev) ?? null, T = Pt(l.requestedAmount, N, {
|
|
176
|
+
precision: l.requestedAmount.precision
|
|
177
|
+
});
|
|
178
|
+
return {
|
|
179
|
+
key: `${l.skuId}-${o}`,
|
|
180
|
+
name: (u == null ? void 0 : u.name) ?? l.skuId,
|
|
181
|
+
quantity: N ? T : `${T} · ${c("inventory.production.run.list.itemsUnitUnresolved")}`
|
|
182
|
+
};
|
|
183
|
+
})
|
|
184
|
+
), _ = y(
|
|
185
|
+
() => $.value.slice(0, 2).map(({ name: l }) => l).join(", ")
|
|
186
|
+
), g = y(() => Math.max(0, $.value.length - 2));
|
|
187
|
+
function k(l) {
|
|
188
|
+
var o, u;
|
|
189
|
+
l !== d.value && (d.value ? (o = w.value) == null || o.show() : (u = w.value) == null || u.hide());
|
|
190
|
+
}
|
|
191
|
+
return (l, o) => {
|
|
192
|
+
const u = V("FmPopover");
|
|
193
|
+
return $.value.length === 0 ? (f(), A("span", Tt, p(r(c)("inventory.production.run.list.itemsNone")), 1)) : (f(), A("div", Lt, [
|
|
194
|
+
v(u, {
|
|
195
|
+
ref_key: "popover",
|
|
196
|
+
ref: w,
|
|
197
|
+
"show-popover": d.value,
|
|
198
|
+
placement: "bottom-start",
|
|
199
|
+
onPopoverChanged: k
|
|
200
|
+
}, {
|
|
201
|
+
"popover-button": U(() => [
|
|
202
|
+
a("div", {
|
|
203
|
+
"data-testid": "items-disclosure-container",
|
|
204
|
+
class: "flex max-w-full items-center gap-4 text-left",
|
|
205
|
+
"aria-label": r(c)("inventory.production.run.list.itemsLabel", {
|
|
206
|
+
names: $.value.map(({ name: i }) => i).join(", ")
|
|
207
|
+
}),
|
|
208
|
+
onMouseenter: o[0] || (o[0] = (i) => R.value = !0),
|
|
209
|
+
onMouseleave: o[1] || (o[1] = (i) => R.value = !1)
|
|
210
|
+
}, [
|
|
211
|
+
a("span", Et, p(_.value), 1),
|
|
212
|
+
g.value ? (f(), A("span", qt, " +" + p(g.value), 1)) : K("", !0)
|
|
213
|
+
], 40, Ut)
|
|
214
|
+
]),
|
|
215
|
+
default: U(() => [
|
|
216
|
+
a("div", {
|
|
217
|
+
id: h,
|
|
218
|
+
"data-testid": "run-items-disclosure",
|
|
219
|
+
role: "tooltip",
|
|
220
|
+
"aria-label": r(c)("inventory.production.run.list.itemsDisclosure"),
|
|
221
|
+
class: "pointer-events-none min-w-[288px] p-12"
|
|
222
|
+
}, [
|
|
223
|
+
a("h3", Ot, p(r(c)("inventory.production.run.list.itemsCount", { count: $.value.length })), 1),
|
|
224
|
+
a("ul", jt, [
|
|
225
|
+
(f(!0), A(le, null, ie($.value, (i) => (f(), A("li", {
|
|
226
|
+
key: i.key,
|
|
227
|
+
class: "fm-typo-en-body-sm-400 flex items-start justify-between gap-16"
|
|
228
|
+
}, [
|
|
229
|
+
a("span", Bt, p(i.name), 1),
|
|
230
|
+
a("span", Ht, p(i.quantity), 1)
|
|
231
|
+
]))), 128))
|
|
232
|
+
])
|
|
233
|
+
], 8, Vt)
|
|
234
|
+
]),
|
|
235
|
+
_: 1
|
|
236
|
+
}, 8, ["show-popover"])
|
|
237
|
+
]));
|
|
238
|
+
};
|
|
239
|
+
}
|
|
240
|
+
}), Gt = ["aria-label"], Qt = { class: "min-w-0 truncate" }, Yt = /* @__PURE__ */ Y({
|
|
241
|
+
__name: "ProductionRunSortHeader",
|
|
242
|
+
props: {
|
|
243
|
+
columnId: {},
|
|
244
|
+
label: {},
|
|
245
|
+
activeColumnId: {},
|
|
246
|
+
descending: { type: Boolean }
|
|
247
|
+
},
|
|
248
|
+
emits: ["toggle"],
|
|
249
|
+
setup(I, { emit: t }) {
|
|
250
|
+
const c = I, R = t, { t: d } = Z(), w = y(() => c.activeColumnId === c.columnId), h = y(
|
|
251
|
+
() => w.value ? d(`inventory.production.run.list.sort.${c.descending ? "descending" : "ascending"}`) : d("inventory.production.run.list.sort.unsorted")
|
|
252
|
+
), $ = y(
|
|
253
|
+
() => w.value ? c.descending ? "arrow_downward" : "arrow_upward" : "unfold_more"
|
|
254
|
+
), _ = y(
|
|
255
|
+
() => d("inventory.production.run.list.sort.label", {
|
|
256
|
+
column: c.label,
|
|
257
|
+
direction: h.value
|
|
258
|
+
})
|
|
259
|
+
), g = x(null), k = x(null);
|
|
260
|
+
return rt(() => {
|
|
261
|
+
var l;
|
|
262
|
+
k.value = ((l = g.value) == null ? void 0 : l.closest("th")) ?? null;
|
|
263
|
+
}), at(() => {
|
|
264
|
+
k.value && k.value.setAttribute(
|
|
265
|
+
"aria-sort",
|
|
266
|
+
w.value ? c.descending ? "descending" : "ascending" : "none"
|
|
267
|
+
);
|
|
268
|
+
}), st(() => {
|
|
269
|
+
var l;
|
|
270
|
+
return (l = k.value) == null ? void 0 : l.removeAttribute("aria-sort");
|
|
271
|
+
}), (l, o) => {
|
|
272
|
+
const u = V("FmIcon");
|
|
273
|
+
return f(), A("button", {
|
|
274
|
+
ref_key: "button",
|
|
275
|
+
ref: g,
|
|
276
|
+
type: "button",
|
|
277
|
+
class: "production-run-sort-header flex h-[35px] w-full items-center gap-4 px-16 text-left fm-typo-en-body-sm-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",
|
|
278
|
+
"aria-label": _.value,
|
|
279
|
+
onClick: o[0] || (o[0] = ae((i) => R("toggle", l.columnId), ["stop"]))
|
|
280
|
+
}, [
|
|
281
|
+
a("span", Qt, p(l.label), 1),
|
|
282
|
+
v(u, {
|
|
283
|
+
name: $.value,
|
|
284
|
+
size: "sm",
|
|
285
|
+
"aria-hidden": "true",
|
|
286
|
+
class: "shrink-0"
|
|
287
|
+
}, null, 8, ["name"])
|
|
288
|
+
], 8, Gt);
|
|
289
|
+
};
|
|
290
|
+
}
|
|
291
|
+
});
|
|
292
|
+
function Zt(I, t = () => null, c = () => {
|
|
293
|
+
}, R = () => {
|
|
294
|
+
}, d = () => {
|
|
295
|
+
}, w = (h) => `/production-item/${encodeURIComponent(h._id)}`) {
|
|
296
|
+
var l;
|
|
297
|
+
const { t: h } = Z(), $ = pt(), _ = x(null), g = (o, u) => {
|
|
298
|
+
const i = R();
|
|
299
|
+
return q(Yt, {
|
|
300
|
+
columnId: o,
|
|
301
|
+
label: u,
|
|
302
|
+
activeColumnId: i == null ? void 0 : i.id,
|
|
303
|
+
descending: i == null ? void 0 : i.desc,
|
|
304
|
+
onToggle: d
|
|
305
|
+
});
|
|
306
|
+
};
|
|
307
|
+
return { columnDefs: [
|
|
308
|
+
{
|
|
309
|
+
id: "runNo",
|
|
310
|
+
header: () => g("runNo", "#"),
|
|
311
|
+
enableSorting: !1,
|
|
312
|
+
size: 80,
|
|
313
|
+
meta: { headerClass: "p-0" },
|
|
314
|
+
cell: (o) => q(
|
|
315
|
+
"span",
|
|
316
|
+
{ class: "fm-typo-en-body-md-600 text-fm-color-typo-primary" },
|
|
317
|
+
`${o.row.original.runNo}`
|
|
318
|
+
)
|
|
319
|
+
},
|
|
320
|
+
{
|
|
321
|
+
id: "name",
|
|
322
|
+
header: () => g("name", h("inventory.production.run.list.columns.name")),
|
|
323
|
+
enableSorting: !1,
|
|
324
|
+
minSize: 180,
|
|
325
|
+
size: 230,
|
|
326
|
+
maxSize: 230,
|
|
327
|
+
meta: { headerClass: "p-0" },
|
|
328
|
+
cell: (o) => q(
|
|
329
|
+
"a",
|
|
330
|
+
{
|
|
331
|
+
href: w(o.row.original),
|
|
332
|
+
class: "production-run-row-link fm-typo-en-body-md-600 line-clamp-2 text-left text-fm-color-typo-primary hover:underline",
|
|
333
|
+
onClick: (u) => {
|
|
334
|
+
u.preventDefault(), u.stopPropagation(), c(o.row.original);
|
|
335
|
+
},
|
|
336
|
+
onFocus: () => {
|
|
337
|
+
_.value = o.row.original._id;
|
|
338
|
+
},
|
|
339
|
+
onBlur: () => {
|
|
340
|
+
_.value === o.row.original._id && (_.value = null);
|
|
341
|
+
}
|
|
342
|
+
},
|
|
343
|
+
Oe(o.row.original, h("inventory.production.run.list.untitled"))
|
|
344
|
+
)
|
|
345
|
+
},
|
|
346
|
+
{
|
|
347
|
+
id: "items",
|
|
348
|
+
header: () => h("inventory.production.run.list.columns.items"),
|
|
349
|
+
enableSorting: !1,
|
|
350
|
+
minSize: 200,
|
|
351
|
+
size: 240,
|
|
352
|
+
maxSize: 240,
|
|
353
|
+
cell: (o) => q(Kt, {
|
|
354
|
+
run: o.row.original,
|
|
355
|
+
resolveSku: t,
|
|
356
|
+
rowLinkFocused: _.value === o.row.original._id
|
|
357
|
+
})
|
|
358
|
+
},
|
|
359
|
+
...(l = $.sessionUser.value) != null && l.role.isAdmin ? [
|
|
360
|
+
{
|
|
361
|
+
id: "statusForAdmin",
|
|
362
|
+
header: () => q(Ve, {}, () => h("inventory.production.run.list.columns.status")),
|
|
363
|
+
cell: (o) => o.row.original.status,
|
|
364
|
+
enableSorting: !1,
|
|
365
|
+
size: 160
|
|
366
|
+
}
|
|
367
|
+
] : [],
|
|
368
|
+
{
|
|
369
|
+
id: "status",
|
|
370
|
+
header: () => g("status", h("inventory.production.run.list.columns.status")),
|
|
371
|
+
enableSorting: !1,
|
|
372
|
+
size: 160,
|
|
373
|
+
meta: { headerClass: "p-0" },
|
|
374
|
+
cell: (o) => q(bt, { status: o.row.original.status })
|
|
375
|
+
},
|
|
376
|
+
{
|
|
377
|
+
id: "updatedAt",
|
|
378
|
+
header: () => g("updatedAt", h("inventory.production.run.list.columns.updated")),
|
|
379
|
+
enableSorting: !1,
|
|
380
|
+
minSize: 200,
|
|
381
|
+
size: 246,
|
|
382
|
+
maxSize: 246,
|
|
383
|
+
meta: { headerClass: "p-0" },
|
|
384
|
+
cell: (o) => {
|
|
385
|
+
const u = o.row.original, i = je(u);
|
|
386
|
+
return q(
|
|
387
|
+
"span",
|
|
388
|
+
{ class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary whitespace-nowrap" },
|
|
389
|
+
zt((i == null ? void 0 : i.at) ?? u.createdAt)
|
|
390
|
+
);
|
|
391
|
+
}
|
|
392
|
+
},
|
|
393
|
+
{
|
|
394
|
+
id: "action",
|
|
395
|
+
header: "",
|
|
396
|
+
enableSorting: !1,
|
|
397
|
+
cell: (o) => q(It, {
|
|
398
|
+
run: o.row.original,
|
|
399
|
+
onAction: (u) => I(u, o.row.original)
|
|
400
|
+
}),
|
|
401
|
+
size: 64,
|
|
402
|
+
meta: {
|
|
403
|
+
cellClass: "",
|
|
404
|
+
headerClass: ""
|
|
405
|
+
}
|
|
406
|
+
}
|
|
407
|
+
] };
|
|
408
|
+
}
|
|
409
|
+
const Jt = { class: "sr-only" }, Wt = ["aria-labelledby"], Xt = ["aria-label"], eo = {
|
|
410
|
+
key: 1,
|
|
411
|
+
"data-testid": "production-run-list-error",
|
|
412
|
+
class: "rounded-md border border-fm-color-system-error-200 bg-fm-color-system-error-100 p-32 text-center",
|
|
413
|
+
role: "alert"
|
|
414
|
+
}, to = { class: "fm-typo-en-body-lg-600 mt-12 text-fm-color-typo-primary" }, oo = { class: "fm-typo-en-body-md-400 mt-4 text-fm-color-typo-secondary" }, no = {
|
|
415
|
+
key: 2,
|
|
416
|
+
"data-testid": "production-run-list-empty",
|
|
417
|
+
class: "rounded-md border border-dashed border-fm-color-neutral-gray-200 p-48 text-center"
|
|
418
|
+
}, ro = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, ao = { class: "mx-auto mt-4 max-w-[25rem] fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, so = {
|
|
419
|
+
key: 3,
|
|
420
|
+
"data-testid": "production-run-list-no-match",
|
|
421
|
+
class: "rounded-md border border-dashed border-fm-color-neutral-gray-200 p-40 text-center"
|
|
422
|
+
}, lo = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, io = { class: "mx-auto mt-4 max-w-[25rem] fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, uo = { class: "flex flex-col gap-[8px] py-[8px]" }, co = { class: "flex flex-col gap-[2px]" }, po = { class: "fm-typo-en-body-md-400 text-fm-color-typo-primary" }, mo = { class: "flex min-w-0 flex-col gap-[2px]" }, vo = { class: "text-[12px] font-medium leading-[18px] text-fm-color-typo-secondary" }, fo = { class: "fm-typo-en-body-lg-600 line-clamp-2 text-fm-color-typo-primary" }, yo = { class: "flex min-w-0 flex-col gap-[2px]" }, go = { class: "text-[12px] font-medium leading-[18px] text-fm-color-typo-secondary" }, bo = {
|
|
423
|
+
"data-testid": "production-run-admin-status",
|
|
424
|
+
class: "flex flex-col gap-[4px]"
|
|
425
|
+
}, _o = { class: "text-[12px] font-medium leading-[18px] text-fm-color-typo-secondary" }, xo = { class: "flex flex-col gap-[2px]" }, ho = { class: "text-[12px] font-medium leading-[18px] text-fm-color-typo-secondary" }, wo = { class: "flex flex-col gap-[2px]" }, ko = { class: "text-[12px] font-medium leading-[18px] text-fm-color-typo-secondary" }, $o = {
|
|
426
|
+
key: 0,
|
|
427
|
+
class: "flex items-center gap-16"
|
|
428
|
+
}, So = { class: "fm-typo-en-body-md-400 flex items-center gap-6 text-fm-color-typo-secondary" }, Ao = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ro = /* @__PURE__ */ Y({
|
|
429
|
+
__name: "ProductionRunView",
|
|
430
|
+
setup(I) {
|
|
431
|
+
const { t } = Z(), c = ut(), R = ct(), d = _t(), w = Rt(), h = Ct(), $ = mt(), _ = x([]), g = x(!1), k = x(null), l = x(""), o = x("all"), u = x([{ id: "updatedAt", desc: !0 }]), i = x(!1), N = x(null);
|
|
432
|
+
let T = 0;
|
|
433
|
+
async function B() {
|
|
434
|
+
const e = ++T;
|
|
435
|
+
g.value = !0, k.value = null;
|
|
436
|
+
try {
|
|
437
|
+
const n = await d.list();
|
|
438
|
+
if (e !== T) return;
|
|
439
|
+
_.value = n;
|
|
440
|
+
} catch (n) {
|
|
441
|
+
if (e !== T) return;
|
|
442
|
+
const E = At(n);
|
|
443
|
+
k.value = E.message, R == null || R.open({
|
|
444
|
+
title: t("inventory.production.run.list.error.load"),
|
|
445
|
+
message: E.message,
|
|
446
|
+
type: "error"
|
|
447
|
+
});
|
|
448
|
+
} finally {
|
|
449
|
+
e === T && (g.value = !1);
|
|
450
|
+
}
|
|
451
|
+
}
|
|
452
|
+
w.watchLocation(B);
|
|
453
|
+
const se = y(() => xt(_.value)), s = y(
|
|
454
|
+
() => ht.map((e) => ({
|
|
455
|
+
label: t(`inventory.production.run.list.tabs.${e.key}`),
|
|
456
|
+
value: e.key,
|
|
457
|
+
badge: se.value[e.key],
|
|
458
|
+
id: `production-run-list-tab-${e.key}`,
|
|
459
|
+
controls: "production-run-list-panel"
|
|
460
|
+
}))
|
|
461
|
+
);
|
|
462
|
+
function m(e) {
|
|
463
|
+
var n;
|
|
464
|
+
return ((n = je(e)) == null ? void 0 : n.at) ?? e.createdAt;
|
|
465
|
+
}
|
|
466
|
+
function b(e, n, E) {
|
|
467
|
+
switch (E) {
|
|
468
|
+
case "runNo":
|
|
469
|
+
return e.runNo - n.runNo;
|
|
470
|
+
case "name":
|
|
471
|
+
return Ee(e).localeCompare(Ee(n));
|
|
472
|
+
case "status":
|
|
473
|
+
return Ue(e.status) - Ue(n.status);
|
|
474
|
+
case "updatedAt":
|
|
475
|
+
return Date.parse(m(e)) - Date.parse(m(n));
|
|
476
|
+
default:
|
|
477
|
+
return 0;
|
|
478
|
+
}
|
|
479
|
+
}
|
|
480
|
+
const z = y(() => {
|
|
481
|
+
const e = _.value.filter(
|
|
482
|
+
(F) => wt(F, o.value) && kt(F, l.value, ce)
|
|
483
|
+
), n = u.value[0];
|
|
484
|
+
if (!n)
|
|
485
|
+
return e.sort(
|
|
486
|
+
(F, O) => b(O, F, "updatedAt") || b(O, F, "runNo")
|
|
487
|
+
);
|
|
488
|
+
const E = n.desc ? -1 : 1;
|
|
489
|
+
return e.sort(
|
|
490
|
+
(F, O) => E * b(F, O, n.id) || b(O, F, "runNo")
|
|
491
|
+
);
|
|
492
|
+
}), { breakpoints: M } = dt(), S = y(() => M.value.xs || M.value.sm), L = x(S.value ? 10 : 20), Be = [10, 20, 50].map((e) => ({ label: String(e), value: e })), C = x(0), G = y(() => Math.max(1, Math.ceil(z.value.length / L.value))), He = y(
|
|
493
|
+
() => Array.from({ length: G.value }, (e, n) => ({
|
|
494
|
+
label: String(n + 1),
|
|
495
|
+
value: n + 1
|
|
496
|
+
}))
|
|
497
|
+
), ue = y(() => {
|
|
498
|
+
const e = C.value * L.value;
|
|
499
|
+
return z.value.slice(e, e + L.value);
|
|
500
|
+
}), Ke = y(
|
|
501
|
+
() => S.value ? ue.value.map((e) => `${e._id}:${e._rev}`).join("|") : "desktop"
|
|
502
|
+
), Ge = y(() => z.value.length ? C.value * L.value + 1 : 0), Qe = y(() => Math.min((C.value + 1) * L.value, z.value.length));
|
|
503
|
+
re([l, o, u], () => C.value = 0), re(S, (e) => {
|
|
504
|
+
L.value = e ? 10 : 20, C.value = 0;
|
|
505
|
+
}), re(G, (e) => {
|
|
506
|
+
C.value = Math.min(C.value, e - 1);
|
|
507
|
+
});
|
|
508
|
+
function Ye(e) {
|
|
509
|
+
L.value = Number(e), C.value = 0;
|
|
510
|
+
}
|
|
511
|
+
function Ze(e) {
|
|
512
|
+
C.value = Math.min(Math.max(Number(e) - 1, 0), G.value - 1);
|
|
513
|
+
}
|
|
514
|
+
function Je() {
|
|
515
|
+
l.value = "", o.value = "all";
|
|
516
|
+
}
|
|
517
|
+
function We(e) {
|
|
518
|
+
const n = u.value[0];
|
|
519
|
+
u.value = [
|
|
520
|
+
(n == null ? void 0 : n.id) === e ? { id: e, desc: !n.desc } : { id: e, desc: !1 }
|
|
521
|
+
];
|
|
522
|
+
}
|
|
523
|
+
function ce(e) {
|
|
524
|
+
return h.skuById[e];
|
|
525
|
+
}
|
|
526
|
+
function J(e) {
|
|
527
|
+
c.push({ name: Ft.PRODUCTION_RUN_DETAIL, params: { id: e._id } });
|
|
528
|
+
}
|
|
529
|
+
function Xe(e, n) {
|
|
530
|
+
J(n);
|
|
531
|
+
}
|
|
532
|
+
const { columnDefs: et } = Zt(
|
|
533
|
+
Xe,
|
|
534
|
+
ce,
|
|
535
|
+
J,
|
|
536
|
+
() => u.value[0],
|
|
537
|
+
We
|
|
538
|
+
);
|
|
539
|
+
function de(e) {
|
|
540
|
+
e === "refresh" && B(), e === "create" && (N.value = null, i.value = !0);
|
|
541
|
+
}
|
|
542
|
+
const tt = y(() => [
|
|
543
|
+
{
|
|
544
|
+
label: t("inventory.common.refresh"),
|
|
545
|
+
value: "refresh",
|
|
546
|
+
prependIcon: "refresh"
|
|
547
|
+
},
|
|
548
|
+
{
|
|
549
|
+
label: t("inventory.production.run.list.actions.create"),
|
|
550
|
+
value: "create",
|
|
551
|
+
prependIcon: "add",
|
|
552
|
+
isPrimary: !0
|
|
553
|
+
}
|
|
554
|
+
]);
|
|
555
|
+
function ot() {
|
|
556
|
+
N.value = null, B();
|
|
557
|
+
}
|
|
558
|
+
return (e, n) => {
|
|
559
|
+
const E = V("FmIcon"), F = V("FmButton"), O = V("FmTable"), pe = V("FmSelect");
|
|
560
|
+
return f(), Q(vt, {
|
|
561
|
+
title: r(t)("inventory.production.run.list.title"),
|
|
562
|
+
actions: tt.value,
|
|
563
|
+
"onClick:action": de
|
|
564
|
+
}, {
|
|
565
|
+
default: U(() => [
|
|
566
|
+
a("div", {
|
|
567
|
+
"data-testid": "production-run-list-content",
|
|
568
|
+
class: j([
|
|
569
|
+
"flex w-full max-h-full flex-col gap-12",
|
|
570
|
+
{
|
|
571
|
+
"p-0": S.value,
|
|
572
|
+
"px-24": !S.value
|
|
573
|
+
}
|
|
574
|
+
])
|
|
575
|
+
}, [
|
|
576
|
+
a("h1", Jt, p(r(t)("inventory.production.run.list.title")), 1),
|
|
577
|
+
v(ft, {
|
|
578
|
+
"change-location": "",
|
|
579
|
+
searchable: "",
|
|
580
|
+
search: l.value,
|
|
581
|
+
"onUpdate:search": n[1] || (n[1] = (P) => l.value = P)
|
|
582
|
+
}, {
|
|
583
|
+
default: U(() => [
|
|
584
|
+
v($t, {
|
|
585
|
+
modelValue: o.value,
|
|
586
|
+
"onUpdate:modelValue": n[0] || (n[0] = (P) => o.value = P),
|
|
587
|
+
items: s.value,
|
|
588
|
+
ariaLabel: r(t)("inventory.production.run.list.tabsLabel"),
|
|
589
|
+
density: "list"
|
|
590
|
+
}, null, 8, ["modelValue", "items", "ariaLabel"])
|
|
591
|
+
]),
|
|
592
|
+
_: 1
|
|
593
|
+
}, 8, ["search"]),
|
|
594
|
+
a("div", {
|
|
595
|
+
id: "production-run-list-panel",
|
|
596
|
+
role: "tabpanel",
|
|
597
|
+
"aria-labelledby": `production-run-list-tab-${o.value}`,
|
|
598
|
+
class: j(["flex min-h-0 flex-col", !g.value && !k.value && z.value.length ? "overflow-hidden" : "overflow-y-auto"]),
|
|
599
|
+
style: lt(r($).tableHeight)
|
|
600
|
+
}, [
|
|
601
|
+
g.value ? (f(), A("div", {
|
|
602
|
+
key: 0,
|
|
603
|
+
"data-testid": "production-run-list-loading",
|
|
604
|
+
class: "space-y-12 p-16",
|
|
605
|
+
"aria-busy": "true",
|
|
606
|
+
"aria-label": r(t)("inventory.production.run.list.loading")
|
|
607
|
+
}, [
|
|
608
|
+
(f(), A(le, null, ie(6, (P) => a("div", {
|
|
609
|
+
key: P,
|
|
610
|
+
"data-testid": "production-run-list-skeleton-row",
|
|
611
|
+
class: "h-80 w-full animate-pulse rounded-md bg-fm-color-neutral-gray-100"
|
|
612
|
+
})), 64))
|
|
613
|
+
], 8, Xt)) : k.value ? (f(), A("div", eo, [
|
|
614
|
+
v(E, {
|
|
615
|
+
name: "error_outline",
|
|
616
|
+
size: "lg",
|
|
617
|
+
class: "text-fm-color-typo-error"
|
|
618
|
+
}),
|
|
619
|
+
a("h2", to, p(r(t)("inventory.production.run.list.error.load")), 1),
|
|
620
|
+
a("p", oo, p(k.value), 1),
|
|
621
|
+
v(F, {
|
|
622
|
+
"data-testid": "production-run-list-retry",
|
|
623
|
+
class: "mx-auto mt-16",
|
|
624
|
+
label: r(t)("inventory.production.run.list.error.retry"),
|
|
625
|
+
variant: "secondary",
|
|
626
|
+
onClick: B
|
|
627
|
+
}, null, 8, ["label"])
|
|
628
|
+
])) : _.value.length === 0 ? (f(), A("div", no, [
|
|
629
|
+
a("div", ro, p(r(t)("inventory.production.run.list.empty.noneTitle")), 1),
|
|
630
|
+
a("div", ao, p(r(t)("inventory.production.run.list.empty.noneDescription")), 1),
|
|
631
|
+
v(F, {
|
|
632
|
+
"data-testid": "production-run-list-empty-create",
|
|
633
|
+
class: "mx-auto mt-16",
|
|
634
|
+
label: r(t)("inventory.production.run.list.empty.create"),
|
|
635
|
+
"prepend-icon": "add",
|
|
636
|
+
onClick: n[2] || (n[2] = (P) => de("create"))
|
|
637
|
+
}, null, 8, ["label"])
|
|
638
|
+
])) : z.value.length === 0 ? (f(), A("div", so, [
|
|
639
|
+
a("div", lo, p(r(t)("inventory.production.run.list.empty.noMatchTitle")), 1),
|
|
640
|
+
a("div", io, p(l.value.trim() ? r(t)("inventory.production.run.list.empty.searchDescription", {
|
|
641
|
+
query: l.value.trim()
|
|
642
|
+
}) : r(t)("inventory.production.run.list.empty.noMatchDescription")), 1),
|
|
643
|
+
v(F, {
|
|
644
|
+
"data-testid": "production-run-list-clear-filters",
|
|
645
|
+
class: "mx-auto mt-12",
|
|
646
|
+
label: r(t)("inventory.production.run.list.empty.clearFilters"),
|
|
647
|
+
"aria-label": r(t)("inventory.production.run.list.empty.clearFilters"),
|
|
648
|
+
variant: "tertiary",
|
|
649
|
+
onClick: Je
|
|
650
|
+
}, null, 8, ["label", "aria-label"])
|
|
651
|
+
])) : (f(), Q(O, {
|
|
652
|
+
key: Ke.value,
|
|
653
|
+
class: "production-run-table min-h-0 flex-1",
|
|
654
|
+
"column-defs": r(et),
|
|
655
|
+
"row-data": ue.value,
|
|
656
|
+
loading: g.value,
|
|
657
|
+
"page-size": L.value,
|
|
658
|
+
"pin-header-row": !1,
|
|
659
|
+
"hide-footer": "",
|
|
660
|
+
onRowClick: n[3] || (n[3] = (P) => J(P.original))
|
|
661
|
+
}, {
|
|
662
|
+
"list-row": U((P) => [
|
|
663
|
+
v(it, {
|
|
664
|
+
"data-testid": "production-run-mobile-row",
|
|
665
|
+
class: "production-run-mobile-row !py-8",
|
|
666
|
+
row: P,
|
|
667
|
+
onRowClick: J
|
|
668
|
+
}, {
|
|
669
|
+
default: U((D) => {
|
|
670
|
+
var me, ve, fe, W, ye, ge, be, _e, X, xe, he, we, ke, ee, $e, Se, Ae, Re, te, Ce, Fe, Pe, ze, oe, De;
|
|
671
|
+
return [
|
|
672
|
+
a("div", uo, [
|
|
673
|
+
a("div", co, [
|
|
674
|
+
n[7] || (n[7] = a("span", { class: "text-[12px] font-medium leading-[18px] text-fm-color-typo-secondary" }, "#", -1)),
|
|
675
|
+
a("div", po, [
|
|
676
|
+
v(r(H), {
|
|
677
|
+
render: (fe = (ve = (me = D.runNo) == null ? void 0 : me.column) == null ? void 0 : ve.columnDef) == null ? void 0 : fe.cell,
|
|
678
|
+
props: (ye = (W = D.runNo) == null ? void 0 : W.getContext) == null ? void 0 : ye.call(W)
|
|
679
|
+
}, null, 8, ["render", "props"])
|
|
680
|
+
])
|
|
681
|
+
]),
|
|
682
|
+
a("div", mo, [
|
|
683
|
+
a("span", vo, p(r(t)("inventory.production.run.list.columns.name")), 1),
|
|
684
|
+
a("div", fo, [
|
|
685
|
+
v(r(H), {
|
|
686
|
+
render: (_e = (be = (ge = D.name) == null ? void 0 : ge.column) == null ? void 0 : be.columnDef) == null ? void 0 : _e.cell,
|
|
687
|
+
props: (xe = (X = D.name) == null ? void 0 : X.getContext) == null ? void 0 : xe.call(X)
|
|
688
|
+
}, null, 8, ["render", "props"])
|
|
689
|
+
])
|
|
690
|
+
]),
|
|
691
|
+
a("div", yo, [
|
|
692
|
+
a("span", go, p(r(t)("inventory.production.run.list.columns.items")), 1),
|
|
693
|
+
v(r(H), {
|
|
694
|
+
render: (ke = (we = (he = D.items) == null ? void 0 : he.column) == null ? void 0 : we.columnDef) == null ? void 0 : ke.cell,
|
|
695
|
+
props: ($e = (ee = D.items) == null ? void 0 : ee.getContext) == null ? void 0 : $e.call(ee)
|
|
696
|
+
}, null, 8, ["render", "props"])
|
|
697
|
+
]),
|
|
698
|
+
D.statusForAdmin ? (f(), Q(Ve, { key: 0 }, {
|
|
699
|
+
default: U(() => {
|
|
700
|
+
var Ne, Me, Ie, ne, Te;
|
|
701
|
+
return [
|
|
702
|
+
a("div", bo, [
|
|
703
|
+
a("span", _o, p(r(t)("inventory.production.run.list.columns.status")), 1),
|
|
704
|
+
v(r(H), {
|
|
705
|
+
render: (Ie = (Me = (Ne = D.statusForAdmin) == null ? void 0 : Ne.column) == null ? void 0 : Me.columnDef) == null ? void 0 : Ie.cell,
|
|
706
|
+
props: (Te = (ne = D.statusForAdmin) == null ? void 0 : ne.getContext) == null ? void 0 : Te.call(ne)
|
|
707
|
+
}, null, 8, ["render", "props"])
|
|
708
|
+
])
|
|
709
|
+
];
|
|
710
|
+
}),
|
|
711
|
+
_: 2
|
|
712
|
+
}, 1024)) : K("", !0),
|
|
713
|
+
a("div", xo, [
|
|
714
|
+
a("span", ho, p(r(t)("inventory.production.run.list.columns.status")), 1),
|
|
715
|
+
v(r(H), {
|
|
716
|
+
render: (Re = (Ae = (Se = D.status) == null ? void 0 : Se.column) == null ? void 0 : Ae.columnDef) == null ? void 0 : Re.cell,
|
|
717
|
+
props: (Ce = (te = D.status) == null ? void 0 : te.getContext) == null ? void 0 : Ce.call(te)
|
|
718
|
+
}, null, 8, ["render", "props"])
|
|
719
|
+
]),
|
|
720
|
+
a("div", wo, [
|
|
721
|
+
a("span", ko, p(r(t)("inventory.production.run.list.columns.updated")), 1),
|
|
722
|
+
v(r(H), {
|
|
723
|
+
render: (ze = (Pe = (Fe = D.updatedAt) == null ? void 0 : Fe.column) == null ? void 0 : Pe.columnDef) == null ? void 0 : ze.cell,
|
|
724
|
+
props: (De = (oe = D.updatedAt) == null ? void 0 : oe.getContext) == null ? void 0 : De.call(oe)
|
|
725
|
+
}, null, 8, ["render", "props"])
|
|
726
|
+
])
|
|
727
|
+
])
|
|
728
|
+
];
|
|
729
|
+
}),
|
|
730
|
+
_: 2
|
|
731
|
+
}, 1032, ["row"])
|
|
732
|
+
]),
|
|
733
|
+
_: 1
|
|
734
|
+
}, 8, ["column-defs", "row-data", "loading", "page-size"])),
|
|
735
|
+
!g.value && !k.value && z.value.length ? (f(), A("div", {
|
|
736
|
+
key: 5,
|
|
737
|
+
"data-testid": "production-run-pager",
|
|
738
|
+
class: j([
|
|
739
|
+
"flex items-center justify-between gap-8 bg-white px-24",
|
|
740
|
+
S.value ? "production-run-mobile-pager sticky bottom-0 z-10 w-full shrink-0" : "basis-72 gap-12"
|
|
741
|
+
])
|
|
742
|
+
}, [
|
|
743
|
+
S.value ? K("", !0) : (f(), A("div", $o, [
|
|
744
|
+
a("label", So, [
|
|
745
|
+
a("span", null, p(r(t)("inventory.production.run.list.pagination.itemsPerPageLabel")), 1),
|
|
746
|
+
v(pe, {
|
|
747
|
+
"model-value": L.value,
|
|
748
|
+
items: r(Be),
|
|
749
|
+
compact: "",
|
|
750
|
+
size: "sm",
|
|
751
|
+
class: "w-80",
|
|
752
|
+
"aria-label": r(t)("inventory.production.run.list.pagination.itemsPerPage"),
|
|
753
|
+
"onUpdate:modelValue": Ye
|
|
754
|
+
}, null, 8, ["model-value", "items", "aria-label"])
|
|
755
|
+
]),
|
|
756
|
+
a("span", Ao, p(r(t)("inventory.production.run.list.pagination.items", {
|
|
757
|
+
start: Ge.value,
|
|
758
|
+
end: Qe.value,
|
|
759
|
+
total: z.value.length
|
|
760
|
+
})), 1)
|
|
761
|
+
])),
|
|
762
|
+
a("div", {
|
|
763
|
+
"data-testid": "production-run-pager-controls",
|
|
764
|
+
class: j(["flex items-center gap-8", S.value ? "w-full justify-between" : "ml-auto"])
|
|
765
|
+
}, [
|
|
766
|
+
v(pe, {
|
|
767
|
+
"model-value": C.value + 1,
|
|
768
|
+
items: He.value,
|
|
769
|
+
compact: !S.value,
|
|
770
|
+
size: S.value ? void 0 : "sm",
|
|
771
|
+
class: j(S.value ? void 0 : "w-72"),
|
|
772
|
+
"aria-label": r(t)("inventory.production.run.list.pagination.selectPage"),
|
|
773
|
+
"onUpdate:modelValue": Ze
|
|
774
|
+
}, null, 8, ["model-value", "items", "compact", "size", "class", "aria-label"]),
|
|
775
|
+
a("span", {
|
|
776
|
+
"data-testid": "production-run-page-count",
|
|
777
|
+
class: j(["fm-typo-en-body-lg-400 whitespace-nowrap text-fm-color-typo-primary", { "mr-auto": S.value }])
|
|
778
|
+
}, p(r(t)("inventory.production.run.list.pagination.ofPages", { total: G.value })), 3),
|
|
779
|
+
v(F, {
|
|
780
|
+
variant: "tertiary",
|
|
781
|
+
icon: "chevron_left",
|
|
782
|
+
"icon-color": "neutral-black",
|
|
783
|
+
"aria-label": r(t)("inventory.production.run.list.pagination.previous"),
|
|
784
|
+
disabled: C.value === 0,
|
|
785
|
+
onClick: n[4] || (n[4] = (P) => C.value--)
|
|
786
|
+
}, null, 8, ["aria-label", "disabled"]),
|
|
787
|
+
v(F, {
|
|
788
|
+
variant: "tertiary",
|
|
789
|
+
icon: "chevron_right",
|
|
790
|
+
"icon-color": "neutral-black",
|
|
791
|
+
"aria-label": r(t)("inventory.production.run.list.pagination.next"),
|
|
792
|
+
disabled: C.value >= G.value - 1,
|
|
793
|
+
onClick: n[5] || (n[5] = (P) => C.value++)
|
|
794
|
+
}, null, 8, ["aria-label", "disabled"])
|
|
795
|
+
], 2)
|
|
796
|
+
], 2)) : K("", !0)
|
|
797
|
+
], 14, Wt)
|
|
798
|
+
], 2),
|
|
799
|
+
i.value ? (f(), Q(St, {
|
|
800
|
+
key: 0,
|
|
801
|
+
show: !0,
|
|
802
|
+
run: N.value,
|
|
803
|
+
"duplicate-sources": _.value,
|
|
804
|
+
"onUpdate:show": n[6] || (n[6] = (P) => i.value = P),
|
|
805
|
+
onSaved: ot
|
|
806
|
+
}, null, 8, ["run", "duplicate-sources"])) : K("", !0)
|
|
807
|
+
]),
|
|
808
|
+
_: 1
|
|
809
|
+
}, 8, ["title", "actions"]);
|
|
810
|
+
};
|
|
811
|
+
}
|
|
812
|
+
}), qo = /* @__PURE__ */ Dt(Ro, [["__scopeId", "data-v-49c2456a"]]);
|
|
813
|
+
export {
|
|
814
|
+
qo as default
|
|
815
|
+
};
|