@feedmepos/mf-inventory-portal 1.8.0-dev.8 → 1.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{App-C8i7vBxz.js → App-BPdZMhM8.js} +515 -536
- package/dist/{ApprovalView-GHgTeCBV.js → ApprovalView-UzjSuZ2L.js} +26 -25
- package/dist/{BindingsDialog-C4-S2CWk.js → BindingsDialog-Cb6WRlKq.js} +2 -2
- package/dist/{BindingsPicker-C7YUArBj.js → BindingsPicker-CtD4U4lv.js} +2 -2
- package/dist/{BindingsTable-1Zoqi4ZS.js → BindingsTable-CX-3403K.js} +10 -10
- package/dist/BulkReceiveRequestPage-CUq1Lmww.js +2839 -0
- package/dist/{ChangeLocationComponent.vue_vue_type_script_setup_true_lang-DFSg0-gv.js → ChangeLocationComponent.vue_vue_type_script_setup_true_lang-C5cA-lGH.js} +1 -1
- package/dist/{ClosingDraftView-CnWFyWSE.js → ClosingDraftView-Ca_SvdWQ.js} +748 -746
- package/dist/{ClosingHistoryView-Bkm0voU6.js → ClosingHistoryView-DzkeJYoe.js} +7 -7
- package/dist/{ClosingTemplateView-Bz81JTsg.js → ClosingTemplateView-DSrelbso.js} +22 -21
- package/dist/{CustomPrintTemplatePreview.vue_vue_type_script_setup_true_lang-6s-24euf.js → CustomPrintTemplatePreview.vue_vue_type_script_setup_true_lang-BuOuXPy1.js} +1 -1
- package/dist/{DefaultView-1RRzbPB3.js → DefaultView-Dw-7Y8vD.js} +2 -2
- package/dist/{DeliveryOrderPrintPreview-KcLqjOj1.js → DeliveryOrderPrintPreview-C5qJsv_O.js} +15 -15
- package/dist/{EmailDialog.vue_vue_type_script_setup_true_lang-r0Q0qhoK.js → EmailDialog.vue_vue_type_script_setup_true_lang-D8od7aKT.js} +9847 -9723
- package/dist/{FeatureCapabilityBadge.vue_vue_type_script_setup_true_lang-Cwmk3NLS.js → FeatureCapabilityBadge.vue_vue_type_script_setup_true_lang-ChekXW32.js} +11 -10
- package/dist/FeatureCapabilityGate-C-IM5_7n.js +82 -0
- package/dist/FeaturePageGate.vue_vue_type_script_setup_true_lang-DEDU1XUC.js +189 -0
- package/dist/{FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-pzIzIWpX.js → FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-B861gqIJ.js} +1 -1
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-B6cFB4vX.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-Ckli_nZx.js} +2 -2
- package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-D_o6pX9i.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-BEjFoMJJ.js} +2 -2
- package/dist/{FmMultiselectDialog-CC_Na_p1.js → FmMultiselectDialog-CShFKSIW.js} +2 -2
- package/dist/{FmMultiselectDialog-D0GhmOQ9.js → FmMultiselectDialog-Ci-6NMsV.js} +2 -2
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-DQlSMRoB.js → FmUnitInput.vue_vue_type_script_setup_true_lang-Dkx5vVap.js} +105 -99
- package/dist/ImportView-7ij7RUHI.js +1540 -0
- package/dist/{IngredientsView-B2I2OPSb.js → IngredientsView-fIPtTyFD.js} +367 -365
- package/dist/{IntegrationExplorerView-WK1EmwLA.js → IntegrationExplorerView-DLYT4T-I.js} +1537 -1620
- package/dist/IntegrationPlatformView-CwywuK_y.js +13385 -0
- package/dist/{IntegrationView-CeaL92Yj.js → IntegrationView-DnyVHXge.js} +2380 -2340
- package/dist/{InventoryBindingForm-DgtaDM0I.js → InventoryBindingForm-BBs8v7CL.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-CqDN355J.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang--pI5wz_M.js} +134 -134
- package/dist/{InventoryBindingSummary-C_W456aj.js → InventoryBindingSummary-CwIrQ8lG.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-DJSbskyn.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-D6-lo7iI.js → PlanUpgradeDialog.vue_vue_type_script_setup_true_lang-0F-yOcPC.js} +1 -1
- package/dist/PremiumUpgradePage.vue_vue_type_script_setup_true_lang-DGAxPOEh.js +58 -0
- package/dist/ProductionRunDetailPage-C_WC4qfP.js +2317 -0
- package/dist/{ProductionRunLifecycleDialogs.vue_vue_type_script_setup_true_lang-DwBY6gIb.js → ProductionRunLifecycleDialogs.vue_vue_type_script_setup_true_lang-BIkoMOM2.js} +3051 -3161
- package/dist/ProductionRunPage-DuzVrjbZ.js +954 -0
- package/dist/{PublishView-Dv-W6ntx.js → PublishView-BVg44yke.js} +3 -3
- package/dist/{PurchaseOrderPrintPreview-D1TAnJd_.js → PurchaseOrderPrintPreview-CNx6unyj.js} +17 -17
- package/dist/{ReceiveRequestView-Rc_uw_Ad.js → ReceiveRequestView-DeNrYOUt.js} +17 -16
- package/dist/RecipeView-De3pLsPR.js +3272 -0
- package/dist/{SettingsView-K5wAt8oo.js → SettingsView-B5ud0KtI.js} +398 -425
- package/dist/StockView-4N3NRjY8.js +3003 -0
- package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-CsRLy0xI.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-DvlRRKdt.js} +1 -1
- package/dist/{SupplierView-CLVupRN0.js → SupplierView-fC9oe5nu.js} +21 -20
- package/dist/{SurchargeView-CToB_z5v.js → SurchargeView-H6rv7u8A.js} +7 -7
- package/dist/{SystemTrailDialog.vue_vue_type_script_setup_true_lang-CvqIw9q6.js → SystemTrailDialog.vue_vue_type_script_setup_true_lang-DFdrmR2Z.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-BivHE94R.js +332 -0
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-Df01LqHp.js +4953 -0
- package/dist/TransferTemplateView-CVUnofkI.js +2347 -0
- package/dist/{UnitCostHistoryView-BMB2MeTh.js → UnitCostHistoryView-DjD2WAFI.js} +4 -4
- package/dist/{UnitDisplayControl.vue_vue_type_script_setup_true_lang-Dn8Y8zfp.js → UnitDisplayControl.vue_vue_type_script_setup_true_lang-CE0zHU6c.js} +4 -4
- package/dist/{UnitView-Bl8jws6R.js → UnitView-DCfsbE8e.js} +111 -106
- package/dist/{WarehouseView-BurSM1jg.js → WarehouseView-BCebmbcj.js} +12 -11
- package/dist/{WastageTemplateView-DRfJ9LGR.js → WastageTemplateView-BXYNMBun.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 +2 -0
- package/dist/api/integration-sync-log.d.ts +0 -13
- package/dist/api/inventory.d.ts +9 -9
- package/dist/api/license.d.ts +0 -1
- package/dist/api/netsuite-explorer.d.ts +1 -0
- package/dist/api/stock.d.ts +1 -1
- package/dist/{app-Duum3eHx.js → app-VtVYHCDF.js} +9785 -9546
- package/dist/app.d.ts +151 -14
- package/dist/app.js +1 -1
- package/dist/bulk-edit-simulation.helper-Nd6CtWGf.js +178 -0
- package/dist/{closing-template-BE41yfue.js → closing-template-LCe0U9w9.js} +4 -4
- package/dist/components/FeatureCapabilityGate.vue.d.ts +3 -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/MultiLocationSelector.vue.d.ts +6 -6
- package/dist/components/NumberPrecisionInput.spec.d.ts +1 -0
- package/dist/components/PremiumUpgradePage.vue.d.ts +2 -0
- 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-DrhO3BxU.js → date2-Cfb6DXM4.js} +1 -1
- package/dist/{dayjs.min-CQp6EpOp.js → dayjs.min-BOndKK7B.js} +1 -1
- package/dist/{decimal-Cq0qUT4r.js → decimal-nbuisP61.js} +2 -2
- package/dist/{defineDeepModel-DRC39nJs.js → defineDeepModel-DKySrdwp.js} +5 -5
- package/dist/{duplicate-template-j2ymeDNH.js → duplicate-template-BxcKb3Jp.js} +1 -1
- package/dist/{feature-C0hQza5A.js → feature-VDUlSvM1.js} +435 -359
- package/dist/feature-flags/core.d.ts +1 -0
- package/dist/feature-flags/vue.d.ts +22 -1
- package/dist/{format-time-from-id-BmJoI3jT.js → format-time-from-id-CfVH4LZ_.js} +1 -1
- package/dist/{format-unit-display-CRgIMXsD.js → format-unit-display-BjTeAtgS.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-CuFZDvIr.js → id-to-date-Jr9SlHLO.js} +1 -1
- package/dist/{import-export.helper-B43zbsbj.js → import-export.helper-FT9Wbigh.js} +17 -17
- package/dist/{index-BYDjs08n.js → index-BV9b3Ulp.js} +2234 -2163
- package/dist/{index-DXNYZeq3.js → index-By5-VjVg.js} +1 -1
- package/dist/{JsonViewer.vue_vue_type_script_setup_true_lang-ig2zSXAB.js → index-C25C1Dg7.js} +1074 -1066
- package/dist/{index-Cwvg7EHd.js → index-DXHVgUHU.js} +3 -3
- package/dist/index-eGvSlWMU.js +1892 -0
- package/dist/layout/SingleColumnLayout.vue.d.ts +1 -1
- package/dist/{lz-string-6DgW1cPF.js → lz-string-BAzqO9xf.js} +1 -1
- package/dist/menu-usage-module-Bq_KLsO4.js +74 -0
- package/dist/{netsuite-BSpmyaE1.js → netsuite-BhGuduqd.js} +254 -263
- package/dist/netsuite-explorer-9Qj7qAum.js +79 -0
- package/dist/{predefined-templates-C0jtb4T7.js → predefined-templates-BlRafgnc.js} +1 -1
- package/dist/production-run-list-DR1WsaBR.js +61 -0
- package/dist/{purchase-order-template-B5Pjddfi.js → purchase-order-template-By_Zxu1b.js} +1 -1
- package/dist/{recalculationUtils-DtJWwWSj.js → recalculationUtils-VsBar7jB.js} +1 -1
- package/dist/router/name.d.ts +2 -1
- package/dist/{row-action.enum-BDDJNSi0.js → row-action.enum-76yLYmPA.js} +1 -1
- package/dist/rules-fOcvgt4t.js +243 -0
- package/dist/{stock-BKMDvf5S.js → stock-C-dQaxY2.js} +1 -1
- package/dist/stock-Dh0KXA1P.js +78 -0
- package/dist/stores/feature.d.ts +26 -2
- package/dist/stores/feature.load-state.spec.d.ts +1 -0
- package/dist/stores/integration/netsuite.d.ts +2 -2
- package/dist/stores/inventory.no-location.spec.d.ts +1 -0
- package/dist/stores/location.d.ts +42 -42
- package/dist/stores/supplier.d.ts +48 -48
- package/dist/stores/warehouse.d.ts +2 -2
- package/dist/style.css +1 -1
- package/dist/{supplier-Cv8HRNou.js → supplier-XHHHN8vZ.js} +2 -2
- package/dist/{surcharge-ktE1pRyy.js → surcharge-0-oBiYoF.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{uom-rules-DCnXmEkb.js → uom-rules-DrRuSFgM.js} +1 -1
- package/dist/{use-ingredient-select-dialog-CYUUVrCI.js → use-ingredient-select-dialog-mQ7aQChK.js} +2 -2
- package/dist/{use-inventory-binding-dialog-Dugj9i-6.js → use-inventory-binding-dialog-5Wu0ItnH.js} +2 -2
- package/dist/{use-template-enabled-locations-BlZ7WAqX.js → use-template-enabled-locations-CgpPMl8g.js} +2 -2
- package/dist/{use-transfer-locations-CUDFnsVH.js → use-transfer-locations-DZ6B7eMT.js} +14 -14
- package/dist/{useHrmPermission-BOwmXi9H.js → useHrmPermission-BaGxz4EV.js} +1 -1
- package/dist/{useNavigationMenu-CbNKFBwx.js → useNavigationMenu-CyP39v3U.js} +39 -39
- package/dist/{useSseClient-CdyQh47h.js → useSseClient-CaD4MVg0.js} +1 -1
- package/dist/views/adjustment-template/wastage-template/actions.d.ts +36 -36
- package/dist/views/adjustment-template/wastage-template/table.d.ts +36 -36
- package/dist/views/changelog/composables/use-snapshot-diff.d.ts +2 -2
- package/dist/views/closing-draft/components/closing-draft-dialog/ClosingDraftApprovalDialog.vue.d.ts +6 -6
- package/dist/views/closing-draft/components/closing-draft-dialog/ClosingDraftDialog.vue.d.ts +12 -12
- package/dist/views/closing-draft/components/closing-draft-groups/ClosingGroupDetailSideSheet.vue.d.ts +6 -6
- package/dist/views/closing-draft/composables/use-closing-draft-import.d.ts +3 -3
- package/dist/views/closing-draft/composables/use-closing-draft-table.d.ts +19 -19
- package/dist/views/closing-draft/helpers/draft-status-to-class-name.helper.d.ts +1 -1
- package/dist/views/closing-template/composables/use-closing-template-actions.d.ts +45 -45
- package/dist/views/closing-template/composables/use-closing-template-table.d.ts +36 -36
- package/dist/views/import/helper/submit-rows.d.ts +1 -1
- package/dist/views/ingredients/components/inventory-binding/recipe-amount-validation.spec.d.ts +1 -0
- package/dist/views/ingredients/helper/is-linked-ingredient-error.d.ts +3 -1
- package/dist/views/integration/IntegrationPlatformView.vue.d.ts +24 -0
- package/dist/views/integration/components/IntegrationCard.vue.d.ts +3 -3
- 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/components/netsuite/business/AddLocationDialog.vue.d.ts +36 -36
- package/dist/views/integration/components/netsuite/business/AddVendorDialog.vue.d.ts +24 -24
- 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/components/transfer-form/TransferFormWithController.vue.d.ts +5 -5
- 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 +6 -6
- package/dist/views/receive-request/composables/use-receive-request-form.d.ts +48 -48
- 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 +42 -42
- 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 +54 -54
- 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 +8 -8
- package/dist/views/recipe/components/recipe-bulk-editor/components/ModificationCard.spec.d.ts +1 -0
- package/dist/views/recipe/helper/import-recipe.d.ts +30 -0
- package/dist/views/recipe/helper/import-recipe.spec.d.ts +1 -0
- package/dist/views/settings/PlanLicenseDisplay.vue.d.ts +1 -14
- 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/supplier/components/SupplierForm.vue.d.ts +4 -4
- package/dist/views/supplier/composables/use-supplier-table.d.ts +2 -2
- package/dist/views/transfer-template/components/transfer-template-dialog/TransferTemplateDialog.vue.d.ts +8 -8
- package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-locations.d.ts +4 -4
- package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-template-items.spec.d.ts +1 -0
- package/dist/views/transfer-template/composables/use-template-item-bulk-editor.d.ts +24 -24
- package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +48 -48
- package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +48 -48
- 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 +4 -4
- package/dist/{PlanTierBadge.vue_vue_type_script_setup_true_lang-BSR_nyHY.js → vue-KHCpiw_e.js} +101 -80
- package/dist/{vue-i18n-dSKy66Jh.js → vue-i18n-D6btLtve.js} +513 -513
- package/dist/{xlsx.util-pjzuMquw.js → xlsx.util-Dr5i_LBa.js} +2 -2
- package/package.json +71 -66
- package/dist/BulkReceiveRequestView-Lakk8011.js +0 -2656
- package/dist/FeatureCapabilityGate-C6t1VwKD.js +0 -74
- package/dist/ImportView-DCcdEvy4.js +0 -1291
- package/dist/NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BMDjCk9T.js +0 -72
- package/dist/ProductionRunDetailView-C9rxLBbL.js +0 -2312
- package/dist/ProductionRunView-DvMdVGz1.js +0 -930
- package/dist/RecipeView-ByUaGc4w.js +0 -3428
- package/dist/StockView-B3EjdjVx.js +0 -2615
- package/dist/TableActionableRow.vue_vue_type_script_setup_true_lang-DAMpuZ1X.js +0 -84
- package/dist/TemplatePublishDialog.vue_vue_type_script_setup_true_lang-BGPuaJlU.js +0 -299
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-8ydaQEw-.js +0 -4836
- package/dist/TransferTemplateView-BnfALwmw.js +0 -2326
- package/dist/menu-usage-module-BdjYEk3s.js +0 -57
- package/dist/number-5ZeFx-wN.js +0 -138
- package/dist/rules-CinZKpvV.js +0 -98
- package/dist/stock-1n-4iyqz.js +0 -75
- package/dist/views/integration/composables/use-integration-sync-log.d.ts +0 -45
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as C, computed as h, createElementBlock as l, openBlock as d, createElementVNode as r, normalizeClass as v, toDisplayString as m, unref as p, ref as V, resolveComponent as $, Fragment as k, createCommentVNode as G, createVNode as E, withCtx as S, renderList as P } from "vue";
|
|
2
2
|
import { useI18n as D, useCoreStore as N } from "@feedmepos/mf-common";
|
|
3
|
-
import { u as O } from "./netsuite-
|
|
3
|
+
import { u as O } from "./netsuite-BhGuduqd.js";
|
|
4
4
|
function re(e, t = !1) {
|
|
5
5
|
var c;
|
|
6
6
|
return e ? [
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import { defineComponent as ie, mergeModels as Kd, computed as I, useModel as td, resolveComponent as V, createElementBlock as w, openBlock as S, createElementVNode as v, createVNode as b, toDisplayString as k, unref as u, Fragment as oe, renderList as se, withCtx as R, ref as G, createBlock as Q, createCommentVNode as ee, createTextVNode as Ad, isRef as rd, normalizeClass as ae, watch as Rd, createSlots as Wd, normalizeStyle as Yd, Teleport as Xd } from "vue";
|
|
2
|
-
import { u as pe } from "./supplier-
|
|
3
|
-
import { D as nd, R as ve } from "./row-action.enum-
|
|
2
|
+
import { u as pe } from "./supplier-XHHHN8vZ.js";
|
|
3
|
+
import { D as nd, R as ve } from "./row-action.enum-76yLYmPA.js";
|
|
4
4
|
import { c as zd } from "./component-BmLAdDiY.js";
|
|
5
|
-
import { c as Ae, a as Be, h as od, i as ad, g as Zd, m as Md, u as Ne } from "./app-
|
|
5
|
+
import { c as Ae, a as Be, h as od, i as ad, g as Zd, m as Md, u as Ne } from "./app-VtVYHCDF.js";
|
|
6
6
|
import { useI18n as te, useCoreStore as Ce } from "@feedmepos/mf-common";
|
|
7
|
-
import { u as Se } from "./netsuite-
|
|
7
|
+
import { u as Se } from "./netsuite-BhGuduqd.js";
|
|
8
8
|
import { useDialog as Ee, useSnackbar as xe, useProxiedModel as id, useDialogChild as qd, useBreakpoints as Jd } from "@feedmepos/ui-library";
|
|
9
9
|
import { u as Qd, _ as et } from "./SingleColumnLayout.vue_vue_type_script_setup_true_lang-DpwneGOV.js";
|
|
10
10
|
import { F as K } from "./form-mode.enum-BKiNVH6A.js";
|
|
11
|
-
import { R as q } from "./rules-
|
|
12
|
-
import { a as
|
|
13
|
-
import { _ as Re } from "./FeatureCapabilityBadge.vue_vue_type_script_setup_true_lang-
|
|
14
|
-
import { _ as
|
|
15
|
-
import { u as Ie } from "./feature-
|
|
11
|
+
import { R as q, g as dt } from "./rules-fOcvgt4t.js";
|
|
12
|
+
import { a as tt } from "./FmMultiselectDialog-Ci-6NMsV.js";
|
|
13
|
+
import { _ as Re } from "./FeatureCapabilityBadge.vue_vue_type_script_setup_true_lang-ChekXW32.js";
|
|
14
|
+
import { _ as rt } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-Dkx5vVap.js";
|
|
15
|
+
import { u as Ie } from "./feature-VDUlSvM1.js";
|
|
16
16
|
import { _ as Z } from "./FmLockableField.vue_vue_type_script_setup_true_lang-FCg4K7y8.js";
|
|
17
|
-
import { u as
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import { _ as at } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-
|
|
17
|
+
import { u as nt } from "./purchase-order-template-By_Zxu1b.js";
|
|
18
|
+
import { _ as ot } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-gJQQKKAC.js";
|
|
19
|
+
import { F as ge } from "./index-eGvSlWMU.js";
|
|
20
|
+
import { _ as at } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-BEjFoMJJ.js";
|
|
21
21
|
import { defineStore as it } from "pinia";
|
|
22
|
-
import { b as kd, d as Dd, s as lt, r as $t } from "./xlsx.util-
|
|
23
|
-
import { f as st } from "./date2-
|
|
22
|
+
import { b as kd, d as Dd, s as lt, r as $t } from "./xlsx.util-Dr5i_LBa.js";
|
|
23
|
+
import { f as st } from "./date2-Cfb6DXM4.js";
|
|
24
24
|
import { F as ut } from "./FmDroppableField-J0tG_U3w.js";
|
|
25
25
|
function ct(e, d) {
|
|
26
26
|
const { t } = te(), r = Se();
|
|
@@ -115,7 +115,7 @@ const pt = { class: "flex flex-col gap-12" }, ft = { class: "flex flex-col" }, m
|
|
|
115
115
|
n.open({
|
|
116
116
|
title: i("inventory.supplier.supplyItems.selectItem"),
|
|
117
117
|
closeButton: !0,
|
|
118
|
-
contentComponent:
|
|
118
|
+
contentComponent: tt,
|
|
119
119
|
contentComponentProps: {
|
|
120
120
|
modelValue: y,
|
|
121
121
|
items: p
|
|
@@ -220,7 +220,7 @@ const pt = { class: "flex flex-col gap-12" }, ft = { class: "flex flex-col" }, m
|
|
|
220
220
|
]),
|
|
221
221
|
v("div", St, [
|
|
222
222
|
v("div", Et, [
|
|
223
|
-
b(
|
|
223
|
+
b(rt, {
|
|
224
224
|
"model-value": g(C),
|
|
225
225
|
unit: c(C),
|
|
226
226
|
"onUpdate:modelValue": (M) => f(C, M),
|
|
@@ -228,7 +228,8 @@ const pt = { class: "flex flex-col gap-12" }, ft = { class: "flex flex-col" }, m
|
|
|
228
228
|
separator: "/",
|
|
229
229
|
"apply-default-rules": "",
|
|
230
230
|
precision: 4,
|
|
231
|
-
"format-minimum-precision": 2
|
|
231
|
+
"format-minimum-precision": 2,
|
|
232
|
+
"show-measurement-conversion": ""
|
|
232
233
|
}, {
|
|
233
234
|
prepend: R(() => {
|
|
234
235
|
var M, B;
|
|
@@ -680,7 +681,7 @@ const pt = { class: "flex flex-col gap-12" }, ft = { class: "flex flex-col" }, m
|
|
|
680
681
|
},
|
|
681
682
|
emits: ["update:show", "submitted"],
|
|
682
683
|
setup(e, { expose: d, emit: t }) {
|
|
683
|
-
const r = Se(), n = e, i = t, o = G(!1), $ = xe(), s = Ee(), { t: c } = te(), g = pe(), f =
|
|
684
|
+
const r = Se(), n = e, i = t, o = G(!1), $ = xe(), s = Ee(), { t: c } = te(), g = pe(), f = nt(), p = Be(), y = G(!1), h = I(() => {
|
|
684
685
|
switch (n.mode) {
|
|
685
686
|
case K.READ:
|
|
686
687
|
return "";
|
|
@@ -836,7 +837,7 @@ const pt = { class: "flex flex-col gap-12" }, ft = { class: "flex flex-col" }, m
|
|
|
836
837
|
var $e;
|
|
837
838
|
const re = {
|
|
838
839
|
amount: 1,
|
|
839
|
-
precision:
|
|
840
|
+
precision: dt(z.unit)
|
|
840
841
|
};
|
|
841
842
|
return {
|
|
842
843
|
sku: z,
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { defineComponent as pe, ref as v, computed as c, watch as R, onMounted as fe, resolveComponent as p, createElementBlock as ye, openBlock as j, Fragment as ge, createVNode as n, unref as s, withCtx as f, createElementVNode as u, normalizeClass as G, normalizeStyle as he, toDisplayString as E, withDirectives as be, vModelText as _e, createBlock as Se, createCommentVNode as xe, withModifiers as Fe } from "vue";
|
|
2
2
|
import { u as ke, _ as we } from "./SingleColumnLayout.vue_vue_type_script_setup_true_lang-DpwneGOV.js";
|
|
3
|
-
import { a as Ie, u as Ce, q as V, j as Le,
|
|
4
|
-
import { u as Ae } from "./surcharge-
|
|
3
|
+
import { a as Ie, u as Ce, q as V, j as Le, s as Ve } from "./app-VtVYHCDF.js";
|
|
4
|
+
import { u as Ae } from "./surcharge-0-oBiYoF.js";
|
|
5
5
|
import { useSnackbar as De, useDialog as Me, useBreakpoints as Oe } from "@feedmepos/ui-library";
|
|
6
|
-
import { _ as Pe } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-
|
|
7
|
-
import { a as Te } from "./FmMultiselectDialog-
|
|
6
|
+
import { _ as Pe } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-BEjFoMJJ.js";
|
|
7
|
+
import { a as Te } from "./FmMultiselectDialog-Ci-6NMsV.js";
|
|
8
8
|
import { useI18n as Be } from "@feedmepos/mf-common";
|
|
9
|
-
import { u as ze } from "./supplier-
|
|
10
|
-
import { u as Ee } from "./feature-
|
|
9
|
+
import { u as ze } from "./supplier-XHHHN8vZ.js";
|
|
10
|
+
import { u as Ee } from "./feature-VDUlSvM1.js";
|
|
11
11
|
import { D as Ne, P as $e, L as qe } from "./app-C39bYJmq.js";
|
|
12
|
-
import { D as H, R as A } from "./row-action.enum-
|
|
12
|
+
import { D as H, R as A } from "./row-action.enum-76yLYmPA.js";
|
|
13
13
|
import { c as Ue } from "./component-BmLAdDiY.js";
|
|
14
14
|
const Je = { class: "flex flex-col py-8" }, Re = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary line-clamp-1" }, je = { class: "flex flex-col h-full justify-between" }, Ge = { class: "space-y-16" }, He = ["placeholder"], Ke = { class: "flex flex-col gap-16" }, Qe = { class: "flex flex-col gap-8" }, We = { class: "flex-1 fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Xe = { class: "flex flex-col gap-12" }, Ye = { class: "flex flex-col gap-4" }, Ze = { class: "flex items-center gap-8" }, pt = /* @__PURE__ */ pe({
|
|
15
15
|
__name: "SurchargeView",
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent as U, ref as B, resolveComponent as g, createBlock as I, openBlock as $, withCtx as h, createElementVNode as O, createVNode as k, h as f, createElementBlock as w, toDisplayString as b } from "vue";
|
|
2
2
|
import { F as _ } from "./FmAdminBadge-DlplQOHb.js";
|
|
3
|
-
import { d as L, u as T } from "./app-
|
|
3
|
+
import { d as L, u as T } from "./app-VtVYHCDF.js";
|
|
4
4
|
import { useCoreStore as A } from "@feedmepos/mf-common";
|
|
5
5
|
import { useDialog as j, components as P } from "@feedmepos/ui-library";
|
|
6
|
-
import { u as C, a as q } from "./closing-template-
|
|
6
|
+
import { u as C, a as q } from "./closing-template-LCe0U9w9.js";
|
|
7
7
|
const F = L((o, t) => {
|
|
8
8
|
const d = T(), l = A();
|
|
9
9
|
return {
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { defineComponent as b, computed as R, createBlock as h, openBlock as l, resolveDynamicComponent as V, unref as u, normalizeClass as B, withCtx as F, createElementVNode as i, createElementBlock as d, createCommentVNode as w, renderSlot as D, normalizeProps as N, guardReactiveProps as z, Fragment as g, renderList as E, createVNode as k } from "vue";
|
|
2
|
+
import { F as y } from "./index-eGvSlWMU.js";
|
|
3
|
+
import { components as L } from "@feedmepos/ui-library";
|
|
4
|
+
const P = { class: "flex gap-4 w-full" }, S = { class: "flex-1" }, _ = { class: "flex flex-col" }, $ = { key: 0 }, A = { key: 0 }, G = /* @__PURE__ */ b({
|
|
5
|
+
__name: "TableActionableRow",
|
|
6
|
+
props: {
|
|
7
|
+
row: {},
|
|
8
|
+
onRowClick: {},
|
|
9
|
+
actionColumnId: { default: "action" }
|
|
10
|
+
},
|
|
11
|
+
setup(I) {
|
|
12
|
+
const m = I, t = R(
|
|
13
|
+
() => m.row.getVisibleCells().reduce(
|
|
14
|
+
(e, n) => (e[n.column.id] = n, e),
|
|
15
|
+
{}
|
|
16
|
+
)
|
|
17
|
+
);
|
|
18
|
+
return (e, n) => (l(), h(V(e.onRowClick ? u(L).FmListItem : "div"), {
|
|
19
|
+
class: B([
|
|
20
|
+
"w-full border-b border-fm-color-neutral-gray-100",
|
|
21
|
+
{
|
|
22
|
+
"bg-fm-color-neutral-gray-100": e.row.getIsSelected(),
|
|
23
|
+
"cursor-pointer": typeof e.onRowClick == "function"
|
|
24
|
+
}
|
|
25
|
+
]),
|
|
26
|
+
onClick: n[0] || (n[0] = (a) => {
|
|
27
|
+
var r;
|
|
28
|
+
return (r = e.onRowClick) == null ? void 0 : r.call(e, e.row.original);
|
|
29
|
+
})
|
|
30
|
+
}, {
|
|
31
|
+
default: F(() => {
|
|
32
|
+
var a, r, c, s, p;
|
|
33
|
+
return [
|
|
34
|
+
i("div", P, [
|
|
35
|
+
i("div", S, [
|
|
36
|
+
D(e.$slots, "default", N(z(t.value)), () => [
|
|
37
|
+
i("div", _, [
|
|
38
|
+
(l(!0), d(g, null, E(m.row.getVisibleCells(), (o) => {
|
|
39
|
+
var f, C, v;
|
|
40
|
+
return l(), d(g, {
|
|
41
|
+
key: o.id
|
|
42
|
+
}, [
|
|
43
|
+
o.column.id !== e.actionColumnId ? (l(), d("div", $, [
|
|
44
|
+
k(u(y), {
|
|
45
|
+
render: (C = (f = o.column) == null ? void 0 : f.columnDef) == null ? void 0 : C.cell,
|
|
46
|
+
props: (v = o.getContext) == null ? void 0 : v.call(o)
|
|
47
|
+
}, null, 8, ["render", "props"])
|
|
48
|
+
])) : w("", !0)
|
|
49
|
+
], 64);
|
|
50
|
+
}), 128))
|
|
51
|
+
])
|
|
52
|
+
])
|
|
53
|
+
]),
|
|
54
|
+
t.value[e.actionColumnId ?? ""] ? (l(), d("div", A, [
|
|
55
|
+
i("div", null, [
|
|
56
|
+
k(u(y), {
|
|
57
|
+
render: (c = (r = (a = t.value[e.actionColumnId ?? ""]) == null ? void 0 : a.column) == null ? void 0 : r.columnDef) == null ? void 0 : c.cell,
|
|
58
|
+
props: (p = (s = t.value[e.actionColumnId ?? ""]) == null ? void 0 : s.getContext) == null ? void 0 : p.call(s)
|
|
59
|
+
}, null, 8, ["render", "props"])
|
|
60
|
+
])
|
|
61
|
+
])) : w("", !0)
|
|
62
|
+
])
|
|
63
|
+
];
|
|
64
|
+
}),
|
|
65
|
+
_: 3
|
|
66
|
+
}, 8, ["class"]));
|
|
67
|
+
}
|
|
68
|
+
});
|
|
69
|
+
export {
|
|
70
|
+
G as _
|
|
71
|
+
};
|
|
@@ -0,0 +1,332 @@
|
|
|
1
|
+
import { defineComponent as H, ref as g, computed as u, watch as J, h as i, resolveComponent as L, createElementBlock as Q, openBlock as U, createElementVNode as b, toDisplayString as W, createVNode as y, createBlock as X, createCommentVNode as Y, unref as P } from "vue";
|
|
2
|
+
import { useCoreStore as Z, useI18n as ee } from "@feedmepos/mf-common";
|
|
3
|
+
import { useSnackbar as le, components as A } from "@feedmepos/ui-library";
|
|
4
|
+
import { K as te, D as ae } from "./app-C39bYJmq.js";
|
|
5
|
+
import { u as oe } from "./app-VtVYHCDF.js";
|
|
6
|
+
import { F as ne } from "./FmAdminBadge-DlplQOHb.js";
|
|
7
|
+
function se(C, o, r) {
|
|
8
|
+
if (!(r != null && r.length)) return [];
|
|
9
|
+
const t = new Set(r);
|
|
10
|
+
return Object.entries(C).filter(([n, w]) => !t.has(n) && w.some((F) => F._id === o)).map(([n]) => n);
|
|
11
|
+
}
|
|
12
|
+
const ie = {
|
|
13
|
+
class: "flex flex-col gap-24 h-full",
|
|
14
|
+
style: { "max-height": "50vh" }
|
|
15
|
+
}, re = { class: "flex items-center flex-shrink-0" }, ue = { class: "fm-typo-en-body-lg-600 flex-1" }, de = { class: "flex gap-8" }, ce = { class: "flex flex-col gap-4 w-full flex-1 min-h-0" }, ve = { class: "flex items-center gap-8 flex-shrink-0" }, me = { class: "flex-1 border border-fm-color-border-secondary rounded-lg overflow-hidden overflow-y-auto min-h-0" }, we = /* @__PURE__ */ H({
|
|
16
|
+
__name: "TemplatePublishDialog",
|
|
17
|
+
props: {
|
|
18
|
+
title: {},
|
|
19
|
+
doc: {},
|
|
20
|
+
controller: {},
|
|
21
|
+
initialPublishedRev: {},
|
|
22
|
+
locations: {},
|
|
23
|
+
enabledLocations: {},
|
|
24
|
+
hideUnpublish: { type: Boolean }
|
|
25
|
+
},
|
|
26
|
+
setup(C) {
|
|
27
|
+
const o = C, r = g(o.initialPublishedRev ?? {}), t = g(), n = g(/* @__PURE__ */ new Set()), w = oe(), F = Z(), p = le(), E = u(() => {
|
|
28
|
+
var l;
|
|
29
|
+
return ((l = F.sessionUser.value) == null ? void 0 : l.role.isAdmin) ?? !1;
|
|
30
|
+
}), _ = (l) => l.status !== "invalid" && l.status !== "pendingRemoval", R = u(() => {
|
|
31
|
+
var e;
|
|
32
|
+
return ((e = o.enabledLocations) != null && e.length ? o.enabledLocations : o.locations).map((a) => {
|
|
33
|
+
var s;
|
|
34
|
+
if (!!!w.locationByDbName[a.dbName])
|
|
35
|
+
return {
|
|
36
|
+
...a,
|
|
37
|
+
status: "invalid"
|
|
38
|
+
};
|
|
39
|
+
const h = !!(((s = r.value) == null ? void 0 : s[a.dbName]) ?? []).find(
|
|
40
|
+
(k) => k._id === o.doc._id && (k.updatedAt ? k.updatedAt === o.doc.updatedAt : k._rev === o.doc._rev)
|
|
41
|
+
);
|
|
42
|
+
return {
|
|
43
|
+
...a,
|
|
44
|
+
status: h ? "published" : "outdated",
|
|
45
|
+
state: a.doc.profile.address.state
|
|
46
|
+
};
|
|
47
|
+
});
|
|
48
|
+
}), $ = u(
|
|
49
|
+
() => {
|
|
50
|
+
var l;
|
|
51
|
+
return se(
|
|
52
|
+
r.value,
|
|
53
|
+
o.doc._id,
|
|
54
|
+
(l = o.enabledLocations) == null ? void 0 : l.map((e) => e.dbName)
|
|
55
|
+
).flatMap((e) => {
|
|
56
|
+
const a = o.locations.find((v) => v.dbName === e);
|
|
57
|
+
return a ? [{ ...a, status: "pendingRemoval" }] : [];
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
), { t: f } = ee(), x = g(""), N = g({
|
|
61
|
+
logic: "AND",
|
|
62
|
+
rules: []
|
|
63
|
+
}), T = [
|
|
64
|
+
{
|
|
65
|
+
type: "string",
|
|
66
|
+
key: "status",
|
|
67
|
+
entity: "inventory",
|
|
68
|
+
values: ["published", "outdated", "pendingRemoval"]
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
type: "string",
|
|
72
|
+
key: "state",
|
|
73
|
+
entity: "inventory",
|
|
74
|
+
values: [
|
|
75
|
+
...new Set(w.locations.map((l) => l.doc.profile.address.state).filter(Boolean))
|
|
76
|
+
]
|
|
77
|
+
}
|
|
78
|
+
], d = u(() => {
|
|
79
|
+
const l = x.value.toLowerCase();
|
|
80
|
+
return [...R.value, ...$.value].filter((e) => te(e, N.value)).filter(({ name: e, dbName: a }) => !!(!l || e.toLowerCase().includes(l) || E.value && a.toLowerCase().includes(l)));
|
|
81
|
+
}), S = u(
|
|
82
|
+
() => d.value.filter(_)
|
|
83
|
+
);
|
|
84
|
+
J(
|
|
85
|
+
[x, N],
|
|
86
|
+
() => {
|
|
87
|
+
n.value = /* @__PURE__ */ new Set();
|
|
88
|
+
},
|
|
89
|
+
{ deep: !0 }
|
|
90
|
+
);
|
|
91
|
+
const B = u(() => d.value.length === 0 ? !1 : d.value.every((l) => n.value.has(l.dbName))), z = u(() => {
|
|
92
|
+
if (S.value.length === 0) return !1;
|
|
93
|
+
const l = S.value.filter(
|
|
94
|
+
(e) => n.value.has(e.dbName)
|
|
95
|
+
).length;
|
|
96
|
+
return l > 0 && l < S.value.length;
|
|
97
|
+
});
|
|
98
|
+
function D() {
|
|
99
|
+
B.value ? d.value.forEach((l) => n.value.delete(l.dbName)) : d.value.forEach((l) => n.value.add(l.dbName)), n.value = new Set(n.value);
|
|
100
|
+
}
|
|
101
|
+
function I(l) {
|
|
102
|
+
_(l) && (n.value.has(l.dbName) ? n.value.delete(l.dbName) : n.value.add(l.dbName), n.value = new Set(n.value));
|
|
103
|
+
}
|
|
104
|
+
function V() {
|
|
105
|
+
const l = d.value.filter(
|
|
106
|
+
(e) => _(e) && n.value.has(e.dbName)
|
|
107
|
+
);
|
|
108
|
+
return l.length === 0 ? S.value : l;
|
|
109
|
+
}
|
|
110
|
+
const M = u(() => [
|
|
111
|
+
{
|
|
112
|
+
id: "checkbox",
|
|
113
|
+
header: () => "",
|
|
114
|
+
size: 56,
|
|
115
|
+
cell: (l) => {
|
|
116
|
+
const e = l.row.original;
|
|
117
|
+
return _(e) ? i(A.FmCheckbox, {
|
|
118
|
+
value: e.dbName,
|
|
119
|
+
modelValue: n.value.has(e.dbName),
|
|
120
|
+
"onUpdate:modelValue": () => I(e)
|
|
121
|
+
}) : i("div", { class: "w-56" });
|
|
122
|
+
}
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
id: "name",
|
|
126
|
+
header: () => "Name",
|
|
127
|
+
size: "auto",
|
|
128
|
+
cell: (l) => {
|
|
129
|
+
const e = l.row.original;
|
|
130
|
+
return i("div", { class: "flex flex-col" }, [
|
|
131
|
+
i("span", {}, e.name),
|
|
132
|
+
i(
|
|
133
|
+
ne,
|
|
134
|
+
{},
|
|
135
|
+
{
|
|
136
|
+
default: () => i("div", { class: "flex items-center gap-4" }, [
|
|
137
|
+
i(
|
|
138
|
+
"span",
|
|
139
|
+
{ class: "fm-typo-en-body-sm-400 text-fm-color-typo-tertiary" },
|
|
140
|
+
e.dbName
|
|
141
|
+
),
|
|
142
|
+
i(A.FmButton, {
|
|
143
|
+
variant: "tertiary",
|
|
144
|
+
icon: "content_copy",
|
|
145
|
+
size: "sm",
|
|
146
|
+
onClick: async (a) => {
|
|
147
|
+
a.stopPropagation();
|
|
148
|
+
try {
|
|
149
|
+
await navigator.clipboard.writeText(e.dbName), p == null || p.open({
|
|
150
|
+
title: "Copied to clipboard",
|
|
151
|
+
message: e.name,
|
|
152
|
+
type: "success"
|
|
153
|
+
});
|
|
154
|
+
} catch (v) {
|
|
155
|
+
console.error("Failed to copy:", v);
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
})
|
|
159
|
+
])
|
|
160
|
+
}
|
|
161
|
+
)
|
|
162
|
+
]);
|
|
163
|
+
}
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
id: "status",
|
|
167
|
+
header: () => "Status",
|
|
168
|
+
size: 200,
|
|
169
|
+
cell: (l) => {
|
|
170
|
+
const e = l.row.original, a = e.status === "published";
|
|
171
|
+
if (e.status === "invalid")
|
|
172
|
+
return i(
|
|
173
|
+
"div",
|
|
174
|
+
{
|
|
175
|
+
class: ["fm-status-badge", "fm-status-badge-error-secondary"]
|
|
176
|
+
},
|
|
177
|
+
"Invalid"
|
|
178
|
+
);
|
|
179
|
+
if (e.status === "pendingRemoval")
|
|
180
|
+
return i(
|
|
181
|
+
"div",
|
|
182
|
+
{
|
|
183
|
+
class: ["fm-status-badge", "fm-status-badge-processing"],
|
|
184
|
+
title: "This template is no longer enabled here but the outlet still has it. Publish again to remove it; it stays while an open closing draft uses it."
|
|
185
|
+
},
|
|
186
|
+
"Pending removal"
|
|
187
|
+
);
|
|
188
|
+
let m;
|
|
189
|
+
a && o.controller.unpublishAtLocation && !o.hideUnpublish ? m = i(A.FmButton, {
|
|
190
|
+
variant: "tertiary",
|
|
191
|
+
icon: "block",
|
|
192
|
+
loading: t.value === `unpublish-${e.dbName}`,
|
|
193
|
+
disabled: t.value !== void 0 && t.value !== `unpublish-${e.dbName}`,
|
|
194
|
+
onClick: async () => {
|
|
195
|
+
t.value = `unpublish-${e.dbName}`;
|
|
196
|
+
try {
|
|
197
|
+
const s = await o.controller.unpublishAtLocation(e).delayed(1e3);
|
|
198
|
+
r.value = s;
|
|
199
|
+
} catch (s) {
|
|
200
|
+
console.error("Error unpublishing at location:", s);
|
|
201
|
+
} finally {
|
|
202
|
+
t.value = void 0;
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
}) : a || (m = i(A.FmButton, {
|
|
206
|
+
variant: "tertiary",
|
|
207
|
+
icon: "ios_share",
|
|
208
|
+
loading: t.value === `publish-${e.dbName}`,
|
|
209
|
+
disabled: t.value !== void 0 && t.value !== `publish-${e.dbName}`,
|
|
210
|
+
onClick: async () => {
|
|
211
|
+
t.value = `publish-${e.dbName}`;
|
|
212
|
+
try {
|
|
213
|
+
const s = await o.controller.publishAtLocation(e).delayed(1e3);
|
|
214
|
+
r.value = s;
|
|
215
|
+
} catch (s) {
|
|
216
|
+
console.error("Error publishing at location:", s);
|
|
217
|
+
} finally {
|
|
218
|
+
t.value = void 0;
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
}));
|
|
222
|
+
const h = [
|
|
223
|
+
i(
|
|
224
|
+
"div",
|
|
225
|
+
{
|
|
226
|
+
class: [
|
|
227
|
+
"fm-status-badge",
|
|
228
|
+
a ? "fm-status-badge-success-secondary" : "fm-status-badge-info-secondary"
|
|
229
|
+
]
|
|
230
|
+
},
|
|
231
|
+
f(a ? "inventory.publish.status.published" : "inventory.publish.status.outdated")
|
|
232
|
+
)
|
|
233
|
+
];
|
|
234
|
+
return m && h.push(m), i("div", { class: "flex items-center gap-8" }, h);
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
]);
|
|
238
|
+
async function K() {
|
|
239
|
+
t.value = "all";
|
|
240
|
+
try {
|
|
241
|
+
const l = V(), e = $.value.length, a = await o.controller.publishAll(l).delayed(1e3);
|
|
242
|
+
r.value = a, j(e, $.value.length);
|
|
243
|
+
} catch (l) {
|
|
244
|
+
console.error("Error publishing all:", l);
|
|
245
|
+
} finally {
|
|
246
|
+
t.value = void 0;
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
function j(l, e) {
|
|
250
|
+
l === 0 && e === 0 || p == null || p.open({
|
|
251
|
+
title: `Removed from ${l - e} of ${l} outlet${l === 1 ? "" : "s"} no longer enabled`,
|
|
252
|
+
message: e ? `${e} still pending removal: an open closing draft may still use it, or removal failed. Publish again later.` : void 0,
|
|
253
|
+
type: e ? "warning" : "success"
|
|
254
|
+
});
|
|
255
|
+
}
|
|
256
|
+
async function O() {
|
|
257
|
+
if (o.controller.unpublishAll) {
|
|
258
|
+
t.value = "unpublish-all";
|
|
259
|
+
try {
|
|
260
|
+
const l = V(), e = await o.controller.unpublishAll(l).delayed(1e3);
|
|
261
|
+
r.value = e;
|
|
262
|
+
} catch (l) {
|
|
263
|
+
console.error("Error unpublishing all:", l);
|
|
264
|
+
} finally {
|
|
265
|
+
t.value = void 0;
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
const c = u(() => n.value.size), q = u(() => c.value === 0 || c.value === R.value.length ? f("inventory.publish.actions.publishAll") : f("inventory.publish.actions.publishSelected", { count: c.value })), G = u(() => c.value === 0 || c.value === R.value.length ? "Unpublish all" : `Unpublish selected ${c.value} location${c.value === 1 ? "" : "s"}`);
|
|
270
|
+
return (l, e) => {
|
|
271
|
+
const a = L("FmButton"), v = L("FmTextField"), m = L("FmCheckbox"), h = L("FmTable");
|
|
272
|
+
return U(), Q("div", ie, [
|
|
273
|
+
b("div", re, [
|
|
274
|
+
b("div", ue, W(l.title), 1),
|
|
275
|
+
b("div", de, [
|
|
276
|
+
y(a, {
|
|
277
|
+
label: q.value,
|
|
278
|
+
variant: "secondary",
|
|
279
|
+
onClick: e[0] || (e[0] = (s) => K()),
|
|
280
|
+
loading: t.value === "all",
|
|
281
|
+
disabled: t.value !== "all" && t.value !== void 0
|
|
282
|
+
}, null, 8, ["label", "loading", "disabled"]),
|
|
283
|
+
l.controller.unpublishAll && !l.hideUnpublish ? (U(), X(a, {
|
|
284
|
+
key: 0,
|
|
285
|
+
label: G.value,
|
|
286
|
+
variant: "tertiary",
|
|
287
|
+
onClick: e[1] || (e[1] = (s) => O()),
|
|
288
|
+
loading: t.value === "unpublish-all",
|
|
289
|
+
disabled: t.value !== "unpublish-all" && t.value !== void 0
|
|
290
|
+
}, null, 8, ["label", "loading", "disabled"])) : Y("", !0)
|
|
291
|
+
])
|
|
292
|
+
]),
|
|
293
|
+
b("div", ce, [
|
|
294
|
+
y(v, {
|
|
295
|
+
modelValue: x.value,
|
|
296
|
+
"onUpdate:modelValue": e[2] || (e[2] = (s) => x.value = s),
|
|
297
|
+
class: "w-full flex-shrink-0",
|
|
298
|
+
placeholder: P(f)("inventory.publish.search.placeholder"),
|
|
299
|
+
"prepend-icon": "search"
|
|
300
|
+
}, null, 8, ["modelValue", "placeholder"]),
|
|
301
|
+
b("div", ve, [
|
|
302
|
+
y(P(ae), {
|
|
303
|
+
modelValue: N.value,
|
|
304
|
+
"onUpdate:modelValue": e[3] || (e[3] = (s) => N.value = s),
|
|
305
|
+
attributes: T
|
|
306
|
+
}, null, 8, ["modelValue"]),
|
|
307
|
+
y(m, {
|
|
308
|
+
value: "select-all",
|
|
309
|
+
"model-value": B.value,
|
|
310
|
+
indeterminate: z.value,
|
|
311
|
+
"onUpdate:modelValue": D,
|
|
312
|
+
label: "Select all"
|
|
313
|
+
}, null, 8, ["model-value", "indeterminate"])
|
|
314
|
+
]),
|
|
315
|
+
b("div", me, [
|
|
316
|
+
y(h, {
|
|
317
|
+
"row-data": d.value,
|
|
318
|
+
"column-defs": M.value,
|
|
319
|
+
"shrink-at": 9999,
|
|
320
|
+
virtual: !0,
|
|
321
|
+
"page-size": d.value.length,
|
|
322
|
+
"hide-footer": ""
|
|
323
|
+
}, null, 8, ["row-data", "column-defs", "page-size"])
|
|
324
|
+
])
|
|
325
|
+
])
|
|
326
|
+
]);
|
|
327
|
+
};
|
|
328
|
+
}
|
|
329
|
+
});
|
|
330
|
+
export {
|
|
331
|
+
we as _
|
|
332
|
+
};
|