@feedmepos/mf-inventory-portal 1.0.15-dev.2 → 1.0.15-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 (57) hide show
  1. package/dist/{App-CgxrN-aD.js → App-C2-uZBjX.js} +2 -2
  2. package/dist/ApprovalView-BYSG24mC.js +213 -0
  3. package/dist/{BindingsDialog-B_ZMDl-b.js → BindingsDialog-BVgAl7QB.js} +2 -2
  4. package/dist/{BindingsPicker-B84BG8zT.js → BindingsPicker-CTqO6MTh.js} +1 -1
  5. package/dist/{BindingsTable-DrvoykYc.js → BindingsTable-DAkGh7yD.js} +1 -1
  6. package/dist/{ClosingDraftView-Ds9sI2Eg.js → ClosingDraftView-CJe3za1B.js} +41 -41
  7. package/dist/{ClosingTemplateView-BhZ1OXkD.js → ClosingTemplateView-CzuyG1NM.js} +2 -2
  8. package/dist/{DeliveryOrderPrintPreview-Yuxf-jCh.js → DeliveryOrderPrintPreview-DC-S5Jkp.js} +1 -1
  9. package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-D6ktiUO5.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BIR8hIIx.js} +43 -43
  10. package/dist/{FmMultiselectDialog-4lVsA2Rn.js → FmMultiselectDialog-CyhyAmUf.js} +1 -1
  11. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-XmTRSHn_.js → FmUnitInput.vue_vue_type_script_setup_true_lang-DbASoXHB.js} +57 -57
  12. package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-B3PvtR0j.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-BNcVcxkw.js} +1 -1
  13. package/dist/IngredientGroupView-CoVSqi7W.js +977 -0
  14. package/dist/IngredientsView-auG4thna.js +1778 -0
  15. package/dist/{IntegrationView-BnrCkjWt.js → IntegrationView-BCGzax4k.js} +5 -5
  16. package/dist/{InventoryBindingForm-uyHh2TI_.js → InventoryBindingForm-BlpwH-je.js} +1 -1
  17. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-CECDj9Pw.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-DJxy3D57.js} +46 -46
  18. package/dist/{InventoryBindingSummary-DyHCqgIe.js → InventoryBindingSummary-B1dzBf4n.js} +1 -1
  19. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-Dx2lMf6h.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BqxFQWOu.js} +1 -1
  20. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-BCX3vlmU.js → PremiumBadge.vue_vue_type_script_setup_true_lang-COUgrdWW.js} +15 -15
  21. package/dist/{PublishView-BVGyY6nn.js → PublishView-DRiyZ8D8.js} +13 -13
  22. package/dist/{PurchaseOrderPrintPreview-pbYIFiOG.js → PurchaseOrderPrintPreview-DQjCaQ1U.js} +4 -4
  23. package/dist/ReceiveRequestView-B88Nfuck.js +2576 -0
  24. package/dist/{RecipeView-DcgoCf4g.js → RecipeView-B-PR_bJO.js} +4 -4
  25. package/dist/{StockView-zO2uL662.js → StockView-DWZ9OiPc.js} +108 -108
  26. package/dist/{SupplierView-I5bqiX_2.js → SupplierView-BXLJkj_P.js} +37 -37
  27. package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-GMAU4wTt.js +2090 -0
  28. package/dist/{TransferTemplateView-BDOt17yc.js → TransferTemplateView-BU4CJAi6.js} +149 -149
  29. package/dist/{UnitView-BVY5S6-3.js → UnitView-6Z2MUNL0.js} +32 -32
  30. package/dist/{WarehouseView-m6MKrtYq.js → WarehouseView-TVrrr6uJ.js} +26 -26
  31. package/dist/api/inventory.d.ts +12 -0
  32. package/dist/{app-DtICLubM.js → app-BFIrvTDw.js} +33844 -25682
  33. package/dist/app.d.ts +1 -0
  34. package/dist/app.js +5 -5
  35. package/dist/components/FmInventoryTableToolbar.vue.d.ts +36 -0
  36. package/dist/{decimal-C1dAcCf3.js → decimal-wpLnNWZL.js} +1 -1
  37. package/dist/{feature-Y7qzvbl4.js → feature-BvpauT6E.js} +79 -79
  38. package/dist/{format-unit-display-CPqfS4vp.js → format-unit-display-BbK1Rcd3.js} +48 -48
  39. package/dist/helper/rules.d.ts +1 -1
  40. package/dist/{index-DIEdSG3y.js → index-C2nfh-Rm.js} +1 -1
  41. package/dist/{index-0qsqwB0T.js → index-DI7DUbNm.js} +4 -4
  42. package/dist/{stock-CowNp_xM.js → stock-DkHVa1PB.js} +1 -1
  43. package/dist/stores/inventory.d.ts +16 -0
  44. package/dist/{supplier-JVTTlQNL.js → supplier-BiJ-_4RN.js} +2 -2
  45. package/dist/tsconfig.app.tsbuildinfo +1 -1
  46. package/dist/{use-ingredient-select-dialog-Df59lld2.js → use-ingredient-select-dialog-Bkt9TvKm.js} +5 -5
  47. package/dist/{use-inventory-binding-dialog-Bxxb93Kz.js → use-inventory-binding-dialog-ClzflO2S.js} +1 -1
  48. package/dist/views/ingredient-group/components/ingredient-group-rule-field/IngredientGroupRuleField.vue.d.ts +4 -0
  49. package/dist/views/ingredient-group/composables/use-ingredient-group-rule-item.d.ts +5 -0
  50. package/dist/views/ingredient-group/composables/use-ingredient-group-table.d.ts +12 -0
  51. package/dist/{vue-i18n-DJOdRwc3.js → vue-i18n-Bvbu7J8Z.js} +153 -153
  52. package/package.json +4 -4
  53. package/dist/ApprovalView-DNGhkVc9.js +0 -147
  54. package/dist/IngredientGroupView-usK9stxT.js +0 -8779
  55. package/dist/IngredientsView-DPx8Z2zo.js +0 -1749
  56. package/dist/ReceiveRequestView-DZAgH2_u.js +0 -2516
  57. package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-NyQg_yR9.js +0 -2020
@@ -1,14 +1,14 @@
1
1
  import { defineComponent as Q, mergeModels as Bd, computed as I, useModel as Gd, resolveComponent as T, openBlock as S, createElementBlock as F, createElementVNode as g, createVNode as N, withCtx as k, toDisplayString as w, unref as u, Fragment as q, renderList as ee, ref as D, createBlock as j, createCommentVNode as K, isRef as Je, normalizeClass as J, createTextVNode as Hd, watch as Id, createSlots as jd, normalizeStyle as Kd, Teleport as Wd } from "vue";
2
- import { u as re } from "./supplier-JVTTlQNL.js";
3
- import { b as Ie, f as Xd, D as Qe, h as ie, e as _e, a as Fd, n as ed, o as dd, j as Yd, X as Zd, v as Od, u as pe, l as G, d as V, q as wd, r as zd, s as Ad, w as qd, x as Jd, y as Qd, z as et, _ as dt, B as tt, C as rt, E as le } from "./app-DtICLubM.js";
4
- import { useI18n as Y, useCoreStore as Fe } from "@feedmepos/mf-common";
2
+ import { u as re } from "./supplier-BiJ-_4RN.js";
3
+ import { b as Ie, f as Yd, D as Qe, h as ie, e as _e, a as Fd, n as ed, o as dd, j as Xd, a0 as Zd, v as Od, u as pe, l as G, d as V, q as wd, r as zd, s as Ad, w as qd, x as Jd, y as Qd, z as et, _ as dt, B as tt, C as rt, E as le } from "./app-BFIrvTDw.js";
4
+ import { useI18n as X, useCoreStore as Fe } from "@feedmepos/mf-common";
5
5
  import { useDialog as Oe, useSnackbar as me, useProxiedModel as td, useDialogChild as nt, useBreakpoints as ot } from "@feedmepos/ui-library";
6
6
  import { _ as at } from "./PreviewBadge.vue_vue_type_script_setup_true_lang-CRZiQHjx.js";
7
- import { _ as $t } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-XmTRSHn_.js";
8
- import { u as Td } from "./feature-Y7qzvbl4.js";
7
+ import { _ as $t } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-DbASoXHB.js";
8
+ import { u as Td } from "./feature-BvpauT6E.js";
9
9
  import { defineStore as it } from "pinia";
10
10
  function lt(e, d) {
11
- const { t } = Y(), r = Ie();
11
+ const { t } = X(), r = Ie();
12
12
  function n(a, i) {
13
13
  if (a === ie.Edit) {
14
14
  e(_e(i));
@@ -55,7 +55,7 @@ function lt(e, d) {
55
55
  id: "action",
56
56
  header: "",
57
57
  cell(a) {
58
- return Xd(
58
+ return Yd(
59
59
  [Qe[ie.Edit], Qe[ie.Delete]],
60
60
  (i) => {
61
61
  n(i, a.row.original);
@@ -80,7 +80,7 @@ const st = { class: "flex flex-col gap-12" }, ut = { class: "flex flex-col" }, c
80
80
  }),
81
81
  emits: ["update:modelValue"],
82
82
  setup(e) {
83
- const d = Fe(), t = Fd(), r = I(() => t.skus), n = Oe(), { t: o } = Y(), a = Gd(e, "modelValue");
83
+ const d = Fe(), t = Fd(), r = I(() => t.skus), n = Oe(), { t: o } = X(), a = Gd(e, "modelValue");
84
84
  function i() {
85
85
  var _;
86
86
  const f = t.skus.map((b) => ({
@@ -90,7 +90,7 @@ const st = { class: "flex flex-col gap-12" }, ut = { class: "flex flex-col" }, c
90
90
  })), h = ((_ = a.value) == null ? void 0 : _.map((b) => b.skuId)) ?? [], m = I(
91
91
  () => {
92
92
  var b;
93
- return ((b = Yd(d.currentCountry.value)) == null ? void 0 : b.currency) ?? "MYR";
93
+ return ((b = Xd(d.currentCountry.value)) == null ? void 0 : b.currency) ?? "MYR";
94
94
  }
95
95
  );
96
96
  n.open({
@@ -244,7 +244,7 @@ const st = { class: "flex flex-col gap-12" }, ut = { class: "flex flex-col" }, c
244
244
  },
245
245
  emits: ["update:modelValue", "validation-success"],
246
246
  setup(e, { expose: d, emit: t }) {
247
- const r = e, n = t, o = Td(), a = Fd(), i = I(() => Od(a.skus, "_id")), { t: l } = Y(), c = pe(), p = I(() => c.businessLevel), y = I({
247
+ const r = e, n = t, o = Td(), a = Fd(), i = I(() => Od(a.skus, "_id")), { t: l } = X(), c = pe(), p = I(() => c.businessLevel), y = I({
248
248
  get() {
249
249
  var s;
250
250
  return ((s = r.modelValue) == null ? void 0 : s.name) ?? "";
@@ -503,7 +503,7 @@ const st = { class: "flex flex-col gap-12" }, ut = { class: "flex flex-col" }, c
503
503
  },
504
504
  emits: ["update:show", "submitted"],
505
505
  setup(e, { expose: d, emit: t }) {
506
- const r = Ie(), n = e, o = t, a = D(!1), i = me(), { t: l } = Y(), c = re(), p = I(() => {
506
+ const r = Ie(), n = e, o = t, a = D(!1), i = me(), { t: l } = X(), c = re(), p = I(() => {
507
507
  switch (n.mode) {
508
508
  case V.READ:
509
509
  return "";
@@ -702,7 +702,7 @@ function Rd(e) {
702
702
  function Ce(e) {
703
703
  var d = typeof Map == "function" ? /* @__PURE__ */ new Map() : void 0;
704
704
  return Ce = function(r) {
705
- if (r === null || !Xt(r)) return r;
705
+ if (r === null || !Yt(r)) return r;
706
706
  if (typeof r != "function")
707
707
  throw new TypeError("Super expression must either be null or a function");
708
708
  if (typeof d < "u") {
@@ -733,7 +733,7 @@ function Md() {
733
733
  return !1;
734
734
  }
735
735
  }
736
- function Xt(e) {
736
+ function Yt(e) {
737
737
  return Function.toString.call(e).indexOf("[native code]") !== -1;
738
738
  }
739
739
  function de(e, d) {
@@ -754,7 +754,7 @@ var H = /* @__PURE__ */ function(e) {
754
754
  return Ht(this, t), n = d.call(this, r), Object.setPrototypeOf(Rd(n), t.prototype), n.name = n.constructor.name, n;
755
755
  }
756
756
  return Gt(t);
757
- }(/* @__PURE__ */ Ce(Error)), we = 2, Yt = 17, Zt = 3, U = "0-90-9٠-٩۰-۹", zt = "-‐-―−ー-", qt = "//", Jt = "..", Qt = "  ­​⁠ ", e0 = "()()[]\\[\\]", d0 = "~⁓∼~", ce = "".concat(zt).concat(qt).concat(Jt).concat(Qt).concat(e0).concat(d0), Ae = "++";
757
+ }(/* @__PURE__ */ Ce(Error)), we = 2, Xt = 17, Zt = 3, U = "0-90-9٠-٩۰-۹", zt = "-‐-―−ー-", qt = "//", Jt = "..", Qt = "  ­​⁠ ", e0 = "()()[]\\[\\]", d0 = "~⁓∼~", ce = "".concat(zt).concat(qt).concat(Jt).concat(Qt).concat(e0).concat(d0), Ae = "++";
758
758
  function rd(e, d) {
759
759
  e = e.split("-"), d = d.split("-");
760
760
  for (var t = e[0].split("."), r = d[0].split("."), n = 0; n < 3; n++) {
@@ -1647,17 +1647,17 @@ function yd(e) {
1647
1647
  for (var d = 1; d < arguments.length; d++) {
1648
1648
  var t = arguments[d] != null ? arguments[d] : {};
1649
1649
  d % 2 ? md(Object(t), !0).forEach(function(r) {
1650
- X0(e, r, t[r]);
1650
+ Y0(e, r, t[r]);
1651
1651
  }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : md(Object(t)).forEach(function(r) {
1652
1652
  Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
1653
1653
  });
1654
1654
  }
1655
1655
  return e;
1656
1656
  }
1657
- function X0(e, d, t) {
1657
+ function Y0(e, d, t) {
1658
1658
  return d in e ? Object.defineProperty(e, d, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[d] = t, e;
1659
1659
  }
1660
- function Y0(e, d) {
1660
+ function X0(e, d) {
1661
1661
  if (!(e instanceof d))
1662
1662
  throw new TypeError("Cannot call a class as a function");
1663
1663
  }
@@ -1672,7 +1672,7 @@ function z0(e, d, t) {
1672
1672
  }
1673
1673
  var q0 = /* @__PURE__ */ function() {
1674
1674
  function e(d, t, r) {
1675
- if (Y0(this, e), !d)
1675
+ if (X0(this, e), !d)
1676
1676
  throw new TypeError("`country` or `countryCallingCode` not passed");
1677
1677
  if (!t)
1678
1678
  throw new TypeError("`nationalNumber` not passed");
@@ -2004,7 +2004,7 @@ function E1(e, d, t) {
2004
2004
  throw new H("TOO_SHORT");
2005
2005
  return {};
2006
2006
  }
2007
- if (c.length > Yt) {
2007
+ if (c.length > Xt) {
2008
2008
  if (d.v2)
2009
2009
  throw new H("TOO_LONG");
2010
2010
  return {};
@@ -2350,7 +2350,7 @@ function W1() {
2350
2350
  }
2351
2351
  ];
2352
2352
  }
2353
- function X1() {
2353
+ function Y1() {
2354
2354
  const e = pe(), d = re(), r = (e.businessLevel ? d.businessSuppliers : d.locationSuppliers).map(K1), o = Fe().currentBusiness.value, a = Ud(), i = [
2355
2355
  ["Business name:", o == null ? void 0 : o.name],
2356
2356
  ["Business ID:", o == null ? void 0 : o._id],
@@ -2361,7 +2361,7 @@ function X1() {
2361
2361
  ], l = a.map((y) => `system:${y.id}`), c = wd(i, l), p = `${o == null ? void 0 : o.name} suppliers (${zd(/* @__PURE__ */ new Date())}).xlsx`;
2362
2362
  return Ad(c, p), p;
2363
2363
  }
2364
- function Y1() {
2364
+ function X1() {
2365
2365
  const d = Fe().currentBusiness.value, t = Ud(), r = [
2366
2366
  ["Business name:", d == null ? void 0 : d.name],
2367
2367
  ["Business ID:", d == null ? void 0 : d._id],
@@ -2501,7 +2501,7 @@ const q1 = { class: "flex items-center gap-12 pl-8" }, J1 = { class: "flex flex-
2501
2501
  errors: {}
2502
2502
  },
2503
2503
  setup(e) {
2504
- const { t: d } = Y();
2504
+ const { t: d } = X();
2505
2505
  return (t, r) => {
2506
2506
  const n = T("FmIcon"), o = T("FmTooltip");
2507
2507
  return S(), F("div", q1, [
@@ -2566,7 +2566,7 @@ const q1 = { class: "flex items-center gap-12 pl-8" }, J1 = { class: "flex flex-
2566
2566
  () => !!a.value.length || i.value.some((h) => h.errors.length) || l.value.some((h) => h.errors.length)
2567
2567
  ), p = I(
2568
2568
  () => !!i.value.length || !!l.value.length
2569
- ), { t: y } = Y();
2569
+ ), { t: y } = X();
2570
2570
  async function f(h) {
2571
2571
  a.value = [], i.value = [], l.value = [];
2572
2572
  try {
@@ -2714,7 +2714,7 @@ const q1 = { class: "flex items-center gap-12 pl-8" }, J1 = { class: "flex flex-
2714
2714
  };
2715
2715
  }
2716
2716
  }), pr = it("supplierActions", function() {
2717
- const e = re(), d = Oe(), { t } = Y(), r = me();
2717
+ const e = re(), d = Oe(), { t } = X(), r = me();
2718
2718
  function n() {
2719
2719
  d.open({
2720
2720
  title: t("inventory.supplier.import.title"),
@@ -2759,10 +2759,10 @@ const q1 = { class: "flex items-center gap-12 pl-8" }, J1 = { class: "flex flex-
2759
2759
  return;
2760
2760
  }
2761
2761
  d.close(), a(i);
2762
- }).onTertiary(Y1);
2762
+ }).onTertiary(X1);
2763
2763
  }
2764
2764
  function o() {
2765
- const i = X1();
2765
+ const i = Y1();
2766
2766
  r.open({
2767
2767
  title: t("inventory.supplier.export.success"),
2768
2768
  message: t("inventory.supplier.export.filename", [i]),
@@ -2810,7 +2810,7 @@ const q1 = { class: "flex items-center gap-12 pl-8" }, J1 = { class: "flex flex-
2810
2810
  }, br = "You are managing business-level supplier list. These suppliers will be made visible to all locations.", Or = /* @__PURE__ */ Q({
2811
2811
  __name: "SupplierView",
2812
2812
  setup(e) {
2813
- const { importSuppliers: d, exportSuppliers: t } = pr(), r = re(), n = pe(), o = Td(), a = Ie(), i = D(!1), l = Oe(), c = me(), { t: p } = Y();
2813
+ const { importSuppliers: d, exportSuppliers: t } = pr(), r = re(), n = pe(), o = Td(), a = Ie(), i = D(!1), l = Oe(), c = me(), { t: p } = X();
2814
2814
  n.watchLocation(f);
2815
2815
  const y = I(() => n.businessLevel);
2816
2816
  Id(y, f);
@@ -2961,32 +2961,32 @@ const q1 = { class: "flex items-center gap-12 pl-8" }, J1 = { class: "flex flex-
2961
2961
  row: C,
2962
2962
  onRowClick: b
2963
2963
  }, {
2964
- default: k((X) => {
2965
- var Le, De, ke, ne, Ve, Ue, Be, Ge, oe, He, je, Ke, We, ae, Xe, Ye, Ze, ze, $e, qe;
2964
+ default: k((Y) => {
2965
+ var Le, De, ke, ne, Ve, Ue, Be, Ge, oe, He, je, Ke, We, ae, Ye, Xe, Ze, ze, $e, qe;
2966
2966
  return [
2967
2967
  g("div", mr, [
2968
2968
  g("div", yr, [
2969
2969
  N(u(le), {
2970
- render: (ke = (De = (Le = X.name) == null ? void 0 : Le.column) == null ? void 0 : De.columnDef) == null ? void 0 : ke.cell,
2971
- props: (Ve = (ne = X.name) == null ? void 0 : ne.getContext) == null ? void 0 : Ve.call(ne)
2970
+ render: (ke = (De = (Le = Y.name) == null ? void 0 : Le.column) == null ? void 0 : De.columnDef) == null ? void 0 : ke.cell,
2971
+ props: (Ve = (ne = Y.name) == null ? void 0 : ne.getContext) == null ? void 0 : Ve.call(ne)
2972
2972
  }, null, 8, ["render", "props"])
2973
2973
  ]),
2974
2974
  g("div", vr, [
2975
2975
  N(u(le), {
2976
- render: (Ge = (Be = (Ue = X.contactName) == null ? void 0 : Ue.column) == null ? void 0 : Be.columnDef) == null ? void 0 : Ge.cell,
2977
- props: (He = (oe = X.contactName) == null ? void 0 : oe.getContext) == null ? void 0 : He.call(oe)
2976
+ render: (Ge = (Be = (Ue = Y.contactName) == null ? void 0 : Ue.column) == null ? void 0 : Be.columnDef) == null ? void 0 : Ge.cell,
2977
+ props: (He = (oe = Y.contactName) == null ? void 0 : oe.getContext) == null ? void 0 : He.call(oe)
2978
2978
  }, null, 8, ["render", "props"])
2979
2979
  ]),
2980
2980
  g("div", gr, [
2981
2981
  N(u(le), {
2982
- render: (We = (Ke = (je = X.phoneNumber) == null ? void 0 : je.column) == null ? void 0 : Ke.columnDef) == null ? void 0 : We.cell,
2983
- props: (Xe = (ae = X.phoneNumber) == null ? void 0 : ae.getContext) == null ? void 0 : Xe.call(ae)
2982
+ render: (We = (Ke = (je = Y.phoneNumber) == null ? void 0 : je.column) == null ? void 0 : Ke.columnDef) == null ? void 0 : We.cell,
2983
+ props: (Ye = (ae = Y.phoneNumber) == null ? void 0 : ae.getContext) == null ? void 0 : Ye.call(ae)
2984
2984
  }, null, 8, ["render", "props"])
2985
2985
  ]),
2986
2986
  C.original.email ? (S(), F("div", hr, [
2987
2987
  N(u(le), {
2988
- render: (ze = (Ze = (Ye = X.email) == null ? void 0 : Ye.column) == null ? void 0 : Ze.columnDef) == null ? void 0 : ze.cell,
2989
- props: (qe = ($e = X.email) == null ? void 0 : $e.getContext) == null ? void 0 : qe.call($e)
2988
+ render: (ze = (Ze = (Xe = Y.email) == null ? void 0 : Xe.column) == null ? void 0 : Ze.columnDef) == null ? void 0 : ze.cell,
2989
+ props: (qe = ($e = Y.email) == null ? void 0 : $e.getContext) == null ? void 0 : qe.call($e)
2990
2990
  }, null, 8, ["render", "props"])
2991
2991
  ])) : K("", !0)
2992
2992
  ])