@feedmepos/mf-inventory-portal 1.8.0-dev.1 → 1.8.0-dev.11
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-BTUjyQbn.js +1466 -0
- package/dist/{ApprovalView-C8_ax05b.js → ApprovalView-CTOTedxc.js} +26 -25
- package/dist/{BindingsDialog-t0ZY9eh5.js → BindingsDialog-C9v4TTzJ.js} +2 -2
- package/dist/{BindingsPicker-C0Qblmml.js → BindingsPicker-B5b0lavg.js} +8 -8
- package/dist/{BindingsTable-CsqUBbRA.js → BindingsTable-CQPan4pU.js} +4 -4
- package/dist/{BulkReceiveRequestView-DAG-TMox.js → BulkReceiveRequestView-BVrrjoYW.js} +21 -21
- package/dist/ChangeLocationComponent.vue_vue_type_script_setup_true_lang-D4Z56y7h.js +151 -0
- package/dist/{ClosingDraftView-CdKp4Ny6.js → ClosingDraftView-5ETKikfT.js} +748 -746
- package/dist/ClosingHistoryView-GM0DRWhq.js +769 -0
- package/dist/{ClosingTemplateView-C326DL4q.js → ClosingTemplateView-Czz--dWq.js} +303 -291
- package/dist/{CustomPrintTemplatePreview.vue_vue_type_script_setup_true_lang-CXjubRbj.js → CustomPrintTemplatePreview.vue_vue_type_script_setup_true_lang-Bjs8hW_q.js} +1 -1
- package/dist/{DefaultView-CsIMmQAY.js → DefaultView-Baksd_Lk.js} +2 -2
- package/dist/{DeliveryOrderPrintPreview-eTrMvJzA.js → DeliveryOrderPrintPreview-CUdMQmLf.js} +9 -9
- package/dist/{EmailDialog.vue_vue_type_script_setup_true_lang-B7nBbxMo.js → EmailDialog.vue_vue_type_script_setup_true_lang-CDta65pB.js} +6228 -6216
- package/dist/FeatureCapabilityBadge.vue_vue_type_script_setup_true_lang-CrCdJfOf.js +47 -0
- package/dist/FeatureCapabilityGate-C34Z4k5D.js +74 -0
- package/dist/{FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-CI2KTzDs.js → FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-C43lHbmc.js} +1 -1
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-Db_FiSRe.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CIMCZnY9.js} +2 -2
- package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-UbMV3dKh.js +120 -0
- package/dist/{FmMultiselectDialog-CYUxtxnS.js → FmMultiselectDialog-DYM4qyMH.js} +2 -2
- package/dist/FmMultiselectDialog-tbS01AI7.js +123 -0
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-DOkV11NN.js → FmUnitInput.vue_vue_type_script_setup_true_lang-DaOKC6RQ.js} +72 -73
- package/dist/ImportView-CPf8zj0t.js +1290 -0
- package/dist/{IngredientsView-CZ6E7cXf.js → IngredientsView-N4CH6zdo.js} +656 -649
- package/dist/{IntegrationExplorerView-B15ND4Fg.js → IntegrationExplorerView-Ds5fTNi3.js} +602 -614
- package/dist/IntegrationPlatformView-wuOLFIQR.js +13073 -0
- package/dist/{IntegrationView-hkNhsqx2.js → IntegrationView-Bhxwz6Ha.js} +2956 -2922
- package/dist/{InventoryBindingForm-SfuUF0_O.js → InventoryBindingForm-DWm9pOH_.js} +1 -1
- package/dist/InventoryBindingForm.vue_vue_type_script_setup_true_lang-TvwD5HcR.js +472 -0
- package/dist/{InventoryBindingSummary-DUcukkyJ.js → InventoryBindingSummary-DI6H0ehi.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-ngeYJhtg.js +79 -0
- package/dist/PlanTierBadge.vue_vue_type_script_setup_true_lang-Cr1LFRUd.js +274 -0
- package/dist/PlanUpgradeDialog.vue_vue_type_script_setup_true_lang-CtoPkGo2.js +79 -0
- package/dist/{ProductionRunDetailView-BwgRX-14.js → ProductionRunDetailView-rGGuDANE.js} +4 -4
- package/dist/{ProductionRunLifecycleDialogs.vue_vue_type_script_setup_true_lang-BbNXNhpr.js → ProductionRunLifecycleDialogs.vue_vue_type_script_setup_true_lang-CTseB9Sn.js} +9 -9
- package/dist/{ProductionRunView-CZU7LY9-.js → ProductionRunView-BLBIYhKd.js} +16 -15
- package/dist/{PublishView-DS2FZ66p.js → PublishView-D_H_LAq2.js} +3 -3
- package/dist/{PurchaseOrderPrintPreview-CZa0MVAs.js → PurchaseOrderPrintPreview-DZy57dQ6.js} +7 -7
- package/dist/{ReceiveRequestView-Bk5b3nVB.js → ReceiveRequestView-qFQPah64.js} +15 -15
- package/dist/RecipeView-BPQ_MlxJ.js +3440 -0
- package/dist/SettingsView-DF_HGtkr.js +1032 -0
- package/dist/StockView-De_R8pxv.js +2651 -0
- package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-DdZg9T4n.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-B3tBgcH7.js} +1 -1
- package/dist/{SupplierView-D8q6siZW.js → SupplierView-DvvB_Nn0.js} +577 -571
- package/dist/{SurchargeView-Db_5YFoR.js → SurchargeView-6gQPyGqi.js} +7 -7
- package/dist/{SystemTrailDialog.vue_vue_type_script_setup_true_lang-WOVs4Fr1.js → SystemTrailDialog.vue_vue_type_script_setup_true_lang-D6gnQpe-.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-BtoP4XgE.js → TemplatePublishDialog.vue_vue_type_script_setup_true_lang-CiuRBHBL.js} +1 -1
- package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-Bljc4Vuy.js → TransferDetails.vue_vue_type_script_setup_true_lang-B-1-jtmF.js} +1707 -1657
- package/dist/TransferTemplateView-Dcc9K-AJ.js +2343 -0
- package/dist/{UnitCostHistoryView-BqDiQ4IE.js → UnitCostHistoryView-e1MYu0_N.js} +4 -4
- package/dist/{UnitDisplayControl.vue_vue_type_script_setup_true_lang-BjSmg5LX.js → UnitDisplayControl.vue_vue_type_script_setup_true_lang-DQWOi2ol.js} +4 -4
- package/dist/{UnitView-CM695-VI.js → UnitView-BaLqtGk3.js} +84 -84
- package/dist/{WarehouseView-BdidU4p6.js → WarehouseView-CKYdpZoP.js} +194 -189
- package/dist/{WastageTemplateView-DdhwdXT6.js → WastageTemplateView-DazO6lu1.js} +19 -18
- package/dist/api/feature-flags.d.ts +12 -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 +8 -0
- package/dist/{app-Cb5s4jMu.js → app-ZyQBMnlh.js} +6102 -6066
- package/dist/app.d.ts +36 -150
- package/dist/app.js +1 -1
- package/dist/{closing-template-DnqnpXxn.js → closing-template-BZfYcHAK.js} +1 -1
- package/dist/components/ChangeLocationComponent.vue.d.ts +21 -14
- package/dist/components/DeprecateSoonWarningDialog.vue.d.ts +22 -0
- package/dist/components/FeatureCapabilityBadge.vue.d.ts +29 -0
- package/dist/components/FeatureCapabilityGate.spec.d.ts +1 -0
- package/dist/components/FeatureCapabilityGate.vue.d.ts +29 -0
- package/dist/components/FmUnitInputRules.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/{PremiumBadge.vue.d.ts → PlanTierBadge.vue.d.ts} +5 -13
- package/dist/components/PlanUpgradeDialog.vue.d.ts +30 -0
- package/dist/composable/useNavigationMenu.d.ts +2 -1
- package/dist/{date2-BPhD_1Of.js → date2-CtVXF-Pl.js} +1 -1
- package/dist/{dayjs.min-Zbd6-uVD.js → dayjs.min-BG2xA9Zk.js} +1 -1
- package/dist/{decimal-Df6a50Ld.js → decimal-C0ERI9wc.js} +2 -2
- package/dist/{defineDeepModel-Brbsikbi.js → defineDeepModel-CAK0Fghp.js} +6 -6
- package/dist/{duplicate-template-B9kuShaF.js → duplicate-template-DwAQVTH7.js} +1 -1
- package/dist/{inventory-core-dart.default-DDRxXXnt.js → feature-1IL43YWw.js} +766 -398
- package/dist/feature-flags/core.d.ts +28 -0
- package/dist/feature-flags/core.spec.d.ts +1 -0
- package/dist/feature-flags/navigation-capabilities.d.ts +23 -0
- package/dist/feature-flags/navigation-capabilities.spec.d.ts +1 -0
- package/dist/feature-flags/plan-tier.d.ts +6 -0
- package/dist/feature-flags/plan-tier.spec.d.ts +1 -0
- package/dist/feature-flags/portal-feature-catalog.d.ts +19 -0
- package/dist/feature-flags/portal-feature-catalog.spec.d.ts +1 -0
- package/dist/feature-flags/vue.d.ts +16 -0
- package/dist/feature-flags/vue.spec.d.ts +1 -0
- package/dist/{format-time-from-id-DmUjUcVj.js → format-time-from-id-QIs7t8ML.js} +1 -1
- package/dist/{format-unit-display-CsQA0SQd.js → format-unit-display-DiTPPgut.js} +118 -119
- package/dist/helper/menu-usage-module.d.ts +1 -1
- package/dist/helper/number.d.ts +5 -1
- package/dist/helper/rules.d.ts +1 -1
- package/dist/id-to-date-DcuC_yKQ.js +67 -0
- package/dist/{import-export.helper-DCQ6oX9s.js → import-export.helper-grsZqa63.js} +16 -17
- package/dist/{JsonViewer.vue_vue_type_script_setup_true_lang-ig2zSXAB.js → index-C25C1Dg7.js} +1074 -1066
- package/dist/{index-UmM6gHJ1.js → index-DN5mjbXr.js} +1 -1
- package/dist/{index-C-mazZwS.js → index-DdSQrnuw.js} +3 -3
- package/dist/index-eGvSlWMU.js +1892 -0
- package/dist/{index-BXaIMGnI.js → index-twVxfWIB.js} +190 -190
- package/dist/{lz-string-Bibw5D_6.js → lz-string-DrKhkO_Q.js} +1 -1
- package/dist/{netsuite-Bev0OtQT.js → netsuite-C_EH9MVy.js} +9 -3
- package/dist/{predefined-templates-BHvUnTk_.js → predefined-templates-mWX1M2Dn.js} +1 -1
- package/dist/{purchase-order-template-DgOKEzhS.js → purchase-order-template-DZ3DsIUr.js} +1 -1
- package/dist/{recalculationUtils-Dv__DzZh.js → recalculationUtils-BZ5ccSeX.js} +1 -1
- package/dist/router/name.d.ts +2 -2
- package/dist/{row-action.enum-ncgDYAjP.js → row-action.enum-B2z1DXD9.js} +2 -2
- package/dist/rules-BpTWt_Y_.js +238 -0
- package/dist/stock-BO2mbTLO.js +74 -0
- package/dist/{stock-CxCRZo_D.js → stock-D9dhzEKk.js} +1 -1
- package/dist/stores/feature.d.ts +20 -2
- package/dist/stores/integration/netsuite.d.ts +2 -2
- package/dist/stores/inventory.d.ts +0 -47
- 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 +49 -49
- package/dist/stores/warehouse.d.ts +1 -1
- package/dist/style.css +1 -1
- package/dist/{supplier-CkZdeMcl.js → supplier-C-Ra1omj.js} +2 -2
- package/dist/{surcharge-FRSFqjGl.js → surcharge-BFDrFP1T.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{uom-rules-Cm1styDr.js → uom-rules-B8pou4DQ.js} +1 -1
- package/dist/{use-ingredient-select-dialog-ntAqHX04.js → use-ingredient-select-dialog-DJvcL3EP.js} +2 -2
- package/dist/use-inventory-binding-dialog-DQBcnw0G.js +113 -0
- package/dist/{use-template-enabled-locations-CIZqw-Z8.js → use-template-enabled-locations-CSgJma2Z.js} +2 -2
- package/dist/{use-transfer-locations-CM5vNttA.js → use-transfer-locations-CkeJ5Nng.js} +14 -14
- package/dist/{useHrmPermission-CslLuBoP.js → useHrmPermission-BDc1xULx.js} +1 -1
- package/dist/useNavigationMenu-B7jkRkTi.js +346 -0
- package/dist/{useSseClient-CCV4mPzD.js → useSseClient-Bxl6D4Xs.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/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 +18 -18
- 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/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 +1 -1
- package/dist/{components/PreviewBadge.vue.d.ts → views/integration/IntegrationPlatformView.vue.d.ts} +11 -13
- package/dist/views/integration/components/IntegrationCard.vue.d.ts +38 -0
- 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/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 +5 -5
- package/dist/views/receive-request/composables/use-receive-request-form.d.ts +39 -39
- package/dist/views/receive-request/composables/use-receive-request-table.d.ts +35 -35
- package/dist/views/receive-request/import/export.spec.d.ts +1 -0
- package/dist/views/receive-request-bulk/composables/use-bulk-receive-request-form.d.ts +34 -34
- package/dist/views/receive-request-bulk/composables/use-bulk-receive-request-table.d.ts +6 -6
- 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 +2 -2
- package/dist/views/recipe/helper/import-recipe.spec.d.ts +1 -0
- package/dist/views/{ingredient-group/IngredientGroupView.vue.d.ts → settings/FeatureFlagView.vue.d.ts} +0 -1
- package/dist/views/settings/PlanLicenseDisplay.spec.d.ts +1 -0
- package/dist/views/{integration/components/IntegrationSyncLogTab.vue.d.ts → settings/PlanLicenseDisplay.vue.d.ts} +2 -2
- package/dist/views/stock/components/dialog/AmendAdjustmentForm.spec.d.ts +1 -0
- package/dist/views/stock/components/dialog/ConvertSkuDialog.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/warehouse/components/WarehouseForm.vue.d.ts +2 -2
- package/dist/{vue-i18n-C5j4EQhi.js → vue-i18n-gaCwgS41.js} +355 -355
- package/dist/{xlsx.util-B50OvX4z.js → xlsx.util-lW-27xp-.js} +2 -2
- package/package.json +71 -66
- package/dist/App-BXgpGzGR.js +0 -1476
- package/dist/ClosingHistoryView-Blyq9-BS.js +0 -761
- package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-zcEv1Swg.js +0 -243
- package/dist/FmMultiselectDialog-BAw-gp5K.js +0 -77
- package/dist/ImportView-BmotFC-3.js +0 -1302
- package/dist/IngredientBindedItem.vue_vue_type_script_setup_true_lang-DVCCpvS4.js +0 -51
- package/dist/IngredientGroupView-qrR9ksEn.js +0 -985
- package/dist/InventoryBindingForm.vue_vue_type_script_setup_true_lang-Zq81p_MF.js +0 -563
- package/dist/NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BmfROiLM.js +0 -72
- package/dist/PremiumBadge.vue_vue_type_script_setup_true_lang-3e3kDsbN.js +0 -93
- package/dist/PreviewBadge.vue_vue_type_script_setup_true_lang-DX2MJqL4.js +0 -29
- package/dist/RecipeView-DvI6X-uN.js +0 -3625
- package/dist/SettingsView-sThYErMz.js +0 -698
- package/dist/StockView-Z9wGihT7.js +0 -2612
- package/dist/TableActionableRow.vue_vue_type_script_setup_true_lang-DAMpuZ1X.js +0 -84
- package/dist/TransferTemplateView-DtsJzmUr.js +0 -2327
- package/dist/feature-Ckn5ra3z.js +0 -1136
- package/dist/number-y_W4pn_d.js +0 -138
- package/dist/random-CSbEbElR.js +0 -10
- package/dist/rules-CZTBvenw.js +0 -98
- package/dist/stock-XINW8JOM.js +0 -75
- package/dist/use-inventory-binding-dialog-DVIJO8Cl.js +0 -152
- package/dist/useNavigationMenu-CSinmNCY.js +0 -172
- 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/components/ingredient-group-rule-field/IngredientGroupRuleField.vue.d.ts +0 -37
- 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
- /package/dist/components/{FmFeatureFlagDialog.vue.d.ts → DeprecateSoonPill.vue.d.ts} +0 -0
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { ref as x, defineComponent as Q, computed as h, resolveComponent as U, createElementBlock as _, openBlock as d, createVNode as g, withModifiers as se, withCtx as $, createElementVNode as t, createCommentVNode as L, toDisplayString as a, unref as r, Fragment as O, createBlock as M, createTextVNode as H, renderList as ne, normalizeClass as E, normalizeStyle as ae, Teleport as X } from "vue";
|
|
2
2
|
import { u as le, _ as re } from "./SingleColumnLayout.vue_vue_type_script_setup_true_lang-DpwneGOV.js";
|
|
3
|
-
import { d as ie, u as J, a as Z } from "./app-
|
|
3
|
+
import { d as ie, u as J, a as Z } from "./app-ZyQBMnlh.js";
|
|
4
4
|
import { useSnackbar as q, useBreakpoints as ce } from "@feedmepos/ui-library";
|
|
5
|
-
import { _ as ue } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-
|
|
5
|
+
import { _ as ue } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-UbMV3dKh.js";
|
|
6
6
|
import { useCoreStore as ee, useI18n as te } from "@feedmepos/mf-common";
|
|
7
|
-
import { c as Y } from "./date2-
|
|
8
|
-
import { d as j } from "./
|
|
7
|
+
import { c as Y } from "./date2-CtVXF-Pl.js";
|
|
8
|
+
import { d as j } from "./rules-BpTWt_Y_.js";
|
|
9
9
|
import { F as de } from "./FmAdminBadge-DlplQOHb.js";
|
|
10
10
|
import { P as me, J as fe } from "./app-C39bYJmq.js";
|
|
11
11
|
const oe = ie((D, C) => {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent as U, ref as _, computed as g, resolveComponent as p, createBlock as v, openBlock as f, withCtx as b, createElementBlock as F, Fragment as h, renderList as E, createElementVNode as k, normalizeClass as I, createVNode as $, toDisplayString as N, unref as x } from "vue";
|
|
2
|
-
import { g as m } from "./decimal-
|
|
3
|
-
import { d as w } from "./dayjs.min-
|
|
4
|
-
import { u as d, e as B, w as L } from "./xlsx.util-
|
|
5
|
-
import { u as Y } from "./app-
|
|
2
|
+
import { g as m } from "./decimal-C0ERI9wc.js";
|
|
3
|
+
import { d as w } from "./dayjs.min-BG2xA9Zk.js";
|
|
4
|
+
import { u as d, e as B, w as L } from "./xlsx.util-lW-27xp-.js";
|
|
5
|
+
import { u as Y } from "./app-ZyQBMnlh.js";
|
|
6
6
|
function O(a, o) {
|
|
7
7
|
return o.map((t) => typeof t.selector == "function" ? t.selector(a) : a[t.selector]);
|
|
8
8
|
}
|
|
@@ -1,48 +1,48 @@
|
|
|
1
|
-
import { defineComponent as W, computed as b, createElementBlock as F, openBlock as y, createElementVNode as l, createCommentVNode as K, Fragment as G, renderList as O, toDisplayString as U, ref as D, watch as ne, resolveComponent as I, createBlock as P, withCtx as M, createVNode as x, unref as s, isRef as le, normalizeClass as
|
|
2
|
-
import { a as Y, S as
|
|
3
|
-
import { useDialog as
|
|
1
|
+
import { defineComponent as W, computed as b, createElementBlock as F, openBlock as y, createElementVNode as l, createCommentVNode as K, Fragment as G, renderList as O, toDisplayString as U, ref as D, watch as ne, resolveComponent as I, createBlock as P, withCtx as M, createVNode as x, unref as s, isRef as le, normalizeClass as pe, normalizeStyle as ve, Teleport as fe, normalizeProps as ye, guardReactiveProps as be } from "vue";
|
|
2
|
+
import { a as Y, S as ge, c as ue, s as se, j as ae, u as xe } from "./app-ZyQBMnlh.js";
|
|
3
|
+
import { useDialog as de, useSnackbar as Z, useProxiedModel as re, useBreakpoints as _e } from "@feedmepos/ui-library";
|
|
4
4
|
import { i as he, _ as Ve, m as Ue } from "./menu-usage-module-BdjYEk3s.js";
|
|
5
5
|
import { F as C } from "./form-mode.enum-BKiNVH6A.js";
|
|
6
6
|
import { defineStore as we, storeToRefs as Se } from "pinia";
|
|
7
|
-
import { D as
|
|
7
|
+
import { D as ie, R as q } from "./row-action.enum-B2z1DXD9.js";
|
|
8
8
|
import { c as Ce } from "./component-BmLAdDiY.js";
|
|
9
9
|
import { useI18n as J } from "@feedmepos/mf-common";
|
|
10
10
|
import { u as Fe, _ as ke } from "./SingleColumnLayout.vue_vue_type_script_setup_true_lang-DpwneGOV.js";
|
|
11
|
-
import { R as H, A as Ee,
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import { _ as
|
|
18
|
-
const
|
|
11
|
+
import { R as H, A as Ee, a as Q, f as $e } from "./rules-BpTWt_Y_.js";
|
|
12
|
+
import { F as Ie } from "./decimal-C0ERI9wc.js";
|
|
13
|
+
import { _ as De } from "./NumberPrecisionInput.vue_vue_type_script_setup_true_lang-ngeYJhtg.js";
|
|
14
|
+
import { u as me } from "./netsuite-C_EH9MVy.js";
|
|
15
|
+
import { _ as Re } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-gJQQKKAC.js";
|
|
16
|
+
import { F as Ae } from "./index-eGvSlWMU.js";
|
|
17
|
+
import { _ as Me } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-UbMV3dKh.js";
|
|
18
|
+
const Pe = { class: "flex flex-col gap-8" }, Te = {
|
|
19
19
|
key: 0,
|
|
20
20
|
class: "flex flex-col"
|
|
21
|
-
},
|
|
21
|
+
}, Be = { class: "flex-1 py-8 px-16" }, Ne = {
|
|
22
22
|
class: "flex-0 py-8 px-16",
|
|
23
23
|
style: { "flex-basis": "240px" }
|
|
24
|
-
},
|
|
24
|
+
}, Le = {
|
|
25
25
|
key: 1,
|
|
26
26
|
class: "flex flex-col"
|
|
27
|
-
},
|
|
27
|
+
}, ze = { class: "flex-1 py-8 px-16" }, je = {
|
|
28
28
|
class: "flex-0 py-8 px-16",
|
|
29
29
|
style: { "flex-basis": "240px" }
|
|
30
|
-
},
|
|
30
|
+
}, qe = {
|
|
31
31
|
key: 2,
|
|
32
32
|
class: "flex flex-col"
|
|
33
|
-
},
|
|
33
|
+
}, He = { class: "flex-1 py-8 px-16" }, Ke = {
|
|
34
34
|
class: "flex-0 py-8 px-16",
|
|
35
35
|
style: { "flex-basis": "240px" }
|
|
36
|
-
},
|
|
36
|
+
}, Ge = /* @__PURE__ */ W({
|
|
37
37
|
__name: "UnitUsedBy",
|
|
38
38
|
props: {
|
|
39
39
|
unit: {}
|
|
40
40
|
},
|
|
41
41
|
setup(k) {
|
|
42
42
|
const p = k, _ = Y(), v = b(() => _.validateUnitUsage(p.unit)), d = b(() => v.value.filter((t) => t.from === "INGREDIENT")), n = b(() => v.value.filter((t) => t.from === "RECIPE")), c = b(() => v.value.filter((t) => t.from === "MENU"));
|
|
43
|
-
return (t, f) => (y(), F("div",
|
|
43
|
+
return (t, f) => (y(), F("div", Pe, [
|
|
44
44
|
f[3] || (f[3] = l("div", { class: "fm-typo-en-body-md-400" }, "Sorry, this unit is used in the following modules:", -1)),
|
|
45
|
-
d.value.length ? (y(), F("div",
|
|
45
|
+
d.value.length ? (y(), F("div", Te, [
|
|
46
46
|
f[0] || (f[0] = l("div", { class: "flex flex-row fm-typo-en-body-md-600 bg-fm-color-neutral-gray-100 text-fm-color-typo-secondary h-48 items-center" }, [
|
|
47
47
|
l("div", { class: "flex-1 py-8 px-16" }, "Ingredient"),
|
|
48
48
|
l("div", {
|
|
@@ -56,12 +56,12 @@ const Te = { class: "flex flex-col gap-8" }, Be = {
|
|
|
56
56
|
key: a.code,
|
|
57
57
|
class: "flex flex-row fm-typo-en-body-md-400 h-48 items-center border-b border-b-fm-color-neutral-gray-100"
|
|
58
58
|
}, [
|
|
59
|
-
l("div",
|
|
60
|
-
l("div",
|
|
59
|
+
l("div", Be, U(a.code) + " " + U(a.name), 1),
|
|
60
|
+
l("div", Ne, U((o = a.bindedIngredient) != null && o.length ? "Convert binding" : "Item unit"), 1)
|
|
61
61
|
]);
|
|
62
62
|
}), 128))
|
|
63
63
|
])) : K("", !0),
|
|
64
|
-
n.value.length ? (y(), F("div",
|
|
64
|
+
n.value.length ? (y(), F("div", Le, [
|
|
65
65
|
f[1] || (f[1] = l("div", { class: "flex flex-row fm-typo-en-body-md-600 bg-fm-color-neutral-gray-100 text-fm-color-typo-secondary h-48 items-center" }, [
|
|
66
66
|
l("div", { class: "flex-1 py-8 px-16" }, "Recipe"),
|
|
67
67
|
l("div", {
|
|
@@ -75,12 +75,12 @@ const Te = { class: "flex flex-col gap-8" }, Be = {
|
|
|
75
75
|
key: a.code,
|
|
76
76
|
class: "flex flex-row fm-typo-en-body-md-400 h-48 items-center border-b border-b-fm-color-neutral-gray-100"
|
|
77
77
|
}, [
|
|
78
|
-
l("div",
|
|
79
|
-
l("div",
|
|
78
|
+
l("div", ze, U(a.code) + " " + U(a.name), 1),
|
|
79
|
+
l("div", je, U((o = a.bindedIngredient) == null ? void 0 : o.slice(0, 3).map((w) => w.code).join(", ")) + " " + U(a.bindedIngredient && ((r = a.bindedIngredient) == null ? void 0 : r.length) > 3 ? `and ${((m = a.bindedIngredient) == null ? void 0 : m.length) - 3} more` : ""), 1)
|
|
80
80
|
]);
|
|
81
81
|
}), 128))
|
|
82
82
|
])) : K("", !0),
|
|
83
|
-
c.value.length ? (y(), F("div",
|
|
83
|
+
c.value.length ? (y(), F("div", qe, [
|
|
84
84
|
f[2] || (f[2] = l("div", { class: "flex flex-row fm-typo-en-body-md-600 bg-fm-color-neutral-gray-100 text-fm-color-typo-secondary h-48 items-center" }, [
|
|
85
85
|
l("div", { class: "flex-1 py-8 px-16" }, "Menu"),
|
|
86
86
|
l("div", {
|
|
@@ -94,15 +94,15 @@ const Te = { class: "flex flex-col gap-8" }, Be = {
|
|
|
94
94
|
key: a.code,
|
|
95
95
|
class: "flex flex-row fm-typo-en-body-md-400 h-48 items-center border-b border-b-fm-color-neutral-gray-100"
|
|
96
96
|
}, [
|
|
97
|
-
l("div",
|
|
98
|
-
l("div",
|
|
97
|
+
l("div", He, U(a.code) + " " + U(a.name), 1),
|
|
98
|
+
l("div", Ke, U((o = a.bindedIngredient) == null ? void 0 : o.slice(0, 3).map((w) => w.code).join(", ")) + " " + U(a.bindedIngredient && ((r = a.bindedIngredient) == null ? void 0 : r.length) > 3 ? `and ${((m = a.bindedIngredient) == null ? void 0 : m.length) - 3} more` : ""), 1)
|
|
99
99
|
]);
|
|
100
100
|
}), 128))
|
|
101
101
|
])) : K("", !0)
|
|
102
102
|
]));
|
|
103
103
|
}
|
|
104
104
|
}), X = we("unitForm", function() {
|
|
105
|
-
const p =
|
|
105
|
+
const p = de(), _ = Z(), v = Y(), d = D(!1), n = D();
|
|
106
106
|
function c() {
|
|
107
107
|
const o = {
|
|
108
108
|
unit: {},
|
|
@@ -134,7 +134,7 @@ const Te = { class: "flex flex-col gap-8" }, Be = {
|
|
|
134
134
|
type: "success"
|
|
135
135
|
});
|
|
136
136
|
} catch (r) {
|
|
137
|
-
r instanceof
|
|
137
|
+
r instanceof ge && he(r) ? p.open({
|
|
138
138
|
title: "Cannot delete unit",
|
|
139
139
|
contentComponent: Ve,
|
|
140
140
|
contentComponentProps: {
|
|
@@ -171,7 +171,7 @@ const Te = { class: "flex flex-col gap-8" }, Be = {
|
|
|
171
171
|
overlay: !0,
|
|
172
172
|
dismissAway: !0,
|
|
173
173
|
closeButton: !0,
|
|
174
|
-
contentComponent:
|
|
174
|
+
contentComponent: Ge,
|
|
175
175
|
contentComponentProps: {
|
|
176
176
|
unit: o
|
|
177
177
|
},
|
|
@@ -205,10 +205,10 @@ const Te = { class: "flex flex-col gap-8" }, Be = {
|
|
|
205
205
|
unitViewLoading: d
|
|
206
206
|
};
|
|
207
207
|
});
|
|
208
|
-
function
|
|
208
|
+
function Oe() {
|
|
209
209
|
const { updateUnit: k, deleteUnit: p } = X(), { t: _ } = J();
|
|
210
210
|
async function v(n, c) {
|
|
211
|
-
const t =
|
|
211
|
+
const t = ue(c);
|
|
212
212
|
if (n === q.Edit) {
|
|
213
213
|
await k(t);
|
|
214
214
|
return;
|
|
@@ -236,7 +236,7 @@ function We() {
|
|
|
236
236
|
header: "",
|
|
237
237
|
cell(n) {
|
|
238
238
|
return Ce(
|
|
239
|
-
[
|
|
239
|
+
[ie[q.Edit], ie[q.Delete]],
|
|
240
240
|
(c) => {
|
|
241
241
|
v(c, n.row.original);
|
|
242
242
|
}
|
|
@@ -251,7 +251,7 @@ function We() {
|
|
|
251
251
|
}
|
|
252
252
|
] };
|
|
253
253
|
}
|
|
254
|
-
const
|
|
254
|
+
const We = { class: "flex flex-col gap-24" }, Ye = { class: "flex gap-24" }, Je = { class: "flex-1" }, Qe = { class: "flex-1" }, Xe = { class: "flex" }, Ze = { class: "flex items-center" }, et = { class: "fm-typo-en-body-lg-600 flex-grow" }, tt = { class: "flex flex-col gap-24" }, ot = { class: "flex gap-24" }, nt = { class: "flex-1" }, lt = { class: "flex-1" }, st = /* @__PURE__ */ W({
|
|
255
255
|
__name: "UnitForm",
|
|
256
256
|
props: {
|
|
257
257
|
mode: {},
|
|
@@ -310,7 +310,7 @@ const Ye = { class: "flex flex-col gap-24" }, Je = { class: "flex gap-24" }, Qe
|
|
|
310
310
|
if (typeof e == "number" && !isNaN(e)) {
|
|
311
311
|
const u = r.value.map((i) => ({
|
|
312
312
|
...i,
|
|
313
|
-
conversion:
|
|
313
|
+
conversion: se.convertPrecision({
|
|
314
314
|
value: i.conversion,
|
|
315
315
|
precision: e
|
|
316
316
|
})
|
|
@@ -354,7 +354,7 @@ const Ye = { class: "flex flex-col gap-24" }, Je = { class: "flex gap-24" }, Qe
|
|
|
354
354
|
(u = (e = $.value) == null ? void 0 : e.resetInputs) == null || u.call(e);
|
|
355
355
|
}
|
|
356
356
|
}), (e, u) => {
|
|
357
|
-
const i = I("FmTextField"), g = I("FmStepperField"),
|
|
357
|
+
const i = I("FmTextField"), g = I("FmStepperField"), R = I("FmButton"), A = I("FmCard"), S = I("FmForm");
|
|
358
358
|
return y(), P(S, {
|
|
359
359
|
ref_key: "formRef",
|
|
360
360
|
ref: $,
|
|
@@ -364,9 +364,9 @@ const Ye = { class: "flex flex-col gap-24" }, Je = { class: "flex gap-24" }, Qe
|
|
|
364
364
|
default: M(() => {
|
|
365
365
|
var B;
|
|
366
366
|
return [
|
|
367
|
-
l("div",
|
|
368
|
-
l("div",
|
|
369
|
-
l("div",
|
|
367
|
+
l("div", We, [
|
|
368
|
+
l("div", Ye, [
|
|
369
|
+
l("div", Je, [
|
|
370
370
|
x(i, {
|
|
371
371
|
disabled: e.disabled,
|
|
372
372
|
label: s(n)("inventory.unit.name"),
|
|
@@ -376,7 +376,7 @@ const Ye = { class: "flex flex-col gap-24" }, Je = { class: "flex gap-24" }, Qe
|
|
|
376
376
|
"label-mark": "required"
|
|
377
377
|
}, null, 8, ["disabled", "label", "modelValue", "rules"])
|
|
378
378
|
]),
|
|
379
|
-
l("div",
|
|
379
|
+
l("div", Qe, [
|
|
380
380
|
x(i, {
|
|
381
381
|
disabled: e.disabled,
|
|
382
382
|
label: s(n)("inventory.unit.symbol"),
|
|
@@ -398,8 +398,8 @@ const Ye = { class: "flex flex-col gap-24" }, Je = { class: "flex gap-24" }, Qe
|
|
|
398
398
|
}, null, 8, ["disabled", "label", "modelValue", "rules"])
|
|
399
399
|
])
|
|
400
400
|
]),
|
|
401
|
-
l("div",
|
|
402
|
-
x(
|
|
401
|
+
l("div", Xe, [
|
|
402
|
+
x(R, {
|
|
403
403
|
disabled: e.disabled,
|
|
404
404
|
type: "button",
|
|
405
405
|
"prepend-icon": "add",
|
|
@@ -408,24 +408,24 @@ const Ye = { class: "flex flex-col gap-24" }, Je = { class: "flex gap-24" }, Qe
|
|
|
408
408
|
onClick: m
|
|
409
409
|
}, null, 8, ["disabled", "label"])
|
|
410
410
|
]),
|
|
411
|
-
(y(!0), F(G, null, O((B = e.modelValue) == null ? void 0 : B.measurements, (h, V) => (y(), P(
|
|
411
|
+
(y(!0), F(G, null, O((B = e.modelValue) == null ? void 0 : B.measurements, (h, V) => (y(), P(A, {
|
|
412
412
|
class: "flex flex-col gap-16 p-16",
|
|
413
413
|
variant: "outlined",
|
|
414
414
|
key: h.id
|
|
415
415
|
}, {
|
|
416
416
|
default: M(() => [
|
|
417
|
-
l("div",
|
|
418
|
-
l("div",
|
|
419
|
-
x(
|
|
417
|
+
l("div", Ze, [
|
|
418
|
+
l("div", et, U(s(n)("inventory.unit.measurement.measurementDefault", [V + 1])), 1),
|
|
419
|
+
x(R, {
|
|
420
420
|
disabled: e.disabled,
|
|
421
421
|
variant: "tertiary",
|
|
422
422
|
"prepend-icon": "delete",
|
|
423
423
|
onClick: (E) => w(V)
|
|
424
424
|
}, null, 8, ["disabled", "onClick"])
|
|
425
425
|
]),
|
|
426
|
-
l("div",
|
|
427
|
-
l("div",
|
|
428
|
-
l("div",
|
|
426
|
+
l("div", tt, [
|
|
427
|
+
l("div", ot, [
|
|
428
|
+
l("div", nt, [
|
|
429
429
|
x(i, {
|
|
430
430
|
disabled: e.disabled,
|
|
431
431
|
class: "col-span-2",
|
|
@@ -436,7 +436,7 @@ const Ye = { class: "flex flex-col gap-24" }, Je = { class: "flex gap-24" }, Qe
|
|
|
436
436
|
"label-mark": "required"
|
|
437
437
|
}, null, 8, ["disabled", "label", "modelValue", "onUpdate:modelValue", "rules"])
|
|
438
438
|
]),
|
|
439
|
-
l("div",
|
|
439
|
+
l("div", lt, [
|
|
440
440
|
x(i, {
|
|
441
441
|
disabled: e.disabled,
|
|
442
442
|
label: s(n)("inventory.unit.measurement.symbol"),
|
|
@@ -447,7 +447,7 @@ const Ye = { class: "flex flex-col gap-24" }, Je = { class: "flex gap-24" }, Qe
|
|
|
447
447
|
}, null, 8, ["disabled", "label", "modelValue", "onUpdate:modelValue", "rules"])
|
|
448
448
|
])
|
|
449
449
|
]),
|
|
450
|
-
x(
|
|
450
|
+
x(De, {
|
|
451
451
|
disabled: e.disabled,
|
|
452
452
|
class: "col-span-3",
|
|
453
453
|
label: s(n)("inventory.unit.measurement.conversion"),
|
|
@@ -455,8 +455,8 @@ const Ye = { class: "flex flex-col gap-24" }, Je = { class: "flex gap-24" }, Qe
|
|
|
455
455
|
"onUpdate:modelValue": (E) => r.value = r.value.map(
|
|
456
456
|
(T, N) => N === V ? {
|
|
457
457
|
...T,
|
|
458
|
-
conversion: s(
|
|
459
|
-
s(
|
|
458
|
+
conversion: s(Ie).toPrecision(
|
|
459
|
+
s(se).fromNumber(E),
|
|
460
460
|
o.value
|
|
461
461
|
)
|
|
462
462
|
} : T
|
|
@@ -479,7 +479,7 @@ const Ye = { class: "flex flex-col gap-24" }, Je = { class: "flex gap-24" }, Qe
|
|
|
479
479
|
}, 512);
|
|
480
480
|
};
|
|
481
481
|
}
|
|
482
|
-
}),
|
|
482
|
+
}), at = { class: "flex gap-4" }, rt = /* @__PURE__ */ W({
|
|
483
483
|
__name: "UnitDialog",
|
|
484
484
|
props: {
|
|
485
485
|
show: { type: Boolean },
|
|
@@ -488,7 +488,7 @@ const Ye = { class: "flex flex-col gap-24" }, Je = { class: "flex gap-24" }, Qe
|
|
|
488
488
|
},
|
|
489
489
|
emits: ["update:show"],
|
|
490
490
|
setup(k) {
|
|
491
|
-
const p = k, _ = Y(), v =
|
|
491
|
+
const p = k, _ = Y(), v = me(), d = Z(), { t: n } = J(), c = re(p, "show"), t = re(p, "unit"), f = b(() => {
|
|
492
492
|
switch (p.mode) {
|
|
493
493
|
case C.READ:
|
|
494
494
|
return "";
|
|
@@ -512,14 +512,14 @@ const Ye = { class: "flex flex-col gap-24" }, Je = { class: "flex gap-24" }, Qe
|
|
|
512
512
|
async function w() {
|
|
513
513
|
r.value = !0;
|
|
514
514
|
try {
|
|
515
|
-
const i =
|
|
515
|
+
const i = ue(t.value);
|
|
516
516
|
i.precision ?? (i.precision = 0), i.measurements ?? (i.measurements = []), await _.createUnit(i), c.value = !1, d.open({
|
|
517
517
|
title: n("inventory.common.success"),
|
|
518
518
|
message: n("inventory.unit.create.success", { name: t.value.name }),
|
|
519
519
|
type: "success"
|
|
520
520
|
});
|
|
521
521
|
} catch (i) {
|
|
522
|
-
i instanceof
|
|
522
|
+
i instanceof ae || d.open({
|
|
523
523
|
title: n("inventory.unit.create.error.title"),
|
|
524
524
|
message: n("inventory.unit.create.error.message"),
|
|
525
525
|
type: "error"
|
|
@@ -537,7 +537,7 @@ const Ye = { class: "flex flex-col gap-24" }, Je = { class: "flex gap-24" }, Qe
|
|
|
537
537
|
type: "success"
|
|
538
538
|
});
|
|
539
539
|
} catch (i) {
|
|
540
|
-
i instanceof
|
|
540
|
+
i instanceof ae || d.open({
|
|
541
541
|
title: n("inventory.unit.update.error.title"),
|
|
542
542
|
message: n("inventory.unit.update.error.message"),
|
|
543
543
|
type: "error"
|
|
@@ -561,8 +561,8 @@ const Ye = { class: "flex flex-col gap-24" }, Je = { class: "flex gap-24" }, Qe
|
|
|
561
561
|
}
|
|
562
562
|
}
|
|
563
563
|
return (i, g) => {
|
|
564
|
-
const
|
|
565
|
-
return y(), P(
|
|
564
|
+
const R = I("FmButton"), A = I("FmSideSheet");
|
|
565
|
+
return y(), P(A, {
|
|
566
566
|
"model-value": s(c),
|
|
567
567
|
"onUpdate:modelValue": g[3] || (g[3] = (S) => le(c) ? c.value = S : null),
|
|
568
568
|
header: f.value,
|
|
@@ -571,14 +571,14 @@ const Ye = { class: "flex flex-col gap-24" }, Je = { class: "flex gap-24" }, Qe
|
|
|
571
571
|
"max-width": 500
|
|
572
572
|
}, {
|
|
573
573
|
"side-sheet-footer": M(() => [
|
|
574
|
-
l("div",
|
|
575
|
-
s(v).isEnabled ? K("", !0) : (y(), P(
|
|
574
|
+
l("div", at, [
|
|
575
|
+
s(v).isEnabled ? K("", !0) : (y(), P(R, {
|
|
576
576
|
key: 0,
|
|
577
577
|
loading: r.value,
|
|
578
578
|
label: a.value,
|
|
579
579
|
onClick: e
|
|
580
580
|
}, null, 8, ["loading", "label"])),
|
|
581
|
-
x(
|
|
581
|
+
x(R, {
|
|
582
582
|
disabled: r.value,
|
|
583
583
|
label: s(n)("common.close"),
|
|
584
584
|
variant: "tertiary",
|
|
@@ -587,7 +587,7 @@ const Ye = { class: "flex flex-col gap-24" }, Je = { class: "flex gap-24" }, Qe
|
|
|
587
587
|
])
|
|
588
588
|
]),
|
|
589
589
|
default: M(() => [
|
|
590
|
-
x(
|
|
590
|
+
x(st, {
|
|
591
591
|
class: "w-full",
|
|
592
592
|
ref_key: "hasValidationExpose",
|
|
593
593
|
ref: o,
|
|
@@ -602,19 +602,19 @@ const Ye = { class: "flex flex-col gap-24" }, Je = { class: "flex gap-24" }, Qe
|
|
|
602
602
|
}, 8, ["model-value", "header"]);
|
|
603
603
|
};
|
|
604
604
|
}
|
|
605
|
-
}),
|
|
605
|
+
}), it = { class: "flex flex-col py-8" }, ut = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, dt = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, kt = /* @__PURE__ */ W({
|
|
606
606
|
__name: "UnitView",
|
|
607
607
|
setup(k) {
|
|
608
|
-
const p = Y(), _ = xe(), v =
|
|
609
|
-
|
|
610
|
-
const { t: d } = J(), n = b(() => p.units), { createUnit: c, updateUnit: t } = X(), { unitDialogProps: f, unitViewLoading: a } = Se(X()), { columnDefs: o } =
|
|
611
|
-
function r(
|
|
612
|
-
switch (
|
|
608
|
+
const p = Y(), _ = xe(), v = me();
|
|
609
|
+
de(), Z();
|
|
610
|
+
const { t: d } = J(), n = b(() => p.units), { createUnit: c, updateUnit: t } = X(), { unitDialogProps: f, unitViewLoading: a } = Se(X()), { columnDefs: o } = Oe();
|
|
611
|
+
function r(A) {
|
|
612
|
+
switch (A) {
|
|
613
613
|
case "add":
|
|
614
614
|
return v.isEnabled ? void 0 : c();
|
|
615
615
|
}
|
|
616
616
|
}
|
|
617
|
-
const m = D(""), w = D(!1), $ = b(() => w.value || a.value), { breakpoints: e } = _e(), u = b(() => e.value.xs || e.value.sm), i = b(() => u.value ? 10 : 20), g = Fe(),
|
|
617
|
+
const m = D(""), w = D(!1), $ = b(() => w.value || a.value), { breakpoints: e } = _e(), u = b(() => e.value.xs || e.value.sm), i = b(() => u.value ? 10 : 20), g = Fe(), R = b(() => [
|
|
618
618
|
...v.isEnabled ? [] : [
|
|
619
619
|
{
|
|
620
620
|
label: d("inventory.unit.create.title"),
|
|
@@ -624,16 +624,16 @@ const Ye = { class: "flex flex-col gap-24" }, Je = { class: "flex gap-24" }, Qe
|
|
|
624
624
|
}
|
|
625
625
|
]
|
|
626
626
|
]);
|
|
627
|
-
return (
|
|
627
|
+
return (A, S) => {
|
|
628
628
|
const B = I("FmTable");
|
|
629
629
|
return y(), P(ke, {
|
|
630
630
|
title: s(d)("inventory.unit.title"),
|
|
631
|
-
actions:
|
|
631
|
+
actions: R.value,
|
|
632
632
|
"onClick:action": r
|
|
633
633
|
}, {
|
|
634
634
|
default: M(() => [
|
|
635
635
|
l("div", {
|
|
636
|
-
class:
|
|
636
|
+
class: pe([
|
|
637
637
|
"relative flex flex-col gap-8 max-h-full",
|
|
638
638
|
{
|
|
639
639
|
"p-0": u.value,
|
|
@@ -641,13 +641,13 @@ const Ye = { class: "flex flex-col gap-24" }, Je = { class: "flex gap-24" }, Qe
|
|
|
641
641
|
}
|
|
642
642
|
])
|
|
643
643
|
}, [
|
|
644
|
-
x(
|
|
644
|
+
x(Me, {
|
|
645
645
|
searchable: "",
|
|
646
646
|
search: m.value,
|
|
647
647
|
"onUpdate:search": S[0] || (S[0] = (h) => m.value = h)
|
|
648
648
|
}, null, 8, ["search"]),
|
|
649
649
|
x(B, {
|
|
650
|
-
style:
|
|
650
|
+
style: ve(s(g).tableHeight),
|
|
651
651
|
"column-defs": s(o),
|
|
652
652
|
"row-data": n.value,
|
|
653
653
|
"search-value": m.value,
|
|
@@ -663,14 +663,14 @@ const Ye = { class: "flex flex-col gap-24" }, Je = { class: "flex gap-24" }, Qe
|
|
|
663
663
|
default: M((V) => {
|
|
664
664
|
var E, T, N, L, ee, z, te, j, oe;
|
|
665
665
|
return [
|
|
666
|
-
l("div",
|
|
667
|
-
l("div",
|
|
668
|
-
x(s(
|
|
666
|
+
l("div", it, [
|
|
667
|
+
l("div", ut, [
|
|
668
|
+
x(s(Ae), {
|
|
669
669
|
render: (N = (T = (E = V.name) == null ? void 0 : E.column) == null ? void 0 : T.columnDef) == null ? void 0 : N.cell,
|
|
670
670
|
props: (ee = (L = V.name) == null ? void 0 : L.getContext) == null ? void 0 : ee.call(L)
|
|
671
671
|
}, null, 8, ["render", "props"])
|
|
672
672
|
]),
|
|
673
|
-
l("div",
|
|
673
|
+
l("div", dt, U((oe = (j = (te = (z = h.original.measurements) == null ? void 0 : z.map) == null ? void 0 : te.call(z, (ce) => ce.name)) == null ? void 0 : j.join) == null ? void 0 : oe.call(j, ", ")), 1)
|
|
674
674
|
])
|
|
675
675
|
];
|
|
676
676
|
}),
|
|
@@ -680,8 +680,8 @@ const Ye = { class: "flex flex-col gap-24" }, Je = { class: "flex gap-24" }, Qe
|
|
|
680
680
|
_: 1
|
|
681
681
|
}, 8, ["style", "column-defs", "row-data", "search-value", "loading", "page-size"])
|
|
682
682
|
], 2),
|
|
683
|
-
(y(), P(
|
|
684
|
-
x(
|
|
683
|
+
(y(), P(fe, { to: "body" }, [
|
|
684
|
+
x(rt, ye(be(s(f))), null, 16)
|
|
685
685
|
]))
|
|
686
686
|
]),
|
|
687
687
|
_: 1
|
|
@@ -690,5 +690,5 @@ const Ye = { class: "flex flex-col gap-24" }, Je = { class: "flex gap-24" }, Qe
|
|
|
690
690
|
}
|
|
691
691
|
});
|
|
692
692
|
export {
|
|
693
|
-
|
|
693
|
+
kt as default
|
|
694
694
|
};
|