@feedmepos/mf-inventory-portal 1.8.0-dev.2 → 1.8.0-dev.20
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-5GYyCfFq.js +1445 -0
- package/dist/{ApprovalView-RaXuWWSu.js → ApprovalView-DY1ayl1W.js} +26 -25
- package/dist/{BindingsDialog-DomvXijP.js → BindingsDialog-Dm7uKMfV.js} +2 -2
- package/dist/{BindingsPicker-DGnzxEs7.js → BindingsPicker-DhnMlj4x.js} +2 -2
- package/dist/{BindingsTable-DfG9kWrv.js → BindingsTable-Cxibcjka.js} +10 -10
- package/dist/BulkReceiveRequestPage-w4AA6BxB.js +2839 -0
- package/dist/{ChangeLocationComponent.vue_vue_type_script_setup_true_lang-CVekIoiN.js → ChangeLocationComponent.vue_vue_type_script_setup_true_lang-B3ESPbQp.js} +1 -1
- package/dist/{ClosingDraftView-C3n66bbh.js → ClosingDraftView-DMaONEZ7.js} +748 -746
- package/dist/ClosingHistoryView-BBYruOux.js +769 -0
- package/dist/{ClosingTemplateView-DwGloYxn.js → ClosingTemplateView-DcwgokRl.js} +22 -21
- package/dist/{CustomPrintTemplatePreview.vue_vue_type_script_setup_true_lang-9eY_r8LF.js → CustomPrintTemplatePreview.vue_vue_type_script_setup_true_lang-a72IldDO.js} +1 -1
- package/dist/{DefaultView-JC_e4xgC.js → DefaultView-BVr_7JDn.js} +2 -2
- package/dist/{DeliveryOrderPrintPreview-BBCvI67S.js → DeliveryOrderPrintPreview-BXZFD3D5.js} +15 -15
- package/dist/{EmailDialog.vue_vue_type_script_setup_true_lang-H4FWc9ga.js → EmailDialog.vue_vue_type_script_setup_true_lang-Dne_9P3j.js} +10077 -9950
- package/dist/FeatureCapabilityBadge.vue_vue_type_script_setup_true_lang-CYkPbFSA.js +48 -0
- package/dist/FeatureCapabilityGate-DK_rTVyJ.js +82 -0
- package/dist/FeaturePageGate.vue_vue_type_script_setup_true_lang-DIhV51l7.js +189 -0
- package/dist/{FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-Q8Mptiv3.js → FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-B80EHMBT.js} +1 -1
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CE1_yyHe.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-C94IFGoH.js} +2 -2
- package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CGJi3f86.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-COZPDuAM.js} +2 -2
- package/dist/{FmMultiselectDialog-DCaRlBIy.js → FmMultiselectDialog-C1P22sj2.js} +2 -2
- package/dist/FmMultiselectDialog-Kb3IftHf.js +123 -0
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-ClaLVtpK.js → FmUnitInput.vue_vue_type_script_setup_true_lang-BqB71yfu.js} +105 -99
- package/dist/ImportView-EJ4u8NHM.js +1540 -0
- package/dist/{IngredientsView-DPj9lBTK.js → IngredientsView-Bxsgm4E7.js} +691 -689
- package/dist/{IntegrationExplorerView-CO2wpUR_.js → IntegrationExplorerView-owEaOVeG.js} +1537 -1620
- package/dist/IntegrationPlatformView-BuptPyjg.js +13385 -0
- package/dist/{IntegrationView-DIeZoey0.js → IntegrationView-DAcdY_d_.js} +2604 -2565
- package/dist/{InventoryBindingForm-Cj4_Chue.js → InventoryBindingForm-BvjY4zrn.js} +1 -1
- package/dist/InventoryBindingForm.vue_vue_type_script_setup_true_lang-DhbF-jgN.js +472 -0
- package/dist/{InventoryBindingSummary-yzGzd7jJ.js → InventoryBindingSummary-DPqm94GX.js} +1 -1
- package/dist/JsonViewer.vue_vue_type_script_setup_true_lang-C_hg75l0.js +25 -0
- package/dist/NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DDsigNJ4.js +79 -0
- package/dist/PlanTierBadge.vue_vue_type_script_setup_true_lang-CM3gtYZo.js +19 -0
- package/dist/PlanUpgradeDialog.vue_vue_type_script_setup_true_lang-0F-yOcPC.js +79 -0
- package/dist/PremiumUpgradePage.vue_vue_type_script_setup_true_lang-DGAxPOEh.js +58 -0
- package/dist/ProductionRunDetailPage-BaPCJUqT.js +2317 -0
- package/dist/{ProductionRunLifecycleDialogs.vue_vue_type_script_setup_true_lang-BYyiiAWb.js → ProductionRunLifecycleDialogs.vue_vue_type_script_setup_true_lang-CNRX3MYt.js} +3053 -3163
- package/dist/ProductionRunPage-B6Jsv9Hh.js +954 -0
- package/dist/{PublishView-CPK9NeVF.js → PublishView-DonUv6nP.js} +3 -3
- package/dist/{PurchaseOrderPrintPreview-DosqWQeN.js → PurchaseOrderPrintPreview-CK3Cqdwp.js} +17 -17
- package/dist/{ReceiveRequestView-BxSkpK2t.js → ReceiveRequestView-CMAnKxzm.js} +17 -16
- package/dist/RecipeView-Bx13Bckq.js +3272 -0
- package/dist/SettingsView-D1MiAkD8.js +1005 -0
- package/dist/StockView-CsxTjVEd.js +3003 -0
- package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-GdGJCuc0.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-BT73j9SA.js} +1 -1
- package/dist/{SupplierView-BKxKoi_0.js → SupplierView-CFACoZya.js} +304 -301
- package/dist/{SurchargeView-Db4cwhZv.js → SurchargeView-CShhZa3x.js} +7 -7
- package/dist/{SystemTrailDialog.vue_vue_type_script_setup_true_lang-CpkF77Ow.js → SystemTrailDialog.vue_vue_type_script_setup_true_lang-B2OdmdI_.js} +2 -2
- package/dist/TableActionableRow.vue_vue_type_script_setup_true_lang-gJQQKKAC.js +71 -0
- package/dist/TemplatePublishDialog.vue_vue_type_script_setup_true_lang-x3N2Oypo.js +332 -0
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-BISmGBJE.js +4953 -0
- package/dist/TransferTemplateView-kx2IPqEv.js +2347 -0
- package/dist/{UnitCostHistoryView-CqcyjCCd.js → UnitCostHistoryView-DgPWsXaB.js} +4 -4
- package/dist/{UnitDisplayControl.vue_vue_type_script_setup_true_lang-DO80_8SZ.js → UnitDisplayControl.vue_vue_type_script_setup_true_lang-BtfJJgIP.js} +4 -4
- package/dist/{UnitView-BqdK1AM_.js → UnitView-aupXLRMk.js} +111 -106
- package/dist/{WarehouseView-COJM9IXM.js → WarehouseView-MTvbY4n4.js} +12 -11
- package/dist/{WastageTemplateView-DW3viTHN.js → WastageTemplateView-Bs9HL-LK.js} +19 -18
- package/dist/api/bill.d.ts +4 -2
- package/dist/api/bill.spec.d.ts +1 -0
- package/dist/api/closing.d.ts +1 -0
- package/dist/api/feature-flags.d.ts +4 -0
- package/dist/api/integration-sync-log.d.ts +0 -13
- package/dist/api/license.d.ts +0 -2
- package/dist/api/netsuite-explorer.d.ts +1 -0
- package/dist/api/stock.d.ts +1 -1
- package/dist/{app-yvK__CBL.js → app-D38sV2ls.js} +10177 -10126
- package/dist/app.d.ts +151 -164
- package/dist/app.js +1 -1
- package/dist/bulk-edit-simulation.helper-DgniL8FN.js +178 -0
- package/dist/{closing-template-DezidSM0.js → closing-template-D_NAj_mU.js} +4 -4
- package/dist/components/FeatureCapabilityBadge.vue.d.ts +4 -0
- package/dist/components/FeatureCapabilityGate.spec.d.ts +1 -0
- package/dist/components/FeatureCapabilityGate.vue.d.ts +5 -0
- package/dist/components/FeatureGateLayout.vue.d.ts +11 -0
- package/dist/components/FeaturePageGate.spec.d.ts +1 -0
- package/dist/components/FeaturePageGate.vue.d.ts +34 -0
- package/dist/components/FmAdminCollapsiblePanel.vue.d.ts +1 -1
- package/dist/components/FmDroppableField.vue.d.ts +1 -1
- package/dist/components/FmInventoryTableToolbar.vue.d.ts +2 -2
- package/dist/components/FmUnitInputProps.d.ts +1 -0
- package/dist/components/FmUnitInputRules.d.ts +1 -1
- package/dist/components/HrmPermissionGuard.vue.d.ts +1 -1
- package/dist/components/NumberPrecisionInput.spec.d.ts +1 -0
- package/dist/{views/ingredient-group/IngredientGroupView.vue.d.ts → components/PremiumUpgradePage.vue.d.ts} +0 -1
- package/dist/components/TemplatePublishDialog.d.ts +2 -0
- package/dist/components/TemplatePublishDialog.spec.d.ts +1 -0
- package/dist/composable/defineApi.d.ts +1 -1
- package/dist/{date2-2XjepIqc.js → date2-CvgxwuM1.js} +1 -1
- package/dist/{dayjs.min-CNp5DLBB.js → dayjs.min-BOKV8T5Q.js} +1 -1
- package/dist/{decimal-Z7oJdGk8.js → decimal-5xyg1WLu.js} +2 -2
- package/dist/{defineDeepModel-CMxJn_H2.js → defineDeepModel-BwB9XcMu.js} +5 -5
- package/dist/{duplicate-template-BetV5oy_.js → duplicate-template-DvIgjm4K.js} +1 -1
- package/dist/{feature-CkWaZ-5K.js → feature-CsPbMoeJ.js} +2088 -2853
- package/dist/feature-flags/core.d.ts +3 -2
- package/dist/feature-flags/portal-feature-catalog.d.ts +1 -6
- package/dist/feature-flags/portal-feature-catalog.spec.d.ts +1 -0
- package/dist/feature-flags/vue.d.ts +24 -1
- package/dist/feature-flags/vue.spec.d.ts +1 -0
- package/dist/{format-time-from-id-DatSI9uD.js → format-time-from-id-DD6Ik9EK.js} +1 -1
- package/dist/{format-unit-display-DM5We5cx.js → format-unit-display-DG564AN3.js} +209 -208
- package/dist/helper/country.spec.d.ts +1 -0
- package/dist/helper/menu-usage-module.d.ts +2 -1
- package/dist/helper/number.d.ts +5 -1
- package/dist/helper/rules.d.ts +1 -1
- package/dist/{id-to-date-Dxw2jKhy.js → id-to-date-DoN7OM21.js} +1 -1
- package/dist/{import-export.helper-BOmADwUw.js → import-export.helper-CevBRFTZ.js} +17 -17
- package/dist/{index-7fz5sGDO.js → index-BIh1oTQH.js} +3 -3
- package/dist/{index-CIH9NCvs.js → index-BP3Avix6.js} +1 -1
- package/dist/{JsonViewer.vue_vue_type_script_setup_true_lang-ig2zSXAB.js → index-C25C1Dg7.js} +1074 -1066
- package/dist/index-eGvSlWMU.js +1892 -0
- package/dist/{index-ClYgfwW7.js → index-mzXhLwrZ.js} +2234 -2163
- package/dist/layout/SingleColumnLayout.vue.d.ts +1 -1
- package/dist/{lz-string-CCsc2X7t.js → lz-string-DMjWYCk6.js} +1 -1
- package/dist/menu-usage-module-Bq_KLsO4.js +74 -0
- package/dist/{netsuite-COumFXC2.js → netsuite-ZtoZBFBX.js} +254 -263
- package/dist/netsuite-explorer-h_vID_ao.js +79 -0
- package/dist/{predefined-templates-Bw9A9LNA.js → predefined-templates-CdurFRJ4.js} +1 -1
- package/dist/production-run-list-DR1WsaBR.js +61 -0
- package/dist/{purchase-order-template-BaZjdGq8.js → purchase-order-template-BVdCftEo.js} +1 -1
- package/dist/{recalculationUtils-t32wAurN.js → recalculationUtils-DBG8HGiJ.js} +1 -1
- package/dist/router/name.d.ts +2 -2
- package/dist/{row-action.enum-BDeudY4d.js → row-action.enum-CGyAg4dC.js} +1 -1
- package/dist/rules-DbFiOzUd.js +243 -0
- package/dist/{stock-B59sfN28.js → stock-BATH4SoA.js} +1 -1
- package/dist/stock-DXxsDPEO.js +78 -0
- package/dist/stores/feature.d.ts +40 -10
- package/dist/stores/feature.load-state.spec.d.ts +1 -0
- package/dist/stores/inventory.d.ts +0 -47
- package/dist/stores/inventory.no-location.spec.d.ts +1 -0
- package/dist/stores/supplier.d.ts +1 -1
- package/dist/stores/warehouse.d.ts +1 -1
- package/dist/style.css +1 -1
- package/dist/{supplier-DnbLJ_cS.js → supplier-CKXQmBZn.js} +2 -2
- package/dist/{surcharge-C1uE3uQa.js → surcharge-qupRJjjO.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{uom-rules-DjfyrFHJ.js → uom-rules-ALtgjANX.js} +1 -1
- package/dist/{use-ingredient-select-dialog-7A7fWyEH.js → use-ingredient-select-dialog-C1sJpjfV.js} +2 -2
- package/dist/use-inventory-binding-dialog-tl7-epun.js +113 -0
- package/dist/{use-template-enabled-locations-C-Hqqgzt.js → use-template-enabled-locations-DWk2ndDC.js} +2 -2
- package/dist/{use-transfer-locations-CqsXvOI2.js → use-transfer-locations-CsdYY996.js} +14 -14
- package/dist/{useHrmPermission-BzwD3Ctc.js → useHrmPermission-BtuqUrwj.js} +1 -1
- package/dist/{useNavigationMenu-PrZg9HS7.js → useNavigationMenu-DKxKXykI.js} +111 -117
- package/dist/{useSseClient-FCyLWq8k.js → useSseClient-CRfpltKK.js} +1 -1
- package/dist/views/changelog/composables/use-snapshot-diff.d.ts +2 -2
- package/dist/views/closing-draft/composables/use-closing-draft-table.d.ts +1 -1
- package/dist/views/closing-draft/helpers/draft-status-to-class-name.helper.d.ts +1 -1
- package/dist/views/import/helper/submit-rows.d.ts +1 -1
- package/dist/views/ingredients/components/inventory-binding/InventoryBindingForm.vue.d.ts +0 -1
- package/dist/views/ingredients/components/inventory-binding/composables/use-inventory-binding-dialog.d.ts +0 -1
- package/dist/views/ingredients/components/inventory-binding/recipe-amount-validation.spec.d.ts +1 -0
- package/dist/views/ingredients/components/inventory-binding/v2/InventoryBindingFormV2.vue.d.ts +0 -1
- package/dist/views/ingredients/components/inventory-binding/v2/composables/use-inventory-binding-dialog.d.ts +0 -1
- package/dist/views/ingredients/helper/is-linked-ingredient-error.d.ts +3 -1
- package/dist/views/{ingredient-group/components/ingredient-group-rule-field/IngredientGroupRuleField.vue.d.ts → integration/IntegrationPlatformView.vue.d.ts} +11 -24
- package/dist/views/integration/components/Synergy/importFn.spec.d.ts +1 -0
- package/dist/views/integration/components/Xilnex/importFn.spec.d.ts +1 -0
- package/dist/views/integration/helper/opening-balance.d.ts +22 -0
- package/dist/views/integration/helper/opening-balance.spec.d.ts +1 -0
- package/dist/views/production-run/ProductionRunDetailPage.spec.d.ts +1 -0
- package/dist/views/{integration/components/IntegrationSyncLogTab.vue.d.ts → production-run/ProductionRunDetailPage.vue.d.ts} +2 -2
- package/dist/views/production-run/ProductionRunPage.vue.d.ts +2 -0
- package/dist/views/production-run/features/detail/ProductionRunItemsTable.vue.d.ts +2 -2
- package/dist/views/production-run/features/detail/ProductionRunOverviewTab.vue.d.ts +4 -4
- package/dist/views/production-run/features/detail/use-production-run-detail.d.ts +19 -9
- package/dist/views/production-run/features/lifecycle/CancelRunDialog.vue.d.ts +4 -4
- package/dist/views/production-run/features/lifecycle/CloseRunDialog.vue.d.ts +4 -4
- package/dist/views/production-run/features/lifecycle/ProductionRunLifecycleDialogs.vue.d.ts +14 -14
- package/dist/views/production-run/features/lifecycle/TargetReachedDialog.vue.d.ts +4 -4
- package/dist/views/production-run/features/planning/ProductionRunFormDialog.vue.d.ts +4 -4
- package/dist/views/production-run/features/planning/ProductionRunPlanner.vue.d.ts +1 -1
- package/dist/views/production-run/features/planning/use-production-run-duplicate-sources.d.ts +6 -6
- package/dist/views/production-run/shared/helpers/production-run-navigation.d.ts +0 -1
- package/dist/views/production-run/shared/model/production-run-list.d.ts +1 -1
- package/dist/views/production-run/shared/ui/ProductionRunInfoBadge.vue.d.ts +1 -1
- package/dist/views/production-run/shared/ui/ProductionRunInfoText.vue.d.ts +1 -1
- package/dist/views/production-run/shared/ui/ProductionRunScrollHint.vue.d.ts +2 -2
- package/dist/views/production-run/shared/ui/ProductionRunTextarea.vue.d.ts +3 -3
- package/dist/views/receive-request/composables/netsuite-order-label.d.ts +11 -0
- package/dist/views/receive-request/composables/netsuite-order-label.spec.d.ts +1 -0
- package/dist/views/receive-request/composables/use-process-purchase-order.d.ts +1 -1
- package/dist/views/receive-request/composables/use-receive-request-form.d.ts +9 -9
- package/dist/views/receive-request/composables/use-receive-request-form.spec.d.ts +1 -0
- package/dist/views/receive-request/composables/use-receive-request-table.d.ts +7 -7
- package/dist/views/receive-request/import/export.spec.d.ts +1 -0
- package/dist/views/receive-request-bulk/BulkReceiveRequestPage.vue.d.ts +2 -0
- package/dist/views/receive-request-bulk/components/CreateTransferWizard.spec.d.ts +1 -0
- package/dist/views/receive-request-bulk/composables/use-bulk-receive-request-form.d.ts +20 -20
- package/dist/views/receive-request-bulk/composables/use-bulk-receive-request-form.readiness.spec.d.ts +1 -0
- package/dist/views/receive-request-bulk/composables/use-bulk-receive-request-table.d.ts +2 -2
- package/dist/views/recipe/components/recipe-bulk-editor/components/ModificationCard.spec.d.ts +1 -0
- package/dist/views/recipe/helper/bulk-edit-simulation.helper.d.ts +0 -1
- package/dist/views/recipe/helper/import-recipe.d.ts +32 -2
- package/dist/views/recipe/helper/import-recipe.spec.d.ts +1 -0
- package/dist/views/settings/PlanLicenseDisplay.spec.d.ts +1 -0
- package/dist/views/settings/PlanLicenseDisplay.vue.d.ts +2 -0
- package/dist/views/stock/components/StockRecordCard.spec.d.ts +1 -0
- package/dist/views/stock/components/StockRecordCard.vue.d.ts +19 -865
- package/dist/views/stock/components/dialog/AmendAdjustmentForm.spec.d.ts +1 -0
- package/dist/views/stock/components/dialog/BillInventoryInfoDialog.spec.d.ts +1 -0
- package/dist/views/stock/components/dialog/BillInventoryInfoDialog.vue.d.ts +36 -0
- package/dist/views/stock/components/dialog/ConvertSkuDialog.spec.d.ts +1 -0
- package/dist/views/stock/composables/use-last-closing-summary.d.ts +4 -0
- package/dist/views/stock/composables/use-last-closing-summary.spec.d.ts +1 -0
- package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-template-items.spec.d.ts +1 -0
- package/dist/views/transfer-template/helpers/template-item.error.helper.spec.d.ts +1 -0
- package/dist/views/unit/composables/use-unit-form.spec.d.ts +1 -0
- package/dist/views/warehouse/components/WarehouseForm.vue.d.ts +2 -2
- package/dist/vue-CVco8McV.js +290 -0
- package/dist/{vue-i18n-C34f-Tph.js → vue-i18n-C443zpcA.js} +450 -450
- package/dist/{xlsx.util-X4amwe_k.js → xlsx.util-5_47Kslf.js} +2 -2
- package/package.json +71 -66
- package/dist/App-DVHgBTHP.js +0 -1499
- package/dist/BulkReceiveRequestView-DxHWrfbi.js +0 -2656
- package/dist/ClosingHistoryView-kdpYGy1Y.js +0 -761
- package/dist/DeprecateSoonWarningDialog.vue_vue_type_script_setup_true_lang-5Cc08Svt.js +0 -58
- package/dist/FeatureCapabilityBadge.vue_vue_type_script_setup_true_lang-C1C8aDA6.js +0 -61
- package/dist/FmMultiselectDialog-yVPY5aBV.js +0 -77
- package/dist/ImportView-DQrVMzxN.js +0 -1302
- package/dist/IngredientBindedItem.vue_vue_type_script_setup_true_lang-7lT5UZc8.js +0 -51
- package/dist/IngredientGroupView-BMUnEaY7.js +0 -1000
- package/dist/InventoryBindingForm.vue_vue_type_script_setup_true_lang-CaBOK7NC.js +0 -563
- package/dist/NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DzzTPdyF.js +0 -72
- package/dist/ProductionRunDetailView-Cw-ecaey.js +0 -2312
- package/dist/ProductionRunView-C11eseXQ.js +0 -930
- package/dist/RecipeView-oHDWsT0P.js +0 -3624
- package/dist/SettingsView-QlUNwFhM.js +0 -983
- package/dist/StockView-a8LbVZ_7.js +0 -2614
- package/dist/TableActionableRow.vue_vue_type_script_setup_true_lang-DAMpuZ1X.js +0 -84
- package/dist/TemplatePublishDialog.vue_vue_type_script_setup_true_lang-CCCj4WVF.js +0 -299
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-CFNPXqt5.js +0 -4796
- package/dist/TransferTemplateView-CzwxOBMQ.js +0 -2326
- package/dist/menu-usage-module-BdjYEk3s.js +0 -57
- package/dist/number-gSLvxNqA.js +0 -138
- package/dist/portal-feature-catalog-yGIESKTc.js +0 -246
- package/dist/random-CSbEbElR.js +0 -10
- package/dist/rules-C1btu0Md.js +0 -98
- package/dist/stock-BF86TMW0.js +0 -75
- package/dist/use-inventory-binding-dialog-Cc1tjTfV.js +0 -152
- package/dist/usePromise-CbVUCxhj.js +0 -29
- package/dist/views/ingredient-group/components/ingredient-group-dialog/IngredientGroupDialog.vue.d.ts +0 -31
- package/dist/views/ingredient-group/components/ingredient-group-dialog/IngredientGroupDialogProps.d.ts +0 -10
- package/dist/views/ingredient-group/components/ingredient-group-form/IngredientGroupForm.vue.d.ts +0 -21
- package/dist/views/ingredient-group/components/ingredient-group-form/IngredientGroupFormProps.d.ts +0 -12
- package/dist/views/ingredient-group/composables/use-ingredient-group-actions.d.ts +0 -24
- package/dist/views/ingredient-group/composables/use-ingredient-group-rule-item.d.ts +0 -31
- package/dist/views/ingredient-group/composables/use-ingredient-group-table.d.ts +0 -77
- package/dist/views/integration/composables/use-integration-sync-log.d.ts +0 -45
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import { defineComponent as _, resolveComponent as g, createElementBlock as r, openBlock as o, createVNode as v, createElementVNode as c, withCtx as b, toDisplayString as i, Fragment as n, renderList as d, createTextVNode as a, createCommentVNode as x, unref as h } from "vue";
|
|
2
|
-
import { useI18n as k } from "@feedmepos/mf-common";
|
|
3
|
-
const C = { class: "w-[500px] max-h-[60vh] overflow-y-auto" }, N = { class: "font-bold text-neutral-500 mx-1" }, A = { class: "mt-3" }, I = /* @__PURE__ */ _({
|
|
4
|
-
__name: "CannotDelete",
|
|
5
|
-
props: {
|
|
6
|
-
subject: {
|
|
7
|
-
type: String
|
|
8
|
-
},
|
|
9
|
-
items: {
|
|
10
|
-
type: Array,
|
|
11
|
-
default: () => []
|
|
12
|
-
}
|
|
13
|
-
},
|
|
14
|
-
setup(e) {
|
|
15
|
-
const { t } = k();
|
|
16
|
-
return (s, u) => {
|
|
17
|
-
const y = g("i18n-t");
|
|
18
|
-
return o(), r("div", C, [
|
|
19
|
-
v(y, {
|
|
20
|
-
keypath: "inventory.common.usage.body",
|
|
21
|
-
tag: "div"
|
|
22
|
-
}, {
|
|
23
|
-
subject: b(() => [
|
|
24
|
-
c("span", N, i(e.subject), 1)
|
|
25
|
-
]),
|
|
26
|
-
_: 1
|
|
27
|
-
}),
|
|
28
|
-
c("ol", A, [
|
|
29
|
-
(o(!0), r(n, null, d(e.items, (f, p) => (o(), r("li", {
|
|
30
|
-
class: "pl-5 font-bold text-neutral-500",
|
|
31
|
-
key: p
|
|
32
|
-
}, [
|
|
33
|
-
u[0] || (u[0] = a(" • ")),
|
|
34
|
-
(o(!0), r(n, null, d(f.chain, (m, l) => (o(), r(n, { key: l }, [
|
|
35
|
-
l > 0 ? (o(), r(n, { key: 0 }, [
|
|
36
|
-
a(" > ")
|
|
37
|
-
], 64)) : x("", !0),
|
|
38
|
-
a(i(m.itemName) + " (" + i(h(t)(`inventory.common.usage.module.${m.moduleKey}`)) + ")", 1)
|
|
39
|
-
], 64))), 128))
|
|
40
|
-
]))), 128))
|
|
41
|
-
])
|
|
42
|
-
]);
|
|
43
|
-
};
|
|
44
|
-
}
|
|
45
|
-
});
|
|
46
|
-
function R(e) {
|
|
47
|
-
const t = e.errorResponse;
|
|
48
|
-
return !!t && typeof t == "object" && t.error === "VALIDATION_ERROR" && Array.isArray(t.errors) && t.errors.every((s) => typeof s.module == "string" && typeof s.name == "string");
|
|
49
|
-
}
|
|
50
|
-
function j(e) {
|
|
51
|
-
return e.includes("variantCombinations") ? "variant" : e.startsWith("modules.catalog") ? "catalog" : e.startsWith("modules.item") ? "item" : e.startsWith("modules.group") ? "group" : "menu";
|
|
52
|
-
}
|
|
53
|
-
export {
|
|
54
|
-
I as _,
|
|
55
|
-
R as i,
|
|
56
|
-
j as m
|
|
57
|
-
};
|
package/dist/number-gSLvxNqA.js
DELETED
|
@@ -1,138 +0,0 @@
|
|
|
1
|
-
import { w as o } from "./app-yvK__CBL.js";
|
|
2
|
-
import { F as l } from "./decimal-Z7oJdGk8.js";
|
|
3
|
-
import "./dayjs.min-CNp5DLBB.js";
|
|
4
|
-
function g(n, t) {
|
|
5
|
-
return o.convertPrecision({
|
|
6
|
-
value: n,
|
|
7
|
-
precision: t
|
|
8
|
-
});
|
|
9
|
-
}
|
|
10
|
-
function A(n, t) {
|
|
11
|
-
return o.subtract([n, t]);
|
|
12
|
-
}
|
|
13
|
-
function j(n, t) {
|
|
14
|
-
return o.add([n, t]);
|
|
15
|
-
}
|
|
16
|
-
function w(n, t) {
|
|
17
|
-
return o.multiply([n, t]);
|
|
18
|
-
}
|
|
19
|
-
function P(n, t) {
|
|
20
|
-
return o.multiply([n, t]);
|
|
21
|
-
}
|
|
22
|
-
function d(n, t) {
|
|
23
|
-
const r = +s(n), e = +s(t);
|
|
24
|
-
return r / e;
|
|
25
|
-
}
|
|
26
|
-
function F(n, t) {
|
|
27
|
-
n = c(n), t = c(t);
|
|
28
|
-
const r = d(n, t);
|
|
29
|
-
return m(r);
|
|
30
|
-
}
|
|
31
|
-
function N(n, t) {
|
|
32
|
-
return n.precision >= t ? n : o.convertPrecision({ value: n, precision: t });
|
|
33
|
-
}
|
|
34
|
-
function c(n) {
|
|
35
|
-
if (n.amount === 0) return m(0);
|
|
36
|
-
const t = f(n.amount), r = n.precision - t;
|
|
37
|
-
return o.convertPrecision({ value: n, precision: Math.max(0, r) });
|
|
38
|
-
}
|
|
39
|
-
function s(n, t = !0) {
|
|
40
|
-
return t ? Number(n.amount / Math.pow(10, n.precision)).toFixed(n.precision) : Number(n.amount / Math.pow(10, n.precision)).toString();
|
|
41
|
-
}
|
|
42
|
-
function x(n, t) {
|
|
43
|
-
t = t ?? a(n);
|
|
44
|
-
const r = t, e = n.toFixed(r), i = e.includes(".") ? e.replace(/0+$/, "") : e;
|
|
45
|
-
return i.endsWith(".") ? i.slice(0, i.length - 1) : i;
|
|
46
|
-
}
|
|
47
|
-
function M(n, t = !1, r = 2) {
|
|
48
|
-
const e = Number(n.amount / Math.pow(10, n.precision)), i = e.toFixed(
|
|
49
|
-
Number.isInteger(e) ? 2 : Math.min(4, Math.max(2, r))
|
|
50
|
-
);
|
|
51
|
-
return t ? `${i} ${n.currency}` : n.currency === "MYR" ? `RM ${i}` : `${n.currency} ${i}`;
|
|
52
|
-
}
|
|
53
|
-
function y(n) {
|
|
54
|
-
return {
|
|
55
|
-
...n,
|
|
56
|
-
amount: Math.abs(n.amount)
|
|
57
|
-
};
|
|
58
|
-
}
|
|
59
|
-
function a(n) {
|
|
60
|
-
if (!isFinite(n)) return 0;
|
|
61
|
-
let t = 1, r = 0;
|
|
62
|
-
for (; Math.round(n * t) / t !== n; )
|
|
63
|
-
t *= 10, r++;
|
|
64
|
-
return r;
|
|
65
|
-
}
|
|
66
|
-
function m(n) {
|
|
67
|
-
const t = a(n);
|
|
68
|
-
return {
|
|
69
|
-
precision: t,
|
|
70
|
-
amount: n * 10 ** t
|
|
71
|
-
};
|
|
72
|
-
}
|
|
73
|
-
function v(n, t = 0, r = !1) {
|
|
74
|
-
let e = 0;
|
|
75
|
-
return Number.isNaN(Number(n)) || (r || Number(n) >= 0) && (e = Number(n)), {
|
|
76
|
-
amount: Number((e * 10 ** t).toFixed(0)),
|
|
77
|
-
precision: t
|
|
78
|
-
};
|
|
79
|
-
}
|
|
80
|
-
function f(n) {
|
|
81
|
-
const t = `${n}`, r = t.replace(/0*$/g, "");
|
|
82
|
-
return t.length - r.length;
|
|
83
|
-
}
|
|
84
|
-
function D(n, t) {
|
|
85
|
-
if (!t)
|
|
86
|
-
return n.precision;
|
|
87
|
-
const r = f(t.conversion.amount);
|
|
88
|
-
return n.precision - t.conversion.precision + r;
|
|
89
|
-
}
|
|
90
|
-
function $(n, t = {}) {
|
|
91
|
-
if (n == null)
|
|
92
|
-
throw new Error("Value cannot be null or undefined");
|
|
93
|
-
const { minPrecision: r = 2, maxPrecision: e = 2, locale: i = "en-US" } = t;
|
|
94
|
-
if (r > e)
|
|
95
|
-
throw new Error("minPrecision cannot be greater than maxPrecision");
|
|
96
|
-
let u = 0;
|
|
97
|
-
switch (typeof n) {
|
|
98
|
-
case "number": {
|
|
99
|
-
u = n;
|
|
100
|
-
break;
|
|
101
|
-
}
|
|
102
|
-
case "string": {
|
|
103
|
-
u = Number(n);
|
|
104
|
-
break;
|
|
105
|
-
}
|
|
106
|
-
case "object": {
|
|
107
|
-
if (n.amount === void 0 || n.precision === void 0)
|
|
108
|
-
throw new Error("Invalid AdjustmentAmount object");
|
|
109
|
-
u = l.toDouble(n);
|
|
110
|
-
break;
|
|
111
|
-
}
|
|
112
|
-
default:
|
|
113
|
-
throw new Error("Invalid value type");
|
|
114
|
-
}
|
|
115
|
-
return u.toLocaleString(i, {
|
|
116
|
-
minimumFractionDigits: r,
|
|
117
|
-
maximumFractionDigits: e
|
|
118
|
-
});
|
|
119
|
-
}
|
|
120
|
-
export {
|
|
121
|
-
s as a,
|
|
122
|
-
c as b,
|
|
123
|
-
m as c,
|
|
124
|
-
M as d,
|
|
125
|
-
P as e,
|
|
126
|
-
a as f,
|
|
127
|
-
D as g,
|
|
128
|
-
y as h,
|
|
129
|
-
w as i,
|
|
130
|
-
j,
|
|
131
|
-
g as k,
|
|
132
|
-
$ as l,
|
|
133
|
-
A as m,
|
|
134
|
-
x as n,
|
|
135
|
-
F as o,
|
|
136
|
-
v as t,
|
|
137
|
-
N as u
|
|
138
|
-
};
|
|
@@ -1,246 +0,0 @@
|
|
|
1
|
-
import { h as c } from "./feature-CkWaZ-5K.js";
|
|
2
|
-
function d(t) {
|
|
3
|
-
return t;
|
|
4
|
-
}
|
|
5
|
-
function p(t, r) {
|
|
6
|
-
const a = t.release ?? { stage: "ga" }, i = c(r.planTier, t.minimumTier), o = a.stage === "ga" || a.stage === "beta", n = i && o, s = i ? a.stage === "off" ? "This feature is not currently available." : void 0 : `Requires the ${t.minimumTier} plan.`;
|
|
7
|
-
return {
|
|
8
|
-
enabled: n,
|
|
9
|
-
disabled: !n,
|
|
10
|
-
stage: a.stage,
|
|
11
|
-
eligible: o,
|
|
12
|
-
reason: s
|
|
13
|
-
};
|
|
14
|
-
}
|
|
15
|
-
function e(t, r) {
|
|
16
|
-
return {
|
|
17
|
-
key: t,
|
|
18
|
-
minimumTier: r === "premium" ? "premium" : "standard",
|
|
19
|
-
release: { stage: r === "beta" ? "beta" : "ga" }
|
|
20
|
-
};
|
|
21
|
-
}
|
|
22
|
-
const l = [
|
|
23
|
-
{
|
|
24
|
-
key: "total-cost",
|
|
25
|
-
label: "Total Cost",
|
|
26
|
-
category: "premium",
|
|
27
|
-
flagKeys: ["inventory_pos_costing"],
|
|
28
|
-
controls: "Cost history, stock, ingredient, supplier, purchase-order, and template cost UI.",
|
|
29
|
-
definition: e("total-cost", "premium")
|
|
30
|
-
},
|
|
31
|
-
{
|
|
32
|
-
key: "wastage-template",
|
|
33
|
-
label: "Wastage Template",
|
|
34
|
-
category: "premium",
|
|
35
|
-
flagKeys: ["inventory_pos_adjust_v2_wastage"],
|
|
36
|
-
controls: "Wastage navigation, templates, and ingredient template links.",
|
|
37
|
-
definition: e("wastage-template", "premium")
|
|
38
|
-
},
|
|
39
|
-
{
|
|
40
|
-
key: "purchase-order-template",
|
|
41
|
-
label: "Purchase-Order Template",
|
|
42
|
-
category: "premium",
|
|
43
|
-
flagKeys: ["inventory_portal_must_use_transfer_template", "inventory_pos_allow_receive_order"],
|
|
44
|
-
controls: "Template navigation, forms, and ingredient template links.",
|
|
45
|
-
definition: e("purchase-order-template", "premium")
|
|
46
|
-
},
|
|
47
|
-
{
|
|
48
|
-
key: "closing-template",
|
|
49
|
-
label: "Closing Template",
|
|
50
|
-
category: "premium",
|
|
51
|
-
flagKeys: ["inventory_pos_closing_v2"],
|
|
52
|
-
controls: "Closing Template, Closing Draft, and ingredient template links.",
|
|
53
|
-
definition: e("closing-template", "premium")
|
|
54
|
-
},
|
|
55
|
-
{
|
|
56
|
-
key: "ingredient-group",
|
|
57
|
-
label: "Ingredient Group",
|
|
58
|
-
category: "standard",
|
|
59
|
-
deprecateSoon: !0,
|
|
60
|
-
controls: "Ingredient Group navigation and recipe group selection.",
|
|
61
|
-
definition: e("ingredient-group", "standard")
|
|
62
|
-
},
|
|
63
|
-
{
|
|
64
|
-
key: "production-runs",
|
|
65
|
-
label: "Production Runs",
|
|
66
|
-
category: "beta",
|
|
67
|
-
controls: "Production navigation, routes, and detail view.",
|
|
68
|
-
definition: e("production-runs", "beta")
|
|
69
|
-
},
|
|
70
|
-
{
|
|
71
|
-
key: "bulk-receive-transfer",
|
|
72
|
-
label: "Bulk Receive / Transfer",
|
|
73
|
-
category: "beta",
|
|
74
|
-
controls: "Purchase / Transfer in (New) navigation and bulk receive page.",
|
|
75
|
-
definition: e("bulk-receive-transfer", "beta")
|
|
76
|
-
},
|
|
77
|
-
{
|
|
78
|
-
key: "surcharge",
|
|
79
|
-
label: "Surcharge",
|
|
80
|
-
category: "beta",
|
|
81
|
-
controls: "Surcharge navigation and management page.",
|
|
82
|
-
definition: e("surcharge", "beta")
|
|
83
|
-
},
|
|
84
|
-
{
|
|
85
|
-
key: "bulk-import",
|
|
86
|
-
label: "Bulk Import",
|
|
87
|
-
category: "standard",
|
|
88
|
-
controls: "Import navigation and import page.",
|
|
89
|
-
definition: e("bulk-import", "standard")
|
|
90
|
-
},
|
|
91
|
-
{
|
|
92
|
-
key: "custom-po-cost",
|
|
93
|
-
label: "Custom PO Cost",
|
|
94
|
-
category: "premium",
|
|
95
|
-
flagKeys: ["inventory_purchase_order_custom_cost"],
|
|
96
|
-
controls: "Delivery-order create/edit cost override controls.",
|
|
97
|
-
definition: e("custom-po-cost", "premium")
|
|
98
|
-
},
|
|
99
|
-
{
|
|
100
|
-
key: "po-cost-edit",
|
|
101
|
-
label: "PO Cost Edit",
|
|
102
|
-
category: "premium",
|
|
103
|
-
flagKeys: ["inventory_purchase_order_cost_edit"],
|
|
104
|
-
controls: "Purchase/transfer item cost editing.",
|
|
105
|
-
definition: e("po-cost-edit", "premium")
|
|
106
|
-
},
|
|
107
|
-
{
|
|
108
|
-
key: "po-price-adjustment",
|
|
109
|
-
label: "PO Price Adjustment",
|
|
110
|
-
category: "premium",
|
|
111
|
-
flagKeys: ["inventory_purchase_order_price_adjustment"],
|
|
112
|
-
controls: "Purchase-order price-adjustment editor and list.",
|
|
113
|
-
definition: e("po-price-adjustment", "premium")
|
|
114
|
-
},
|
|
115
|
-
{
|
|
116
|
-
key: "unit-cost-recalculation",
|
|
117
|
-
label: "Unit Cost / Recalculation",
|
|
118
|
-
category: "premium",
|
|
119
|
-
flagKeys: ["inventory_pos_closing_recalculation"],
|
|
120
|
-
controls: "Unit Cost History and recalculation dialog.",
|
|
121
|
-
definition: e("unit-cost-recalculation", "premium")
|
|
122
|
-
},
|
|
123
|
-
{
|
|
124
|
-
key: "backdated-po",
|
|
125
|
-
label: "Backdated PO",
|
|
126
|
-
category: "premium",
|
|
127
|
-
flagKeys: ["inventory_purchase_order_backdate", "inventory_backdate_receive"],
|
|
128
|
-
controls: "Purchase/transfer date controls and list columns.",
|
|
129
|
-
definition: e("backdated-po", "premium")
|
|
130
|
-
},
|
|
131
|
-
{
|
|
132
|
-
key: "po-email",
|
|
133
|
-
label: "PO Email",
|
|
134
|
-
category: "beta",
|
|
135
|
-
controls: "Purchase-order email actions.",
|
|
136
|
-
definition: e("po-email", "beta")
|
|
137
|
-
},
|
|
138
|
-
{
|
|
139
|
-
key: "print-templates",
|
|
140
|
-
label: "Print Templates",
|
|
141
|
-
category: "beta",
|
|
142
|
-
controls: "Custom purchase-order print actions.",
|
|
143
|
-
definition: e("print-templates", "beta")
|
|
144
|
-
},
|
|
145
|
-
{
|
|
146
|
-
key: "recipe-v2",
|
|
147
|
-
label: "Recipe V2",
|
|
148
|
-
category: "beta",
|
|
149
|
-
controls: "Recipe V2 fields and alternatives controls.",
|
|
150
|
-
definition: e("recipe-v2", "beta")
|
|
151
|
-
},
|
|
152
|
-
{
|
|
153
|
-
key: "recipe-bulk-edit",
|
|
154
|
-
label: "Recipe Bulk Edit",
|
|
155
|
-
category: "beta",
|
|
156
|
-
controls: "Recipe bulk-editor action and dialog.",
|
|
157
|
-
definition: e("recipe-bulk-edit", "beta")
|
|
158
|
-
},
|
|
159
|
-
{
|
|
160
|
-
key: "supplier-preparation-time",
|
|
161
|
-
label: "Supplier Preparation Time",
|
|
162
|
-
category: "beta",
|
|
163
|
-
controls: "Supplier and warehouse preparation-time fields.",
|
|
164
|
-
definition: e("supplier-preparation-time", "beta")
|
|
165
|
-
},
|
|
166
|
-
{
|
|
167
|
-
key: "xilnex-transfer-note",
|
|
168
|
-
label: "Xilnex Transfer Note",
|
|
169
|
-
category: "beta",
|
|
170
|
-
controls: "Purchase/transfer columns and Xilnex upload actions.",
|
|
171
|
-
definition: e("xilnex-transfer-note", "beta")
|
|
172
|
-
},
|
|
173
|
-
{
|
|
174
|
-
key: "purchase-order-v2",
|
|
175
|
-
label: "Purchase-Order V2 / Operate V2",
|
|
176
|
-
category: "premium",
|
|
177
|
-
flagKeys: ["inventory_portal_purchase_order_v2"],
|
|
178
|
-
controls: "All Premium plans use the new purchase-order workflow.",
|
|
179
|
-
definition: e("purchase-order-v2", "premium")
|
|
180
|
-
},
|
|
181
|
-
{
|
|
182
|
-
key: "transfer-fulfillment",
|
|
183
|
-
label: "Transfer Fulfillment",
|
|
184
|
-
category: "beta",
|
|
185
|
-
controls: "Transfer form fulfillment behavior.",
|
|
186
|
-
definition: e("transfer-fulfillment", "beta")
|
|
187
|
-
},
|
|
188
|
-
{
|
|
189
|
-
key: "po-workflow-completion",
|
|
190
|
-
label: "PO Workflow Completion",
|
|
191
|
-
category: "beta",
|
|
192
|
-
controls: "Mark-as-completed purchase-order action.",
|
|
193
|
-
definition: e("po-workflow-completion", "beta")
|
|
194
|
-
},
|
|
195
|
-
{
|
|
196
|
-
key: "opening-migration",
|
|
197
|
-
label: "Xilnex / Synergy Opening Migration",
|
|
198
|
-
category: "beta",
|
|
199
|
-
controls: "Xilnex and Synergy migration views.",
|
|
200
|
-
definition: e("opening-migration", "beta")
|
|
201
|
-
},
|
|
202
|
-
{
|
|
203
|
-
key: "netsuite-transfer-out",
|
|
204
|
-
label: "NetSuite Transfer Out",
|
|
205
|
-
category: "beta",
|
|
206
|
-
controls: "NetSuite integration transfer-out functionality.",
|
|
207
|
-
definition: e("netsuite-transfer-out", "beta")
|
|
208
|
-
},
|
|
209
|
-
{
|
|
210
|
-
key: "delivery-order-write",
|
|
211
|
-
label: "Delivery-Order Write",
|
|
212
|
-
category: "beta",
|
|
213
|
-
controls: "Delivery-order create/write UI.",
|
|
214
|
-
definition: e("delivery-order-write", "beta")
|
|
215
|
-
},
|
|
216
|
-
{
|
|
217
|
-
key: "custom-attributes",
|
|
218
|
-
label: "Custom Attributes",
|
|
219
|
-
category: "standard",
|
|
220
|
-
controls: "Inventory custom-attribute controls.",
|
|
221
|
-
definition: e("custom-attributes", "standard")
|
|
222
|
-
},
|
|
223
|
-
{
|
|
224
|
-
key: "legacy-receiving",
|
|
225
|
-
label: "Legacy Warehouse / Manual Receiving",
|
|
226
|
-
category: "standard",
|
|
227
|
-
deprecateSoon: !0,
|
|
228
|
-
controls: "Legacy receive-flow behavior.",
|
|
229
|
-
definition: e("legacy-receiving", "standard")
|
|
230
|
-
}
|
|
231
|
-
];
|
|
232
|
-
function m(t) {
|
|
233
|
-
return l.find((r) => r.key === t);
|
|
234
|
-
}
|
|
235
|
-
function g(t) {
|
|
236
|
-
return l.find((r) => {
|
|
237
|
-
var a;
|
|
238
|
-
return (a = r.flagKeys) == null ? void 0 : a.includes(t);
|
|
239
|
-
});
|
|
240
|
-
}
|
|
241
|
-
export {
|
|
242
|
-
g as a,
|
|
243
|
-
d,
|
|
244
|
-
p as e,
|
|
245
|
-
m as g
|
|
246
|
-
};
|
package/dist/random-CSbEbElR.js
DELETED
package/dist/rules-C1btu0Md.js
DELETED
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
import { c as f, a as u, g as d, b as m } from "./number-gSLvxNqA.js";
|
|
2
|
-
import { c as b, d as p } from "./date2-2XjepIqc.js";
|
|
3
|
-
function M() {
|
|
4
|
-
return function(e) {
|
|
5
|
-
return !!e || "Required";
|
|
6
|
-
};
|
|
7
|
-
}
|
|
8
|
-
function s(n) {
|
|
9
|
-
return n && typeof n == "object" && Object.prototype.hasOwnProperty.call(n, "amount") && Object.prototype.hasOwnProperty.call(n, "precision");
|
|
10
|
-
}
|
|
11
|
-
function A(n, e) {
|
|
12
|
-
const o = typeof n == "object" ? +u(n) : n;
|
|
13
|
-
function i(t) {
|
|
14
|
-
return Object.prototype.hasOwnProperty.call(t, "length");
|
|
15
|
-
}
|
|
16
|
-
return function(r) {
|
|
17
|
-
return s(r) && (r = +u(r)), Number.isFinite(+r) && (r = +r), i(r) ? r.length >= o ? !0 : typeof e == "function" ? e(r.length) : e ?? `Must be at least ${o}` : typeof r == "number" ? r >= o ? !0 : typeof e == "function" ? e(r) : e ?? `Must be at least ${o}` : `Cannot validate at least ${o}`;
|
|
18
|
-
};
|
|
19
|
-
}
|
|
20
|
-
function $(n) {
|
|
21
|
-
const e = typeof n == "object" ? +u(n) : n;
|
|
22
|
-
function o(i) {
|
|
23
|
-
return Object.prototype.hasOwnProperty.call(i, "length");
|
|
24
|
-
}
|
|
25
|
-
return function(t, r) {
|
|
26
|
-
return s(t) && (t = +u(t)), o(t) ? t.length > e ? !0 : typeof r == "function" ? r(t.length) : r ?? `Must be more than ${e}` : typeof t == "number" ? t > e ? !0 : typeof r == "function" ? r(t) : r ?? `Must be more than ${e}` : `Cannot validate more than ${e}`;
|
|
27
|
-
};
|
|
28
|
-
}
|
|
29
|
-
function P(n, e) {
|
|
30
|
-
return n instanceof Date && e instanceof Date ? function(i) {
|
|
31
|
-
const t = new Date(i);
|
|
32
|
-
return isNaN(t.getTime()) ? "Invalid date" : t.getTime() < n.getTime() ? `Date must be at least ${b(n)} ${p(n)}` : t.getTime() >= e.getTime() ? `Date must be less than ${b(e)} ${p(e)}` : !0;
|
|
33
|
-
} : typeof n == "number" && typeof e == "number" ? function(i) {
|
|
34
|
-
const t = +i;
|
|
35
|
-
return isNaN(t) ? "Invalid number" : t < n ? `Value must be at least ${n}` : t >= e ? `Value must be less than ${e}` : !0;
|
|
36
|
-
} : function() {
|
|
37
|
-
return "Progamming error: invalid range parameter.";
|
|
38
|
-
};
|
|
39
|
-
}
|
|
40
|
-
function c() {
|
|
41
|
-
return function(n) {
|
|
42
|
-
if (n = String(n), n.length === 0)
|
|
43
|
-
return !0;
|
|
44
|
-
const e = +n;
|
|
45
|
-
return isFinite(e) || "Must be a number";
|
|
46
|
-
};
|
|
47
|
-
}
|
|
48
|
-
function j(n, e) {
|
|
49
|
-
return typeof n == "number" ? function(i) {
|
|
50
|
-
const t = c()(i);
|
|
51
|
-
return typeof t == "string" ? t : f(+i).precision > n ? `Precision cannot be more than ${n} decimal point.` : !0;
|
|
52
|
-
} : function(i) {
|
|
53
|
-
const t = c()(i);
|
|
54
|
-
if (typeof t == "string")
|
|
55
|
-
return t;
|
|
56
|
-
const r = d(n, e);
|
|
57
|
-
return f(+i).precision > r ? `Precision cannot be more than ${r} decimal point.` : !0;
|
|
58
|
-
};
|
|
59
|
-
}
|
|
60
|
-
function g(n, e) {
|
|
61
|
-
return function(i) {
|
|
62
|
-
const t = c()(i);
|
|
63
|
-
if (typeof t == "string")
|
|
64
|
-
return t;
|
|
65
|
-
const r = f(+i);
|
|
66
|
-
return r.precision > n ? typeof e == "function" ? e(r.precision) : e ?? `Precision cannot be more than ${n}` : !0;
|
|
67
|
-
};
|
|
68
|
-
}
|
|
69
|
-
function D(n, e, o) {
|
|
70
|
-
return function(t) {
|
|
71
|
-
if (t === e) return !0;
|
|
72
|
-
const r = n.find((a) => a.value === t);
|
|
73
|
-
return r ? o ? o(r) : `Already used in ${r.label}` : !0;
|
|
74
|
-
};
|
|
75
|
-
}
|
|
76
|
-
function N(n) {
|
|
77
|
-
let e = typeof n == "number" ? f(n) : n;
|
|
78
|
-
e = m(e);
|
|
79
|
-
const o = u(e);
|
|
80
|
-
return function(t) {
|
|
81
|
-
if (!s(t)) {
|
|
82
|
-
if (t = +t, Number.isNaN(t)) return !0;
|
|
83
|
-
t = f(t);
|
|
84
|
-
}
|
|
85
|
-
return t = m(t), t.amount % e.amount === 0 && t.precision <= e.precision ? !0 : `${u(t)} must be a multiple of ${o}`;
|
|
86
|
-
};
|
|
87
|
-
}
|
|
88
|
-
export {
|
|
89
|
-
A,
|
|
90
|
-
P as B,
|
|
91
|
-
c as I,
|
|
92
|
-
j as M,
|
|
93
|
-
M as R,
|
|
94
|
-
D as U,
|
|
95
|
-
N as a,
|
|
96
|
-
g as b,
|
|
97
|
-
$ as c
|
|
98
|
-
};
|
package/dist/stock-BF86TMW0.js
DELETED
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
import { u as i } from "./stock-B59sfN28.js";
|
|
2
|
-
import { a as s, Y as p } from "./app-yvK__CBL.js";
|
|
3
|
-
import { computed as k, ref as B } from "vue";
|
|
4
|
-
import { c as d } from "./number-gSLvxNqA.js";
|
|
5
|
-
function m() {
|
|
6
|
-
return {
|
|
7
|
-
stockBalance: {
|
|
8
|
-
_id: "",
|
|
9
|
-
items: []
|
|
10
|
-
},
|
|
11
|
-
productBalance: []
|
|
12
|
-
};
|
|
13
|
-
}
|
|
14
|
-
const v = d(0), f = {
|
|
15
|
-
id: "",
|
|
16
|
-
balance: v,
|
|
17
|
-
closing: null,
|
|
18
|
-
costs: null
|
|
19
|
-
}, n = B(m()), w = () => {
|
|
20
|
-
const r = s(), u = k(() => {
|
|
21
|
-
var a;
|
|
22
|
-
const o = (a = n.value.stockBalance.skus) == null ? void 0 : a.groupBy((t) => t.id), e = (t) => {
|
|
23
|
-
var c;
|
|
24
|
-
return ((c = o == null ? void 0 : o.get(t)) == null ? void 0 : c[0]) ?? { ...f, id: t };
|
|
25
|
-
};
|
|
26
|
-
return r.skus.map((t) => e(t._id));
|
|
27
|
-
}), l = i();
|
|
28
|
-
return {
|
|
29
|
-
// state
|
|
30
|
-
get stockBalance() {
|
|
31
|
-
return {
|
|
32
|
-
...n.value.stockBalance,
|
|
33
|
-
skus: u.value
|
|
34
|
-
};
|
|
35
|
-
},
|
|
36
|
-
set stockBalance(o) {
|
|
37
|
-
n.value.stockBalance = o;
|
|
38
|
-
},
|
|
39
|
-
get productBalance() {
|
|
40
|
-
return n.value.productBalance;
|
|
41
|
-
},
|
|
42
|
-
set productBalance(o) {
|
|
43
|
-
n.value.productBalance = o;
|
|
44
|
-
},
|
|
45
|
-
// actions
|
|
46
|
-
async readStockBalance() {
|
|
47
|
-
this.stockBalance = await l.readStockBalance();
|
|
48
|
-
},
|
|
49
|
-
async readProductBalance() {
|
|
50
|
-
this.productBalance = [];
|
|
51
|
-
const o = s(), e = p({
|
|
52
|
-
recipes: o.recipes,
|
|
53
|
-
skus: o.skus,
|
|
54
|
-
skuGroups: o.skuGroups,
|
|
55
|
-
inventoryBindingMapping: {},
|
|
56
|
-
stockBalance: this.stockBalance
|
|
57
|
-
// silent: true
|
|
58
|
-
});
|
|
59
|
-
function a(t, c) {
|
|
60
|
-
return Object.prototype.hasOwnProperty.call(t, c);
|
|
61
|
-
}
|
|
62
|
-
for (const t in e.convertCountdown)
|
|
63
|
-
if (a(e.convertCountdown, t)) {
|
|
64
|
-
const c = e.convertCountdown[t];
|
|
65
|
-
this.productBalance.push({
|
|
66
|
-
id: t,
|
|
67
|
-
count: c
|
|
68
|
-
});
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
};
|
|
72
|
-
};
|
|
73
|
-
export {
|
|
74
|
-
w as u
|
|
75
|
-
};
|