@feedmepos/mf-inventory-portal 1.8.0-dev.4 → 1.8.0-dev.5
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-FeJnwZme.js → App-DEbWEOwe.js} +609 -558
- package/dist/{ApprovalView-Eo-cGWyA.js → ApprovalView-BEnYHIlU.js} +9 -9
- package/dist/{BindingsDialog-DkjuXydb.js → BindingsDialog-CJVkMoBS.js} +2 -2
- package/dist/{BindingsPicker-DUOQcOlj.js → BindingsPicker-CX9o-xdQ.js} +2 -2
- package/dist/{BindingsTable-CoDdU5xh.js → BindingsTable-Cil4LJ7l.js} +4 -4
- package/dist/{BulkReceiveRequestView-BGh8fbEX.js → BulkReceiveRequestView-DYEc2jPw.js} +19 -19
- package/dist/{ChangeLocationComponent.vue_vue_type_script_setup_true_lang-CStISRqy.js → ChangeLocationComponent.vue_vue_type_script_setup_true_lang-DoAv2mHA.js} +1 -1
- package/dist/{ClosingDraftView-Cwnhrv5P.js → ClosingDraftView-Bz94Iejf.js} +20 -20
- package/dist/{ClosingHistoryView-oHf77Lal.js → ClosingHistoryView-B479Y-mH.js} +5 -5
- package/dist/{ClosingTemplateView-1P8J1vAn.js → ClosingTemplateView-F_nx43n6.js} +18 -18
- package/dist/{CustomPrintTemplatePreview.vue_vue_type_script_setup_true_lang-BuEPaqQK.js → CustomPrintTemplatePreview.vue_vue_type_script_setup_true_lang-DddYGHxQ.js} +1 -1
- package/dist/{DefaultView-3Z8aVFSU.js → DefaultView-CkZOl0ov.js} +2 -2
- package/dist/{DeliveryOrderPrintPreview-uT_e3Suw.js → DeliveryOrderPrintPreview-BJEpwAX6.js} +2 -2
- package/dist/{EmailDialog.vue_vue_type_script_setup_true_lang-BCgnXxEi.js → EmailDialog.vue_vue_type_script_setup_true_lang-BW988AoC.js} +23 -23
- package/dist/FeatureCapabilityBadge.vue_vue_type_script_setup_true_lang-Izn-hTjK.js +297 -0
- package/dist/{FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-BlKpGdCx.js → FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-CoUWxHlj.js} +1 -1
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DKkxn1J-.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-Ci81xTbl.js} +2 -2
- package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-dOXDST-E.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CnaHTAUZ.js} +2 -2
- package/dist/{FmMultiselectDialog-DRxZAkcu.js → FmMultiselectDialog-BE8BlO6_.js} +2 -2
- package/dist/FmMultiselectDialog-COKgBmPZ.js +123 -0
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-DRSzQqVJ.js → FmUnitInput.vue_vue_type_script_setup_true_lang-BQHd3NjM.js} +6 -6
- package/dist/ImportView-Crb_yrNb.js +1291 -0
- package/dist/{IngredientsView-N9U7tdI_.js → IngredientsView-lDypeR4c.js} +34 -35
- package/dist/{IntegrationExplorerView-CjmeGQ14.js → IntegrationExplorerView-DgOFGj7H.js} +4 -4
- package/dist/{IntegrationView-DAdpmuxx.js → IntegrationView-0sbjINo5.js} +973 -974
- package/dist/{InventoryBindingForm-CAj3MurI.js → InventoryBindingForm-BhyrjIXJ.js} +1 -1
- package/dist/InventoryBindingForm.vue_vue_type_script_setup_true_lang-KCz_BQ6T.js +472 -0
- package/dist/{InventoryBindingSummary-B-1OBUdw.js → InventoryBindingSummary-CsfNKd1r.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CUYYEuW3.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-C32OoIBz.js} +1 -1
- package/dist/{ProductionRunDetailView-eFvl8-By.js → ProductionRunDetailView-BxbDtGMo.js} +4 -4
- package/dist/{ProductionRunLifecycleDialogs.vue_vue_type_script_setup_true_lang-DaC7e4qS.js → ProductionRunLifecycleDialogs.vue_vue_type_script_setup_true_lang-BdJVvwSP.js} +9 -9
- package/dist/{ProductionRunView-C_NJJKLr.js → ProductionRunView-CJhNEIzT.js} +3 -3
- package/dist/{PublishView-BglAEkzU.js → PublishView-vkt6-D6P.js} +3 -3
- package/dist/{PurchaseOrderPrintPreview-BTF9ikpQ.js → PurchaseOrderPrintPreview-25dHfVKp.js} +2 -2
- package/dist/{ReceiveRequestView-BUvehG10.js → ReceiveRequestView-BO4Z2dZu.js} +13 -13
- package/dist/RecipeView-B_AE7QQv.js +3428 -0
- package/dist/{SettingsView-DRR86cHo.js → SettingsView-qTUvQCuu.js} +164 -168
- package/dist/{StockView-D1oEnbZp.js → StockView-yh6qkYUS.js} +267 -267
- package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-CxU92-io.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-Cn_fx9qG.js} +1 -1
- package/dist/{SupplierView-D68wz0-g.js → SupplierView-Dqzu1Bvh.js} +14 -14
- package/dist/{SurchargeView-Cw9rTw2h.js → SurchargeView-CDosn36c.js} +7 -7
- package/dist/{SystemTrailDialog.vue_vue_type_script_setup_true_lang-Az-a1Dsp.js → SystemTrailDialog.vue_vue_type_script_setup_true_lang-DZ3Gdlp9.js} +2 -2
- package/dist/{TemplatePublishDialog.vue_vue_type_script_setup_true_lang-C-sxbacO.js → TemplatePublishDialog.vue_vue_type_script_setup_true_lang-CWoh2FqQ.js} +1 -1
- package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-CsHfLaCv.js → TransferDetails.vue_vue_type_script_setup_true_lang-BtjKnIwf.js} +690 -666
- package/dist/{TransferTemplateView-CHPJMjYC.js → TransferTemplateView-fDZcC9i4.js} +20 -20
- package/dist/{UnitCostHistoryView-DM8OzWhe.js → UnitCostHistoryView-CmTTIXAp.js} +4 -4
- package/dist/{UnitDisplayControl.vue_vue_type_script_setup_true_lang-DpwK5mFH.js → UnitDisplayControl.vue_vue_type_script_setup_true_lang-DZihCM0T.js} +4 -4
- package/dist/{UnitView-90uR-ZzQ.js → UnitView-BTx59sFK.js} +8 -8
- package/dist/{WarehouseView-Bulg6Vac.js → WarehouseView-BIFe08FJ.js} +8 -8
- package/dist/{WastageTemplateView-BmAHnnwm.js → WastageTemplateView-B_oJqm0_.js} +15 -15
- package/dist/api/feature-flags.d.ts +2 -0
- package/dist/api/license.d.ts +0 -2
- package/dist/{app-Ccdgbe4f.js → app-DyEvx3Em.js} +1628 -1817
- package/dist/app.d.ts +0 -150
- package/dist/app.js +1 -1
- package/dist/{closing-template-DuBZxoXx.js → closing-template-FgcLy4RT.js} +1 -1
- package/dist/{date2-IBrLdtni.js → date2-Rv4IwT9a.js} +1 -1
- package/dist/{dayjs.min-DEkq-Hpp.js → dayjs.min-DOq1QM_M.js} +1 -1
- package/dist/{decimal-g6jRdlSk.js → decimal-7vA05AaD.js} +2 -2
- package/dist/{defineDeepModel-P5a5Ffpn.js → defineDeepModel-22Md2SKY.js} +1 -1
- package/dist/{duplicate-template-Do8s80ei.js → duplicate-template-D2tjCY7C.js} +1 -1
- package/dist/{feature-ChVm5JED.js → feature-BMTKl6PK.js} +1999 -3092
- package/dist/feature-flags/portal-feature-catalog.d.ts +0 -2
- package/dist/{format-time-from-id-BgbBOII7.js → format-time-from-id-DXhm_Ji1.js} +1 -1
- package/dist/{format-unit-display-hSXy2iu6.js → format-unit-display-DxWLjFPz.js} +13 -13
- package/dist/helper/menu-usage-module.d.ts +1 -1
- package/dist/{id-to-date-DlGYysU8.js → id-to-date-VKlOL3mN.js} +1 -1
- package/dist/{import-export.helper-LrZhiz2W.js → import-export.helper-BiF5aKUp.js} +6 -6
- package/dist/{index-BTNJ1fk2.js → index-DEl_gZn0.js} +3 -3
- package/dist/{index-DsOmtywr.js → index-DdtsVAcv.js} +1 -1
- package/dist/{index-DCiNwlw2.js → index-DoBWE4Ci.js} +1 -1
- package/dist/{lz-string-DRuyjE9G.js → lz-string-BwQj8QRN.js} +1 -1
- package/dist/{netsuite-B6y8GZCP.js → netsuite-s1S33-lP.js} +2 -2
- package/dist/{number-Besn-1-5.js → number-BmKjsNrc.js} +3 -3
- package/dist/{predefined-templates-D92mN_2S.js → predefined-templates-BZ2KqNix.js} +1 -1
- package/dist/{purchase-order-template-hvq2pfWx.js → purchase-order-template-CINU4my1.js} +1 -1
- package/dist/{recalculationUtils-BlZR5O2G.js → recalculationUtils-R5tFu_ts.js} +1 -1
- package/dist/router/name.d.ts +0 -1
- package/dist/{row-action.enum-R2bi3eAv.js → row-action.enum-ePO-Py0V.js} +1 -1
- package/dist/{rules-DzwoRKUS.js → rules-BZrZVzw7.js} +2 -2
- package/dist/{stock-Cq37EARQ.js → stock-C2HOKq0k.js} +8 -8
- package/dist/{stock-oJqnUrtt.js → stock-Ce1UvAZ3.js} +1 -1
- package/dist/stores/feature.d.ts +9 -9
- package/dist/stores/inventory.d.ts +0 -47
- package/dist/stores/supplier.d.ts +1 -1
- package/dist/style.css +1 -1
- package/dist/{supplier-DtdwvcPr.js → supplier-DgT66emI.js} +2 -2
- package/dist/{surcharge-CjdJGIsM.js → surcharge-CsVMuzPM.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{uom-rules-BqPn_GoZ.js → uom-rules-CR1XukyM.js} +1 -1
- package/dist/{use-ingredient-select-dialog-0hRCj6Fu.js → use-ingredient-select-dialog-CJkG4hEX.js} +2 -2
- package/dist/use-inventory-binding-dialog-B36kPj4V.js +113 -0
- package/dist/{use-template-enabled-locations-8ZfTj4YB.js → use-template-enabled-locations-Boa9QLPV.js} +2 -2
- package/dist/{use-transfer-locations-BGS1EBEt.js → use-transfer-locations-BxOygSUg.js} +2 -2
- package/dist/{useHrmPermission-BcQ2KPD-.js → useHrmPermission-DLHAqbLV.js} +1 -1
- package/dist/{useNavigationMenu-DImtns81.js → useNavigationMenu-D6abZMGz.js} +65 -74
- package/dist/{useSseClient-DPSFFVci.js → useSseClient-C7pff-EW.js} +1 -1
- package/dist/views/ingredients/components/inventory-binding/InventoryBindingForm.vue.d.ts +0 -1
- package/dist/views/ingredients/components/inventory-binding/composables/use-inventory-binding-dialog.d.ts +0 -1
- package/dist/views/ingredients/components/inventory-binding/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/views/integration/components/IntegrationCard.vue.d.ts +3 -3
- 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/{vue-i18n-DTyGIjTI.js → vue-i18n-CpOOFhVU.js} +219 -219
- package/dist/{xlsx.util-CK9Lnq3Q.js → xlsx.util-xwI5tVz6.js} +2 -2
- package/package.json +4 -4
- package/dist/DeprecateSoonWarningDialog.vue_vue_type_script_setup_true_lang-D_vmtZDZ.js +0 -58
- package/dist/FeatureCapabilityBadge.vue_vue_type_script_setup_true_lang-D-RzUmqA.js +0 -81
- package/dist/FmMultiselectDialog-C8uYx8rr.js +0 -77
- package/dist/ImportView-Qigtf3ik.js +0 -1302
- package/dist/IngredientBindedItem.vue_vue_type_script_setup_true_lang-B8PJeYrP.js +0 -51
- package/dist/IngredientGroupView-RNYZLkQu.js +0 -1000
- package/dist/InventoryBindingForm.vue_vue_type_script_setup_true_lang-3pYuu62C.js +0 -563
- package/dist/RecipeView-DO5-jgwh.js +0 -3624
- package/dist/feature-flags/premium-flags.spec.d.ts +0 -1
- package/dist/random-CSbEbElR.js +0 -10
- package/dist/use-inventory-binding-dialog-BLRcIC1u.js +0 -152
- package/dist/usePromise-CbVUCxhj.js +0 -29
- package/dist/views/ingredient-group/IngredientGroupView.vue.d.ts +0 -3
- 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
|
@@ -1,33 +1,32 @@
|
|
|
1
1
|
import { ref as P, defineComponent as ke, computed as g, resolveComponent as S, createElementBlock as V, openBlock as c, Fragment as ee, createCommentVNode as N, createVNode as s, unref as o, withModifiers as Rt, withCtx as x, createElementVNode as n, renderList as de, createBlock as j, toDisplayString as $, normalizeClass as ie, h as Z, mergeModels as st, onMounted as Ot, watch as _t, useModel as Bt, createTextVNode as xt, isRef as rt, createSlots as kt, normalizeStyle as Dt, Teleport as it, normalizeProps as Nt, guardReactiveProps as zt } from "vue";
|
|
2
|
-
import { a as Fe, c as wt, S as Lt, g as dt, e as ut, f as jt, h as mt, i as ct, j as pt, k as vt, u as Wt, l as qt } from "./app-
|
|
2
|
+
import { a as Fe, c as wt, S as Lt, g as dt, e as ut, f as jt, h as mt, i as ct, j as pt, k as vt, u as Wt, l as qt } from "./app-DyEvx3Em.js";
|
|
3
3
|
import { useDialog as Ke, useSnackbar as Ae, components as ze, useProxiedModel as ft, useDialogChild as Ht, useBreakpoints as Yt } from "@feedmepos/ui-library";
|
|
4
4
|
import { i as Kt, _ as Gt, m as Jt } from "./menu-usage-module-BdjYEk3s.js";
|
|
5
5
|
import { F as W } from "./form-mode.enum-BKiNVH6A.js";
|
|
6
6
|
import { useI18n as pe, useCoreStore as Ge } from "@feedmepos/mf-common";
|
|
7
7
|
import { defineStore as Qt, storeToRefs as Xt } from "pinia";
|
|
8
|
-
import { D as yt, R as Pe } from "./row-action.enum-
|
|
8
|
+
import { D as yt, R as Pe } from "./row-action.enum-ePO-Py0V.js";
|
|
9
9
|
import { c as Zt } from "./component-BmLAdDiY.js";
|
|
10
|
-
import { u as Ee, _ as en } from "./netsuite-
|
|
10
|
+
import { u as Ee, _ as en } from "./netsuite-s1S33-lP.js";
|
|
11
11
|
import { F as Be } from "./FmAdminBadge-DlplQOHb.js";
|
|
12
12
|
import { u as tn, _ as nn } from "./SingleColumnLayout.vue_vue_type_script_setup_true_lang-DpwneGOV.js";
|
|
13
|
-
import { A as Oe, R as Le, U as on, M as ln } from "./rules-
|
|
14
|
-
import { g as an, _ as je, S as We, a as sn } from "./SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-
|
|
15
|
-
import { _ as rn } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-
|
|
16
|
-
import { _ as qe } from "./
|
|
17
|
-
import { u as Tt } from "./feature-
|
|
18
|
-
import { t as
|
|
19
|
-
import { a as xe } from "./FeatureCapabilityBadge.vue_vue_type_script_setup_true_lang-
|
|
20
|
-
import { d as Re, g as
|
|
21
|
-
import { _ as
|
|
13
|
+
import { A as Oe, R as Le, U as on, M as ln } from "./rules-BZrZVzw7.js";
|
|
14
|
+
import { g as an, _ as je, S as We, a as sn } from "./SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-Cn_fx9qG.js";
|
|
15
|
+
import { _ as rn } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-KCz_BQ6T.js";
|
|
16
|
+
import { _ as qe, u as dn } from "./FmMultiselectDialog-COKgBmPZ.js";
|
|
17
|
+
import { u as Tt } from "./feature-BMTKl6PK.js";
|
|
18
|
+
import { t as un, a as mn, g as cn } from "./number-BmKjsNrc.js";
|
|
19
|
+
import { a as xe } from "./FeatureCapabilityBadge.vue_vue_type_script_setup_true_lang-Izn-hTjK.js";
|
|
20
|
+
import { d as Re, g as pn, e as vn, a as fn } from "./import-export.helper-BiF5aKUp.js";
|
|
21
|
+
import { _ as yn } from "./FmCustomAttribute.vue_vue_type_script_setup_true_lang-CG1m-B2p.js";
|
|
22
22
|
import { _ as Ce } from "./FmLockableField.vue_vue_type_script_setup_true_lang-FCg4K7y8.js";
|
|
23
|
-
import { F as
|
|
24
|
-
import { u as Vt } from "./purchase-order-template-
|
|
25
|
-
import { u as It, a as St } from "./closing-template-
|
|
26
|
-
import { _ as
|
|
27
|
-
import { r as
|
|
28
|
-
import { F as
|
|
29
|
-
import { _ as
|
|
30
|
-
import { u as xn } from "./FmMultiselectDialog-C8uYx8rr.js";
|
|
23
|
+
import { F as gn, a as He } from "./FmMultiselectDialog-BE8BlO6_.js";
|
|
24
|
+
import { u as Vt } from "./purchase-order-template-CINU4my1.js";
|
|
25
|
+
import { u as It, a as St } from "./closing-template-FgcLy4RT.js";
|
|
26
|
+
import { _ as bn, F as gt } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-DAMpuZ1X.js";
|
|
27
|
+
import { r as hn } from "./xlsx.util-xwI5tVz6.js";
|
|
28
|
+
import { F as _n } from "./FmDroppableField-J0tG_U3w.js";
|
|
29
|
+
import { _ as xn } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CnaHTAUZ.js";
|
|
31
30
|
import { P as kn, J as wn } from "./app-C39bYJmq.js";
|
|
32
31
|
const Ye = Qt("ingredientForm", function() {
|
|
33
32
|
const h = Ke(), k = Ae(), u = Fe(), _ = P(!1), { t: C } = pe(), A = P();
|
|
@@ -652,7 +651,7 @@ const zn = /* @__PURE__ */ ke({
|
|
|
652
651
|
get() {
|
|
653
652
|
var t, b;
|
|
654
653
|
const e = (b = (t = l.modelValue) == null ? void 0 : t.defaultCost) == null ? void 0 : b.costPerUnit;
|
|
655
|
-
return e ? +
|
|
654
|
+
return e ? +mn(e) : 0;
|
|
656
655
|
},
|
|
657
656
|
set(e) {
|
|
658
657
|
var b, I, Y, D;
|
|
@@ -673,7 +672,7 @@ const zn = /* @__PURE__ */ ke({
|
|
|
673
672
|
)
|
|
674
673
|
}), t.defaultCost.costPerUnit = {
|
|
675
674
|
...t.defaultCost.costPerUnit,
|
|
676
|
-
...
|
|
675
|
+
...un(+e, 4)
|
|
677
676
|
}, i("update:modelValue", t);
|
|
678
677
|
}
|
|
679
678
|
}), ye = g(() => {
|
|
@@ -706,7 +705,7 @@ const zn = /* @__PURE__ */ ke({
|
|
|
706
705
|
}))
|
|
707
706
|
])
|
|
708
707
|
), y = Bt(q, "search"), M = g(
|
|
709
|
-
() => new
|
|
708
|
+
() => new gn(we.value, ["label", "value"], {
|
|
710
709
|
caseSensitive: !1,
|
|
711
710
|
sort: !0
|
|
712
711
|
})
|
|
@@ -1406,7 +1405,7 @@ const zn = /* @__PURE__ */ ke({
|
|
|
1406
1405
|
])) : N("", !0)
|
|
1407
1406
|
])) : N("", !0),
|
|
1408
1407
|
n("div", null, [
|
|
1409
|
-
s(
|
|
1408
|
+
s(yn, {
|
|
1410
1409
|
entity: "inventorySku",
|
|
1411
1410
|
modelValue: Q.value,
|
|
1412
1411
|
"onUpdate:modelValue": t[12] || (t[12] = (T) => Q.value = T)
|
|
@@ -1506,7 +1505,7 @@ const zn = /* @__PURE__ */ ke({
|
|
|
1506
1505
|
if (!J.purchaseOrder.items.find(
|
|
1507
1506
|
(Q) => Q.sku._id === y._id
|
|
1508
1507
|
)) {
|
|
1509
|
-
const Q = { amount: 1, precision:
|
|
1508
|
+
const Q = { amount: 1, precision: cn(y.unit) }, H = {
|
|
1510
1509
|
sku: y,
|
|
1511
1510
|
name: y.name,
|
|
1512
1511
|
code: y.code,
|
|
@@ -1752,7 +1751,7 @@ const zn = /* @__PURE__ */ ke({
|
|
|
1752
1751
|
try {
|
|
1753
1752
|
_.value = !0;
|
|
1754
1753
|
const [r] = await Promise.all([
|
|
1755
|
-
|
|
1754
|
+
hn(d),
|
|
1756
1755
|
// fake buffer
|
|
1757
1756
|
new Promise((F) => setTimeout(F, 1e3))
|
|
1758
1757
|
]), f = r.SheetNames.find((F) => F);
|
|
@@ -1760,7 +1759,7 @@ const zn = /* @__PURE__ */ ke({
|
|
|
1760
1759
|
C.value.push(m("inventory.ingredient.import.fileError.noSheet"));
|
|
1761
1760
|
return;
|
|
1762
1761
|
}
|
|
1763
|
-
const w =
|
|
1762
|
+
const w = pn(r.Sheets[f]);
|
|
1764
1763
|
if (w.invalidExcel) {
|
|
1765
1764
|
C.value.push(w.invalidExcelMessage ?? m("inventory.ingredient.import.fileError.invalidExcel"));
|
|
1766
1765
|
return;
|
|
@@ -1789,7 +1788,7 @@ const zn = /* @__PURE__ */ ke({
|
|
|
1789
1788
|
const f = S("FmCircularProgress"), w = S("FmIcon"), F = S("FmButton");
|
|
1790
1789
|
return c(), V("div", tl, [
|
|
1791
1790
|
n("div", nl, $(o(m)("inventory.ingredient.import.uploadDescription")), 1),
|
|
1792
|
-
s(
|
|
1791
|
+
s(_n, {
|
|
1793
1792
|
class: ie({
|
|
1794
1793
|
"w-full": !0,
|
|
1795
1794
|
"h-[200px]": !h.value
|
|
@@ -1884,7 +1883,7 @@ const zn = /* @__PURE__ */ ke({
|
|
|
1884
1883
|
}), ml = {
|
|
1885
1884
|
key: 0,
|
|
1886
1885
|
class: "flex items-center gap-1"
|
|
1887
|
-
}, cl = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, pl = { class: "flex flex-col py-8" }, vl = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, fl = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" },
|
|
1886
|
+
}, cl = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, pl = { class: "flex flex-col py-8" }, vl = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, fl = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, Yl = /* @__PURE__ */ ke({
|
|
1888
1887
|
__name: "IngredientsView",
|
|
1889
1888
|
setup(q) {
|
|
1890
1889
|
const h = Fe(), k = Ee(), u = g(() => [
|
|
@@ -1930,7 +1929,7 @@ const zn = /* @__PURE__ */ ke({
|
|
|
1930
1929
|
},
|
|
1931
1930
|
E
|
|
1932
1931
|
));
|
|
1933
|
-
}), U = Wt(), l = Ke(), i =
|
|
1932
|
+
}), U = Wt(), l = Ke(), i = dn(), m = Ae(), { t: a } = pe(), { createIngredient: d, updateIngredient: r } = Ye(), { ingredientDialogProps: f, ingredientViewLoading: w } = Xt(Ye()), { columnDefs: F } = Nn();
|
|
1934
1933
|
function p(E) {
|
|
1935
1934
|
switch (E) {
|
|
1936
1935
|
case "add":
|
|
@@ -1981,7 +1980,7 @@ const zn = /* @__PURE__ */ ke({
|
|
|
1981
1980
|
{ label: a("inventory.ingredient.export.exportFiltered"), value: "export-filtered", mobileOnly: !0 }
|
|
1982
1981
|
]);
|
|
1983
1982
|
function y(E) {
|
|
1984
|
-
const v =
|
|
1983
|
+
const v = vn(E);
|
|
1985
1984
|
m.open({
|
|
1986
1985
|
title: a("inventory.ingredient.export.success"),
|
|
1987
1986
|
message: a("inventory.ingredient.export.filename", [v]),
|
|
@@ -2032,7 +2031,7 @@ const zn = /* @__PURE__ */ ke({
|
|
|
2032
2031
|
return;
|
|
2033
2032
|
}
|
|
2034
2033
|
l.close(), G(E);
|
|
2035
|
-
}).onTertiary(
|
|
2034
|
+
}).onTertiary(fn);
|
|
2036
2035
|
}
|
|
2037
2036
|
async function G(E) {
|
|
2038
2037
|
R.value = !0;
|
|
@@ -2144,7 +2143,7 @@ const zn = /* @__PURE__ */ ke({
|
|
|
2144
2143
|
}
|
|
2145
2144
|
])
|
|
2146
2145
|
}, [
|
|
2147
|
-
s(
|
|
2146
|
+
s(xn, {
|
|
2148
2147
|
searchable: "",
|
|
2149
2148
|
search: B.value,
|
|
2150
2149
|
"onUpdate:search": v[3] || (v[3] = (L) => B.value = L),
|
|
@@ -2185,7 +2184,7 @@ const zn = /* @__PURE__ */ ke({
|
|
|
2185
2184
|
"page-size": le.value
|
|
2186
2185
|
}, {
|
|
2187
2186
|
"list-row": x((L) => [
|
|
2188
|
-
s(
|
|
2187
|
+
s(bn, {
|
|
2189
2188
|
row: L,
|
|
2190
2189
|
onRowClick: o(r)
|
|
2191
2190
|
}, kt({
|
|
@@ -2248,5 +2247,5 @@ const zn = /* @__PURE__ */ ke({
|
|
|
2248
2247
|
}
|
|
2249
2248
|
});
|
|
2250
2249
|
export {
|
|
2251
|
-
|
|
2250
|
+
Yl as default
|
|
2252
2251
|
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { defineComponent as ne, ref as f, computed as B, watch as Oe, onMounted as _e, resolveComponent as se, createElementBlock as a, openBlock as t, createElementVNode as e, createBlock as H, createCommentVNode as r, normalizeClass as j, createTextVNode as re, toDisplayString as o, createVNode as T, Fragment as M, renderList as X, unref as g, withCtx as te, withModifiers as de, withDirectives as Ve, withKeys as we, vModelText as Ue, h as q, watchEffect as Be } from "vue";
|
|
2
|
-
import { d as Se, N as be, C as xe, u as Ce } from "./app-
|
|
2
|
+
import { d as Se, N as be, C as xe, u as Ce } from "./app-DyEvx3Em.js";
|
|
3
3
|
import { components as oe, useBreakpoints as Pe } from "@feedmepos/ui-library";
|
|
4
4
|
import { _ as Ae } from "./SingleColumnLayout.vue_vue_type_script_setup_true_lang-DpwneGOV.js";
|
|
5
|
-
import { _ as Ee } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-
|
|
6
|
-
import { u as Ie, a as Te, S as ge } from "./netsuite-
|
|
5
|
+
import { _ as Ee } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CnaHTAUZ.js";
|
|
6
|
+
import { u as Ie, a as Te, S as ge } from "./netsuite-s1S33-lP.js";
|
|
7
7
|
import { P as he, J as ke, D as De } from "./app-C39bYJmq.js";
|
|
8
8
|
import { useCoreStore as Le } from "@feedmepos/mf-common";
|
|
9
9
|
import { _ as ye } from "./JsonViewer.vue_vue_type_script_setup_true_lang-ig2zSXAB.js";
|
|
10
|
-
import { c as ue } from "./date2-
|
|
10
|
+
import { c as ue } from "./date2-Rv4IwT9a.js";
|
|
11
11
|
const ce = Se((W, P) => {
|
|
12
12
|
const n = Le();
|
|
13
13
|
function N() {
|