@feedmepos/mf-inventory-portal 1.8.0-dev.0 → 1.8.0-dev.10

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.
Files changed (247) hide show
  1. package/dist/App-BjFIh5km.js +1466 -0
  2. package/dist/{ApprovalView-BK6E_3Cw.js → ApprovalView-CauRuf64.js} +26 -25
  3. package/dist/{BindingsDialog-BAVPQ_Eq.js → BindingsDialog-U-tzIfGX.js} +2 -2
  4. package/dist/{BindingsPicker-bAuDX7Af.js → BindingsPicker-CV_oghtz.js} +2 -2
  5. package/dist/{BindingsTable-LGlvV0lt.js → BindingsTable-TKSQxAxV.js} +4 -4
  6. package/dist/{BulkReceiveRequestView-CQf7FYos.js → BulkReceiveRequestView-Cyeq26qc.js} +21 -21
  7. package/dist/ChangeLocationComponent.vue_vue_type_script_setup_true_lang-BpJhboKU.js +151 -0
  8. package/dist/{ClosingDraftView-DH7iYiE9.js → ClosingDraftView-UqeHsxyJ.js} +748 -746
  9. package/dist/ClosingHistoryView-Cr6cQq6j.js +769 -0
  10. package/dist/{ClosingTemplateView-D532GNTn.js → ClosingTemplateView-DZ0Mdc87.js} +303 -291
  11. package/dist/{CustomPrintTemplatePreview.vue_vue_type_script_setup_true_lang-CvqZGcvX.js → CustomPrintTemplatePreview.vue_vue_type_script_setup_true_lang-C-OsCTxZ.js} +1 -1
  12. package/dist/{DefaultView-DqqXJVba.js → DefaultView-DQKHG5Jl.js} +2 -2
  13. package/dist/{DeliveryOrderPrintPreview-DkHNDEKP.js → DeliveryOrderPrintPreview-Z_kBbMMO.js} +2 -2
  14. package/dist/{EmailDialog.vue_vue_type_script_setup_true_lang-Cyj3ka37.js → EmailDialog.vue_vue_type_script_setup_true_lang-Ce6Ly9pT.js} +6228 -6216
  15. package/dist/FeatureCapabilityBadge.vue_vue_type_script_setup_true_lang-BUYI8koH.js +47 -0
  16. package/dist/FeatureCapabilityGate-DOn2IVJb.js +74 -0
  17. package/dist/{FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-BCuhx2cN.js → FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-BJuo4lEh.js} +1 -1
  18. package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CDNqm_9N.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DZxz5hbo.js} +2 -2
  19. package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CiBhz5sq.js +120 -0
  20. package/dist/FmMultiselectDialog-Bx9cLdYs.js +123 -0
  21. package/dist/{FmMultiselectDialog-eH3nO3P3.js → FmMultiselectDialog-DvaWLGY5.js} +2 -2
  22. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-BCIkEl75.js → FmUnitInput.vue_vue_type_script_setup_true_lang-D6f1M96D.js} +72 -73
  23. package/dist/ImportView-1-cjN7ay.js +1290 -0
  24. package/dist/{IngredientsView-DtDtzaMt.js → IngredientsView-JfKlUU2E.js} +656 -649
  25. package/dist/{IntegrationExplorerView-C4lYc_LH.js → IntegrationExplorerView-uElgWH8i.js} +602 -614
  26. package/dist/IntegrationPlatformView-g2dU5SG6.js +13061 -0
  27. package/dist/{IntegrationView-Bx5VdV5l.js → IntegrationView-B9g888K4.js} +2956 -2922
  28. package/dist/{InventoryBindingForm-DKa1DwYs.js → InventoryBindingForm-DfGOKZWg.js} +1 -1
  29. package/dist/InventoryBindingForm.vue_vue_type_script_setup_true_lang-CNjTdNL7.js +472 -0
  30. package/dist/{InventoryBindingSummary-CNqwcsrX.js → InventoryBindingSummary-CSii8B2X.js} +1 -1
  31. package/dist/JsonViewer.vue_vue_type_script_setup_true_lang-C_hg75l0.js +25 -0
  32. package/dist/NumberPrecisionInput.vue_vue_type_script_setup_true_lang-D_Xk4SOH.js +79 -0
  33. package/dist/PlanTierBadge.vue_vue_type_script_setup_true_lang-DJvfMOND.js +274 -0
  34. package/dist/PlanUpgradeDialog.vue_vue_type_script_setup_true_lang-Bdjm0Y4w.js +79 -0
  35. package/dist/ProductionRunDetailView-HgH2Wp99.js +2312 -0
  36. package/dist/{production-run-prepare-sheet-aQOcxgaC.js → ProductionRunLifecycleDialogs.vue_vue_type_script_setup_true_lang-C88pjV2s.js} +11039 -3661
  37. package/dist/ProductionRunView-BkvQHeCP.js +931 -0
  38. package/dist/{PublishView-D0oSoJ5a.js → PublishView-CIei_T5e.js} +3 -3
  39. package/dist/{PurchaseOrderPrintPreview-CE-l4mvB.js → PurchaseOrderPrintPreview-Wmv7676h.js} +2 -2
  40. package/dist/{ReceiveRequestView-B2z8Ji0e.js → ReceiveRequestView-MqOIpIDB.js} +15 -15
  41. package/dist/RecipeView-WzXJX4JU.js +3440 -0
  42. package/dist/SettingsView-1YlgjyzB.js +1032 -0
  43. package/dist/StockView-C-dIRXPv.js +2651 -0
  44. package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-BTh5E4Tt.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-CewKTZzy.js} +1 -1
  45. package/dist/{SupplierView-qqhUQ-SY.js → SupplierView-53rHhQ63.js} +577 -571
  46. package/dist/{SurchargeView-B0TYUfqY.js → SurchargeView-DuJb5EUn.js} +7 -7
  47. package/dist/{SystemTrailDialog.vue_vue_type_script_setup_true_lang-tfMHi9Yv.js → SystemTrailDialog.vue_vue_type_script_setup_true_lang-C_YmC-ZX.js} +2 -2
  48. package/dist/TableActionableRow.vue_vue_type_script_setup_true_lang-gJQQKKAC.js +71 -0
  49. package/dist/{TemplatePublishDialog.vue_vue_type_script_setup_true_lang-Dxc-jNte.js → TemplatePublishDialog.vue_vue_type_script_setup_true_lang-CyQujMzv.js} +1 -1
  50. package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-BX36zWMb.js → TransferDetails.vue_vue_type_script_setup_true_lang-CMwqjlb0.js} +1722 -1672
  51. package/dist/TransferTemplateView-B6OGfKQr.js +2343 -0
  52. package/dist/{UnitCostHistoryView-xdRSkjD7.js → UnitCostHistoryView-BVlq4BNG.js} +4 -4
  53. package/dist/{UnitDisplayControl.vue_vue_type_script_setup_true_lang-BT2v1gZv.js → UnitDisplayControl.vue_vue_type_script_setup_true_lang-CULJEeCU.js} +4 -4
  54. package/dist/{UnitView-p-V_TMMo.js → UnitView-AuIJokVF.js} +84 -84
  55. package/dist/{WarehouseView-BOGYcUHH.js → WarehouseView-Cjv8S1ov.js} +194 -189
  56. package/dist/{WastageTemplateView-CiifZMq6.js → WastageTemplateView-mxSTzVSZ.js} +19 -18
  57. package/dist/api/bill.d.ts +144 -88
  58. package/dist/api/feature-flags.d.ts +12 -0
  59. package/dist/api/food-market-hub.d.ts +2 -2
  60. package/dist/api/integration-sync-log.d.ts +0 -13
  61. package/dist/api/inventory.d.ts +9 -9
  62. package/dist/api/license.d.ts +8 -0
  63. package/dist/{app-CGcDbrt8.js → app-OztWApio.js} +27841 -28064
  64. package/dist/app.d.ts +36 -150
  65. package/dist/app.js +1 -1
  66. package/dist/{closing-template-B4lQetjU.js → closing-template-DIxXDgZQ.js} +1 -1
  67. package/dist/components/ChangeLocationComponent.vue.d.ts +21 -14
  68. package/dist/components/DeprecateSoonWarningDialog.vue.d.ts +22 -0
  69. package/dist/components/FeatureCapabilityBadge.vue.d.ts +29 -0
  70. package/dist/components/FeatureCapabilityGate.vue.d.ts +29 -0
  71. package/dist/components/FmUnitInputRules.d.ts +1 -1
  72. package/dist/components/MultiLocationSelector.vue.d.ts +6 -6
  73. package/dist/components/{PreviewBadge.vue.d.ts → PlanTierBadge.vue.d.ts} +5 -13
  74. package/dist/components/PlanUpgradeDialog.vue.d.ts +30 -0
  75. package/dist/composable/useNavigationMenu.d.ts +2 -1
  76. package/dist/{date2-CHOcS7LX.js → date2-BTzYzk-x.js} +1 -1
  77. package/dist/{dayjs.min-DrqpmBJQ.js → dayjs.min-BIg6CfC4.js} +1 -1
  78. package/dist/{decimal-BJ-B2ZXz.js → decimal-B34w3X7O.js} +2 -2
  79. package/dist/{defineDeepModel-DLlTW3xL.js → defineDeepModel-CrZAv12u.js} +1 -1
  80. package/dist/{duplicate-template-Dyz7iXqd.js → duplicate-template-BKVPhi40.js} +1 -1
  81. package/dist/{inventory-core-dart.default-DGI40oFz.js → feature-BUVZ_ab3.js} +766 -398
  82. package/dist/feature-flags/core.d.ts +28 -0
  83. package/dist/feature-flags/navigation-capabilities.d.ts +23 -0
  84. package/dist/feature-flags/navigation-capabilities.spec.d.ts +1 -0
  85. package/dist/feature-flags/plan-tier.d.ts +6 -0
  86. package/dist/feature-flags/plan-tier.spec.d.ts +1 -0
  87. package/dist/feature-flags/portal-feature-catalog.d.ts +19 -0
  88. package/dist/feature-flags/portal-feature-catalog.spec.d.ts +1 -0
  89. package/dist/feature-flags/vue.d.ts +16 -0
  90. package/dist/feature-flags/vue.spec.d.ts +1 -0
  91. package/dist/{format-time-from-id-DBFdt14U.js → format-time-from-id-DGLxhRFH.js} +1 -1
  92. package/dist/{format-unit-display-BXCWhtXb.js → format-unit-display-BhudItCc.js} +118 -119
  93. package/dist/helper/menu-usage-module.d.ts +1 -1
  94. package/dist/helper/number.d.ts +5 -1
  95. package/dist/helper/rules.d.ts +1 -1
  96. package/dist/id-to-date-BfwadWDS.js +67 -0
  97. package/dist/{import-export.helper-BgaADwYQ.js → import-export.helper-BdQ_d-fT.js} +16 -17
  98. package/dist/{index-BT-a2SOP.js → index-BTNI4XZ2.js} +1 -1
  99. package/dist/{index-BS5wlvV_.js → index-B_hoeQNL.js} +3 -3
  100. package/dist/{JsonViewer.vue_vue_type_script_setup_true_lang-ig2zSXAB.js → index-C25C1Dg7.js} +1074 -1066
  101. package/dist/{index-CqgYx0tx.js → index-CCvxPS3E.js} +1 -1
  102. package/dist/index-eGvSlWMU.js +1892 -0
  103. package/dist/{lz-string-CRDgHWib.js → lz-string-CVEGZpSC.js} +1 -1
  104. package/dist/{netsuite-CaILEA4R.js → netsuite-DEhdSyBn.js} +9 -3
  105. package/dist/{predefined-templates-CTLn4dgR.js → predefined-templates-BTdQl7jj.js} +1 -1
  106. package/dist/{purchase-order-template-CE4_gQyK.js → purchase-order-template-DfMmpsrJ.js} +1 -1
  107. package/dist/{recalculationUtils-DoBJhZjA.js → recalculationUtils-Ds9Jcg0l.js} +1 -1
  108. package/dist/router/name.d.ts +2 -3
  109. package/dist/{row-action.enum-ncgDYAjP.js → row-action.enum-B2Y5YFbc.js} +2 -2
  110. package/dist/rules-D01xYhgI.js +238 -0
  111. package/dist/{stock-WxsPiRKa.js → stock-D3kBNq3e.js} +1 -1
  112. package/dist/stock-DyTC4Teu.js +74 -0
  113. package/dist/stores/feature.d.ts +20 -2
  114. package/dist/stores/integration/codemax.d.ts +2 -2
  115. package/dist/stores/integration/foodmarkethub.d.ts +2 -2
  116. package/dist/stores/integration/netsuite.d.ts +2 -2
  117. package/dist/stores/inventory.d.ts +0 -47
  118. package/dist/stores/inventory.no-location.spec.d.ts +1 -0
  119. package/dist/stores/location.d.ts +42 -42
  120. package/dist/stores/supplier.d.ts +49 -49
  121. package/dist/stores/warehouse.d.ts +3 -2
  122. package/dist/style.css +1 -1
  123. package/dist/{supplier-DbdPWPj7.js → supplier-DaidezrO.js} +2 -2
  124. package/dist/{surcharge-BsvY29nN.js → surcharge-C-PFvvlU.js} +1 -1
  125. package/dist/tsconfig.app.tsbuildinfo +1 -1
  126. package/dist/{uom-rules-dxyRNetA.js → uom-rules-Un5bhcrm.js} +1 -1
  127. package/dist/{use-ingredient-select-dialog-eYM-6q4s.js → use-ingredient-select-dialog-DV_hkAt9.js} +2 -2
  128. package/dist/use-inventory-binding-dialog-CTceyFrg.js +113 -0
  129. package/dist/{use-template-enabled-locations-C0o5r4_0.js → use-template-enabled-locations-DGqw8tvz.js} +2 -2
  130. package/dist/{use-transfer-locations-CC35SlyA.js → use-transfer-locations-DgtKajec.js} +2 -2
  131. package/dist/{useHrmPermission-DxzYJX4n.js → useHrmPermission-BMpZlah6.js} +1 -1
  132. package/dist/useNavigationMenu-D0NtXAnB.js +346 -0
  133. package/dist/{useSseClient-ml-_A-4u.js → useSseClient-CHZZxy7Z.js} +1 -1
  134. package/dist/views/adjustment-template/wastage-template/actions.d.ts +36 -36
  135. package/dist/views/adjustment-template/wastage-template/table.d.ts +36 -36
  136. package/dist/views/closing-draft/components/closing-draft-dialog/ClosingDraftApprovalDialog.vue.d.ts +6 -6
  137. package/dist/views/closing-draft/components/closing-draft-dialog/ClosingDraftDialog.vue.d.ts +12 -12
  138. package/dist/views/closing-draft/components/closing-draft-groups/ClosingGroupDetailSideSheet.vue.d.ts +6 -6
  139. package/dist/views/closing-draft/composables/use-closing-draft-import.d.ts +3 -3
  140. package/dist/views/closing-draft/composables/use-closing-draft-table.d.ts +18 -18
  141. package/dist/views/closing-template/composables/use-closing-template-actions.d.ts +45 -45
  142. package/dist/views/closing-template/composables/use-closing-template-table.d.ts +36 -36
  143. package/dist/views/ingredients/components/inventory-binding/InventoryBindingForm.vue.d.ts +0 -1
  144. package/dist/views/ingredients/components/inventory-binding/composables/use-inventory-binding-dialog.d.ts +0 -1
  145. package/dist/views/ingredients/components/inventory-binding/recipe-amount-validation.spec.d.ts +1 -0
  146. package/dist/views/ingredients/components/inventory-binding/v2/InventoryBindingFormV2.vue.d.ts +0 -1
  147. package/dist/views/ingredients/components/inventory-binding/v2/composables/use-inventory-binding-dialog.d.ts +0 -1
  148. package/dist/views/ingredients/helper/is-linked-ingredient-error.d.ts +1 -1
  149. package/dist/{components/PremiumBadge.vue.d.ts → views/integration/IntegrationPlatformView.vue.d.ts} +11 -13
  150. package/dist/views/integration/components/ApplyProductDialog.vue.d.ts +4 -4
  151. package/dist/views/integration/components/ApplyProductDialogCodemax.vue.d.ts +4 -4
  152. package/dist/views/integration/components/ApplyProductDialogV4.vue.d.ts +4 -4
  153. package/dist/views/integration/components/CodemaxDialog.vue.d.ts +4 -4
  154. package/dist/views/integration/components/IntegrationCard.vue.d.ts +38 -0
  155. package/dist/views/integration/components/Synergy/importFn.spec.d.ts +1 -0
  156. package/dist/views/integration/components/Xilnex/importFn.spec.d.ts +1 -0
  157. package/dist/views/integration/components/netsuite/business/AddLocationDialog.vue.d.ts +36 -36
  158. package/dist/views/integration/components/netsuite/business/AddVendorDialog.vue.d.ts +24 -24
  159. package/dist/views/integration/helper/opening-balance.d.ts +22 -0
  160. package/dist/views/integration/helper/opening-balance.spec.d.ts +1 -0
  161. package/dist/views/production-run/features/detail/ProductionRunDetailTabs.spec.d.ts +1 -0
  162. package/dist/views/production-run/features/detail/{ProductionRunTabs.vue.d.ts → ProductionRunDetailTabs.vue.d.ts} +4 -8
  163. package/dist/views/production-run/features/detail/ProductionRunOverviewTab.vue.d.ts +2 -2
  164. package/dist/views/production-run/features/detail/use-production-run-detail.d.ts +4 -4
  165. package/dist/views/production-run/features/lifecycle/CancelRunDialog.vue.d.ts +2 -2
  166. package/dist/views/production-run/features/lifecycle/CloseRunDialog.vue.d.ts +2 -2
  167. package/dist/views/production-run/features/lifecycle/ProductionRunLifecycleDialogs.vue.d.ts +11 -11
  168. package/dist/views/production-run/features/lifecycle/TargetReachedDialog.vue.d.ts +2 -2
  169. package/dist/views/production-run/features/planning/ProductionRunFormDialog.vue.d.ts +2 -2
  170. package/dist/views/production-run/features/planning/use-production-run-duplicate-sources.d.ts +3 -3
  171. package/dist/views/production-run/features/prepare/production-run-prepare-sheet.d.ts +0 -9
  172. package/dist/views/production-run/shared/helpers/production-run-navigation.d.ts +0 -2
  173. package/dist/views/production-run/shared/model/production-run-list.d.ts +0 -1
  174. package/dist/views/production-run/shared/ui/ProductionRunScrollHint.vue.d.ts +10 -0
  175. package/dist/views/receive-request/components/transfer-form/TransferFormWithController.vue.d.ts +5 -5
  176. package/dist/views/receive-request/composables/netsuite-order-label.d.ts +11 -0
  177. package/dist/views/receive-request/composables/netsuite-order-label.spec.d.ts +1 -0
  178. package/dist/views/receive-request/composables/use-process-purchase-order.d.ts +6 -6
  179. package/dist/views/receive-request/composables/use-receive-request-form.d.ts +48 -48
  180. package/dist/views/receive-request/composables/use-receive-request-table.d.ts +42 -42
  181. package/dist/views/receive-request/import/export.spec.d.ts +1 -0
  182. package/dist/views/receive-request-bulk/composables/use-bulk-receive-request-form.d.ts +42 -42
  183. package/dist/views/receive-request-bulk/composables/use-bulk-receive-request-table.d.ts +8 -8
  184. package/dist/views/recipe/components/recipe-bulk-editor/components/ModificationCard.spec.d.ts +1 -0
  185. package/dist/views/recipe/helper/bulk-edit-simulation.helper.d.ts +0 -1
  186. package/dist/views/recipe/helper/import-recipe.d.ts +2 -2
  187. package/dist/views/recipe/helper/import-recipe.spec.d.ts +1 -0
  188. package/dist/views/settings/PlanLicenseDisplay.spec.d.ts +1 -0
  189. package/dist/views/{integration/components/IntegrationSyncLogTab.vue.d.ts → settings/PlanLicenseDisplay.vue.d.ts} +2 -2
  190. package/dist/views/stock/components/StockRecordCard.vue.d.ts +72 -44
  191. package/dist/views/stock/components/dialog/AmendAdjustmentForm.spec.d.ts +1 -0
  192. package/dist/views/stock/components/dialog/ConvertSkuDialog.spec.d.ts +1 -0
  193. package/dist/views/supplier/components/SupplierForm.vue.d.ts +4 -4
  194. package/dist/views/supplier/composables/use-supplier-table.d.ts +2 -2
  195. package/dist/views/transfer-template/components/transfer-template-dialog/TransferTemplateDialog.vue.d.ts +8 -8
  196. package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-locations.d.ts +4 -4
  197. package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-template-items.spec.d.ts +1 -0
  198. package/dist/views/transfer-template/composables/use-template-item-bulk-editor.d.ts +24 -24
  199. package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +48 -48
  200. package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +48 -48
  201. package/dist/views/warehouse/components/WarehouseForm.vue.d.ts +6 -4
  202. package/dist/{vue-i18n-DYapak10.js → vue-i18n-mXrQUZTi.js} +235 -235
  203. package/dist/{xlsx.util-DrElrKDx.js → xlsx.util-CKx0NYTq.js} +2 -2
  204. package/package.json +72 -67
  205. package/dist/App-CBS1Tqpl.js +0 -1476
  206. package/dist/ClosingHistoryView-3z17ZJzK.js +0 -761
  207. package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CB50Gqot.js +0 -243
  208. package/dist/FmMultiselectDialog-7xh6h5AX.js +0 -77
  209. package/dist/ImportView-C3Fc0e_X.js +0 -1302
  210. package/dist/IngredientBindedItem.vue_vue_type_script_setup_true_lang-6naVJEke.js +0 -51
  211. package/dist/IngredientGroupView-DA1buE1C.js +0 -985
  212. package/dist/InventoryBindingForm.vue_vue_type_script_setup_true_lang-tEKGPtHZ.js +0 -563
  213. package/dist/NumberPrecisionInput.vue_vue_type_script_setup_true_lang-Cbg0j7Jz.js +0 -72
  214. package/dist/PremiumBadge.vue_vue_type_script_setup_true_lang-Btrg9HNc.js +0 -93
  215. package/dist/PreviewBadge.vue_vue_type_script_setup_true_lang-DX2MJqL4.js +0 -29
  216. package/dist/ProductionRunDetailView-DYeSPsIY.js +0 -2284
  217. package/dist/ProductionRunPreparePrintView-DJOejqOC.js +0 -34
  218. package/dist/ProductionRunTabs.vue_vue_type_script_setup_true_lang-JKMI-vVw.js +0 -7543
  219. package/dist/ProductionRunView-Cg3aYOg9.js +0 -911
  220. package/dist/RecipeView-DC0p9RKL.js +0 -3625
  221. package/dist/SettingsView-DaKfCVY5.js +0 -698
  222. package/dist/StockView-DdweBRFv.js +0 -2612
  223. package/dist/TableActionableRow.vue_vue_type_script_setup_true_lang-DAMpuZ1X.js +0 -84
  224. package/dist/TransferTemplateView-CSXcAB3-.js +0 -2327
  225. package/dist/feature-DtpSrELx.js +0 -1136
  226. package/dist/number-DE6ovaTs.js +0 -138
  227. package/dist/random-CSbEbElR.js +0 -10
  228. package/dist/rules-CkaU7yFU.js +0 -98
  229. package/dist/stock-B3Q9e174.js +0 -75
  230. package/dist/use-inventory-binding-dialog-CCV1iieA.js +0 -152
  231. package/dist/useNavigationMenu-IKam6CEf.js +0 -172
  232. package/dist/usePromise-CbVUCxhj.js +0 -29
  233. package/dist/views/ingredient-group/IngredientGroupView.vue.d.ts +0 -3
  234. package/dist/views/ingredient-group/components/ingredient-group-dialog/IngredientGroupDialog.vue.d.ts +0 -31
  235. package/dist/views/ingredient-group/components/ingredient-group-dialog/IngredientGroupDialogProps.d.ts +0 -10
  236. package/dist/views/ingredient-group/components/ingredient-group-form/IngredientGroupForm.vue.d.ts +0 -21
  237. package/dist/views/ingredient-group/components/ingredient-group-form/IngredientGroupFormProps.d.ts +0 -12
  238. package/dist/views/ingredient-group/components/ingredient-group-rule-field/IngredientGroupRuleField.vue.d.ts +0 -37
  239. package/dist/views/ingredient-group/composables/use-ingredient-group-actions.d.ts +0 -24
  240. package/dist/views/ingredient-group/composables/use-ingredient-group-rule-item.d.ts +0 -31
  241. package/dist/views/ingredient-group/composables/use-ingredient-group-table.d.ts +0 -77
  242. package/dist/views/integration/composables/use-integration-sync-log.d.ts +0 -45
  243. /package/dist/components/{FmFeatureFlagDialog.vue.d.ts → DeprecateSoonPill.vue.d.ts} +0 -0
  244. /package/dist/{views/production-run/ProductionRunPreparePrintView.spec.d.ts → components/FeatureCapabilityGate.spec.d.ts} +0 -0
  245. /package/dist/{views/production-run/features/detail/ProductionRunTabs.spec.d.ts → components/NumberPrecisionInput.spec.d.ts} +0 -0
  246. /package/dist/{views/production-run/features/prepare/production-run-prepare-sheet-cleanup.spec.d.ts → feature-flags/core.spec.d.ts} +0 -0
  247. /package/dist/views/{production-run/ProductionRunPreparePrintView.vue.d.ts → settings/FeatureFlagView.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-CGcDbrt8.js";
3
+ import { d as ie, u as J, a as Z } from "./app-OztWApio.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-CB50Gqot.js";
5
+ import { _ as ue } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CiBhz5sq.js";
6
6
  import { useCoreStore as ee, useI18n as te } from "@feedmepos/mf-common";
7
- import { c as Y } from "./date2-CHOcS7LX.js";
8
- import { d as j } from "./number-DE6ovaTs.js";
7
+ import { c as Y } from "./date2-BTzYzk-x.js";
8
+ import { d as j } from "./rules-D01xYhgI.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-BJ-B2ZXz.js";
3
- import { d as w } from "./dayjs.min-DrqpmBJQ.js";
4
- import { u as d, e as B, w as L } from "./xlsx.util-DrElrKDx.js";
5
- import { u as Y } from "./app-CGcDbrt8.js";
2
+ import { g as m } from "./decimal-B34w3X7O.js";
3
+ import { d as w } from "./dayjs.min-BIg6CfC4.js";
4
+ import { u as d, e as B, w as L } from "./xlsx.util-CKx0NYTq.js";
5
+ import { u as Y } from "./app-OztWApio.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 ce, normalizeStyle as pe, Teleport as ve, normalizeProps as fe, guardReactiveProps as ye } from "vue";
2
- import { a as Y, S as be, c as ie, w as ge, j as se, u as xe } from "./app-CGcDbrt8.js";
3
- import { useDialog as ue, useSnackbar as Z, useProxiedModel as ae, useBreakpoints as _e } from "@feedmepos/ui-library";
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-OztWApio.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 re, R as q } from "./row-action.enum-ncgDYAjP.js";
7
+ import { D as ie, R as q } from "./row-action.enum-B2Y5YFbc.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, c as $e } from "./rules-CkaU7yFU.js";
12
- import { a as Q, c as Ie } from "./number-DE6ovaTs.js";
13
- import { F as De } from "./decimal-BJ-B2ZXz.js";
14
- import { _ as Ae } from "./NumberPrecisionInput.vue_vue_type_script_setup_true_lang-Cbg0j7Jz.js";
15
- import { u as de } from "./netsuite-CaILEA4R.js";
16
- import { _ as Re, F as Me } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-DAMpuZ1X.js";
17
- import { _ as Pe } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CB50Gqot.js";
18
- const Te = { class: "flex flex-col gap-8" }, Be = {
11
+ import { R as H, A as Ee, a as Q, f as $e } from "./rules-D01xYhgI.js";
12
+ import { F as Ie } from "./decimal-B34w3X7O.js";
13
+ import { _ as De } from "./NumberPrecisionInput.vue_vue_type_script_setup_true_lang-D_Xk4SOH.js";
14
+ import { u as me } from "./netsuite-DEhdSyBn.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-CiBhz5sq.js";
18
+ const Pe = { class: "flex flex-col gap-8" }, Te = {
19
19
  key: 0,
20
20
  class: "flex flex-col"
21
- }, Ne = { class: "flex-1 py-8 px-16" }, Le = {
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
- }, ze = {
24
+ }, Le = {
25
25
  key: 1,
26
26
  class: "flex flex-col"
27
- }, je = { class: "flex-1 py-8 px-16" }, qe = {
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
- }, He = {
30
+ }, qe = {
31
31
  key: 2,
32
32
  class: "flex flex-col"
33
- }, Ke = { class: "flex-1 py-8 px-16" }, Ge = {
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
- }, Oe = /* @__PURE__ */ W({
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", Te, [
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", Be, [
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", Ne, U(a.code) + " " + U(a.name), 1),
60
- l("div", Le, U((o = a.bindedIngredient) != null && o.length ? "Convert binding" : "Item unit"), 1)
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", ze, [
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", je, U(a.code) + " " + U(a.name), 1),
79
- l("div", qe, 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)
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", He, [
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", Ke, U(a.code) + " " + U(a.name), 1),
98
- l("div", Ge, 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)
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 = ue(), _ = Z(), v = Y(), d = D(!1), n = D();
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 be && he(r) ? p.open({
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: Oe,
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 We() {
208
+ function Oe() {
209
209
  const { updateUnit: k, deleteUnit: p } = X(), { t: _ } = J();
210
210
  async function v(n, c) {
211
- const t = ie(c);
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
- [re[q.Edit], re[q.Delete]],
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 Ye = { class: "flex flex-col gap-24" }, Je = { class: "flex gap-24" }, Qe = { class: "flex-1" }, Xe = { class: "flex-1" }, Ze = { class: "flex" }, et = { class: "flex items-center" }, tt = { class: "fm-typo-en-body-lg-600 flex-grow" }, ot = { class: "flex flex-col gap-24" }, nt = { class: "flex gap-24" }, lt = { class: "flex-1" }, st = { class: "flex-1" }, at = /* @__PURE__ */ W({
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: ge.convertPrecision({
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"), A = I("FmButton"), R = I("FmCard"), S = I("FmForm");
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", Ye, [
368
- l("div", Je, [
369
- l("div", Qe, [
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", Xe, [
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", Ze, [
402
- x(A, {
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(R, {
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", et, [
418
- l("div", tt, U(s(n)("inventory.unit.measurement.measurementDefault", [V + 1])), 1),
419
- x(A, {
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", ot, [
427
- l("div", nt, [
428
- l("div", lt, [
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", st, [
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(Ae, {
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(De).toPrecision(
459
- s(Ie)(E),
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
- }), rt = { class: "flex gap-4" }, it = /* @__PURE__ */ W({
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 = de(), d = Z(), { t: n } = J(), c = ae(p, "show"), t = ae(p, "unit"), f = b(() => {
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 = ie(t.value);
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 se || d.open({
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 se || d.open({
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 A = I("FmButton"), R = I("FmSideSheet");
565
- return y(), P(R, {
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", rt, [
575
- s(v).isEnabled ? K("", !0) : (y(), P(A, {
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(A, {
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(at, {
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
- }), ut = { class: "flex flex-col py-8" }, dt = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, mt = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Et = /* @__PURE__ */ W({
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 = de();
609
- ue(), Z();
610
- const { t: d } = J(), n = b(() => p.units), { createUnit: c, updateUnit: t } = X(), { unitDialogProps: f, unitViewLoading: a } = Se(X()), { columnDefs: o } = We();
611
- function r(R) {
612
- switch (R) {
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(), A = b(() => [
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 (R, S) => {
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: A.value,
631
+ actions: R.value,
632
632
  "onClick:action": r
633
633
  }, {
634
634
  default: M(() => [
635
635
  l("div", {
636
- class: ce([
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(Pe, {
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: pe(s(g).tableHeight),
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", ut, [
667
- l("div", dt, [
668
- x(s(Me), {
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", mt, U((oe = (j = (te = (z = h.original.measurements) == null ? void 0 : z.map) == null ? void 0 : te.call(z, (me) => me.name)) == null ? void 0 : j.join) == null ? void 0 : oe.call(j, ", ")), 1)
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(ve, { to: "body" }, [
684
- x(it, fe(ye(s(f))), null, 16)
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
- Et as default
693
+ kt as default
694
694
  };