@feedmepos/mf-inventory-portal 0.0.21-dev.2 → 0.0.21-dev.4

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 (33) hide show
  1. package/dist/{ApprovalView-DYSwbHh8.js → ApprovalView-BS4jzhAR.js} +11 -11
  2. package/dist/{BindingsDialog-WhQE8AYR.js → BindingsDialog-BFLeun5L.js} +1 -1
  3. package/dist/{BindingsPicker-DJybK-vc.js → BindingsPicker-CnjJZH9t.js} +1 -1
  4. package/dist/{BindingsTable-93XAO0Qo.js → BindingsTable-C3VTa0YL.js} +1 -1
  5. package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-DYBTXD_J.js +374 -0
  6. package/dist/{IngredientsView-BVzyVgin.js → IngredientsView-CQYJfAze.js} +4 -4
  7. package/dist/{IntegrationView-Cojvxw0r.js → IntegrationView-9V2OcyP_.js} +2 -2
  8. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DJlMmmAc.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-Wv8RvXJL.js} +1 -1
  9. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-BArCNkOA.js → PremiumBadge.vue_vue_type_script_setup_true_lang-DsOGlAb7.js} +1 -1
  10. package/dist/{PurchaseOrderPrintPreview-CzapZi_d.js → PurchaseOrderPrintPreview-B0hDduXB.js} +1 -1
  11. package/dist/{ReceiveRequestView-Bp0ZGs1J.js → ReceiveRequestView-3boFHkOO.js} +19 -19
  12. package/dist/{RecipeView-DfGLi4Jo.js → RecipeView-DYKhSgtw.js} +4 -4
  13. package/dist/{StockView-wZnTzaN9.js → StockView-BIGGG87A.js} +32 -32
  14. package/dist/{SupplierView-BzbH7YSx.js → SupplierView-DQzopnzt.js} +12 -12
  15. package/dist/TableActionableRow.vue_vue_type_script_setup_true_lang-DlNJ6kRg.js +135 -0
  16. package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-P6kWGG5r.js → TransferDetails.vue_vue_type_script_setup_true_lang-D8-sMRGm.js} +4 -4
  17. package/dist/{TransferDialog.vue_vue_type_script_setup_true_lang-CEtw6YnB.js → TransferDialog.vue_vue_type_script_setup_true_lang-CSUnXAyq.js} +5 -5
  18. package/dist/{TransferTemplateView-B_Kqj7dY.js → TransferTemplateView-DWF54okN.js} +112 -108
  19. package/dist/{UnitView-DpHaU6vN.js → UnitView-Cdw8xxzV.js} +5 -5
  20. package/dist/{WarehouseView-BSJBWLuP.js → WarehouseView-DOelxuIh.js} +3 -3
  21. package/dist/{app-WeYjbGNJ.js → app-SBnQEeEV.js} +2531 -2541
  22. package/dist/app.js +3 -3
  23. package/dist/{decimal-CEAZoBNh.js → decimal-BlEB2PrM.js} +1 -1
  24. package/dist/{id-to-date-BpXLfNOz.js → id-to-date-Y6berpHs.js} +1 -1
  25. package/dist/{purchase-order-transaction-type-Bqgv0C3j.js → purchase-order-transaction-type-Dp0wsGal.js} +3 -3
  26. package/dist/stores/layout.d.ts +3 -0
  27. package/dist/{supplier-BDTpTxbK.js → supplier-I_rYvljH.js} +1 -1
  28. package/dist/tsconfig.app.tsbuildinfo +1 -1
  29. package/dist/{xlsx-BKCeLIWN.js → xlsx-DGwG2ekM.js} +1 -1
  30. package/dist/{xlsx.util-DygPYQgc.js → xlsx.util-Dsf-EgrG.js} +2 -2
  31. package/package.json +4 -4
  32. package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-BBhLfL0s.js +0 -308
  33. package/dist/layout-_0NgbWBI.js +0 -151
@@ -1,13 +1,13 @@
1
1
  import { defineComponent as Y, ref as E, onMounted as se, resolveComponent as k, openBlock as x, createElementBlock as A, Fragment as le, createElementVNode as _, toDisplayString as re, createVNode as y, createCommentVNode as H, computed as V, watch as ie, createBlock as T, withCtx as $, unref as v, isRef as X, normalizeStyle as ce, Teleport as ue, normalizeProps as de, guardReactiveProps as me } from "vue";
2
- import { u as I, c as G, S as pe, a as q, R as fe, U as ve, _ as ye, A as ge, e as Z, f as _e, j as be } from "./app-WeYjbGNJ.js";
2
+ import { u as I, c as G, S as pe, a as q, R as fe, U as ve, _ as ye, A as ge, e as Z, f as _e, j as be } from "./app-SBnQEeEV.js";
3
3
  import { useDialog as we, useSnackbar as oe, useProxiedModel as ee, useBreakpoints as Re } from "@feedmepos/ui-library";
4
4
  import { i as he, _ as xe } from "./is-linked-ingredient-error-fJ2TJb3z.js";
5
5
  import { F as h, D as te, R as N } from "./row-action.enum-PMKMRrZR.js";
6
- import { _ as ae, t as Ce, d as Ee } from "./xlsx.util-DygPYQgc.js";
6
+ import { _ as ae, t as Ce, d as Ee } from "./xlsx.util-Dsf-EgrG.js";
7
7
  import { defineStore as Fe, storeToRefs as ke } from "pinia";
8
- import { c as Ve, _ as Se, F as ne, u as De } from "./layout-_0NgbWBI.js";
8
+ import { c as Ve, _ as Se, F as ne } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-DlNJ6kRg.js";
9
9
  import { useI18n as j } from "@feedmepos/mf-common";
10
- import { _ as Ae, a as $e } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-BBhLfL0s.js";
10
+ import { u as De, _ as Ae, a as $e } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-DYBTXD_J.js";
11
11
  const Ie = {
12
12
  key: 0,
13
13
  class: "flex flex-col items-center w-full h-full gap-24"
@@ -1,16 +1,16 @@
1
1
  import { ref as R, defineComponent as re, computed as T, resolveComponent as D, openBlock as B, createBlock as O, withCtx as C, createElementVNode as n, normalizeClass as Ce, toDisplayString as b, createVNode as x, createElementBlock as L, Fragment as te, renderList as ae, unref as v, h as ye, watch as he, isRef as Ue, createCommentVNode as ee, reactive as it, onMounted as Je, normalizeStyle as Qe, createTextVNode as ve, Teleport as ut, normalizeProps as $e, mergeProps as we } from "vue";
2
- import { i as ct, _ as dt, a as mt } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-BBhLfL0s.js";
3
- import { n as Xe, j as ue, o as pt, c as Pe, p as vt, u as Te, q as Oe, r as De, a as ie, k as ft, t as ge, m as Me, A as yt, M as _t, l as fe, s as kt, v as Z, w as ht, x as ze, R as gt, y as bt, z as xt, B as Ze, D as q, E as St, f as et, G as je, H as $t, d as Ye, b as wt, J as Bt, K as Ft, C as Be, L as At, N as Vt, O as Ct, P as Dt } from "./app-WeYjbGNJ.js";
2
+ import { i as ct, u as dt, _ as mt, a as pt } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-DYBTXD_J.js";
3
+ import { n as Xe, j as ue, o as vt, c as Pe, p as ft, u as Te, q as Oe, r as De, a as ie, k as yt, t as ge, m as Me, A as _t, M as kt, l as fe, s as ht, v as Z, w as gt, x as ze, R as bt, y as xt, z as St, B as Ze, D as q, E as $t, f as et, G as je, H as wt, d as Ye, b as Bt, J as Ft, K as At, C as Be, L as Vt, N as Ct, O as Dt, P as Mt } from "./app-SBnQEeEV.js";
4
4
  import { useCoreStore as tt, useI18n as le } from "@feedmepos/mf-common";
5
- import { useSnackbar as de, useDialog as nt, useProxiedModel as Re, useBreakpoints as Mt } from "@feedmepos/ui-library";
6
- import { c as jt, _ as It, F as Ke, u as Ut } from "./layout-_0NgbWBI.js";
7
- import { g as be } from "./decimal-CEAZoBNh.js";
8
- import { e as Pt, i as ot } from "./id-to-date-BpXLfNOz.js";
5
+ import { useSnackbar as de, useDialog as nt, useProxiedModel as Re, useBreakpoints as jt } from "@feedmepos/ui-library";
6
+ import { c as It, _ as Ut, F as Ke } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-DlNJ6kRg.js";
7
+ import { g as be } from "./decimal-BlEB2PrM.js";
8
+ import { e as Pt, i as ot } from "./id-to-date-Y6berpHs.js";
9
9
  import { _ as Ie, S as Fe, g as st } from "./StockForecast.vue_vue_type_style_index_0_lang-KLXSWvo5.js";
10
10
  import { _ as Tt } from "./PreviewBadge.vue_vue_type_script_setup_true_lang-CRZiQHjx.js";
11
- import { u as at, _ as Ge } from "./PremiumBadge.vue_vue_type_script_setup_true_lang-BArCNkOA.js";
11
+ import { u as at, _ as Ge } from "./PremiumBadge.vue_vue_type_script_setup_true_lang-DsOGlAb7.js";
12
12
  import { defineStore as Rt } from "pinia";
13
- import { _ as Ht } from "./NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DJlMmmAc.js";
13
+ import { _ as Ht } from "./NumberPrecisionInput.vue_vue_type_script_setup_true_lang-Wv8RvXJL.js";
14
14
  import { E as Et } from "./empty-placeholder-wf6-BWE8.js";
15
15
  import "./array-ClJzD_Lt.js";
16
16
  const Se = Xe((c, d) => {
@@ -129,7 +129,7 @@ async function zt(c) {
129
129
  const r = `${(ue().currentLocation.name || "").replace(
130
130
  / /g,
131
131
  "_"
132
- )}_${pt().format("DD_MM_YYYY_HHmm")}.xlsx`;
132
+ )}_${vt().format("DD_MM_YYYY_HHmm")}.xlsx`;
133
133
  await Pt(
134
134
  [
135
135
  {
@@ -407,7 +407,7 @@ function qt() {
407
407
  id: "action",
408
408
  cell(S) {
409
409
  var l;
410
- return jt(
410
+ return It(
411
411
  ((l = c._currentLocation) == null ? void 0 : l.type) === "restaurant" ? Nt : Ot,
412
412
  (a) => d.onActionMenu(a, S.row.original)
413
413
  );
@@ -468,7 +468,7 @@ const Jt = { class: "flex items-center" }, Qt = { class: "fm-typo-en-title-md-80
468
468
  },
469
469
  emits: ["update:show", "submitted"],
470
470
  setup(c, { expose: d, emit: r }) {
471
- const s = c, S = r, l = vt(), a = Te(), i = Se(), h = de(), { t: k } = le(), u = R(0), o = R(null), w = T(() => a.skus), A = T(
471
+ const s = c, S = r, l = ft(), a = Te(), i = Se(), h = de(), { t: k } = le(), u = R(0), o = R(null), w = T(() => a.skus), A = T(
472
472
  () => {
473
473
  var e, t;
474
474
  return (((t = (e = s.sku) == null ? void 0 : e.convert) == null ? void 0 : t.inventoryBindings) ?? []).filter(
@@ -500,7 +500,7 @@ const Jt = { class: "flex items-center" }, Qt = { class: "fm-typo-en-title-md-80
500
500
  const t = (y = s.sku.convert) != null && y.measurement ? s.sku.unit.measurements.find((V) => {
501
501
  var K;
502
502
  return V.id === ((K = s.sku.convert) == null ? void 0 : K.measurement);
503
- }) ?? null : null, f = De(s.sku.unit, t), m = kt(+e);
503
+ }) ?? null : null, f = De(s.sku.unit, t), m = ht(+e);
504
504
  return qe(m).isInteger().max(f).error ? "Precision cannot be more than " + f : !0;
505
505
  }
506
506
  const F = T(
@@ -520,7 +520,7 @@ const Jt = { class: "flex items-center" }, Qt = { class: "fm-typo-en-title-md-80
520
520
  var Ne;
521
521
  return pe.id === ((Ne = s.sku.convert) == null ? void 0 : Ne.measurement);
522
522
  }) ?? null : null, me = De(s.sku.unit, Q), U = $(`${u.value}`) === !0 ? ie(
523
- ft(
523
+ yt(
524
524
  y.amount,
525
525
  ge(+u.value, me)
526
526
  ),
@@ -693,7 +693,7 @@ const Jt = { class: "flex items-center" }, Qt = { class: "fm-typo-en-title-md-80
693
693
  g.value ? (B(), L(te, { key: 0 }, [
694
694
  x(V, {
695
695
  modelValue: o.value,
696
- rules: [v(yt)(1, "Must have at least one ingredient binding")]
696
+ rules: [v(_t)(1, "Must have at least one ingredient binding")]
697
697
  }, null, 8, ["modelValue", "rules"]),
698
698
  n("div", sn, [
699
699
  n("div", an, b(v(k)("inventory.stock.convert.ingredients")), 1),
@@ -702,7 +702,7 @@ const Jt = { class: "flex items-center" }, Qt = { class: "fm-typo-en-title-md-80
702
702
  disabled: p.value,
703
703
  modelValue: +v(ie)(U.amount ?? { amount: 1, precision: 0 }),
704
704
  rules: [
705
- v(_t)(
705
+ v(kt)(
706
706
  w.value.find((Y) => Y._id === U.id).unit,
707
707
  U.measurement
708
708
  ),
@@ -817,7 +817,7 @@ const Ve = {
817
817
  setup(c, { emit: d }) {
818
818
  const r = c, s = d, S = T(
819
819
  () => Object.keys(Ve).map((u) => ({
820
- label: ht(u),
820
+ label: gt(u),
821
821
  value: u
822
822
  }))
823
823
  ), l = T(() => st(r.modelValue.doc.unit, !0)), a = T({
@@ -894,7 +894,7 @@ const Ve = {
894
894
  items: S.value,
895
895
  modelValue: a.value,
896
896
  "onUpdate:modelValue": o[1] || (o[1] = (M) => a.value = M),
897
- rules: [v(gt)()],
897
+ rules: [v(bt)()],
898
898
  "label-mark": "required"
899
899
  }, null, 8, ["disabled", "items", "modelValue", "rules"]),
900
900
  x(Ht, {
@@ -1012,7 +1012,7 @@ const Ve = {
1012
1012
  })), F = $.filter((j) => g.adjustments.find((I) => I.doc._id === j.value)).map((j) => j.value);
1013
1013
  a.open({
1014
1014
  title: "Select ingredients",
1015
- contentComponent: bt,
1015
+ contentComponent: xt,
1016
1016
  contentComponentProps: {
1017
1017
  items: $,
1018
1018
  modelValue: F
@@ -1152,7 +1152,7 @@ const Ve = {
1152
1152
  return ((M = p.skus) == null ? void 0 : M.filter((H) => H.sku._id === u._id)) ?? [];
1153
1153
  }).flatMap((p) => p.amounts);
1154
1154
  for (const p of A) {
1155
- const M = p.measurement ? xt(p.measurement.conversion, p.amount) : p.amount;
1155
+ const M = p.measurement ? St(p.measurement.conversion, p.amount) : p.amount;
1156
1156
  o[g = p.type] ?? (o[g] = { amount: 0, precision: 0 }), o[p.type] = Ze(M, o[p.type]);
1157
1157
  }
1158
1158
  return Object.entries(o).reduce(
@@ -1164,7 +1164,7 @@ const Ve = {
1164
1164
  {}
1165
1165
  );
1166
1166
  }), { t: i } = le(), h = T(() => d.record.adjustmentsByTime.map(({ date: k, adjustments: u }) => ({
1167
- time: St(new Date(k)),
1167
+ time: $t(new Date(k)),
1168
1168
  adjustments: u.flatMap(
1169
1169
  (o) => {
1170
1170
  var w, A;
@@ -1363,7 +1363,7 @@ const In = { class: "flex items-center w-full fm-typo-en-title-md-800" }, Un = {
1363
1363
  },
1364
1364
  emits: ["update:show"],
1365
1365
  setup(c) {
1366
- const d = tt(), r = He(), s = Se(), S = gn(), l = ue(), a = wt(), { t: i } = le(), h = c, k = R(!1), u = de(), o = R(ct(0));
1366
+ const d = tt(), r = He(), s = Se(), S = gn(), l = ue(), a = Bt(), { t: i } = le(), h = c, k = R(!1), u = de(), o = R(ct(0));
1367
1367
  async function w() {
1368
1368
  k.value = !0;
1369
1369
  try {
@@ -1385,7 +1385,7 @@ const In = { class: "flex items-center w-full fm-typo-en-title-md-800" }, Un = {
1385
1385
  });
1386
1386
  const A = R([]), g = R([]), p = R(new Array());
1387
1387
  function M(e, t) {
1388
- return t === "day" ? Ct(e) : et(e);
1388
+ return t === "day" ? Dt(e) : et(e);
1389
1389
  }
1390
1390
  function H(e, t) {
1391
1391
  const f = e.reduce(
@@ -1406,8 +1406,8 @@ const In = { class: "flex items-center w-full fm-typo-en-title-md-800" }, Un = {
1406
1406
  async function $() {
1407
1407
  let e = await s.readStockAdjustment(
1408
1408
  h.sku._id,
1409
- Bt(new Date(o.value.startDate)).toISOString(),
1410
- Ft(new Date(o.value.endDate)).toISOString()
1409
+ Ft(new Date(o.value.startDate)).toISOString(),
1410
+ At(new Date(o.value.endDate)).toISOString()
1411
1411
  );
1412
1412
  A.value = e;
1413
1413
  const t = e.filter(({ ref: f }) => f == null ? void 0 : f.startsWith("bill_")).map(({ ref: f }) => f);
@@ -1477,7 +1477,7 @@ const In = { class: "flex items-center w-full fm-typo-en-title-md-800" }, Un = {
1477
1477
  const y = _.cost;
1478
1478
  if (!y) return m;
1479
1479
  const V = {
1480
- ...$t(m, Math.max(m.precision, y.precision)),
1480
+ ...wt(m, Math.max(m.precision, y.precision)),
1481
1481
  currency: y.currency
1482
1482
  };
1483
1483
  return {
@@ -1494,7 +1494,7 @@ const In = { class: "flex items-center w-full fm-typo-en-title-md-800" }, Un = {
1494
1494
  return je(t, !1, t.precision);
1495
1495
  });
1496
1496
  function N() {
1497
- const { startDate: e, endDate: t } = At(o.value);
1497
+ const { startDate: e, endDate: t } = Vt(o.value);
1498
1498
  e !== null && t !== null && (o.value = {
1499
1499
  startDate: e,
1500
1500
  endDate: t
@@ -1516,7 +1516,7 @@ const In = { class: "flex items-center w-full fm-typo-en-title-md-800" }, Un = {
1516
1516
  } : "No data";
1517
1517
  });
1518
1518
  function ce() {
1519
- const { startDate: e, endDate: t } = Vt(o.value);
1519
+ const { startDate: e, endDate: t } = Ct(o.value);
1520
1520
  e !== null && t !== null && (o.value = {
1521
1521
  startDate: e,
1522
1522
  endDate: t
@@ -1785,10 +1785,10 @@ const In = { class: "flex items-center w-full fm-typo-en-title-md-800" }, Un = {
1785
1785
  trackingUnitAbbrev: F ? ((P = $.unit.measurements.find((N) => N.id === F)) == null ? void 0 : P.abbrev) ?? "" : $.unit.abbrev
1786
1786
  };
1787
1787
  })
1788
- ), w = R(""), { breakpoints: A } = Mt(), g = T(() => A.value.xs || A.value.sm ? 10 : 20), p = Ut(), M = T(
1788
+ ), w = R(""), { breakpoints: A } = jt(), g = T(() => A.value.xs || A.value.sm ? 10 : 20), p = dt(), M = T(
1789
1789
  () => {
1790
1790
  var $;
1791
- return (($ = s._currentLocation) == null ? void 0 : $.type) === Dt.restaurant;
1791
+ return (($ = s._currentLocation) == null ? void 0 : $.type) === Mt.restaurant;
1792
1792
  }
1793
1793
  ), H = T(() => {
1794
1794
  const $ = [
@@ -1798,14 +1798,14 @@ const In = { class: "flex items-center w-full fm-typo-en-title-md-800" }, Un = {
1798
1798
  });
1799
1799
  return ($, F) => {
1800
1800
  const j = D("FmTable");
1801
- return B(), O(dt, {
1801
+ return B(), O(mt, {
1802
1802
  title: v(d)("inventory.stock.title")
1803
1803
  }, {
1804
1804
  default: C(() => {
1805
1805
  var I, E, W, z;
1806
1806
  return [
1807
1807
  n("div", jo, [
1808
- x(mt, {
1808
+ x(pt, {
1809
1809
  searchable: "",
1810
1810
  "change-location": "",
1811
1811
  search: w.value,
@@ -1823,7 +1823,7 @@ const In = { class: "flex items-center w-full fm-typo-en-title-md-800" }, Un = {
1823
1823
  "page-size": g.value
1824
1824
  }, {
1825
1825
  "list-row": C((P) => [
1826
- x(It, {
1826
+ x(Ut, {
1827
1827
  row: P,
1828
1828
  onRowClick: v(l).showSkuHistory
1829
1829
  }, {
@@ -1,11 +1,11 @@
1
1
  import { defineComponent as Q, mergeModels as xe, computed as _, useModel as we, resolveComponent as P, openBlock as U, createElementBlock as B, createElementVNode as u, createVNode as m, withCtx as N, toDisplayString as T, unref as l, Fragment as ke, renderList as Ce, ref as L, createBlock as q, createCommentVNode as X, isRef as me, watch as Ie, onMounted as Me, normalizeStyle as $e, Teleport as Ae } from "vue";
2
- import { u as be } from "./supplier-BDTpTxbK.js";
2
+ import { u as be } from "./supplier-I_rYvljH.js";
3
3
  import { D as ve, R as O, F as A } from "./row-action.enum-PMKMRrZR.js";
4
- import { c as Ue, _ as De, F as J, u as Fe } from "./layout-_0NgbWBI.js";
5
- import { c as Z, u as ge, a2 as Re, d as fe, g as Pe, y as Ne, C as W, h as Ee, R as F, b as Ve, j as _e } from "./app-WeYjbGNJ.js";
6
- import { useI18n as z, useCoreStore as Te } from "@feedmepos/mf-common";
7
- import { useDialog as he, useSnackbar as Se, useProxiedModel as ye, useBreakpoints as Be } from "@feedmepos/ui-library";
8
- import { _ as Le, a as qe } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-BBhLfL0s.js";
4
+ import { c as Ue, _ as De, F as J } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-DlNJ6kRg.js";
5
+ import { c as Z, u as ge, a2 as Fe, d as fe, g as Re, y as Pe, C as W, h as Ne, R as F, b as Ve, j as _e } from "./app-SBnQEeEV.js";
6
+ import { useI18n as z, useCoreStore as Ee } from "@feedmepos/mf-common";
7
+ import { useDialog as he, useSnackbar as Se, useProxiedModel as ye, useBreakpoints as Te } from "@feedmepos/ui-library";
8
+ import { u as Be, _ as Le, a as qe } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-DYBTXD_J.js";
9
9
  import { _ as ze } from "./PreviewBadge.vue_vue_type_script_setup_true_lang-CRZiQHjx.js";
10
10
  function Ye(R, C) {
11
11
  const { t: h } = z();
@@ -73,7 +73,7 @@ const He = { class: "flex flex-col gap-12" }, Ke = { class: "flex flex-col" }, j
73
73
  }),
74
74
  emits: ["update:modelValue"],
75
75
  setup(R) {
76
- const C = Te(), h = ge(), o = _(() => h.skus), v = he(), { t: f } = z(), a = we(R, "modelValue");
76
+ const C = Ee(), h = ge(), o = _(() => h.skus), v = he(), { t: f } = z(), a = we(R, "modelValue");
77
77
  function i() {
78
78
  var V;
79
79
  const n = h.skus.map((d) => ({
@@ -83,13 +83,13 @@ const He = { class: "flex flex-col gap-12" }, Ke = { class: "flex flex-col" }, j
83
83
  })), S = ((V = a.value) == null ? void 0 : V.map((d) => d.skuId)) ?? [], k = _(
84
84
  () => {
85
85
  var d;
86
- return ((d = Pe(C.currentCountry.value)) == null ? void 0 : d.currency) ?? "MYR";
86
+ return ((d = Re(C.currentCountry.value)) == null ? void 0 : d.currency) ?? "MYR";
87
87
  }
88
88
  );
89
89
  v.open({
90
90
  title: f("inventory.supplier.supplyItems.selectItem"),
91
91
  closeButton: !0,
92
- contentComponent: Ne,
92
+ contentComponent: Pe,
93
93
  contentComponentProps: {
94
94
  modelValue: S,
95
95
  items: n
@@ -205,7 +205,7 @@ const He = { class: "flex flex-col gap-12" }, Ke = { class: "flex flex-col" }, j
205
205
  ]),
206
206
  u("div", tt, [
207
207
  u("div", lt, [
208
- m(Re, {
208
+ m(Fe, {
209
209
  "model-value": g(V),
210
210
  unit: E(V),
211
211
  "onUpdate:modelValue": (w) => D(V, w),
@@ -249,7 +249,7 @@ const He = { class: "flex flex-col gap-12" }, Ke = { class: "flex flex-col" }, j
249
249
  },
250
250
  emits: ["update:modelValue", "validation-success"],
251
251
  setup(R, { expose: C, emit: h }) {
252
- const o = R, v = h, f = Ve(), a = ge(), i = _(() => Ee(a.skus, "_id")), { t: b } = z(), $ = _e(), E = _(() => $.businessLevel), g = _({
252
+ const o = R, v = h, f = Ve(), a = ge(), i = _(() => Ne(a.skus, "_id")), { t: b } = z(), $ = _e(), E = _(() => $.businessLevel), g = _({
253
253
  get() {
254
254
  var t;
255
255
  return ((t = o.modelValue) == null ? void 0 : t.name) ?? "";
@@ -722,7 +722,7 @@ const He = { class: "flex flex-col gap-12" }, Ke = { class: "flex flex-col" }, j
722
722
  function d(p) {
723
723
  p === "create" && D();
724
724
  }
725
- const s = L(""), { breakpoints: c } = Be(), x = _(() => c.value.xs || c.value.sm ? 10 : 20), w = Fe();
725
+ const s = L(""), { breakpoints: c } = Te(), x = _(() => c.value.xs || c.value.sm ? 10 : 20), w = Be();
726
726
  return (p, y) => {
727
727
  const t = P("FmTable");
728
728
  return U(), q(Le, {
@@ -0,0 +1,135 @@
1
+ import { useI18n as R } from "@feedmepos/mf-common";
2
+ import { components as h } from "@feedmepos/ui-library";
3
+ import { h as i, defineComponent as F, computed as B, openBlock as u, createBlock as V, resolveDynamicComponent as z, unref as p, normalizeClass as D, withCtx as M, createElementVNode as c, renderSlot as N, normalizeProps as P, guardReactiveProps as _, createElementBlock as m, Fragment as w, renderList as E, createVNode as b, createCommentVNode as y } from "vue";
4
+ const { FmMenu: L, FmButton: S, FmMenuItem: $ } = h;
5
+ function O(o, a) {
6
+ return i(
7
+ L,
8
+ {
9
+ trigger: "click",
10
+ stopClickPropagation: !0
11
+ },
12
+ {
13
+ "menu-button": () => i(S, {
14
+ type: "button",
15
+ variant: "tertiary",
16
+ icon: "more_vert",
17
+ iconColor: "#000000",
18
+ size: "md"
19
+ }),
20
+ default: () => i(
21
+ "div",
22
+ {
23
+ style: {
24
+ backgroundColor: "white",
25
+ padding: "4px",
26
+ width: "160px"
27
+ }
28
+ },
29
+ o.map(({ translationKey: t, color: e, value: r }) => {
30
+ const { t: s } = R(), n = s(t);
31
+ return i(
32
+ $,
33
+ {
34
+ onClick() {
35
+ a(r ?? n);
36
+ }
37
+ },
38
+ {
39
+ label: () => i(
40
+ "span",
41
+ {
42
+ class: e
43
+ },
44
+ n
45
+ )
46
+ }
47
+ );
48
+ })
49
+ )
50
+ }
51
+ );
52
+ }
53
+ /**
54
+ * vue-table
55
+ *
56
+ * Copyright (c) TanStack
57
+ *
58
+ * This source code is licensed under the MIT license found in the
59
+ * LICENSE.md file in the root directory of this source tree.
60
+ *
61
+ * @license MIT
62
+ */
63
+ const I = F({
64
+ props: ["render", "props"],
65
+ setup: (o) => () => typeof o.render == "function" || typeof o.render == "object" ? i(o.render, o.props) : o.render
66
+ }), j = { class: "flex gap-4 w-full" }, A = { class: "flex-1" }, T = { class: "flex flex-col" }, q = { key: 0 }, G = { key: 0 }, Q = /* @__PURE__ */ F({
67
+ __name: "TableActionableRow",
68
+ props: {
69
+ row: {},
70
+ onRowClick: {},
71
+ actionColumnId: { default: "action" }
72
+ },
73
+ setup(o) {
74
+ const a = o, t = B(
75
+ () => a.row.getVisibleCells().reduce(
76
+ (e, r) => (e[r.column.id] = r, e),
77
+ {}
78
+ )
79
+ );
80
+ return (e, r) => (u(), V(z(e.onRowClick ? p(h).FmListItem : "div"), {
81
+ class: D([
82
+ "w-full border-b border-fm-color-neutral-gray-100",
83
+ {
84
+ "bg-fm-color-neutral-gray-100": e.row.getIsSelected(),
85
+ "cursor-pointer": typeof e.onRowClick == "function"
86
+ }
87
+ ]),
88
+ onClick: r[0] || (r[0] = (s) => {
89
+ var n;
90
+ return (n = e.onRowClick) == null ? void 0 : n.call(e, e.row.original);
91
+ })
92
+ }, {
93
+ default: M(() => {
94
+ var s, n, f, d, C;
95
+ return [
96
+ c("div", j, [
97
+ c("div", A, [
98
+ N(e.$slots, "default", P(_(t.value)), () => [
99
+ c("div", T, [
100
+ (u(!0), m(w, null, E(a.row.getVisibleCells(), (l) => {
101
+ var g, v, k;
102
+ return u(), m(w, {
103
+ key: l.id
104
+ }, [
105
+ l.column.id !== e.actionColumnId ? (u(), m("div", q, [
106
+ b(p(I), {
107
+ render: (v = (g = l.column) == null ? void 0 : g.columnDef) == null ? void 0 : v.cell,
108
+ props: (k = l.getContext) == null ? void 0 : k.call(l)
109
+ }, null, 8, ["render", "props"])
110
+ ])) : y("", !0)
111
+ ], 64);
112
+ }), 128))
113
+ ])
114
+ ])
115
+ ]),
116
+ t.value[e.actionColumnId ?? ""] ? (u(), m("div", G, [
117
+ c("div", null, [
118
+ b(p(I), {
119
+ render: (f = (n = (s = t.value[e.actionColumnId ?? ""]) == null ? void 0 : s.column) == null ? void 0 : n.columnDef) == null ? void 0 : f.cell,
120
+ props: (C = (d = t.value[e.actionColumnId ?? ""]) == null ? void 0 : d.getContext) == null ? void 0 : C.call(d)
121
+ }, null, 8, ["render", "props"])
122
+ ])
123
+ ])) : y("", !0)
124
+ ])
125
+ ];
126
+ }),
127
+ _: 3
128
+ }, 8, ["class"]));
129
+ }
130
+ });
131
+ export {
132
+ I as F,
133
+ Q as _,
134
+ O as c
135
+ };
@@ -1,9 +1,9 @@
1
- import { b as le, f as ae, P as Z, e as xe, g as De } from "./purchase-order-transaction-type-Bqgv0C3j.js";
1
+ import { b as le, f as ae, P as Z, e as xe, g as De } from "./purchase-order-transaction-type-Dp0wsGal.js";
2
2
  import { computed as re, h as be, defineComponent as Se, ref as ee, resolveComponent as K, openBlock as d, createBlock as P, unref as s, isRef as Ce, withCtx as te, createElementVNode as e, createVNode as I, createElementBlock as b, Fragment as X, toDisplayString as l, normalizeClass as se, createCommentVNode as p, renderList as oe } from "vue";
3
- import { c as ge } from "./layout-_0NgbWBI.js";
3
+ import { c as ge } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-DlNJ6kRg.js";
4
4
  import { D as y, R as f } from "./row-action.enum-PMKMRrZR.js";
5
- import { B as Re, l as ie, a as ce, a6 as ue, ah as g, c as Ae, j as Ee, ae as q, H as Pe, G as Te, E as Ne, b as Fe, w as je } from "./app-WeYjbGNJ.js";
6
- import { F as Ie } from "./decimal-CEAZoBNh.js";
5
+ import { B as Re, l as ie, a as ce, a6 as ue, ah as g, c as Ae, j as Ee, ae as q, H as Pe, G as Te, E as Ne, b as Fe, w as je } from "./app-SBnQEeEV.js";
6
+ import { F as Ie } from "./decimal-BlEB2PrM.js";
7
7
  import { components as _e, useDialog as Ue, useSnackbar as Me, useProxiedModel as $e } from "@feedmepos/ui-library";
8
8
  import { useI18n as Oe } from "@feedmepos/mf-common";
9
9
  import { E as Ke } from "./empty-placeholder-wf6-BWE8.js";
@@ -1,13 +1,13 @@
1
1
  import { reactive as Ee, onMounted as Le, computed as P, h as E, getCurrentInstance as Oe, watch as $e, defineComponent as se, openBlock as I, createElementBlock as A, Fragment as ve, renderList as Pe, createElementVNode as d, toDisplayString as D, unref as e, resolveComponent as T, createVNode as k, withCtx as V, createCommentVNode as z, ref as L, createBlock as j, normalizeClass as Te, normalizeStyle as Ze, isRef as ie } from "vue";
2
2
  import { useBreakpoints as Ke, components as re, FmButtonVariant as Qe, useSnackbar as Ae, useDialog as Ge, useProxiedModel as Je } from "@feedmepos/ui-library";
3
3
  import { F as fe } from "./row-action.enum-PMKMRrZR.js";
4
- import { P as $, e as qe, d as Xe } from "./purchase-order-transaction-type-Bqgv0C3j.js";
5
- import { a as W, t as et, a8 as Fe, D as tt, b as Ne, R as Be, a2 as st, a3 as ot, r as nt, a4 as Ue, G as He, l as at, A as ke, M as lt, a9 as ze, c as rt, aa as it, O as De, P as je, ab as ut, j as Ve, ac as dt, u as Re, ad as ct, ae as pt, af as mt, E as ft, ag as yt, y as vt } from "./app-WeYjbGNJ.js";
6
- import { _ as We, u as bt } from "./PremiumBadge.vue_vue_type_script_setup_true_lang-BArCNkOA.js";
4
+ import { P as $, e as qe, d as Xe } from "./purchase-order-transaction-type-Dp0wsGal.js";
5
+ import { a as W, t as et, a8 as Fe, D as tt, b as Ne, R as Be, a2 as st, a3 as ot, r as nt, a4 as Ue, G as He, l as at, A as ke, M as lt, a9 as ze, c as rt, aa as it, O as De, P as je, ab as ut, j as Ve, ac as dt, u as Re, ad as ct, ae as pt, af as mt, E as ft, ag as yt, y as vt } from "./app-SBnQEeEV.js";
6
+ import { _ as We, u as bt } from "./PremiumBadge.vue_vue_type_script_setup_true_lang-DsOGlAb7.js";
7
7
  import { useI18n as de } from "@feedmepos/mf-common";
8
8
  import "vue-router";
9
- import { u as he } from "./supplier-BDTpTxbK.js";
10
- import { F as ue, _ as gt } from "./layout-_0NgbWBI.js";
9
+ import { u as he } from "./supplier-I_rYvljH.js";
10
+ import { F as ue, _ as gt } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-DlNJ6kRg.js";
11
11
  import { _ as _t } from "./PreviewBadge.vue_vue_type_script_setup_true_lang-CRZiQHjx.js";
12
12
  function te(s, m, r, n) {
13
13
  var u, c, C;