@feedmepos/mf-inventory-portal 1.8.0-dev.7 → 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-BPdZMhM8.js +1445 -0
- package/dist/{ApprovalView-1Y_jh_UJ.js → ApprovalView-UzjSuZ2L.js} +26 -25
- package/dist/{BindingsDialog-VMvTLguN.js → BindingsDialog-Cb6WRlKq.js} +2 -2
- package/dist/{BindingsPicker-KNRM5rMU.js → BindingsPicker-CtD4U4lv.js} +2 -2
- package/dist/{BindingsTable-CSyNlNCL.js → BindingsTable-CX-3403K.js} +10 -10
- package/dist/BulkReceiveRequestPage-CUq1Lmww.js +2839 -0
- package/dist/{ChangeLocationComponent.vue_vue_type_script_setup_true_lang-DQuI04Yj.js → ChangeLocationComponent.vue_vue_type_script_setup_true_lang-C5cA-lGH.js} +1 -1
- package/dist/{ClosingDraftView-A2pJuhIb.js → ClosingDraftView-Ca_SvdWQ.js} +748 -746
- package/dist/ClosingHistoryView-DzkeJYoe.js +769 -0
- package/dist/{ClosingTemplateView-DpkNCyoB.js → ClosingTemplateView-DSrelbso.js} +22 -21
- package/dist/{CustomPrintTemplatePreview.vue_vue_type_script_setup_true_lang-DOpIDvsy.js → CustomPrintTemplatePreview.vue_vue_type_script_setup_true_lang-BuOuXPy1.js} +1 -1
- package/dist/{DefaultView-B4UuAqYu.js → DefaultView-Dw-7Y8vD.js} +2 -2
- package/dist/{DeliveryOrderPrintPreview-w0YcNH3F.js → DeliveryOrderPrintPreview-C5qJsv_O.js} +15 -15
- package/dist/{EmailDialog.vue_vue_type_script_setup_true_lang-BimIEHsW.js → EmailDialog.vue_vue_type_script_setup_true_lang-D8od7aKT.js} +10075 -9949
- package/dist/FeatureCapabilityBadge.vue_vue_type_script_setup_true_lang-ChekXW32.js +48 -0
- 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--54VR4oB.js → FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-B861gqIJ.js} +1 -1
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-B7j4ZSOe.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_y8VcCI.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-BEjFoMJJ.js} +2 -2
- package/dist/{FmMultiselectDialog-DMA5eR0C.js → FmMultiselectDialog-CShFKSIW.js} +2 -2
- package/dist/{FmMultiselectDialog-BnZInvgp.js → FmMultiselectDialog-Ci-6NMsV.js} +2 -2
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-BXTUsnwN.js → FmUnitInput.vue_vue_type_script_setup_true_lang-Dkx5vVap.js} +105 -99
- package/dist/ImportView-7ij7RUHI.js +1540 -0
- package/dist/{IngredientsView-C4-8qNGD.js → IngredientsView-fIPtTyFD.js} +685 -688
- package/dist/{IntegrationExplorerView-D3leld2Z.js → IntegrationExplorerView-DLYT4T-I.js} +1537 -1620
- package/dist/IntegrationPlatformView-CwywuK_y.js +13385 -0
- package/dist/{IntegrationView-BhRzry3g.js → IntegrationView-DnyVHXge.js} +2380 -2340
- package/dist/{InventoryBindingForm-ewAgZ6e-.js → InventoryBindingForm-BBs8v7CL.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-Bpo7Yv9A.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang--pI5wz_M.js} +134 -134
- package/dist/{InventoryBindingSummary-e67GzHYr.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-0F-yOcPC.js +79 -0
- 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-7u0HQH67.js → ProductionRunLifecycleDialogs.vue_vue_type_script_setup_true_lang-BIkoMOM2.js} +3051 -3161
- package/dist/ProductionRunPage-DuzVrjbZ.js +954 -0
- package/dist/{PublishView-BXA3k8Cp.js → PublishView-BVg44yke.js} +3 -3
- package/dist/{PurchaseOrderPrintPreview-DRugr4BU.js → PurchaseOrderPrintPreview-CNx6unyj.js} +17 -17
- package/dist/{ReceiveRequestView-CeJs9NTD.js → ReceiveRequestView-DeNrYOUt.js} +17 -16
- package/dist/RecipeView-De3pLsPR.js +3272 -0
- package/dist/SettingsView-B5ud0KtI.js +1005 -0
- package/dist/StockView-4N3NRjY8.js +3003 -0
- package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-Ckw1_xIc.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-DvlRRKdt.js} +1 -1
- package/dist/{SupplierView-DH9u6e2M.js → SupplierView-fC9oe5nu.js} +304 -301
- package/dist/{SurchargeView-BPVEpc0f.js → SurchargeView-H6rv7u8A.js} +7 -7
- package/dist/{SystemTrailDialog.vue_vue_type_script_setup_true_lang-BRwxKmwb.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-06rIaX_M.js → UnitCostHistoryView-DjD2WAFI.js} +4 -4
- package/dist/{UnitDisplayControl.vue_vue_type_script_setup_true_lang-C2zidBrl.js → UnitDisplayControl.vue_vue_type_script_setup_true_lang-CE0zHU6c.js} +4 -4
- package/dist/{UnitView-Xk_F9SYG.js → UnitView-DCfsbE8e.js} +111 -106
- package/dist/{WarehouseView-bmpLmpcX.js → WarehouseView-BCebmbcj.js} +12 -11
- package/dist/{WastageTemplateView-CWV1pFxM.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/netsuite-explorer.d.ts +1 -0
- package/dist/api/stock.d.ts +1 -1
- package/dist/{app-CURawLhs.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-q_KGB4jO.js → closing-template-LCe0U9w9.js} +4 -4
- 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/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-3kdweNLp.js → date2-Cfb6DXM4.js} +1 -1
- package/dist/{dayjs.min-DHE73-wM.js → dayjs.min-BOndKK7B.js} +1 -1
- package/dist/{decimal-CAnQe2Ib.js → decimal-nbuisP61.js} +2 -2
- package/dist/{defineDeepModel-CctS67Do.js → defineDeepModel-DKySrdwp.js} +5 -5
- package/dist/{duplicate-template-Jk2V2Ezg.js → duplicate-template-BxcKb3Jp.js} +1 -1
- package/dist/{feature-D9n0IC0c.js → feature-VDUlSvM1.js} +452 -354
- package/dist/feature-flags/core.d.ts +1 -0
- package/dist/feature-flags/vue.d.ts +22 -1
- package/dist/feature-flags/vue.spec.d.ts +1 -0
- package/dist/{format-time-from-id-Bmzpbg-8.js → format-time-from-id-CfVH4LZ_.js} +1 -1
- package/dist/{format-unit-display-CVg4Bl5L.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-DPCcxufP.js → id-to-date-Jr9SlHLO.js} +1 -1
- package/dist/{import-export.helper-bmGZwUBB.js → import-export.helper-FT9Wbigh.js} +17 -17
- package/dist/{index-zCBA-X6R.js → index-BV9b3Ulp.js} +2234 -2163
- package/dist/{index-yt6MlAFG.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-CFNNQo-7.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-CqlY9MC2.js → lz-string-BAzqO9xf.js} +1 -1
- package/dist/menu-usage-module-Bq_KLsO4.js +74 -0
- package/dist/{netsuite-DudeltN_.js → netsuite-BhGuduqd.js} +254 -263
- package/dist/netsuite-explorer-9Qj7qAum.js +79 -0
- package/dist/{predefined-templates-DT32p04n.js → predefined-templates-BlRafgnc.js} +1 -1
- package/dist/production-run-list-DR1WsaBR.js +61 -0
- package/dist/{purchase-order-template-LaRpWA04.js → purchase-order-template-By_Zxu1b.js} +1 -1
- package/dist/{recalculationUtils-BYN393eE.js → recalculationUtils-VsBar7jB.js} +1 -1
- package/dist/router/name.d.ts +2 -1
- package/dist/{row-action.enum-BiP5wkT6.js → row-action.enum-76yLYmPA.js} +1 -1
- package/dist/rules-fOcvgt4t.js +243 -0
- package/dist/{stock-B9XerL9c.js → stock-C-dQaxY2.js} +1 -1
- package/dist/stock-Dh0KXA1P.js +78 -0
- package/dist/stores/feature.d.ts +31 -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-dpHijd2E.js → supplier-XHHHN8vZ.js} +2 -2
- package/dist/{surcharge-BZ4STY5J.js → surcharge-0-oBiYoF.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{uom-rules-Da5Lngvp.js → uom-rules-DrRuSFgM.js} +1 -1
- package/dist/{use-ingredient-select-dialog-C3YsT5l-.js → use-ingredient-select-dialog-mQ7aQChK.js} +2 -2
- package/dist/{use-inventory-binding-dialog-BSsyrcGe.js → use-inventory-binding-dialog-5Wu0ItnH.js} +2 -2
- package/dist/{use-template-enabled-locations-BmJUzSUm.js → use-template-enabled-locations-CgpPMl8g.js} +2 -2
- package/dist/{use-transfer-locations-frEk_aBH.js → use-transfer-locations-DZ6B7eMT.js} +14 -14
- package/dist/{useHrmPermission-Cyjm0y9a.js → useHrmPermission-BaGxz4EV.js} +1 -1
- package/dist/{useNavigationMenu-CnTsOF9T.js → useNavigationMenu-CyP39v3U.js} +50 -49
- package/dist/{useSseClient-D_7o9nuf.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.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/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/{FeatureCapabilityBadge.vue_vue_type_script_setup_true_lang-BBkF9lOE.js → vue-KHCpiw_e.js} +106 -108
- package/dist/{vue-i18n-DwAcG7yc.js → vue-i18n-D6btLtve.js} +422 -422
- package/dist/{xlsx.util-C7S-uyqm.js → xlsx.util-Dr5i_LBa.js} +2 -2
- package/package.json +71 -66
- package/dist/App-Bo29Nwt0.js +0 -1537
- package/dist/BulkReceiveRequestView-vOeHbWM_.js +0 -2656
- package/dist/ClosingHistoryView-woRmvmYT.js +0 -761
- package/dist/ImportView-C7Hah7MM.js +0 -1291
- package/dist/NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CKEzy2Uo.js +0 -72
- package/dist/ProductionRunDetailView-Ct7kr5Ht.js +0 -2312
- package/dist/ProductionRunView-odWyBZGx.js +0 -930
- package/dist/RecipeView-BH0REMB3.js +0 -3428
- package/dist/SettingsView-Dc27wyk-.js +0 -977
- package/dist/StockView-DrHLzosW.js +0 -2616
- package/dist/TableActionableRow.vue_vue_type_script_setup_true_lang-DAMpuZ1X.js +0 -84
- package/dist/TemplatePublishDialog.vue_vue_type_script_setup_true_lang-BpiePSmo.js +0 -299
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-DOQGPKiv.js +0 -4820
- package/dist/TransferTemplateView-CEVRsKL7.js +0 -2326
- package/dist/menu-usage-module-BdjYEk3s.js +0 -57
- package/dist/number-BoePMDs8.js +0 -138
- package/dist/rules-CQT0uAAo.js +0 -98
- package/dist/stock-CVybjhUm.js +0 -75
- package/dist/views/integration/composables/use-integration-sync-log.d.ts +0 -45
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
import { defineComponent as I, h as R, computed as h, createBlock as V, openBlock as l, resolveDynamicComponent as B, unref as c, normalizeClass as F, withCtx as D, createElementVNode as d, createElementBlock as u, createCommentVNode as g, renderSlot as N, normalizeProps as z, guardReactiveProps as E, Fragment as k, renderList as L, createVNode as y } from "vue";
|
|
2
|
-
import { components as P } from "@feedmepos/ui-library";
|
|
3
|
-
/**
|
|
4
|
-
* vue-table
|
|
5
|
-
*
|
|
6
|
-
* Copyright (c) TanStack
|
|
7
|
-
*
|
|
8
|
-
* This source code is licensed under the MIT license found in the
|
|
9
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
10
|
-
*
|
|
11
|
-
* @license MIT
|
|
12
|
-
*/
|
|
13
|
-
const b = I({
|
|
14
|
-
props: ["render", "props"],
|
|
15
|
-
setup: (o) => () => typeof o.render == "function" || typeof o.render == "object" ? R(o.render, o.props) : o.render
|
|
16
|
-
}), S = { class: "flex gap-4 w-full" }, _ = { class: "flex-1" }, $ = { class: "flex flex-col" }, j = { key: 0 }, A = { key: 0 }, G = /* @__PURE__ */ I({
|
|
17
|
-
__name: "TableActionableRow",
|
|
18
|
-
props: {
|
|
19
|
-
row: {},
|
|
20
|
-
onRowClick: {},
|
|
21
|
-
actionColumnId: { default: "action" }
|
|
22
|
-
},
|
|
23
|
-
setup(o) {
|
|
24
|
-
const m = o, s = h(
|
|
25
|
-
() => m.row.getVisibleCells().reduce(
|
|
26
|
-
(e, r) => (e[r.column.id] = r, e),
|
|
27
|
-
{}
|
|
28
|
-
)
|
|
29
|
-
);
|
|
30
|
-
return (e, r) => (l(), V(B(e.onRowClick ? c(P).FmListItem : "div"), {
|
|
31
|
-
class: F([
|
|
32
|
-
"w-full border-b border-fm-color-neutral-gray-100",
|
|
33
|
-
{
|
|
34
|
-
"bg-fm-color-neutral-gray-100": e.row.getIsSelected(),
|
|
35
|
-
"cursor-pointer": typeof e.onRowClick == "function"
|
|
36
|
-
}
|
|
37
|
-
]),
|
|
38
|
-
onClick: r[0] || (r[0] = (a) => {
|
|
39
|
-
var t;
|
|
40
|
-
return (t = e.onRowClick) == null ? void 0 : t.call(e, e.row.original);
|
|
41
|
-
})
|
|
42
|
-
}, {
|
|
43
|
-
default: D(() => {
|
|
44
|
-
var a, t, p, i, f;
|
|
45
|
-
return [
|
|
46
|
-
d("div", S, [
|
|
47
|
-
d("div", _, [
|
|
48
|
-
N(e.$slots, "default", z(E(s.value)), () => [
|
|
49
|
-
d("div", $, [
|
|
50
|
-
(l(!0), u(k, null, L(m.row.getVisibleCells(), (n) => {
|
|
51
|
-
var C, v, w;
|
|
52
|
-
return l(), u(k, {
|
|
53
|
-
key: n.id
|
|
54
|
-
}, [
|
|
55
|
-
n.column.id !== e.actionColumnId ? (l(), u("div", j, [
|
|
56
|
-
y(c(b), {
|
|
57
|
-
render: (v = (C = n.column) == null ? void 0 : C.columnDef) == null ? void 0 : v.cell,
|
|
58
|
-
props: (w = n.getContext) == null ? void 0 : w.call(n)
|
|
59
|
-
}, null, 8, ["render", "props"])
|
|
60
|
-
])) : g("", !0)
|
|
61
|
-
], 64);
|
|
62
|
-
}), 128))
|
|
63
|
-
])
|
|
64
|
-
])
|
|
65
|
-
]),
|
|
66
|
-
s.value[e.actionColumnId ?? ""] ? (l(), u("div", A, [
|
|
67
|
-
d("div", null, [
|
|
68
|
-
y(c(b), {
|
|
69
|
-
render: (p = (t = (a = s.value[e.actionColumnId ?? ""]) == null ? void 0 : a.column) == null ? void 0 : t.columnDef) == null ? void 0 : p.cell,
|
|
70
|
-
props: (f = (i = s.value[e.actionColumnId ?? ""]) == null ? void 0 : i.getContext) == null ? void 0 : f.call(i)
|
|
71
|
-
}, null, 8, ["render", "props"])
|
|
72
|
-
])
|
|
73
|
-
])) : g("", !0)
|
|
74
|
-
])
|
|
75
|
-
];
|
|
76
|
-
}),
|
|
77
|
-
_: 3
|
|
78
|
-
}, 8, ["class"]));
|
|
79
|
-
}
|
|
80
|
-
});
|
|
81
|
-
export {
|
|
82
|
-
b as F,
|
|
83
|
-
G as _
|
|
84
|
-
};
|
|
@@ -1,299 +0,0 @@
|
|
|
1
|
-
import { defineComponent as q, ref as f, computed as r, watch as G, h as i, resolveComponent as x, createElementBlock as H, openBlock as B, createElementVNode as b, toDisplayString as J, createVNode as y, createBlock as O, createCommentVNode as Q, unref as V } from "vue";
|
|
2
|
-
import { useCoreStore as W, useI18n as X } from "@feedmepos/mf-common";
|
|
3
|
-
import { useSnackbar as Y, components as A } from "@feedmepos/ui-library";
|
|
4
|
-
import { K as Z, D as ee } from "./app-C39bYJmq.js";
|
|
5
|
-
import { u as le } from "./app-CURawLhs.js";
|
|
6
|
-
import { F as te } from "./FmAdminBadge-DlplQOHb.js";
|
|
7
|
-
const ae = {
|
|
8
|
-
class: "flex flex-col gap-24 h-full",
|
|
9
|
-
style: { "max-height": "50vh" }
|
|
10
|
-
}, oe = { class: "flex items-center flex-shrink-0" }, ne = { class: "fm-typo-en-body-lg-600 flex-1" }, se = { class: "flex gap-8" }, ie = { class: "flex flex-col gap-4 w-full flex-1 min-h-0" }, re = { class: "flex items-center gap-8 flex-shrink-0" }, ue = { class: "flex-1 border border-fm-color-border-secondary rounded-lg overflow-hidden overflow-y-auto min-h-0" }, he = /* @__PURE__ */ q({
|
|
11
|
-
__name: "TemplatePublishDialog",
|
|
12
|
-
props: {
|
|
13
|
-
title: {},
|
|
14
|
-
doc: {},
|
|
15
|
-
controller: {},
|
|
16
|
-
initialPublishedRev: {},
|
|
17
|
-
locations: {},
|
|
18
|
-
enabledLocations: {},
|
|
19
|
-
hideUnpublish: { type: Boolean }
|
|
20
|
-
},
|
|
21
|
-
setup(U) {
|
|
22
|
-
const s = U, p = f(s.initialPublishedRev ?? {}), t = f(), n = f(/* @__PURE__ */ new Set()), C = le(), $ = W(), k = Y(), E = r(() => {
|
|
23
|
-
var e;
|
|
24
|
-
return ((e = $.sessionUser.value) == null ? void 0 : e.role.isAdmin) ?? !1;
|
|
25
|
-
}), S = r(() => {
|
|
26
|
-
var l;
|
|
27
|
-
return ((l = s.enabledLocations) != null && l.length ? s.enabledLocations : s.locations).map((a) => {
|
|
28
|
-
var o;
|
|
29
|
-
if (!!!C.locationByDbName[a.dbName])
|
|
30
|
-
return {
|
|
31
|
-
...a,
|
|
32
|
-
status: "invalid"
|
|
33
|
-
};
|
|
34
|
-
const v = !!(((o = p.value) == null ? void 0 : o[a.dbName]) ?? []).find(
|
|
35
|
-
(_) => _._id === s.doc._id && (_.updatedAt ? _.updatedAt === s.doc.updatedAt : _._rev === s.doc._rev)
|
|
36
|
-
);
|
|
37
|
-
return {
|
|
38
|
-
...a,
|
|
39
|
-
status: v ? "published" : "outdated",
|
|
40
|
-
state: a.doc.profile.address.state
|
|
41
|
-
};
|
|
42
|
-
});
|
|
43
|
-
}), { t: m } = X(), g = f(""), w = f({
|
|
44
|
-
logic: "AND",
|
|
45
|
-
rules: []
|
|
46
|
-
}), D = [
|
|
47
|
-
{
|
|
48
|
-
type: "string",
|
|
49
|
-
key: "status",
|
|
50
|
-
entity: "inventory",
|
|
51
|
-
values: ["published", "outdated"]
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
type: "string",
|
|
55
|
-
key: "state",
|
|
56
|
-
entity: "inventory",
|
|
57
|
-
values: [
|
|
58
|
-
...new Set(C.locations.map((e) => e.doc.profile.address.state).filter(Boolean))
|
|
59
|
-
]
|
|
60
|
-
}
|
|
61
|
-
], u = r(() => {
|
|
62
|
-
const e = g.value.toLowerCase();
|
|
63
|
-
return S.value.filter((l) => Z(l, w.value)).filter(({ name: l, dbName: a }) => !!(!e || l.toLowerCase().includes(e) || E.value && a.toLowerCase().includes(e)));
|
|
64
|
-
}), N = r(
|
|
65
|
-
() => u.value.filter((e) => e.status !== "invalid")
|
|
66
|
-
);
|
|
67
|
-
G(
|
|
68
|
-
[g, w],
|
|
69
|
-
() => {
|
|
70
|
-
n.value = /* @__PURE__ */ new Set();
|
|
71
|
-
},
|
|
72
|
-
{ deep: !0 }
|
|
73
|
-
);
|
|
74
|
-
const F = r(() => u.value.length === 0 ? !1 : u.value.every((e) => n.value.has(e.dbName))), T = r(() => {
|
|
75
|
-
if (N.value.length === 0) return !1;
|
|
76
|
-
const e = N.value.filter(
|
|
77
|
-
(l) => n.value.has(l.dbName)
|
|
78
|
-
).length;
|
|
79
|
-
return e > 0 && e < N.value.length;
|
|
80
|
-
});
|
|
81
|
-
function z() {
|
|
82
|
-
F.value ? u.value.forEach((e) => n.value.delete(e.dbName)) : u.value.forEach((e) => n.value.add(e.dbName)), n.value = new Set(n.value);
|
|
83
|
-
}
|
|
84
|
-
function P(e) {
|
|
85
|
-
e.status !== "invalid" && (n.value.has(e.dbName) ? n.value.delete(e.dbName) : n.value.add(e.dbName), n.value = new Set(n.value));
|
|
86
|
-
}
|
|
87
|
-
function L() {
|
|
88
|
-
const e = u.value.filter(
|
|
89
|
-
(l) => l.status !== "invalid" && n.value.has(l.dbName)
|
|
90
|
-
);
|
|
91
|
-
return e.length === 0 ? N.value : e;
|
|
92
|
-
}
|
|
93
|
-
const R = r(() => [
|
|
94
|
-
{
|
|
95
|
-
id: "checkbox",
|
|
96
|
-
header: () => "",
|
|
97
|
-
size: 56,
|
|
98
|
-
cell: (e) => {
|
|
99
|
-
const l = e.row.original;
|
|
100
|
-
return l.status === "invalid" ? i("div", { class: "w-56" }) : i(A.FmCheckbox, {
|
|
101
|
-
value: l.dbName,
|
|
102
|
-
modelValue: n.value.has(l.dbName),
|
|
103
|
-
"onUpdate:modelValue": () => P(l)
|
|
104
|
-
});
|
|
105
|
-
}
|
|
106
|
-
},
|
|
107
|
-
{
|
|
108
|
-
id: "name",
|
|
109
|
-
header: () => "Name",
|
|
110
|
-
size: "auto",
|
|
111
|
-
cell: (e) => {
|
|
112
|
-
const l = e.row.original;
|
|
113
|
-
return i("div", { class: "flex flex-col" }, [
|
|
114
|
-
i("span", {}, l.name),
|
|
115
|
-
i(
|
|
116
|
-
te,
|
|
117
|
-
{},
|
|
118
|
-
{
|
|
119
|
-
default: () => i("div", { class: "flex items-center gap-4" }, [
|
|
120
|
-
i(
|
|
121
|
-
"span",
|
|
122
|
-
{ class: "fm-typo-en-body-sm-400 text-fm-color-typo-tertiary" },
|
|
123
|
-
l.dbName
|
|
124
|
-
),
|
|
125
|
-
i(A.FmButton, {
|
|
126
|
-
variant: "tertiary",
|
|
127
|
-
icon: "content_copy",
|
|
128
|
-
size: "sm",
|
|
129
|
-
onClick: async (a) => {
|
|
130
|
-
a.stopPropagation();
|
|
131
|
-
try {
|
|
132
|
-
await navigator.clipboard.writeText(l.dbName), k == null || k.open({
|
|
133
|
-
title: "Copied to clipboard",
|
|
134
|
-
message: l.name,
|
|
135
|
-
type: "success"
|
|
136
|
-
});
|
|
137
|
-
} catch (h) {
|
|
138
|
-
console.error("Failed to copy:", h);
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
})
|
|
142
|
-
])
|
|
143
|
-
}
|
|
144
|
-
)
|
|
145
|
-
]);
|
|
146
|
-
}
|
|
147
|
-
},
|
|
148
|
-
{
|
|
149
|
-
id: "status",
|
|
150
|
-
header: () => "Status",
|
|
151
|
-
size: 200,
|
|
152
|
-
cell: (e) => {
|
|
153
|
-
const l = e.row.original, a = l.status === "published";
|
|
154
|
-
if (l.status === "invalid")
|
|
155
|
-
return i(
|
|
156
|
-
"div",
|
|
157
|
-
{
|
|
158
|
-
class: ["fm-status-badge", "fm-status-badge-error-secondary"]
|
|
159
|
-
},
|
|
160
|
-
"Invalid"
|
|
161
|
-
);
|
|
162
|
-
let c;
|
|
163
|
-
a && s.controller.unpublishAtLocation && !s.hideUnpublish ? c = i(A.FmButton, {
|
|
164
|
-
variant: "tertiary",
|
|
165
|
-
icon: "block",
|
|
166
|
-
loading: t.value === `unpublish-${l.dbName}`,
|
|
167
|
-
disabled: t.value !== void 0 && t.value !== `unpublish-${l.dbName}`,
|
|
168
|
-
onClick: async () => {
|
|
169
|
-
t.value = `unpublish-${l.dbName}`;
|
|
170
|
-
try {
|
|
171
|
-
const o = await s.controller.unpublishAtLocation(l).delayed(1e3);
|
|
172
|
-
p.value = o;
|
|
173
|
-
} catch (o) {
|
|
174
|
-
console.error("Error unpublishing at location:", o);
|
|
175
|
-
} finally {
|
|
176
|
-
t.value = void 0;
|
|
177
|
-
}
|
|
178
|
-
}
|
|
179
|
-
}) : a || (c = i(A.FmButton, {
|
|
180
|
-
variant: "tertiary",
|
|
181
|
-
icon: "ios_share",
|
|
182
|
-
loading: t.value === `publish-${l.dbName}`,
|
|
183
|
-
disabled: t.value !== void 0 && t.value !== `publish-${l.dbName}`,
|
|
184
|
-
onClick: async () => {
|
|
185
|
-
t.value = `publish-${l.dbName}`;
|
|
186
|
-
try {
|
|
187
|
-
const o = await s.controller.publishAtLocation(l).delayed(1e3);
|
|
188
|
-
p.value = o;
|
|
189
|
-
} catch (o) {
|
|
190
|
-
console.error("Error publishing at location:", o);
|
|
191
|
-
} finally {
|
|
192
|
-
t.value = void 0;
|
|
193
|
-
}
|
|
194
|
-
}
|
|
195
|
-
}));
|
|
196
|
-
const v = [
|
|
197
|
-
i(
|
|
198
|
-
"div",
|
|
199
|
-
{
|
|
200
|
-
class: [
|
|
201
|
-
"fm-status-badge",
|
|
202
|
-
a ? "fm-status-badge-success-secondary" : "fm-status-badge-info-secondary"
|
|
203
|
-
]
|
|
204
|
-
},
|
|
205
|
-
m(a ? "inventory.publish.status.published" : "inventory.publish.status.outdated")
|
|
206
|
-
)
|
|
207
|
-
];
|
|
208
|
-
return c && v.push(c), i("div", { class: "flex items-center gap-8" }, v);
|
|
209
|
-
}
|
|
210
|
-
}
|
|
211
|
-
]);
|
|
212
|
-
async function I() {
|
|
213
|
-
t.value = "all";
|
|
214
|
-
try {
|
|
215
|
-
const e = L(), l = await s.controller.publishAll(e).delayed(1e3);
|
|
216
|
-
p.value = l;
|
|
217
|
-
} catch (e) {
|
|
218
|
-
console.error("Error publishing all:", e);
|
|
219
|
-
} finally {
|
|
220
|
-
t.value = void 0;
|
|
221
|
-
}
|
|
222
|
-
}
|
|
223
|
-
async function K() {
|
|
224
|
-
if (s.controller.unpublishAll) {
|
|
225
|
-
t.value = "unpublish-all";
|
|
226
|
-
try {
|
|
227
|
-
const e = L(), l = await s.controller.unpublishAll(e).delayed(1e3);
|
|
228
|
-
p.value = l;
|
|
229
|
-
} catch (e) {
|
|
230
|
-
console.error("Error unpublishing all:", e);
|
|
231
|
-
} finally {
|
|
232
|
-
t.value = void 0;
|
|
233
|
-
}
|
|
234
|
-
}
|
|
235
|
-
}
|
|
236
|
-
const d = r(() => n.value.size), M = r(() => d.value === 0 || d.value === S.value.length ? m("inventory.publish.actions.publishAll") : m("inventory.publish.actions.publishSelected", { count: d.value })), j = r(() => d.value === 0 || d.value === S.value.length ? "Unpublish all" : `Unpublish selected ${d.value} location${d.value === 1 ? "" : "s"}`);
|
|
237
|
-
return (e, l) => {
|
|
238
|
-
const a = x("FmButton"), h = x("FmTextField"), c = x("FmCheckbox"), v = x("FmTable");
|
|
239
|
-
return B(), H("div", ae, [
|
|
240
|
-
b("div", oe, [
|
|
241
|
-
b("div", ne, J(e.title), 1),
|
|
242
|
-
b("div", se, [
|
|
243
|
-
y(a, {
|
|
244
|
-
label: M.value,
|
|
245
|
-
variant: "secondary",
|
|
246
|
-
onClick: l[0] || (l[0] = (o) => I()),
|
|
247
|
-
loading: t.value === "all",
|
|
248
|
-
disabled: t.value !== "all" && t.value !== void 0
|
|
249
|
-
}, null, 8, ["label", "loading", "disabled"]),
|
|
250
|
-
e.controller.unpublishAll && !e.hideUnpublish ? (B(), O(a, {
|
|
251
|
-
key: 0,
|
|
252
|
-
label: j.value,
|
|
253
|
-
variant: "tertiary",
|
|
254
|
-
onClick: l[1] || (l[1] = (o) => K()),
|
|
255
|
-
loading: t.value === "unpublish-all",
|
|
256
|
-
disabled: t.value !== "unpublish-all" && t.value !== void 0
|
|
257
|
-
}, null, 8, ["label", "loading", "disabled"])) : Q("", !0)
|
|
258
|
-
])
|
|
259
|
-
]),
|
|
260
|
-
b("div", ie, [
|
|
261
|
-
y(h, {
|
|
262
|
-
modelValue: g.value,
|
|
263
|
-
"onUpdate:modelValue": l[2] || (l[2] = (o) => g.value = o),
|
|
264
|
-
class: "w-full flex-shrink-0",
|
|
265
|
-
placeholder: V(m)("inventory.publish.search.placeholder"),
|
|
266
|
-
"prepend-icon": "search"
|
|
267
|
-
}, null, 8, ["modelValue", "placeholder"]),
|
|
268
|
-
b("div", re, [
|
|
269
|
-
y(V(ee), {
|
|
270
|
-
modelValue: w.value,
|
|
271
|
-
"onUpdate:modelValue": l[3] || (l[3] = (o) => w.value = o),
|
|
272
|
-
attributes: D
|
|
273
|
-
}, null, 8, ["modelValue"]),
|
|
274
|
-
y(c, {
|
|
275
|
-
value: "select-all",
|
|
276
|
-
"model-value": F.value,
|
|
277
|
-
indeterminate: T.value,
|
|
278
|
-
"onUpdate:modelValue": z,
|
|
279
|
-
label: "Select all"
|
|
280
|
-
}, null, 8, ["model-value", "indeterminate"])
|
|
281
|
-
]),
|
|
282
|
-
b("div", ue, [
|
|
283
|
-
y(v, {
|
|
284
|
-
"row-data": u.value,
|
|
285
|
-
"column-defs": R.value,
|
|
286
|
-
"shrink-at": 9999,
|
|
287
|
-
virtual: !0,
|
|
288
|
-
"page-size": u.value.length,
|
|
289
|
-
"hide-footer": ""
|
|
290
|
-
}, null, 8, ["row-data", "column-defs", "page-size"])
|
|
291
|
-
])
|
|
292
|
-
])
|
|
293
|
-
]);
|
|
294
|
-
};
|
|
295
|
-
}
|
|
296
|
-
});
|
|
297
|
-
export {
|
|
298
|
-
he as _
|
|
299
|
-
};
|