@feedmepos/mf-inventory-portal 1.7.13-dev.4 → 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-Cfp4CqzQ.js → App-JqoqVVdP.js} +354 -348
- package/dist/{ApprovalView-DO91AQ5f.js → ApprovalView-JiWbXkVU.js} +9 -9
- package/dist/{BindingsDialog-DUj0z6N7.js → BindingsDialog-BK4xofWu.js} +2 -2
- package/dist/{BindingsPicker-CD2J6-_Z.js → BindingsPicker-CLMsAseG.js} +2 -2
- package/dist/{BindingsTable-B2FEKZXU.js → BindingsTable-DKrBQTxN.js} +4 -4
- package/dist/{BulkReceiveRequestView-ejHyukEp.js → BulkReceiveRequestView-bttHw2ub.js} +19 -19
- package/dist/{ClosingDraftView-tIvrsfYH.js → ClosingDraftView-Bhdwo-n8.js} +19 -19
- package/dist/ClosingHistoryView-DrQPWnr6.js +761 -0
- package/dist/{ClosingTemplateView-C-hL9uPv.js → ClosingTemplateView-UkwXCrz_.js} +16 -16
- package/dist/{CustomPrintTemplatePreview.vue_vue_type_script_setup_true_lang-BffF8S_q.js → CustomPrintTemplatePreview.vue_vue_type_script_setup_true_lang-DNtMdFVF.js} +1 -1
- package/dist/{DefaultView-BLbtx0Ho.js → DefaultView-sGrYeUGh.js} +2 -2
- package/dist/{DeliveryOrderPrintPreview-BLQHL7aB.js → DeliveryOrderPrintPreview-CVnqC9Jy.js} +10 -10
- package/dist/{EmailDialog.vue_vue_type_script_setup_true_lang-BnTAuutB.js → EmailDialog.vue_vue_type_script_setup_true_lang-CYtHQ2Ru.js} +2250 -2250
- package/dist/{FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-Mxhn0b6c.js → FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-DXTdvT0C.js} +1 -1
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-hrk0cTBX.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-Bpi5rI0h.js → FmMultiselectDialog-A9VIMLGn.js} +1 -1
- package/dist/{FmMultiselectDialog-Bi6XlAAU.js → FmMultiselectDialog-DL00XnUc.js} +2 -2
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-e55tnl4u.js → FmUnitInput.vue_vue_type_script_setup_true_lang-RJKOB-cm.js} +66 -63
- package/dist/{ImportView-xPTzBekx.js → ImportView-DPrLnJO8.js} +6 -6
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-tvmS42s_.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-IAQyFPmi.js} +1 -1
- package/dist/{IngredientGroupView-RFcqjF8T.js → IngredientGroupView-DyhC6lJ8.js} +5 -5
- package/dist/{IngredientsView-CvWOgquN.js → IngredientsView-P4AqPikD.js} +15 -15
- package/dist/{IntegrationExplorerView-CYNhsJSS.js → IntegrationExplorerView-CujhjHHV.js} +4 -4
- package/dist/{IntegrationView-ZtLokbu3.js → IntegrationView-CFqsZyzI.js} +3074 -2999
- package/dist/{InventoryBindingForm-DwiAIf5v.js → InventoryBindingForm-B0NJ8H51.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-njDaQe10.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-bbIpFo_4.js} +5 -5
- package/dist/{InventoryBindingSummary-zim_Bp5_.js → InventoryBindingSummary-CBgO_tCz.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CfTgt5xW.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DuuXzyKH.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-LLtd1VvM.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-DFXOi7Hx.js → PublishView-Cf0Tn7xt.js} +3 -3
- package/dist/{PurchaseOrderPrintPreview-CG6kBQ26.js → PurchaseOrderPrintPreview-BTlSyQqZ.js} +6 -6
- package/dist/{ReceiveRequestView-DKMVMo7M.js → ReceiveRequestView-9LFOl2hJ.js} +14 -14
- package/dist/{RecipeView-cLLKlLmE.js → RecipeView-C4KxMCpQ.js} +17 -17
- package/dist/{SettingsView-Cmf2ZOUL.js → SettingsView-ShrefnTM.js} +4 -4
- package/dist/{StockView-DTai8l8U.js → StockView-BVd6f7Fr.js} +21 -21
- package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-BlKm7GLw.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-B-rB7p9o.js} +1 -1
- package/dist/{SupplierView-CRAHOOLm.js → SupplierView-DZSY6_eU.js} +12 -12
- package/dist/{SurchargeView-3XymEvcr.js → SurchargeView-UUYoT8MK.js} +6 -6
- package/dist/{SystemTrailDialog.vue_vue_type_script_setup_true_lang-DcXfQr_8.js → SystemTrailDialog.vue_vue_type_script_setup_true_lang-BLMxzi1C.js} +2 -2
- package/dist/{TemplatePublishDialog.vue_vue_type_script_setup_true_lang-qhJVHahS.js → TemplatePublishDialog.vue_vue_type_script_setup_true_lang-z3qIVKP7.js} +1 -1
- package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-CibsrZXw.js → TransferDetails.vue_vue_type_script_setup_true_lang-DEO8CP-X.js} +20 -20
- package/dist/{TransferTemplateView-ByhvK4Ua.js → TransferTemplateView-C21o2V_1.js} +20 -20
- package/dist/{UnitCostHistoryView-DHHWNJYA.js → UnitCostHistoryView-DPEGVLBP.js} +4 -4
- package/dist/{UnitDisplayControl.vue_vue_type_script_setup_true_lang-bQu2KOI7.js → UnitDisplayControl.vue_vue_type_script_setup_true_lang-BuGmmHBk.js} +4 -4
- package/dist/{UnitView-BZTS-Ahu.js → UnitView-Bx03E4uc.js} +7 -7
- package/dist/{WarehouseView-DVak1RPs.js → WarehouseView-BehHQ9Ao.js} +6 -6
- package/dist/{WastageTemplateView-CUDL3HUD.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-BUQUpe4c.js → app-BT7hD4az.js} +16491 -12629
- package/dist/app.d.ts +2958 -14
- package/dist/app.js +1 -1
- package/dist/{closing-template-DzxDiEQB.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/{date2-6jkfRNS_.js → date2-CAh7rsAp.js} +1 -1
- package/dist/{dayjs.min-ByRnXzrl.js → dayjs.min-BJk-edO7.js} +7 -7
- package/dist/{decimal-CqWBdj8E.js → decimal-DYlKNkVX.js} +2 -2
- package/dist/{defineDeepModel-CaT-4fiq.js → defineDeepModel-BPHl7mTD.js} +1 -1
- package/dist/{duplicate-template-Cyvx-WK7.js → duplicate-template-BWUUIdzG.js} +1 -1
- package/dist/{feature-FjXz4WXw.js → feature-CSvVyBN2.js} +2 -2
- package/dist/{format-time-from-id-cSri3OoO.js → format-time-from-id-Dh3lxXpc.js} +1 -1
- package/dist/{format-unit-display-DPbcT7Ff.js → format-unit-display-B1ft2wxm.js} +12 -12
- package/dist/{import-export.helper-_yqcePYs.js → import-export.helper-txDvkMf0.js} +6 -6
- package/dist/{index-CyJVMHQW.js → index-AmTodx3_.js} +1 -1
- package/dist/{index-CGvNoBid.js → index-B4wQijn6.js} +1 -1
- package/dist/{index-nSL5yxNn.js → index-TIX5DyQk.js} +3 -3
- package/dist/inventory-core-dart.default-BpMxAF-0.js +31060 -0
- package/dist/{lz-string-iyER1Klb.js → lz-string-CFDYH-K6.js} +1 -1
- package/dist/{netsuite-BD8LVxaA.js → netsuite-CdW9v92G.js} +477 -462
- package/dist/{number-C7CJ9ZfE.js → number-DRRlTYv7.js} +6 -6
- package/dist/{predefined-templates-o-_pKVSM.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-BHS8T1VA.js → purchase-order-template-BvED3CpO.js} +1 -1
- package/dist/{recalculationUtils-BCByr_CU.js → recalculationUtils-9rFepwwr.js} +1 -1
- package/dist/router/name.d.ts +2 -0
- package/dist/{rules-wZo-8FZ0.js → rules-C8RmopTe.js} +2 -2
- package/dist/{stock-DwqEvWM5.js → stock-BKkluaaM.js} +26 -36
- package/dist/{stock-CnAjxV7P.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-DkqNwQmi.js → supplier--zZMQHPc.js} +2 -2
- package/dist/{surcharge-Csj1WYbH.js → surcharge-BLF3XV0G.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{uom-rules-BI1CdWeS.js → uom-rules-CjCCXiGL.js} +1 -1
- package/dist/{use-ingredient-select-dialog-5AqoZJDA.js → use-ingredient-select-dialog-DnUiY-Ic.js} +2 -2
- package/dist/{use-inventory-binding-dialog-ChiyhiuP.js → use-inventory-binding-dialog-BAU-P8kV.js} +2 -2
- package/dist/{use-template-enabled-locations-BqXxegct.js → use-template-enabled-locations-DZMzYCi-.js} +2 -2
- package/dist/{use-transfer-locations-Ckj_diGt.js → use-transfer-locations-DomGLsT2.js} +2 -2
- package/dist/{useHrmPermission-USG_KRoq.js → useHrmPermission-CrhsV_5z.js} +1 -1
- package/dist/{useNavigationMenu-BhYf87KI.js → useNavigationMenu-1h-G_-el.js} +2 -2
- package/dist/{useSseClient-BqoE-ir6.js → useSseClient-o_3wiqhX.js} +1 -1
- 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-DoKioQ81.js → vue-i18n-hE8n67Ig.js} +202 -202
- package/dist/{xlsx.util-BXjE2o-3.js → xlsx.util-Jv7EpwFc.js} +2 -2
- package/package.json +4 -4
- package/dist/ChangeLocationComponent.vue_vue_type_script_setup_true_lang-ashHOuZt.js +0 -130
- package/dist/ClosingHistoryView-BYVZ01Ma.js +0 -1112
- package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-hTQmIyaf.js +0 -120
- package/dist/ProductionView-BWn7RBEg.js +0 -1441
- package/dist/inventory-core-dart.default-DSYRPQNZ.js +0 -25155
- package/dist/views/stock/components/StockRecalculateDialog.vue.d.ts +0 -9
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as g, ref as _, watch as d, computed as v, resolveComponent as l, createBlock as h, openBlock as y, withCtx as R, createElementVNode as i, createVNode as w, toDisplayString as x } from "vue";
|
|
2
|
-
import { c } from "./date2-
|
|
2
|
+
import { c } from "./date2-CAh7rsAp.js";
|
|
3
3
|
function F() {
|
|
4
4
|
const t = /* @__PURE__ */ new Date();
|
|
5
5
|
return t.setDate(t.getDate() - 15), {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as g, mergeModels as I, useModel as z, computed as b, ref as _, resolveComponent as n, createElementBlock as h, openBlock as o, normalizeStyle as B, createElementVNode as f, createVNode as N, withCtx as E, createBlock as s, createCommentVNode as F, Fragment as S, renderList as R, unref as r } from "vue";
|
|
2
|
-
import { z as u } from "./app-
|
|
3
|
-
import { F as T } from "./FmMultiselectDialog-
|
|
2
|
+
import { z as u } from "./app-BT7hD4az.js";
|
|
3
|
+
import { F as T } from "./FmMultiselectDialog-DL00XnUc.js";
|
|
4
4
|
const q = { class: "overflow-y-auto h-full pb-8" }, L = /* @__PURE__ */ g({
|
|
5
5
|
__name: "FmFilterableMenuOptions",
|
|
6
6
|
props: /* @__PURE__ */ I({
|
|
@@ -0,0 +1,243 @@
|
|
|
1
|
+
import { defineComponent as D, computed as g, ref as O, resolveComponent as w, createElementBlock as i, openBlock as l, createVNode as M, withCtx as N, createElementVNode as m, unref as t, createBlock as d, createCommentVNode as b, Fragment as k, renderList as S, createTextVNode as $, toDisplayString as R, mergeModels as j, useModel as I, renderSlot as H, normalizeClass as T } from "vue";
|
|
2
|
+
import { useCoreStore as W, useI18n as z } from "@feedmepos/mf-common";
|
|
3
|
+
import { u as q } from "./app-BT7hD4az.js";
|
|
4
|
+
import { _ as G } from "./FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-DXTdvT0C.js";
|
|
5
|
+
import { useBreakpoints as J } from "@feedmepos/ui-library";
|
|
6
|
+
import { u as K } from "./SingleColumnLayout.vue_vue_type_script_setup_true_lang-DpwneGOV.js";
|
|
7
|
+
import { D as A } from "./app-C39bYJmq.js";
|
|
8
|
+
import { F as P } from "./FmAdminBadge-DlplQOHb.js";
|
|
9
|
+
const X = { class: "inline-flex" }, Y = {
|
|
10
|
+
"data-testid": "inventory-location-selector",
|
|
11
|
+
class: "inline-flex rounded-md items-center gap-4 justify-center h-[30px] px-8 py-4 bg-fm-color-neutral-gray-100 cursor-pointer text-fm-color-neutral-gray-400"
|
|
12
|
+
}, Z = { class: "fm-typo-en-body-md-600 select-none text-ellipsis overflow-hidden whitespace-nowrap" }, ee = { class: "relative" }, oe = { class: "sticky top-0 py-8 bg-white translate-y-[-12px]" }, le = /* @__PURE__ */ D({
|
|
13
|
+
__name: "ChangeLocationComponent",
|
|
14
|
+
props: {
|
|
15
|
+
showBusiness: { type: Boolean }
|
|
16
|
+
},
|
|
17
|
+
setup(_) {
|
|
18
|
+
const a = q(), y = W(), B = g(() => {
|
|
19
|
+
var e;
|
|
20
|
+
return (e = y.currentBusiness.value) == null ? void 0 : e.name;
|
|
21
|
+
}), { t: c } = z(), v = O(""), u = g({
|
|
22
|
+
get() {
|
|
23
|
+
return a.businessLevel;
|
|
24
|
+
},
|
|
25
|
+
set(e) {
|
|
26
|
+
a.businessLevel = e;
|
|
27
|
+
}
|
|
28
|
+
}), p = g(
|
|
29
|
+
() => a.locations.map((e) => ({
|
|
30
|
+
label: e.name,
|
|
31
|
+
value: e.dbName,
|
|
32
|
+
type: e.type,
|
|
33
|
+
code: e.doc.profile.code ?? "--"
|
|
34
|
+
})).filter((e) => {
|
|
35
|
+
var f;
|
|
36
|
+
if (!v.value) return !0;
|
|
37
|
+
const o = v.value.toLocaleLowerCase();
|
|
38
|
+
return e.label.toLocaleLowerCase().includes(o) || ((f = e.code) == null ? void 0 : f.toLocaleLowerCase().includes(o));
|
|
39
|
+
})
|
|
40
|
+
), n = g(
|
|
41
|
+
() => p.value.filter((e) => e.type === "restaurant")
|
|
42
|
+
), s = g(
|
|
43
|
+
() => p.value.filter((e) => e.type === "warehouse")
|
|
44
|
+
);
|
|
45
|
+
function x({ value: e }) {
|
|
46
|
+
u.value = !1, a.selectLocation(a.locations.find((o) => o.dbName === e));
|
|
47
|
+
}
|
|
48
|
+
return (e, o) => {
|
|
49
|
+
const f = w("FmIcon"), Q = w("FmSearch"), C = w("FmMenuItem"), E = w("FmMenu");
|
|
50
|
+
return l(), i("div", X, [
|
|
51
|
+
M(E, { "close-on-click": !0 }, {
|
|
52
|
+
"menu-button": N(() => [
|
|
53
|
+
m("div", Y, [
|
|
54
|
+
M(f, {
|
|
55
|
+
name: e.showBusiness && u.value ? "store" : "storefront",
|
|
56
|
+
size: "sm"
|
|
57
|
+
}, null, 8, ["name"]),
|
|
58
|
+
m("div", Z, [
|
|
59
|
+
e.showBusiness && u.value ? (l(), i(k, { key: 0 }, [
|
|
60
|
+
$(R(B.value), 1)
|
|
61
|
+
], 64)) : t(a)._currentLocation ? (l(), i(k, { key: 1 }, [
|
|
62
|
+
$(R(t(a)._currentLocation.name) + " (" + R(t(a)._currentLocation.doc.profile.code ?? "--") + ") ", 1)
|
|
63
|
+
], 64)) : (l(), i(k, { key: 2 }, [
|
|
64
|
+
$(R(t(c)("inventory.common.noLocationSelected")), 1)
|
|
65
|
+
], 64))
|
|
66
|
+
]),
|
|
67
|
+
M(f, {
|
|
68
|
+
name: "expand_more",
|
|
69
|
+
size: "sm"
|
|
70
|
+
})
|
|
71
|
+
])
|
|
72
|
+
]),
|
|
73
|
+
default: N(() => [
|
|
74
|
+
m("div", ee, [
|
|
75
|
+
m("div", oe, [
|
|
76
|
+
M(Q, {
|
|
77
|
+
"model-value": v.value,
|
|
78
|
+
"onUpdate:modelValue": o[0] || (o[0] = (r) => v.value = r),
|
|
79
|
+
placeholder: t(c)("inventory.common.table.toolbar.filterItems")
|
|
80
|
+
}, null, 8, ["model-value", "placeholder"])
|
|
81
|
+
]),
|
|
82
|
+
m("div", null, [
|
|
83
|
+
e.showBusiness ? (l(), d(C, {
|
|
84
|
+
key: 0,
|
|
85
|
+
"data-testid": "inventory-business-selector",
|
|
86
|
+
"model-value": u.value,
|
|
87
|
+
label: B.value,
|
|
88
|
+
sublabel: "Business",
|
|
89
|
+
onClick: o[1] || (o[1] = (r) => u.value = !0)
|
|
90
|
+
}, null, 8, ["model-value", "label"])) : b("", !0),
|
|
91
|
+
(l(!0), i(k, null, S(n.value, (r) => {
|
|
92
|
+
var L;
|
|
93
|
+
return l(), d(C, {
|
|
94
|
+
key: r.value,
|
|
95
|
+
"model-value": !u.value && ((L = t(a)._currentLocation) == null ? void 0 : L.dbName) === r.value,
|
|
96
|
+
label: `${r.label} (${r.code})`,
|
|
97
|
+
sublabel: "Restaurant",
|
|
98
|
+
onClick: (h) => x(r),
|
|
99
|
+
onVnodeMounted: (h) => {
|
|
100
|
+
var V, F, U;
|
|
101
|
+
return !u.value && ((V = t(a)._currentLocation) == null ? void 0 : V.dbName) === r.value && ((F = h.el) == null || F.scrollIntoView({ behavior: "instant", block: "end" }), (U = h.el) == null || U.scrollIntoView({ behavior: "smooth", block: "center" })), void 0;
|
|
102
|
+
}
|
|
103
|
+
}, null, 8, ["model-value", "label", "onClick", "onVnodeMounted"]);
|
|
104
|
+
}), 128)),
|
|
105
|
+
(l(!0), i(k, null, S(s.value, (r) => {
|
|
106
|
+
var L;
|
|
107
|
+
return l(), d(C, {
|
|
108
|
+
key: r.value,
|
|
109
|
+
"model-value": !u.value && ((L = t(a)._currentLocation) == null ? void 0 : L.dbName) === r.value,
|
|
110
|
+
label: r.label,
|
|
111
|
+
sublabel: "Warehouse",
|
|
112
|
+
onClick: (h) => x(r),
|
|
113
|
+
onVnodeMounted: (h) => {
|
|
114
|
+
var V, F;
|
|
115
|
+
return !u.value && ((V = t(a)._currentLocation) == null ? void 0 : V.dbName) === r.value && ((F = h.el) == null || F.scrollIntoView({ behavior: "smooth", block: "center" })), void 0;
|
|
116
|
+
}
|
|
117
|
+
}, null, 8, ["model-value", "label", "onClick", "onVnodeMounted"]);
|
|
118
|
+
}), 128)),
|
|
119
|
+
!e.showBusiness && !n.value.length && !s.value.length ? (l(), d(C, {
|
|
120
|
+
key: 1,
|
|
121
|
+
disabled: "",
|
|
122
|
+
label: t(c)("inventory.common.noResultFound")
|
|
123
|
+
}, null, 8, ["label"])) : b("", !0)
|
|
124
|
+
])
|
|
125
|
+
])
|
|
126
|
+
]),
|
|
127
|
+
_: 1
|
|
128
|
+
})
|
|
129
|
+
]);
|
|
130
|
+
};
|
|
131
|
+
}
|
|
132
|
+
}), ne = { class: "flex-1 w-full flex items-center gap-4 xs:flex-col-reverse sm:flex-col-reverse" }, te = {
|
|
133
|
+
key: 0,
|
|
134
|
+
class: "flex-1 xs:w-full sm:w-full"
|
|
135
|
+
}, ae = {
|
|
136
|
+
key: 1,
|
|
137
|
+
class: "flex-1"
|
|
138
|
+
}, se = { class: "w-full max-w-[343px] xs:max-w-[unset] sm:max-w-[unset]" }, fe = /* @__PURE__ */ D({
|
|
139
|
+
__name: "FmInventoryTableToolbar",
|
|
140
|
+
props: /* @__PURE__ */ j({
|
|
141
|
+
dateRangeQuery: { type: Boolean },
|
|
142
|
+
predefinedDateRanges: {},
|
|
143
|
+
changeLocation: { type: Boolean },
|
|
144
|
+
searchable: { type: Boolean },
|
|
145
|
+
hideFilterOptions: { type: Boolean },
|
|
146
|
+
filterable: { type: Boolean },
|
|
147
|
+
filterAttributes: {},
|
|
148
|
+
actions: {},
|
|
149
|
+
usingBusinessHelperText: {},
|
|
150
|
+
showBusiness: { type: Boolean }
|
|
151
|
+
}, {
|
|
152
|
+
search: {},
|
|
153
|
+
searchModifiers: {},
|
|
154
|
+
filter: {},
|
|
155
|
+
filterModifiers: {},
|
|
156
|
+
dateRange: {},
|
|
157
|
+
dateRangeModifiers: {}
|
|
158
|
+
}),
|
|
159
|
+
emits: ["update:search", "update:filter", "update:dateRange"],
|
|
160
|
+
setup(_) {
|
|
161
|
+
const { breakpoints: a } = J(), y = g(() => a.value.xs || a.value.sm), B = I(_, "search"), c = I(_, "filter"), v = I(_, "dateRange"), { t: u } = z(), p = K();
|
|
162
|
+
return (n, s) => {
|
|
163
|
+
const x = w("FmTextField"), e = w("FmButton");
|
|
164
|
+
return l(), i("div", {
|
|
165
|
+
class: "flex flex-col gap-8",
|
|
166
|
+
onVnodeMounted: s[4] || (s[4] = //@ts-ignore
|
|
167
|
+
(...o) => t(p).onMounted && t(p).onMounted(...o)),
|
|
168
|
+
onVnodeUnmounted: s[5] || (s[5] = //@ts-ignore
|
|
169
|
+
(...o) => t(p).onUnmounted && t(p).onUnmounted(...o))
|
|
170
|
+
}, [
|
|
171
|
+
H(n.$slots, "default"),
|
|
172
|
+
m("div", {
|
|
173
|
+
class: T([
|
|
174
|
+
"flex gap-8 items-center",
|
|
175
|
+
{
|
|
176
|
+
"px-8 flex-col-reverse h-[unset]": y.value,
|
|
177
|
+
"h-48": !y.value
|
|
178
|
+
}
|
|
179
|
+
])
|
|
180
|
+
}, [
|
|
181
|
+
n.changeLocation || n.dateRangeQuery ? (l(), i("div", {
|
|
182
|
+
key: 0,
|
|
183
|
+
class: T([
|
|
184
|
+
"flex gap-8 items-center",
|
|
185
|
+
{
|
|
186
|
+
"w-full overflow-x-auto": y.value
|
|
187
|
+
}
|
|
188
|
+
])
|
|
189
|
+
}, [
|
|
190
|
+
n.changeLocation ? (l(), d(le, {
|
|
191
|
+
key: 0,
|
|
192
|
+
"show-business": n.showBusiness
|
|
193
|
+
}, null, 8, ["show-business"])) : b("", !0),
|
|
194
|
+
n.dateRangeQuery ? (l(), d(G, {
|
|
195
|
+
key: 1,
|
|
196
|
+
"model-value": v.value,
|
|
197
|
+
"onUpdate:modelValue": s[0] || (s[0] = (o) => v.value = o),
|
|
198
|
+
"predefined-range": n.predefinedDateRanges
|
|
199
|
+
}, null, 8, ["model-value", "predefined-range"])) : b("", !0)
|
|
200
|
+
], 2)) : b("", !0),
|
|
201
|
+
m("div", ne, [
|
|
202
|
+
n.filterable && n.filterAttributes ? (l(), i("div", te, [
|
|
203
|
+
n.hideFilterOptions ? (l(), d(P, { key: 1 }, {
|
|
204
|
+
default: N(() => [
|
|
205
|
+
M(t(A), {
|
|
206
|
+
modelValue: c.value,
|
|
207
|
+
"onUpdate:modelValue": s[2] || (s[2] = (o) => c.value = o),
|
|
208
|
+
attributes: n.filterAttributes
|
|
209
|
+
}, null, 8, ["modelValue", "attributes"])
|
|
210
|
+
]),
|
|
211
|
+
_: 1
|
|
212
|
+
})) : (l(), d(t(A), {
|
|
213
|
+
key: 0,
|
|
214
|
+
modelValue: c.value,
|
|
215
|
+
"onUpdate:modelValue": s[1] || (s[1] = (o) => c.value = o),
|
|
216
|
+
attributes: n.filterAttributes
|
|
217
|
+
}, null, 8, ["modelValue", "attributes"]))
|
|
218
|
+
])) : y.value ? b("", !0) : (l(), i("div", ae)),
|
|
219
|
+
m("div", se, [
|
|
220
|
+
n.searchable ? (l(), d(x, {
|
|
221
|
+
key: 0,
|
|
222
|
+
"model-value": B.value,
|
|
223
|
+
"onUpdate:modelValue": s[3] || (s[3] = (o) => B.value = o),
|
|
224
|
+
"prepend-icon": "search",
|
|
225
|
+
placeholder: t(u)("inventory.common.table.toolbar.filterItems"),
|
|
226
|
+
class: "w-full"
|
|
227
|
+
}, null, 8, ["model-value", "placeholder"])) : b("", !0)
|
|
228
|
+
]),
|
|
229
|
+
(l(!0), i(k, null, S(n.actions, (o, f) => (l(), d(e, {
|
|
230
|
+
key: f,
|
|
231
|
+
variant: "tertiary",
|
|
232
|
+
"prepend-icon": o.icon,
|
|
233
|
+
onClick: o.onClick
|
|
234
|
+
}, null, 8, ["prepend-icon", "onClick"]))), 128))
|
|
235
|
+
])
|
|
236
|
+
], 2)
|
|
237
|
+
], 512);
|
|
238
|
+
};
|
|
239
|
+
}
|
|
240
|
+
});
|
|
241
|
+
export {
|
|
242
|
+
fe as _
|
|
243
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineStore as p } from "pinia";
|
|
2
2
|
import { useDialog as y } from "@feedmepos/ui-library";
|
|
3
3
|
import { useI18n as v } from "@feedmepos/mf-common";
|
|
4
|
-
import { a } from "./FmMultiselectDialog-
|
|
4
|
+
import { a } from "./FmMultiselectDialog-DL00XnUc.js";
|
|
5
5
|
import { h as S } from "vue";
|
|
6
6
|
const w = p("inventoryMultiSelectDialog", () => {
|
|
7
7
|
const l = y(), { t: n } = v();
|
|
@@ -3,8 +3,8 @@ var Pe = (F, i, l) => i in F ? He(F, i, { enumerable: !0, configurable: !0, writ
|
|
|
3
3
|
var ve = (F, i, l) => Pe(F, typeof i != "symbol" ? i + "" : i, l);
|
|
4
4
|
import { defineComponent as ye, computed as x, ref as $, watch as ge, createElementBlock as f, openBlock as d, normalizeStyle as z, Fragment as V, renderList as O, createCommentVNode as D, renderSlot as ke, useSlots as Oe, onMounted as Ue, onUnmounted as Ee, reactive as ee, resolveComponent as T, createElementVNode as B, createVNode as k, createTextVNode as Ke, toDisplayString as P, unref as L, createSlots as je, withCtx as w, createBlock as I, resolveDynamicComponent as pe, normalizeClass as fe, withModifiers as Ne, Transition as ze } from "vue";
|
|
5
5
|
import { useDialogChild as Ge } from "@feedmepos/ui-library";
|
|
6
|
-
import { z as he } from "./app-
|
|
7
|
-
import { d as Je } from "./index-
|
|
6
|
+
import { z as he } from "./app-BT7hD4az.js";
|
|
7
|
+
import { d as Je } from "./index-AmTodx3_.js";
|
|
8
8
|
/* empty css */
|
|
9
9
|
import { useI18n as Re } from "@feedmepos/mf-common";
|
|
10
10
|
import { P as We, J as be, D as Qe } from "./app-C39bYJmq.js";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { defineComponent as ue, mergeModels as W, useModel as re, computed as v, ref as
|
|
2
|
-
import { l as he } from "./netsuite-
|
|
3
|
-
import { w as D } from "./app-
|
|
4
|
-
import { g as O, c as xe, a as b,
|
|
5
|
-
import { I, a as Ae } from "./rules-
|
|
1
|
+
import { defineComponent as ue, mergeModels as W, useModel as re, computed as v, ref as k, watch as H, onBeforeUnmount as me, inject as ce, resolveComponent as x, createElementBlock as y, openBlock as d, createElementVNode as u, createVNode as M, createCommentVNode as A, withCtx as _, renderSlot as Q, withDirectives as de, normalizeClass as q, toDisplayString as h, vModelText as pe, createBlock as R, Fragment as fe, renderList as ve, createSlots as be, createTextVNode as ye } from "vue";
|
|
2
|
+
import { l as he } from "./netsuite-CdW9v92G.js";
|
|
3
|
+
import { w as D } from "./app-BT7hD4az.js";
|
|
4
|
+
import { g as O, c as xe, a as b, e as G, o as Me, b as ge, u as _e, t as Fe } from "./number-DRRlTYv7.js";
|
|
5
|
+
import { I as U, a as Ae } from "./rules-C8RmopTe.js";
|
|
6
6
|
import "@feedmepos/ui-library";
|
|
7
|
-
import { P as
|
|
8
|
-
import { u as
|
|
7
|
+
import { P as Ue } from "./inventory-core-dart.default-BpMxAF-0.js";
|
|
8
|
+
import { u as Be, a as Ie } from "./uom-rules-CjCCXiGL.js";
|
|
9
9
|
function Z() {
|
|
10
10
|
return {
|
|
11
11
|
amount: D.reset()
|
|
@@ -13,17 +13,17 @@ function Z() {
|
|
|
13
13
|
}
|
|
14
14
|
function K() {
|
|
15
15
|
return function(p) {
|
|
16
|
-
return
|
|
16
|
+
return U()(p.amountAsString);
|
|
17
17
|
};
|
|
18
18
|
}
|
|
19
19
|
function tt(r) {
|
|
20
20
|
return function(t) {
|
|
21
|
-
return
|
|
21
|
+
return U()(t.amountAsString) !== !0 ? !0 : +t.amountAsString < r ? `Must be at least ${r}` : !0;
|
|
22
22
|
};
|
|
23
23
|
}
|
|
24
24
|
function nt(r) {
|
|
25
25
|
return function(t) {
|
|
26
|
-
return
|
|
26
|
+
return U()(t.amountAsString) !== !0 ? !0 : +t.amountAsString > r ? `Must be at most ${r}` : !0;
|
|
27
27
|
};
|
|
28
28
|
}
|
|
29
29
|
function J(r, p = !1) {
|
|
@@ -31,10 +31,10 @@ function J(r, p = !1) {
|
|
|
31
31
|
const s = K()(c);
|
|
32
32
|
if (s != !0)
|
|
33
33
|
return p ? s : !0;
|
|
34
|
-
const
|
|
35
|
-
return xe(+c.amountAsString).precision >
|
|
34
|
+
const B = typeof r == "number" ? r : O(r, c.modelValue.measurement);
|
|
35
|
+
return xe(+c.amountAsString).precision > B ? `Cannot exceed precision more than ${b({
|
|
36
36
|
amount: 1,
|
|
37
|
-
precision:
|
|
37
|
+
precision: B
|
|
38
38
|
})}` : !0;
|
|
39
39
|
};
|
|
40
40
|
}
|
|
@@ -46,16 +46,16 @@ function ot(r) {
|
|
|
46
46
|
}
|
|
47
47
|
function st(r) {
|
|
48
48
|
return function(t) {
|
|
49
|
-
if (
|
|
49
|
+
if (U()(t.amountAsString) !== !0)
|
|
50
50
|
return !0;
|
|
51
|
-
const s =
|
|
51
|
+
const s = Ue.validateQuantityAgainstTemplateItem({
|
|
52
52
|
quantity: t.modelValue.amount,
|
|
53
53
|
templateItem: r
|
|
54
54
|
});
|
|
55
55
|
return s.length === 0 ? !0 : s[0];
|
|
56
56
|
};
|
|
57
57
|
}
|
|
58
|
-
const
|
|
58
|
+
const Pe = { class: "flex flex-col" }, ke = { class: "flex flex-col" }, Re = { class: "flex-1" }, De = { class: "flex items-center gap-4" }, Ce = { class: "flex-1 flex gap-4" }, Se = { class: "shrink-0 grow basis-2/5" }, we = {
|
|
59
59
|
key: 0,
|
|
60
60
|
class: "text-fm-color-typo-secondary"
|
|
61
61
|
}, Ne = {
|
|
@@ -73,7 +73,7 @@ const Be = { class: "flex flex-col" }, Ue = { class: "flex flex-col" }, Re = { c
|
|
|
73
73
|
}, He = {
|
|
74
74
|
key: 0,
|
|
75
75
|
class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary mt-1"
|
|
76
|
-
},
|
|
76
|
+
}, it = /* @__PURE__ */ ue({
|
|
77
77
|
__name: "FmUnitInput",
|
|
78
78
|
props: /* @__PURE__ */ W({
|
|
79
79
|
modelValue: {},
|
|
@@ -89,6 +89,7 @@ const Be = { class: "flex flex-col" }, Ue = { class: "flex flex-col" }, Re = { c
|
|
|
89
89
|
disableUnit: { type: Boolean },
|
|
90
90
|
stepperOnly: { type: Boolean },
|
|
91
91
|
stepper: {},
|
|
92
|
+
immediateModelUpdate: { type: Boolean },
|
|
92
93
|
placeholder: {},
|
|
93
94
|
minLength: {},
|
|
94
95
|
maxLength: {},
|
|
@@ -124,40 +125,42 @@ const Be = { class: "flex flex-col" }, Ue = { class: "flex flex-col" }, Re = { c
|
|
|
124
125
|
}),
|
|
125
126
|
emits: /* @__PURE__ */ W(["update:amount", "update:measurement"], ["update:modelValue"]),
|
|
126
127
|
setup(r, { emit: p }) {
|
|
127
|
-
const t = r, c = p, s = re(r, "modelValue"),
|
|
128
|
+
const t = r, c = p, s = re(r, "modelValue"), B = U(), C = v(() => {
|
|
128
129
|
var n;
|
|
129
130
|
return O(t.unit, (n = s.value) == null ? void 0 : n.measurement);
|
|
130
|
-
}), f =
|
|
131
|
-
var
|
|
132
|
-
const e = ((
|
|
131
|
+
}), f = k((() => {
|
|
132
|
+
var i;
|
|
133
|
+
const e = ((i = s.value) == null ? void 0 : i.amount) ?? D.reset(), n = ge(e), a = t.formatMinimumPrecision ?? n.precision, l = _e(n, a);
|
|
133
134
|
return b(l);
|
|
134
135
|
})());
|
|
135
136
|
let F = null;
|
|
136
137
|
H(f, (e) => {
|
|
137
|
-
|
|
138
|
+
const n = () => {
|
|
138
139
|
var o;
|
|
139
|
-
const
|
|
140
|
-
if (
|
|
141
|
-
const
|
|
142
|
-
((o = s.value) == null ? void 0 : o.amount) !==
|
|
140
|
+
const a = t.precision ?? C.value, i = typeof t.formatMinimumPrecision == "number" && t.formatMinimumPrecision > a ? t.formatMinimumPrecision : a;
|
|
141
|
+
if (B(e) == !0) {
|
|
142
|
+
const g = Fe(+e, i);
|
|
143
|
+
((o = s.value) == null ? void 0 : o.amount) !== g && (s.value = {
|
|
143
144
|
...s.value,
|
|
144
|
-
amount:
|
|
145
|
+
amount: g
|
|
145
146
|
});
|
|
146
147
|
}
|
|
147
|
-
|
|
148
|
+
};
|
|
149
|
+
t.immediateModelUpdate && n(), F && clearTimeout(F), F = setTimeout(() => {
|
|
150
|
+
t.immediateModelUpdate || n(), c("update:amount", e);
|
|
148
151
|
}, 500);
|
|
149
152
|
}), me(() => {
|
|
150
153
|
F && clearTimeout(F);
|
|
151
154
|
});
|
|
152
|
-
const Y = Symbol.for("fm:form-state"), S = ce(Y, null),
|
|
153
|
-
var
|
|
154
|
-
const e = ne.value, n = t.unit.measurements.filter((o) => !
|
|
155
|
+
const Y = Symbol.for("fm:form-state"), S = ce(Y, null), I = v(() => t.disabled ?? (S == null ? void 0 : S.getDisabled()) ?? !1), ee = k(), w = k(!1), j = k(!1), te = v(() => w.value || j.value), ne = Be(), oe = v(() => {
|
|
156
|
+
var i;
|
|
157
|
+
const e = ne.value, n = t.unit.measurements.filter((o) => !Ie(o, e)).filter((o) => o.abbrev !== t.unit.abbrev || +b(o.conversion) != 1), a = he.groupBy(
|
|
155
158
|
n,
|
|
156
159
|
(o) => `${o.abbrev}${b(o.conversion)}`
|
|
157
|
-
), l = Object.values(
|
|
160
|
+
), l = Object.values(a).map((o) => o[0]);
|
|
158
161
|
return [
|
|
159
162
|
{
|
|
160
|
-
label: (
|
|
163
|
+
label: (i = t.unit) == null ? void 0 : i.abbrev,
|
|
161
164
|
value: null,
|
|
162
165
|
isBaseUnit: !0,
|
|
163
166
|
conversionLabel: null
|
|
@@ -181,7 +184,7 @@ const Be = { class: "flex flex-col" }, Ue = { class: "flex flex-col" }, Re = { c
|
|
|
181
184
|
measurement: null
|
|
182
185
|
}, c("update:measurement", null);
|
|
183
186
|
else {
|
|
184
|
-
const n = t.unit.measurements.find((
|
|
187
|
+
const n = t.unit.measurements.find((a) => a.id === e) ?? null;
|
|
185
188
|
s.value = {
|
|
186
189
|
...s.value ?? Z(),
|
|
187
190
|
measurement: n
|
|
@@ -193,8 +196,8 @@ const Be = { class: "flex flex-col" }, Ue = { class: "flex flex-col" }, Re = { c
|
|
|
193
196
|
var m;
|
|
194
197
|
if (!t.convertAmountOnChangeUnit)
|
|
195
198
|
return;
|
|
196
|
-
const
|
|
197
|
-
value:
|
|
199
|
+
const a = ((m = s.value) == null ? void 0 : m.amount) ?? D.reset(), l = t.unit.measurements.find((P) => P.id === n) ?? null, i = t.unit.measurements.find((P) => P.id === e) ?? null, o = l ? G(a, l.conversion) : a, g = i ? Me(o, i.conversion) : o, $ = O(t.unit, i), L = D.convertPrecision({
|
|
200
|
+
value: g,
|
|
198
201
|
precision: $
|
|
199
202
|
});
|
|
200
203
|
f.value = b(L);
|
|
@@ -206,30 +209,30 @@ const Be = { class: "flex flex-col" }, Ue = { class: "flex flex-col" }, Re = { c
|
|
|
206
209
|
var e, n;
|
|
207
210
|
return ((n = (e = s.value) == null ? void 0 : e.measurement) == null ? void 0 : n.abbrev) ?? t.unit.abbrev;
|
|
208
211
|
}), z = v(() => {
|
|
209
|
-
var l,
|
|
212
|
+
var l, i;
|
|
210
213
|
if (V.value) return null;
|
|
211
214
|
const e = (l = s.value) == null ? void 0 : l.measurement;
|
|
212
215
|
if (!e) return null;
|
|
213
|
-
const n = (
|
|
216
|
+
const n = (i = s.value) == null ? void 0 : i.amount;
|
|
214
217
|
if (!n) return null;
|
|
215
|
-
const
|
|
216
|
-
return `= ${b(
|
|
218
|
+
const a = G(n, e.conversion);
|
|
219
|
+
return `= ${b(a)} ${t.unit.abbrev}`;
|
|
217
220
|
}), se = v(
|
|
218
221
|
() => {
|
|
219
222
|
var e;
|
|
220
223
|
return ((e = t.rules) == null ? void 0 : e.map(
|
|
221
|
-
(n) => (
|
|
224
|
+
(n) => (a) => typeof n == "function" ? n(a) : n
|
|
222
225
|
)) ?? [];
|
|
223
226
|
}
|
|
224
|
-
),
|
|
227
|
+
), ie = v(() => [...t.applyDefaultRules ? [
|
|
225
228
|
K(),
|
|
226
229
|
typeof t.precision == "number" ? J(t.precision) : J(t.unit)
|
|
227
230
|
] : [], ...se.value]);
|
|
228
231
|
function E(e) {
|
|
229
|
-
const n = t.precision ?? C.value, l = typeof t.formatMinimumPrecision == "number" && t.formatMinimumPrecision > n ? t.formatMinimumPrecision : n,
|
|
232
|
+
const n = t.precision ?? C.value, l = typeof t.formatMinimumPrecision == "number" && t.formatMinimumPrecision > n ? t.formatMinimumPrecision : n, i = e.toFixed(l), o = i.includes(".") ? i.replace(/0+$/, "") : i;
|
|
230
233
|
return o.endsWith(".") ? o.slice(0, o.length - 1) : o;
|
|
231
234
|
}
|
|
232
|
-
function
|
|
235
|
+
function ae() {
|
|
233
236
|
if (!t.stepper)
|
|
234
237
|
return;
|
|
235
238
|
const e = +f.value + +b(t.stepper);
|
|
@@ -242,18 +245,18 @@ const Be = { class: "flex flex-col" }, Ue = { class: "flex flex-col" }, Re = { c
|
|
|
242
245
|
f.value = E(e);
|
|
243
246
|
}
|
|
244
247
|
return (e, n) => {
|
|
245
|
-
const
|
|
246
|
-
return d(), y("div",
|
|
247
|
-
u("div",
|
|
248
|
+
const a = x("FmLabel"), l = x("FmIcon"), i = x("FmMenuItem"), o = x("FmMenu"), g = x("FmTooltip"), $ = x("FmField"), L = x("FmFormGroup");
|
|
249
|
+
return d(), y("div", Pe, [
|
|
250
|
+
u("div", ke, [
|
|
248
251
|
u("div", Re, [
|
|
249
|
-
|
|
252
|
+
M(a, {
|
|
250
253
|
label: e.label,
|
|
251
254
|
disabled: e.disabled,
|
|
252
255
|
required: e.labelMark === "required",
|
|
253
256
|
optional: e.labelMark === "optional"
|
|
254
257
|
}, null, 8, ["label", "disabled", "required", "optional"])
|
|
255
258
|
]),
|
|
256
|
-
|
|
259
|
+
M($, { focused: te.value }, {
|
|
257
260
|
default: _(() => [
|
|
258
261
|
u("div", De, [
|
|
259
262
|
Q(e.$slots, "prepend"),
|
|
@@ -263,8 +266,8 @@ const Be = { class: "flex flex-col" }, Ue = { class: "flex flex-col" }, Re = { c
|
|
|
263
266
|
key: 0,
|
|
264
267
|
class: q({
|
|
265
268
|
"fm-text-field--input fm-typo-en-body-lg-400": !0,
|
|
266
|
-
"text-fm-color-typo-primary": !
|
|
267
|
-
"text-fm-color-typo-disabled":
|
|
269
|
+
"text-fm-color-typo-primary": !I.value,
|
|
270
|
+
"text-fm-color-typo-disabled": I.value
|
|
268
271
|
})
|
|
269
272
|
}, h(f.value), 3)) : de((d(), y("input", {
|
|
270
273
|
key: 1,
|
|
@@ -276,8 +279,8 @@ const Be = { class: "flex flex-col" }, Ue = { class: "flex flex-col" }, Re = { c
|
|
|
276
279
|
"onUpdate:modelValue": n[2] || (n[2] = (m) => f.value = m),
|
|
277
280
|
class: q({
|
|
278
281
|
"fm-text-field--input fm-typo-en-body-lg-400": !0,
|
|
279
|
-
"text-fm-color-typo-primary": !
|
|
280
|
-
"text-fm-color-typo-disabled":
|
|
282
|
+
"text-fm-color-typo-primary": !I.value,
|
|
283
|
+
"text-fm-color-typo-disabled": I.value
|
|
281
284
|
})
|
|
282
285
|
}, null, 34)), [
|
|
283
286
|
[pe, f.value]
|
|
@@ -287,7 +290,7 @@ const Be = { class: "flex flex-col" }, Ue = { class: "flex flex-col" }, Re = { c
|
|
|
287
290
|
u("div", {
|
|
288
291
|
class: q([e.disabled ? "text-fm-color-typo-disabled" : "text-fm-color-typo-secondary"])
|
|
289
292
|
}, [
|
|
290
|
-
g
|
|
293
|
+
M(g, { "z-index": 51 }, {
|
|
291
294
|
content: _(() => [
|
|
292
295
|
ye(h(T.value), 1)
|
|
293
296
|
]),
|
|
@@ -314,17 +317,17 @@ const Be = { class: "flex flex-col" }, Ue = { class: "flex flex-col" }, Re = { c
|
|
|
314
317
|
})),
|
|
315
318
|
u("div", Le, h(T.value), 1)
|
|
316
319
|
]),
|
|
317
|
-
|
|
320
|
+
M(l, { name: "keyboard_arrow_down" })
|
|
318
321
|
])
|
|
319
322
|
]),
|
|
320
323
|
default: _(() => [
|
|
321
324
|
u("div", qe, [
|
|
322
|
-
(d(!0), y(fe, null, ve(oe.value, (m) => (d(), R(
|
|
325
|
+
(d(!0), y(fe, null, ve(oe.value, (m) => (d(), R(i, {
|
|
323
326
|
key: m.value ?? void 0,
|
|
324
327
|
label: m.label,
|
|
325
328
|
icon: m.isBaseUnit ? void 0 : "square_foot",
|
|
326
329
|
"model-value": m.value == N.value,
|
|
327
|
-
onClick: (
|
|
330
|
+
onClick: (P) => N.value = m.value
|
|
328
331
|
}, be({ _: 2 }, [
|
|
329
332
|
m.conversionLabel ? {
|
|
330
333
|
name: "label",
|
|
@@ -348,10 +351,10 @@ const Be = { class: "flex flex-col" }, Ue = { class: "flex flex-col" }, Re = { c
|
|
|
348
351
|
e.stepper ? (d(), y("div", ze, [
|
|
349
352
|
u("div", {
|
|
350
353
|
class: "w-24 h-12 flex items-center justify-center fm-corner-radius-sm bg-fm-color-neutral-gray-100 hover:bg-fm-color-neutral-gray-200",
|
|
351
|
-
onClick:
|
|
354
|
+
onClick: ae
|
|
352
355
|
}, [
|
|
353
356
|
u("div", Ee, [
|
|
354
|
-
|
|
357
|
+
M(l, {
|
|
355
358
|
name: "expand_less",
|
|
356
359
|
size: "md"
|
|
357
360
|
})
|
|
@@ -362,7 +365,7 @@ const Be = { class: "flex flex-col" }, Ue = { class: "flex flex-col" }, Re = { c
|
|
|
362
365
|
onClick: le
|
|
363
366
|
}, [
|
|
364
367
|
u("div", We, [
|
|
365
|
-
|
|
368
|
+
M(l, {
|
|
366
369
|
name: "expand_more",
|
|
367
370
|
size: "md"
|
|
368
371
|
})
|
|
@@ -376,11 +379,11 @@ const Be = { class: "flex flex-col" }, Ue = { class: "flex flex-col" }, Re = { c
|
|
|
376
379
|
_: 3
|
|
377
380
|
}, 8, ["focused"])
|
|
378
381
|
]),
|
|
379
|
-
|
|
382
|
+
M(L, {
|
|
380
383
|
class: "flex-1",
|
|
381
384
|
"model-value": { modelValue: s.value, amountAsString: String(f.value) },
|
|
382
385
|
info: e.labelInfo,
|
|
383
|
-
rules:
|
|
386
|
+
rules: ie.value,
|
|
384
387
|
"helper-text": e.helperText,
|
|
385
388
|
"helper-state": e.helperState
|
|
386
389
|
}, null, 8, ["model-value", "info", "rules", "helper-text", "helper-state"]),
|
|
@@ -391,7 +394,7 @@ const Be = { class: "flex flex-col" }, Ue = { class: "flex flex-col" }, Re = { c
|
|
|
391
394
|
});
|
|
392
395
|
export {
|
|
393
396
|
ot as F,
|
|
394
|
-
|
|
397
|
+
it as _,
|
|
395
398
|
tt as a,
|
|
396
399
|
nt as b,
|
|
397
400
|
K as c,
|
|
@@ -2,15 +2,15 @@ import { defineComponent as Te, ref as F, computed as L, watch as Be, resolveCom
|
|
|
2
2
|
import { u as je, _ as ke } from "./SingleColumnLayout.vue_vue_type_script_setup_true_lang-DpwneGOV.js";
|
|
3
3
|
import { useCoreStore as Re, useI18n as Fe } from "@feedmepos/mf-common";
|
|
4
4
|
import { useDialogChild as Oe, useSnackbar as Ae, useDialog as He, useBreakpoints as ze } from "@feedmepos/ui-library";
|
|
5
|
-
import { u as Ke } from "./feature-
|
|
6
|
-
import { a as ie } from "./app-
|
|
7
|
-
import "./dayjs.min-
|
|
5
|
+
import { u as Ke } from "./feature-CSvVyBN2.js";
|
|
6
|
+
import { a as ie } from "./app-BT7hD4az.js";
|
|
7
|
+
import "./dayjs.min-BJk-edO7.js";
|
|
8
8
|
import "./app-C39bYJmq.js";
|
|
9
9
|
import "./FmAdminBadge-DlplQOHb.js";
|
|
10
|
-
import { s as De, a as Ve, d as We, t as Ce, r as Le } from "./xlsx.util-
|
|
11
|
-
import { s as Je, g as Xe, b as qe, d as Ge } from "./import-export.helper-
|
|
10
|
+
import { s as De, a as Ve, d as We, t as Ce, r as Le } from "./xlsx.util-Jv7EpwFc.js";
|
|
11
|
+
import { s as Je, g as Xe, b as qe, d as Ge } from "./import-export.helper-txDvkMf0.js";
|
|
12
12
|
import { r as Qe } from "./random-CSbEbElR.js";
|
|
13
|
-
import { c as Ne, a as pe } from "./number-
|
|
13
|
+
import { c as Ne, a as pe } from "./number-DRRlTYv7.js";
|
|
14
14
|
import { F as Ye } from "./FmDroppableField-J0tG_U3w.js";
|
|
15
15
|
function Ee() {
|
|
16
16
|
return `measurement_${(/* @__PURE__ */ new Date()).toISOString()}_${Qe()}`;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as p, createElementBlock as s, openBlock as n, createElementVNode as r, toDisplayString as o, unref as l, Fragment as d, renderList as x } from "vue";
|
|
2
|
-
import { a, e as y } from "./number-
|
|
2
|
+
import { a, e as y } from "./number-DRRlTYv7.js";
|
|
3
3
|
import { useI18n as _ } from "@feedmepos/mf-common";
|
|
4
4
|
const v = { class: "flex flex-col" }, g = { class: "flex flex-row fm-typo-en-body-md-600 bg-fm-color-neutral-gray-100 text-fm-color-typo-secondary h-48 items-center" }, h = { class: "flex-1 py-8 px-16" }, b = {
|
|
5
5
|
class: "flex-0 py-8 px-16",
|