@feedmepos/mf-inventory-portal 0.0.23-dev.42 → 0.0.23-dev.43

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 (41) hide show
  1. package/dist/{App-Cr-n7HVf.js → App-C8wsA5dN.js} +6 -7
  2. package/dist/{ApprovalView-BYHDmt9W.js → ApprovalView-ZV8rwQp1.js} +20 -20
  3. package/dist/{BindingsDialog-CI0nYM1_.js → BindingsDialog-Sbtijb1i.js} +2 -2
  4. package/dist/{BindingsPicker-BVzF3C8O.js → BindingsPicker-wnlrCohJ.js} +3 -3
  5. package/dist/{BindingsTable-B21_9L2o.js → BindingsTable-BZCI3MS6.js} +1 -1
  6. package/dist/{ClosingDraftView-k2Vsz8-W.js → ClosingDraftView-DyKbXVev.js} +47 -47
  7. package/dist/{ClosingTemplateView-BLda7tYC.js → ClosingTemplateView-DJr6D7iw.js} +21 -21
  8. package/dist/{FmCustomAttribute.vue_vue_type_script_setup_true_lang-DUDOaU6F.js → FmCustomAttribute.vue_vue_type_script_setup_true_lang-B1mRTbf9.js} +11 -11
  9. package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CXuer_x5.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BUiVV1lj.js} +7 -7
  10. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-Ds3yBf9U.js → FmUnitInput.vue_vue_type_script_setup_true_lang-qU9EBVED.js} +37 -37
  11. package/dist/{IngredientGroupView-CgZ4YT3i.js → IngredientGroupView-BWeMME4-.js} +1 -1
  12. package/dist/{IngredientsView-tPERrF9O.js → IngredientsView-BRxpBv77.js} +14 -15
  13. package/dist/{IntegrationView-CoF_rdWv.js → IntegrationView-DZqL0Ekt.js} +1 -1
  14. package/dist/{InventoryBindingForm-BSnofTIL.js → InventoryBindingForm-C2zDhhfZ.js} +1 -1
  15. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-4d9oz7Xh.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-BhaK3zOk.js} +51 -51
  16. package/dist/{InventoryBindingSummary-qm9ZUFny.js → InventoryBindingSummary-CJP0sf4N.js} +1 -1
  17. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CQY98Hj6.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-Dplylu1K.js} +1 -1
  18. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-NUkiVop4.js → PremiumBadge.vue_vue_type_script_setup_true_lang-CC1nuQKm.js} +6 -6
  19. package/dist/{PurchaseOrderPrintPreview-CIWiq2NB.js → PurchaseOrderPrintPreview-C5afxprc.js} +5 -5
  20. package/dist/{ReceiveRequestView-Dgt3FeGb.js → ReceiveRequestView-DzbcqmMA.js} +19 -20
  21. package/dist/{RecipeView-CzWlx1Xv.js → RecipeView-8koCeNhZ.js} +25 -25
  22. package/dist/{StockView-IPXGJNN8.js → StockView-C3Ef3mQz.js} +121 -122
  23. package/dist/{SupplierView-DuL3NXc0.js → SupplierView-BHuYKWgW.js} +11 -12
  24. package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-82Bu89OE.js → TransferDetails.vue_vue_type_script_setup_true_lang-8rCAz5GA.js} +137 -137
  25. package/dist/{TransferTemplateView-BEaRafuO.js → TransferTemplateView-u1u-VV-i.js} +81 -82
  26. package/dist/{UnitView-Cwo0mthQ.js → UnitView-ucQ_K9ot.js} +14 -14
  27. package/dist/{WarehouseView-DzjQrpyv.js → WarehouseView-CCwLKR3J.js} +33 -33
  28. package/dist/{app-CpuFfqWF.js → app-BvW6mdJl.js} +12411 -11415
  29. package/dist/app.js +1 -1
  30. package/dist/{decimal-bSGrDlvd.js → decimal-hD6H0C0M.js} +1 -1
  31. package/dist/{format-unit-display-D4gi2D-O.js → format-unit-display-BfYIFIft.js} +60 -60
  32. package/dist/{index-Cn1ato-l.js → index-BQUuh_Xy.js} +88 -88
  33. package/dist/{index-COeURijn.js → index-y9SmouGG.js} +3 -3
  34. package/dist/{stock-B1Rchi6n.js → stock-CHW2fGsm.js} +3 -3
  35. package/dist/stores/feature.d.ts +34 -2
  36. package/dist/stores/location.d.ts +1 -1
  37. package/dist/{supplier-CeY_Gro-.js → supplier-CCUVm2qD.js} +1 -1
  38. package/dist/tsconfig.app.tsbuildinfo +1 -1
  39. package/dist/{use-inventory-binding-dialog-BXqY40wn.js → use-inventory-binding-dialog-B8Cgp_x2.js} +1 -1
  40. package/package.json +1 -1
  41. package/dist/feature-D8aRYGen.js +0 -962
@@ -1,5 +1,5 @@
1
- import { ref as D, h as F, defineComponent as O, resolveComponent as R, openBlock as k, createElementBlock as I, createElementVNode as _, normalizeClass as Y, createTextVNode as Fe, toDisplayString as C, unref as v, createCommentVNode as K, createVNode as T, withCtx as P, Fragment as H, renderList as W, computed as E, watch as Re, createSlots as Pe, createBlock as V, isRef as je, normalizeStyle as Ye, Teleport as Ge, normalizeProps as Ke, guardReactiveProps as We, mergeProps as Je } from "vue";
2
- import { W as qe, u as le, a8 as Qe, D as Se, h as N, f as Xe, e as Ae, a9 as oe, q as Ze, aa as Ee, r as Ue, a as ae, b as et, s as tt, v as Ve, w as nt, x as ot, d as z, E as j, G as st, ab as lt, l as at, B as Ne, A as rt, H as it, ac as ct, ad as ne, y as mt, _ as ut, z as dt } from "./app-CpuFfqWF.js";
1
+ import { ref as D, h as F, defineComponent as O, resolveComponent as R, openBlock as k, createElementBlock as I, createElementVNode as _, normalizeClass as Y, createTextVNode as Fe, toDisplayString as C, unref as v, createCommentVNode as K, createVNode as T, withCtx as P, Fragment as H, renderList as J, computed as E, watch as Re, createSlots as Pe, createBlock as V, isRef as je, normalizeStyle as Ye, Teleport as Ge, normalizeProps as Ke, guardReactiveProps as Je, mergeProps as We } from "vue";
2
+ import { X as qe, u as le, a9 as Xe, D as Se, i as N, h as Qe, f as Ae, aa as oe, r as Ze, ab as Ee, s as Ue, a as ae, b as et, v as tt, w as Ve, x as nt, y as ot, e as z, G as j, H as st, ac as lt, m as at, E as Ne, A as rt, J as it, ad as ct, ae as ne, z as mt, _ as ut, B as dt } from "./app-BvW6mdJl.js";
3
3
  import { useCoreStore as re, useI18n as B } from "@feedmepos/mf-common";
4
4
  import { useDialogChild as pt, useSnackbar as Z, useDialog as ie, FmButtonVariant as De, components as L, useProxiedModel as ft, useBreakpoints as vt } from "@feedmepos/ui-library";
5
5
  import { defineStore as Be, storeToRefs as Le } from "pinia";
@@ -95,7 +95,7 @@ const ee = qe((r, s) => {
95
95
  accessorKey: "_id",
96
96
  header: () => s("inventory.closing.table.createdAt"),
97
97
  cell(y) {
98
- return Qe(`${y.getValue()}`);
98
+ return Xe(`${y.getValue()}`);
99
99
  },
100
100
  enableSorting: !0
101
101
  },
@@ -170,7 +170,7 @@ const ee = qe((r, s) => {
170
170
  Se[N.Edit],
171
171
  Se[N.Delete]
172
172
  ];
173
- return Xe(u, (n) => d(n, h));
173
+ return Qe(u, (n) => d(n, h));
174
174
  },
175
175
  enableSorting: !1,
176
176
  size: 40,
@@ -553,7 +553,7 @@ const Tt = { class: "flex items-center gap-12 pl-8" }, $t = { class: "flex flex-
553
553
  T(t, { "z-index": 50 }, {
554
554
  content: P(() => [
555
555
  _("ol", null, [
556
- (k(!0), I(H, null, W(o.errors, (i, d) => (k(), I("li", { key: d }, C(i), 1))), 128))
556
+ (k(!0), I(H, null, J(o.errors, (i, d) => (k(), I("li", { key: d }, C(i), 1))), 128))
557
557
  ])
558
558
  ]),
559
559
  default: P(() => [
@@ -710,7 +710,7 @@ const Tt = { class: "flex items-center gap-12 pl-8" }, $t = { class: "flex flex-
710
710
  ]))
711
711
  ], 2),
712
712
  g.value.length ? (k(), I("div", Ut, [
713
- (k(!0), I(H, null, W(g.value, ($, b) => (k(), I("div", {
713
+ (k(!0), I(H, null, J(g.value, ($, b) => (k(), I("div", {
714
714
  key: b,
715
715
  class: "flex gap-8 items-center"
716
716
  }, [
@@ -729,7 +729,7 @@ const Tt = { class: "flex items-center gap-12 pl-8" }, $t = { class: "flex flex-
729
729
  ]), 1032, ["class", "label", "button-label"]),
730
730
  d.value ? (k(), I("div", Nt, [
731
731
  _("div", Bt, C(v(m)("inventory.ingredient.import.summary")), 1),
732
- (k(!0), I(H, null, W(f.value, (c, $) => (k(), V(Me, {
732
+ (k(!0), I(H, null, J(f.value, (c, $) => (k(), V(Me, {
733
733
  key: $,
734
734
  name: c.template.name,
735
735
  locations: c.template.locations,
@@ -737,7 +737,7 @@ const Tt = { class: "flex items-center gap-12 pl-8" }, $t = { class: "flex flex-
737
737
  errors: c.errors,
738
738
  type: "create"
739
739
  }, null, 8, ["name", "locations", "items", "errors"]))), 128)),
740
- (k(!0), I(H, null, W(p.value, (c) => (k(), V(Me, {
740
+ (k(!0), I(H, null, J(p.value, (c) => (k(), V(Me, {
741
741
  key: c.template._id,
742
742
  name: c.template.name,
743
743
  locations: c.template.locations,
@@ -1135,7 +1135,7 @@ function zt(r) {
1135
1135
  })
1136
1136
  };
1137
1137
  }
1138
- const Ht = { class: "flex flex-col gap-16 py-12" }, Ot = { class: "flex" }, jt = { class: "flex-1 flex flex-col" }, Yt = { class: "fm-typo-en-title-sm-600 text-fm-color-typo-primary" }, Gt = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, Kt = { class: "flex flex-col gap-4" }, Wt = /* @__PURE__ */ O({
1138
+ const Ht = { class: "flex flex-col gap-16 py-12" }, Ot = { class: "flex" }, jt = { class: "flex-1 flex flex-col" }, Yt = { class: "fm-typo-en-title-sm-600 text-fm-color-typo-primary" }, Gt = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, Kt = { class: "flex flex-col gap-4" }, Jt = /* @__PURE__ */ O({
1139
1139
  __name: "ClosingTemplateItem",
1140
1140
  props: {
1141
1141
  cellByColId: {},
@@ -1162,7 +1162,7 @@ const Ht = { class: "flex flex-col gap-16 py-12" }, Ot = { class: "flex" }, jt =
1162
1162
  ]),
1163
1163
  _("div", Kt, [
1164
1164
  t[0] || (t[0] = _("div", { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, null, -1)),
1165
- (k(!0), I(H, null, W(l.value, (m) => {
1165
+ (k(!0), I(H, null, J(l.value, (m) => {
1166
1166
  var y, h, u;
1167
1167
  return k(), I("div", {
1168
1168
  key: m.id
@@ -1177,7 +1177,7 @@ const Ht = { class: "flex flex-col gap-16 py-12" }, Ot = { class: "flex" }, jt =
1177
1177
  ]);
1178
1178
  };
1179
1179
  }
1180
- }), Jt = { class: "flex flex-col gap-16" }, qt = { class: "flex flex-col gap-24" }, Qt = { class: "flex flex-col gap-16" }, Xt = { class: "flex items-center" }, Zt = { class: "flex-1 fm-typo-en-title-sm-600" }, en = { class: "flex flex-col gap-16" }, tn = { class: "flex items-center" }, nn = { class: "flex-1 gap-8 fm-typo-en-title-sm-600" }, on = /* @__PURE__ */ O({
1180
+ }), Wt = { class: "flex flex-col gap-16" }, qt = { class: "flex flex-col gap-24" }, Xt = { class: "flex flex-col gap-16" }, Qt = { class: "flex items-center" }, Zt = { class: "flex-1 fm-typo-en-title-sm-600" }, en = { class: "flex flex-col gap-16" }, tn = { class: "flex items-center" }, nn = { class: "flex-1 gap-8 fm-typo-en-title-sm-600" }, on = /* @__PURE__ */ O({
1181
1181
  __name: "ClosingTemplateForm",
1182
1182
  props: {
1183
1183
  modelValue: {},
@@ -1270,7 +1270,7 @@ const Ht = { class: "flex flex-col gap-16 py-12" }, Ot = { class: "flex" }, jt =
1270
1270
  disabled: n.disabled
1271
1271
  }, {
1272
1272
  default: P(() => [
1273
- _("div", Jt, [
1273
+ _("div", Wt, [
1274
1274
  _("div", qt, [
1275
1275
  T(x, {
1276
1276
  label: v(e)("inventory.closing.form.name"),
@@ -1287,8 +1287,8 @@ const Ht = { class: "flex flex-col gap-16 py-12" }, Ot = { class: "flex" }, jt =
1287
1287
  }, null, 8, ["label", "modelValue"])
1288
1288
  ])
1289
1289
  ]),
1290
- _("div", Qt, [
1291
- _("div", Xt, [
1290
+ _("div", Xt, [
1291
+ _("div", Qt, [
1292
1292
  _("div", Zt, C(v(e)("inventory.closing.form.locations")), 1),
1293
1293
  T(c, {
1294
1294
  disabled: n.disabled,
@@ -1351,7 +1351,7 @@ const Ht = { class: "flex flex-col gap-16 py-12" }, Ot = { class: "flex" }, jt =
1351
1351
  key: v(l).items.map((S) => S.sku._id).join(".")
1352
1352
  }, {
1353
1353
  default: P((S) => [
1354
- T(Wt, {
1354
+ T(Jt, {
1355
1355
  row: M,
1356
1356
  "cell-by-col-id": S
1357
1357
  }, null, 8, ["row", "cell-by-col-id"])
@@ -1756,14 +1756,14 @@ const un = /* @__PURE__ */ ct(cn, [["render", mn]]), dn = { class: "flex flex-co
1756
1756
  onRowClick: (U) => v(l)(U)
1757
1757
  }, {
1758
1758
  default: P((U) => {
1759
- var me, ue, de, J, pe, fe, ve, ge, q, ye, he, be, _e, xe, we, Q, ke, Te, $e, Ce, X, Ie;
1759
+ var me, ue, de, W, pe, fe, ve, ge, q, ye, he, be, _e, xe, we, X, ke, Te, $e, Ce, Q, Ie;
1760
1760
  return [
1761
1761
  _("div", $n, [
1762
1762
  _("div", Cn, [
1763
1763
  _("div", In, [
1764
1764
  T(v(j), {
1765
1765
  render: (de = (ue = (me = U._id) == null ? void 0 : me.column) == null ? void 0 : ue.columnDef) == null ? void 0 : de.cell,
1766
- props: (pe = (J = U._id) == null ? void 0 : J.getContext) == null ? void 0 : pe.call(J)
1766
+ props: (pe = (W = U._id) == null ? void 0 : W.getContext) == null ? void 0 : pe.call(W)
1767
1767
  }, null, 8, ["render", "props"])
1768
1768
  ]),
1769
1769
  _("div", Sn, [
@@ -1782,14 +1782,14 @@ const un = /* @__PURE__ */ ct(cn, [["render", mn]]), dn = { class: "flex flex-co
1782
1782
  _("div", Mn, [
1783
1783
  T(v(j), {
1784
1784
  render: (we = (xe = (_e = U.ref) == null ? void 0 : _e.column) == null ? void 0 : xe.columnDef) == null ? void 0 : we.cell,
1785
- props: (ke = (Q = U.ref) == null ? void 0 : Q.getContext) == null ? void 0 : ke.call(Q)
1785
+ props: (ke = (X = U.ref) == null ? void 0 : X.getContext) == null ? void 0 : ke.call(X)
1786
1786
  }, null, 8, ["render", "props"])
1787
1787
  ])
1788
1788
  ]),
1789
1789
  _("div", null, [
1790
1790
  T(v(j), {
1791
1791
  render: (Ce = ($e = (Te = U.status) == null ? void 0 : Te.column) == null ? void 0 : $e.columnDef) == null ? void 0 : Ce.cell,
1792
- props: (Ie = (X = U.status) == null ? void 0 : X.getContext) == null ? void 0 : Ie.call(X)
1792
+ props: (Ie = (Q = U.status) == null ? void 0 : Q.getContext) == null ? void 0 : Ie.call(Q)
1793
1793
  }, null, 8, ["render", "props"])
1794
1794
  ])
1795
1795
  ])
@@ -1805,8 +1805,8 @@ const un = /* @__PURE__ */ ct(cn, [["render", mn]]), dn = { class: "flex flex-co
1805
1805
  _: 1
1806
1806
  }, 8, ["title", "actions"]),
1807
1807
  (k(), V(Ge, { to: "body" }, [
1808
- T(un, Ke(We(v(f))), null, 16),
1809
- T(rn, Je(v(g), {
1808
+ T(un, Ke(Je(v(f))), null, 16),
1809
+ T(rn, We(v(g), {
1810
1810
  onSubmitted: A[2] || (A[2] = (S) => v(d).fetchTemplates())
1811
1811
  }), null, 16)
1812
1812
  ]))
@@ -1,19 +1,19 @@
1
1
  import { defineComponent as g, openBlock as a, createElementBlock as i, createElementVNode as m, toDisplayString as u, unref as h, Fragment as C, renderList as N, computed as v, resolveComponent as V, createVNode as S, createCommentVNode as w, h as B } from "vue";
2
- import { i as b, J as F, e as $ } from "./app-CpuFfqWF.js";
2
+ import { j as b, K as F, f as $ } from "./app-BvW6mdJl.js";
3
3
  import { useI18n as k, useCoreStore as I } from "@feedmepos/mf-common";
4
4
  import { components as O } from "@feedmepos/ui-library";
5
- const T = { class: "flex flex-col" }, z = { 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" }, j = { class: "flex-1 py-8 px-16" }, D = {
5
+ const T = { class: "flex flex-col" }, j = { 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" }, z = { class: "flex-1 py-8 px-16" }, D = {
6
6
  class: "flex-0 py-8 px-16",
7
7
  style: { "flex-basis": "120px" }
8
- }, E = { class: "flex-1 py-8 px-16" }, M = {
8
+ }, E = { class: "flex-1 py-8 px-16" }, K = {
9
9
  key: 0,
10
10
  class: "flex-0 py-8 px-16",
11
11
  style: { "flex-basis": "120px" }
12
- }, K = {
12
+ }, M = {
13
13
  key: 1,
14
14
  class: "flex-0 py-8 px-16",
15
15
  style: { "flex-basis": "120px" }
16
- }, q = /* @__PURE__ */ g({
16
+ }, G = /* @__PURE__ */ g({
17
17
  __name: "IngredientBindedItem",
18
18
  props: {
19
19
  name: {},
@@ -33,8 +33,8 @@ const T = { class: "flex flex-col" }, z = { class: "flex flex-row fm-typo-en-bod
33
33
  return o.unit !== void 0;
34
34
  }
35
35
  return (o, c) => (a(), i("div", T, [
36
- m("div", z, [
37
- m("div", j, u(o.name), 1),
36
+ m("div", j, [
37
+ m("div", z, u(o.name), 1),
38
38
  m("div", D, u(h(p)("inventory.ingredient.bindedItems.amount")), 1)
39
39
  ]),
40
40
  (a(!0), i(C, null, N(o.bindings, (n) => (a(), i("div", {
@@ -42,14 +42,14 @@ const T = { class: "flex flex-col" }, z = { class: "flex flex-row fm-typo-en-bod
42
42
  class: "flex flex-row fm-typo-en-body-md-400 h-48 items-center border-b border-b-fm-color-neutral-gray-100"
43
43
  }, [
44
44
  m("div", E, u(n.name), 1),
45
- f(n) ? (a(), i("div", M, u(l(n, n.unit)), 1)) : (a(), i("div", K, u(h(b)(n.amount, !1)), 1))
45
+ f(n) ? (a(), i("div", K, u(l(n, n.unit)), 1)) : (a(), i("div", M, u(h(b)(n.amount, !1)), 1))
46
46
  ]))), 128))
47
47
  ]));
48
48
  }
49
49
  }), U = {
50
50
  key: 0,
51
51
  class: "flex flex-col gap-16"
52
- }, G = /* @__PURE__ */ g({
52
+ }, H = /* @__PURE__ */ g({
53
53
  __name: "FmCustomAttribute",
54
54
  props: {
55
55
  entity: {},
@@ -137,6 +137,6 @@ const T = { class: "flex flex-col" }, z = { class: "flex flex-row fm-typo-en-bod
137
137
  }
138
138
  });
139
139
  export {
140
- q as _,
141
- G as a
140
+ G as _,
141
+ H as a
142
142
  };
@@ -1,7 +1,7 @@
1
- import { i as k, t as B, an as w, u as H, as as I, aC as R, aD as M } from "./app-CpuFfqWF.js";
2
- import { u as j } from "./supplier-CeY_Gro-.js";
3
- import { P as S } from "./format-unit-display-D4gi2D-O.js";
4
- import { computed as y, defineComponent as $, mergeModels as W, useModel as J, resolveComponent as U, openBlock as T, createElementBlock as A, normalizeStyle as K, createElementVNode as D, createVNode as Q, withCtx as X, createBlock as x, createCommentVNode as N, Fragment as Y, renderList as Z, unref as V } from "vue";
1
+ import { j as k, t as B, ao as w, u as H, at as I, aD as R, aE as M } from "./app-BvW6mdJl.js";
2
+ import { u as j } from "./supplier-CCUVm2qD.js";
3
+ import { P as S } from "./format-unit-display-BfYIFIft.js";
4
+ import { computed as y, defineComponent as $, mergeModels as W, useModel as J, resolveComponent as U, openBlock as T, createElementBlock as A, normalizeStyle as K, createElementVNode as D, createVNode as Q, withCtx as X, createBlock as x, createCommentVNode as E, Fragment as Y, renderList as Z, unref as V } from "vue";
5
5
  function z(l, r, e) {
6
6
  var s;
7
7
  if (!!r.measurement === !!e && ((s = r.measurement) == null ? void 0 : s.id) === e)
@@ -81,7 +81,7 @@ function re(l, r, e = !1, n = !1) {
81
81
  set(u) {
82
82
  const a = l() ?? {};
83
83
  if (s.value === S.PURCHASE) {
84
- const _ = (n ? t.suppliers : t.businessSuppliers).find((E) => E._id === u);
84
+ const _ = (n ? t.suppliers : t.businessSuppliers).find((N) => N._id === u);
85
85
  r({
86
86
  ...a,
87
87
  supplier: _ ? F(_) : a.supplier
@@ -248,7 +248,7 @@ const G = { class: "sticky top-0 bg-white mb-8" }, q = { class: "overflow-y-auto
248
248
  variant: "tertiary",
249
249
  "prepend-icon": "close",
250
250
  onClick: s[0] || (s[0] = (f) => e.value = "")
251
- })) : N("", !0)
251
+ })) : E("", !0)
252
252
  ]),
253
253
  _: 1
254
254
  }, 8, ["modelValue"])
@@ -265,7 +265,7 @@ const G = { class: "sticky top-0 bg-white mb-8" }, q = { class: "overflow-y-auto
265
265
  return V(M)(o.modelValue, f.value) && ((g = b.el) == null || g.scrollIntoView({ behavior: "smooth", block: "center" }), console.log("scrollTo", b.el)), void 0;
266
266
  }
267
267
  }, null, 8, ["label", "sublabel", "model-value", "onClick", "onVnodeMounted"]))), 128)),
268
- t.value.length ? N("", !0) : (T(), x(p, {
268
+ t.value.length ? E("", !0) : (T(), x(p, {
269
269
  key: 0,
270
270
  disabled: "",
271
271
  label: "No options available"
@@ -1,5 +1,5 @@
1
- import { defineComponent as oe, mergeModels as j, useModel as se, computed as v, ref as P, watch as z, inject as ie, resolveComponent as b, openBlock as f, createElementBlock as y, createElementVNode as u, createVNode as M, withCtx as h, renderSlot as T, normalizeClass as V, toDisplayString as x, withDirectives as le, vModelText as ae, createCommentVNode as q, createTextVNode as ue, createBlock as W, Fragment as re, renderList as me } from "vue";
2
- import { Z as I, I as k, O as L, K as ce, i as g, aA as de, t as pe, J as fe, ag as ve, ay as be, ax as ye } from "./app-CpuFfqWF.js";
1
+ import { defineComponent as oe, mergeModels as z, useModel as se, computed as v, ref as P, watch as O, inject as ie, resolveComponent as b, openBlock as f, createElementBlock as y, createElementVNode as u, createVNode as h, withCtx as g, renderSlot as T, normalizeClass as V, toDisplayString as x, withDirectives as le, vModelText as ae, createCommentVNode as q, createTextVNode as ue, createBlock as W, Fragment as re, renderList as me } from "vue";
2
+ import { $ as I, I as k, P as L, L as ce, j as M, aB as de, t as pe, K as fe, ah as ve, az as be, ay as ye } from "./app-BvW6mdJl.js";
3
3
  import "@feedmepos/ui-library";
4
4
  function E() {
5
5
  return {
@@ -27,7 +27,7 @@ function G(l, d = !1) {
27
27
  if (s != !0)
28
28
  return d ? s : !0;
29
29
  const F = typeof l == "number" ? l : L(l, r.modelValue.measurement);
30
- return ce(+r.amountAsString).precision > F ? `Cannot exceed precision more than ${g({
30
+ return ce(+r.amountAsString).precision > F ? `Cannot exceed precision more than ${M({
31
31
  amount: 1,
32
32
  precision: F
33
33
  })}` : !0;
@@ -39,7 +39,7 @@ function Le(l) {
39
39
  return d(r.modelValue.amount);
40
40
  };
41
41
  }
42
- const Me = { class: "flex flex-col" }, ge = { class: "flex flex-col" }, he = { class: "flex-1" }, xe = { class: "flex items-center gap-4" }, Fe = { class: "flex-1 flex gap-4" }, Ae = { class: "shrink-0 grow basis-2/5" }, _e = {
42
+ const he = { class: "flex flex-col" }, Me = { class: "flex flex-col" }, ge = { class: "flex-1" }, xe = { class: "flex items-center gap-4" }, Fe = { class: "flex-1 flex gap-4" }, Ae = { class: "shrink-0 grow basis-2/5" }, _e = {
43
43
  key: 0,
44
44
  class: "text-fm-color-typo-secondary"
45
45
  }, Pe = {
@@ -54,9 +54,9 @@ const Me = { class: "flex flex-col" }, ge = { class: "flex flex-col" }, he = { c
54
54
  }, Ue = {
55
55
  class: "flex items-center",
56
56
  style: { "pointer-events": "none" }
57
- }, Oe = /* @__PURE__ */ oe({
57
+ }, $e = /* @__PURE__ */ oe({
58
58
  __name: "FmUnitInput",
59
- props: /* @__PURE__ */ j({
59
+ props: /* @__PURE__ */ z({
60
60
  modelValue: {},
61
61
  unit: {},
62
62
  rules: {},
@@ -103,7 +103,7 @@ const Me = { class: "flex flex-col" }, ge = { class: "flex flex-col" }, he = { c
103
103
  modelValue: {},
104
104
  modelModifiers: {}
105
105
  }),
106
- emits: /* @__PURE__ */ j(["update:amount", "update:measurement"], ["update:modelValue"]),
106
+ emits: /* @__PURE__ */ z(["update:amount", "update:measurement"], ["update:modelValue"]),
107
107
  setup(l, { emit: d }) {
108
108
  const t = l, r = d, s = se(l, "modelValue"), F = k(), B = v(() => {
109
109
  var n;
@@ -111,19 +111,19 @@ const Me = { class: "flex flex-col" }, ge = { class: "flex flex-col" }, he = { c
111
111
  }), c = P((() => {
112
112
  var o;
113
113
  const e = ((o = s.value) == null ? void 0 : o.amount) ?? I.reset(), n = be(e), i = t.formatMinimumPrecision ?? n.precision, a = ye(n, i);
114
- return g(a);
114
+ return M(a);
115
115
  })());
116
- z(c, (e) => {
116
+ O(c, (e) => {
117
117
  const n = F(e), i = t.precision ?? B.value, o = typeof t.formatMinimumPrecision == "number" && t.formatMinimumPrecision > i ? t.formatMinimumPrecision : i;
118
118
  n == !0 && (s.value = {
119
119
  ...s.value,
120
120
  amount: pe(+e, o)
121
121
  }), r("update:amount", e);
122
122
  });
123
- const J = Symbol.for("fm:form-state"), D = ie(J, null), A = v(() => t.disabled ?? (D == null ? void 0 : D.getDisabled()) ?? !1), K = P(), R = P(!1), O = P(!1), Q = v(() => R.value || O.value), X = v(() => {
123
+ const Z = Symbol.for("fm:form-state"), D = ie(Z, null), A = v(() => t.disabled ?? (D == null ? void 0 : D.getDisabled()) ?? !1), J = P(), R = P(!1), $ = P(!1), Q = v(() => R.value || $.value), X = v(() => {
124
124
  var a;
125
- const i = [...t.unit.measurements.filter((o) => !o.name.toLocaleLowerCase().includes("inactive")).filter((o) => o.abbrev !== t.unit.abbrev || +g(o.conversion) != 1).groupBy(
126
- (o) => `${o.abbrev}${g(o.conversion)}`
125
+ const i = [...t.unit.measurements.filter((o) => !o.name.toLocaleLowerCase().includes("inactive")).filter((o) => o.abbrev !== t.unit.abbrev || +M(o.conversion) != 1).groupBy(
126
+ (o) => `${o.abbrev}${M(o.conversion)}`
127
127
  ).values()].map((o) => o[0]).flat();
128
128
  return [
129
129
  {
@@ -155,7 +155,7 @@ const Me = { class: "flex flex-col" }, ge = { class: "flex flex-col" }, he = { c
155
155
  }
156
156
  }
157
157
  });
158
- z(U, (e, n) => {
158
+ O(U, (e, n) => {
159
159
  var m;
160
160
  if (!t.convertAmountOnChangeUnit)
161
161
  return;
@@ -163,7 +163,7 @@ const Me = { class: "flex flex-col" }, ge = { class: "flex flex-col" }, he = { c
163
163
  value: w,
164
164
  precision: N
165
165
  });
166
- c.value = g(S);
166
+ c.value = M(S);
167
167
  });
168
168
  const C = v(() => {
169
169
  var e, n;
@@ -179,36 +179,36 @@ const Me = { class: "flex flex-col" }, ge = { class: "flex flex-col" }, he = { c
179
179
  H(),
180
180
  typeof t.precision == "number" ? G(t.precision) : G(t.unit)
181
181
  ] : [], ...Y.value]);
182
- function $(e) {
182
+ function j(e) {
183
183
  const n = t.precision ?? B.value, a = typeof t.formatMinimumPrecision == "number" && t.formatMinimumPrecision > n ? t.formatMinimumPrecision : n, o = e.toFixed(a), p = o.includes(".") ? o.replace(/0+$/, "") : o;
184
184
  return p.endsWith(".") ? p.slice(0, p.length - 1) : p;
185
185
  }
186
186
  function te() {
187
187
  if (!t.stepper)
188
188
  return;
189
- const e = +c.value + +g(t.stepper);
190
- c.value = $(e);
189
+ const e = +c.value + +M(t.stepper);
190
+ c.value = j(e);
191
191
  }
192
192
  function ne() {
193
193
  if (!t.stepper)
194
194
  return;
195
- const e = +c.value - +g(t.stepper);
196
- c.value = $(e);
195
+ const e = +c.value - +M(t.stepper);
196
+ c.value = j(e);
197
197
  }
198
198
  return (e, n) => {
199
199
  const i = b("FmLabel"), a = b("FmIcon"), o = b("FmMenuItem"), p = b("FmMenu"), w = b("FmTooltip"), N = b("FmField"), S = b("FmFormGroup");
200
- return f(), y("div", Me, [
201
- u("div", ge, [
202
- u("div", he, [
203
- M(i, {
200
+ return f(), y("div", he, [
201
+ u("div", Me, [
202
+ u("div", ge, [
203
+ h(i, {
204
204
  label: e.label,
205
205
  disabled: e.disabled,
206
206
  required: e.labelMark === "required",
207
207
  optional: e.labelMark === "optional"
208
208
  }, null, 8, ["label", "disabled", "required", "optional"])
209
209
  ]),
210
- M(N, { focused: Q.value }, {
211
- default: h(() => [
210
+ h(N, { focused: Q.value }, {
211
+ default: g(() => [
212
212
  u("div", xe, [
213
213
  T(e.$slots, "prepend"),
214
214
  u("div", Fe, [
@@ -224,7 +224,7 @@ const Me = { class: "flex flex-col" }, ge = { class: "flex flex-col" }, he = { c
224
224
  key: 1,
225
225
  type: "text",
226
226
  ref_key: "inputRef",
227
- ref: K,
227
+ ref: J,
228
228
  onFocus: n[0] || (n[0] = () => R.value = !0),
229
229
  onBlur: n[1] || (n[1] = () => R.value = !1),
230
230
  "onUpdate:modelValue": n[2] || (n[2] = (m) => c.value = m),
@@ -241,25 +241,25 @@ const Me = { class: "flex flex-col" }, ge = { class: "flex flex-col" }, he = { c
241
241
  u("div", {
242
242
  class: V([e.disabled ? "text-fm-color-typo-disabled" : "text-fm-color-typo-secondary"])
243
243
  }, [
244
- M(w, { "z-index": 51 }, {
245
- content: h(() => [
244
+ h(w, { "z-index": 51 }, {
245
+ content: g(() => [
246
246
  ue(x(C.value), 1)
247
247
  ]),
248
- default: h(() => [
248
+ default: g(() => [
249
249
  e.disableUnit ? (f(), y("div", Pe, x(C.value), 1)) : (f(), W(p, {
250
250
  key: 1,
251
- onMenuChanged: n[3] || (n[3] = (m) => O.value = m),
251
+ onMenuChanged: n[3] || (n[3] = (m) => $.value = m),
252
252
  "z-index": 500,
253
253
  placement: e.placement,
254
254
  disabled: e.disabled
255
255
  }, {
256
- "menu-button": h(() => [
256
+ "menu-button": g(() => [
257
257
  u("div", Ie, [
258
258
  u("div", ke, x(C.value), 1),
259
- M(a, { name: "keyboard_arrow_down" })
259
+ h(a, { name: "keyboard_arrow_down" })
260
260
  ])
261
261
  ]),
262
- default: h(() => [
262
+ default: g(() => [
263
263
  u("div", Be, [
264
264
  (f(!0), y(re, null, me(X.value, (m) => (f(), W(o, {
265
265
  key: m.value ?? void 0,
@@ -281,7 +281,7 @@ const Me = { class: "flex flex-col" }, ge = { class: "flex flex-col" }, he = { c
281
281
  onClick: te
282
282
  }, [
283
283
  u("div", Re, [
284
- M(a, {
284
+ h(a, {
285
285
  name: "expand_less",
286
286
  size: "md"
287
287
  })
@@ -292,7 +292,7 @@ const Me = { class: "flex flex-col" }, ge = { class: "flex flex-col" }, he = { c
292
292
  onClick: ne
293
293
  }, [
294
294
  u("div", Ue, [
295
- M(a, {
295
+ h(a, {
296
296
  name: "expand_more",
297
297
  size: "md"
298
298
  })
@@ -306,7 +306,7 @@ const Me = { class: "flex flex-col" }, ge = { class: "flex flex-col" }, he = { c
306
306
  _: 3
307
307
  }, 8, ["focused"])
308
308
  ]),
309
- M(S, {
309
+ h(S, {
310
310
  class: "flex-1",
311
311
  "model-value": { modelValue: s.value, amountAsString: String(c.value) },
312
312
  info: e.labelInfo,
@@ -320,7 +320,7 @@ const Me = { class: "flex flex-col" }, ge = { class: "flex flex-col" }, he = { c
320
320
  });
321
321
  export {
322
322
  Se as F,
323
- Oe as _,
323
+ $e as _,
324
324
  Ve as a,
325
325
  Le as b,
326
326
  H as c,
@@ -1,5 +1,5 @@
1
1
  import { ref as C, computed as F, defineComponent as Y, resolveComponent as S, openBlock as M, createBlock as O, withCtx as R, createElementVNode as x, createVNode as g, unref as l, createElementBlock as ee, toDisplayString as j, createTextVNode as te, watch as ue, isRef as ce, normalizeClass as de, normalizeStyle as me, createSlots as pe, Teleport as fe, normalizeProps as ve, guardReactiveProps as ge } from "vue";
2
- import { a as J, d as h, e as B, f as ye, D as oe, h as Q, G as be, l as _e, A as xe, H as ne, o as se, u as ke, y as he, _ as we, z as Se, B as Ie, E as ae } from "./app-CpuFfqWF.js";
2
+ import { a as J, e as h, f as B, h as ye, D as oe, i as Q, H as be, m as _e, A as xe, J as ne, p as se, u as ke, z as he, _ as we, B as Se, E as Ie, G as ae } from "./app-BvW6mdJl.js";
3
3
  import { useDialog as le, useSnackbar as Z, useProxiedModel as Fe, useBreakpoints as Ce } from "@feedmepos/ui-library";
4
4
  import { useI18n as W } from "@feedmepos/mf-common";
5
5
  import { defineStore as ie, storeToRefs as re } from "pinia";
@@ -1,17 +1,16 @@
1
1
  import { ref as j, defineComponent as oe, computed as S, resolveComponent as C, openBlock as f, createBlock as B, withCtx as V, createVNode as p, unref as m, createElementBlock as T, Fragment as Q, createElementVNode as d, createCommentVNode as Y, renderSlot as ve, createTextVNode as Ie, toDisplayString as D, normalizeClass as te, onMounted as et, watch as He, renderList as ue, isRef as Re, createSlots as Ye, normalizeStyle as tt, Teleport as Ae, normalizeProps as nt, guardReactiveProps as ot } from "vue";
2
- import { a as le, d as K, e as je, S as lt, f as at, D as Te, h as fe, A as ge, b as Me, i as Oe, j as be, t as qe, k as ce, l as xe, U as rt, m as st, M as it, n as De, C as ke, o as Pe, p as Ge, q as ut, r as We, s as dt, v as mt, I as ct, w as pt, x as vt, u as ft, y as yt, _ as gt, z as bt, B as ht, E as Be } from "./app-CpuFfqWF.js";
3
- import { useDialog as Ke, useSnackbar as he, useProxiedModel as Ne, useDialogChild as _t, useBreakpoints as xt } from "@feedmepos/ui-library";
2
+ import { a as le, e as K, f as je, S as lt, h as at, D as Te, i as fe, A as ge, b as Me, j as Oe, k as be, t as qe, l as ce, m as xe, U as rt, n as st, M as it, o as De, c as Ge, C as ke, p as Pe, q as We, r as ut, s as Ke, v as dt, w as mt, I as ct, x as pt, y as vt, u as ft, z as yt, _ as gt, B as bt, E as ht, G as Be } from "./app-BvW6mdJl.js";
3
+ import { useDialog as Ze, useSnackbar as he, useProxiedModel as Ne, useDialogChild as _t, useBreakpoints as xt } from "@feedmepos/ui-library";
4
4
  import { i as kt, _ as Vt } from "./is-linked-ingredient-error-fJ2TJb3z.js";
5
5
  import { useI18n as ae, useCoreStore as pe } from "@feedmepos/mf-common";
6
6
  import { defineStore as St, storeToRefs as Ct } from "pinia";
7
7
  import { g as wt, _ as Ve, S as Se } from "./StockForecast.vue_vue_type_style_index_0_lang-KLXSWvo5.js";
8
- import { _ as Ft } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-4d9oz7Xh.js";
9
- import { _ as Ce, a as It } from "./FmCustomAttribute.vue_vue_type_script_setup_true_lang-DUDOaU6F.js";
10
- import { u as Ze } from "./feature-D8aRYGen.js";
8
+ import { _ as Ft } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-BhaK3zOk.js";
9
+ import { _ as Ce, a as It } from "./FmCustomAttribute.vue_vue_type_script_setup_true_lang-B1mRTbf9.js";
11
10
  import { _ as we } from "./PreviewBadge.vue_vue_type_script_setup_true_lang-CRZiQHjx.js";
12
11
  import "./array-hChJVZLE.js";
13
12
  const Fe = St("ingredientForm", function() {
14
- const o = Ke(), y = he(), s = le(), n = j(!1), { t: l } = ae(), i = j();
13
+ const o = Ze(), y = he(), s = le(), n = j(!1), { t: l } = ae(), i = j();
15
14
  function a() {
16
15
  const b = {
17
16
  unit: {},
@@ -318,7 +317,7 @@ const Et = {
318
317
  emits: ["update:modelValue", "click:submit"],
319
318
  setup(u, { expose: o, emit: y }) {
320
319
  var me;
321
- const { t: s } = ae(), n = u, l = y, i = le(), a = pe(), h = Ze(), k = Me(), g = S(() => k.isEnabled);
320
+ const { t: s } = ae(), n = u, l = y, i = le(), a = pe(), h = Ge(), k = Me(), g = S(() => k.isEnabled);
322
321
  function b(t) {
323
322
  if (t.length === 0) return;
324
323
  const e = t[0], c = n.modelValue ?? {
@@ -1113,7 +1112,7 @@ function Je() {
1113
1112
  id: "baseUnit",
1114
1113
  name: "Base unit"
1115
1114
  }
1116
- ], o = Ze(), y = pe(), s = be(y.currentCountry.value);
1115
+ ], o = Ge(), y = pe(), s = be(y.currentCountry.value);
1117
1116
  return o.enableTotalCost && u.push(
1118
1117
  {
1119
1118
  id: "valuationMethod",
@@ -1142,8 +1141,8 @@ function yn() {
1142
1141
  [],
1143
1142
  n.map((k) => k.name),
1144
1143
  ...o.map((k) => n.map((g) => k[g.id]))
1145
- ], i = n.map((k) => `system:${k.id}`), a = Ge(l, i), h = `${s == null ? void 0 : s.name} ingredients (${ut(/* @__PURE__ */ new Date())}).xlsx`;
1146
- return We(a, h), h;
1144
+ ], i = n.map((k) => `system:${k.id}`), a = We(l, i), h = `${s == null ? void 0 : s.name} ingredients (${ut(/* @__PURE__ */ new Date())}).xlsx`;
1145
+ return Ke(a, h), h;
1147
1146
  }
1148
1147
  function gn() {
1149
1148
  const o = pe().currentBusiness.value, y = Je(), s = [
@@ -1152,8 +1151,8 @@ function gn() {
1152
1151
  ["Menu version", o == null ? void 0 : o.menuVersion],
1153
1152
  [],
1154
1153
  y.map((a) => a.name)
1155
- ], n = y.map((a) => `system:${a.id}`), l = Ge(s, n), i = "FeedMe ingredients template.xlsx";
1156
- return We(l, i), i;
1154
+ ], n = y.map((a) => `system:${a.id}`), l = We(s, n), i = "FeedMe ingredients template.xlsx";
1155
+ return Ke(l, i), i;
1157
1156
  }
1158
1157
  function bn(u) {
1159
1158
  const [
@@ -1474,10 +1473,10 @@ const _n = { class: "flex items-center gap-12 pl-8" }, xn = { class: "flex flex-
1474
1473
  ]);
1475
1474
  };
1476
1475
  }
1477
- }), Tn = { class: "flex flex-col py-8" }, Dn = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Pn = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, Jn = /* @__PURE__ */ oe({
1476
+ }), Tn = { class: "flex flex-col py-8" }, Dn = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Pn = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, Zn = /* @__PURE__ */ oe({
1478
1477
  __name: "IngredientsView",
1479
1478
  setup(u) {
1480
- const o = le(), y = S(() => o.skus), s = ft(), n = Ke(), l = he(), i = Me(), { t: a } = ae(), { createIngredient: h, updateIngredient: k } = Fe(), { ingredientDialogProps: g, ingredientViewLoading: b } = Ct(Fe()), { columnDefs: r } = Mt();
1479
+ const o = le(), y = S(() => o.skus), s = ft(), n = Ze(), l = he(), i = Me(), { t: a } = ae(), { createIngredient: h, updateIngredient: k } = Fe(), { ingredientDialogProps: g, ingredientViewLoading: b } = Ct(Fe()), { columnDefs: r } = Mt();
1481
1480
  function _(P) {
1482
1481
  switch (P) {
1483
1482
  case "add":
@@ -1703,5 +1702,5 @@ const _n = { class: "flex items-center gap-12 pl-8" }, xn = { class: "flex flex-
1703
1702
  }
1704
1703
  });
1705
1704
  export {
1706
- Jn as default
1705
+ Zn as default
1707
1706
  };
@@ -1,6 +1,6 @@
1
1
  import { ref as Q, computed as R, defineComponent as F, mergeModels as ge, useModel as pe, onMounted as ve, resolveComponent as O, openBlock as C, createElementBlock as V, createElementVNode as c, toDisplayString as L, unref as b, createVNode as M, createBlock as Z, withCtx as J, Fragment as G, renderList as U, normalizeClass as q, normalizeStyle as Ie, createSlots as be, createCommentVNode as K, withModifiers as ye, reactive as te, watch as ne, isRef as ie, Teleport as oe } from "vue";
2
2
  import { E as Ee } from "./empty-placeholder-wf6-BWE8.js";
3
- import { u as _, aJ as se, b as re, aK as le, aD as he, e as T, _ as Be, z as Ce } from "./app-CpuFfqWF.js";
3
+ import { u as _, aJ as se, b as re, aK as le, aE as he, f as T, _ as Be, B as Ce } from "./app-BvW6mdJl.js";
4
4
  import { useSnackbar as ae, useDialogChild as Se, useDialog as de, useProxiedModel as ue, useBreakpoints as $ } from "@feedmepos/ui-library";
5
5
  import { useI18n as Y, useCoreStore as ke } from "@feedmepos/mf-common";
6
6
  function xe() {
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-4d9oz7Xh.js";
1
+ import { _ as f } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-BhaK3zOk.js";
2
2
  export {
3
3
  f as default
4
4
  };