@feedmepos/mf-inventory-portal 0.0.25-dev.7 → 0.0.25-dev.9

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 (86) hide show
  1. package/dist/{App-qJehfAde.js → App-9zSE_swt.js} +35 -34
  2. package/dist/{ApprovalView-BuqKIEPL.js → ApprovalView-C2tg-wsm.js} +18 -18
  3. package/dist/{BindingsDialog-BrF-YAJ2.js → BindingsDialog-eGbOIQkw.js} +6 -6
  4. package/dist/{BindingsPicker-DK41dcoG.js → BindingsPicker-CVXrd29s.js} +3 -3
  5. package/dist/{BindingsTable-DxlRhKzN.js → BindingsTable-CCsQEFnu.js} +6 -6
  6. package/dist/{ClosingDraftView-CpGQMN37.js → ClosingDraftView-BI8b3CJ9.js} +47 -47
  7. package/dist/ClosingTemplateView-miJnC-ML.js +1859 -0
  8. package/dist/FmCustomAttribute.vue_vue_type_script_setup_true_lang-D-IWRjRD.js +34 -0
  9. package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-C9un0wCK.js +211 -0
  10. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-3LU_3Y8h.js → FmUnitInput.vue_vue_type_script_setup_true_lang-BRSABJnM.js} +52 -52
  11. package/dist/IngredientBindedItem.vue_vue_type_script_setup_true_lang-DeRvrF7O.js +51 -0
  12. package/dist/{IngredientGroupView-Bjv9Kih7.js → IngredientGroupView-ZWCOAljO.js} +1 -1
  13. package/dist/{IngredientsView-ChJbe-U_.js → IngredientsView-5-pSX6y_.js} +394 -382
  14. package/dist/{IntegrationView-Cmh47qP7.js → IntegrationView-DO3Ambro.js} +660 -623
  15. package/dist/{InventoryBindingForm-GmcCTBqN.js → InventoryBindingForm-BjtFP29c.js} +1 -1
  16. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-CQrjMOFh.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-CFMZ4VsK.js} +55 -55
  17. package/dist/{InventoryBindingSummary-w1pFGR3C.js → InventoryBindingSummary-C6DkVX-B.js} +1 -1
  18. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-Cxr2xhRR.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-nb1t6u2V.js} +1 -1
  19. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-CzxVUAC8.js → PremiumBadge.vue_vue_type_script_setup_true_lang-BcMAXo4F.js} +15 -15
  20. package/dist/{PublishView-pWAEdGLi.js → PublishView-DOMQdIJ7.js} +7 -7
  21. package/dist/{PurchaseOrderPrintPreview-CZczBXL2.js → PurchaseOrderPrintPreview-_MCAsdw9.js} +1 -1
  22. package/dist/{ReceiveRequestView-tWyQCrIN.js → ReceiveRequestView-902hWGtz.js} +56 -55
  23. package/dist/{RecipeView-Dy1BBW3o.js → RecipeView-dmmjklwh.js} +32 -31
  24. package/dist/{index-cY9fiIBU.js → StockView-C4lEYLXU.js} +3577 -1764
  25. package/dist/{SupplierView-BUs8xZPq.js → SupplierView-CO5460uC.js} +12 -11
  26. package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-BA0HIuSW.js → TransferDetails.vue_vue_type_script_setup_true_lang-D6sZDCEY.js} +195 -194
  27. package/dist/TransferTemplateView-C9UwNTnY.js +1371 -0
  28. package/dist/{UnitView-GBK0ovxt.js → UnitView-DbYzxCXF.js} +14 -14
  29. package/dist/{WarehouseView-CXoj99HO.js → WarehouseView-BII4SEVC.js} +332 -314
  30. package/dist/api/inventory.d.ts +7 -6
  31. package/dist/{app-Du-JrqLm.js → app-IM1yJnE8.js} +15144 -15889
  32. package/dist/app.js +1 -1
  33. package/dist/components/FmAutocompleteTextField.vue.d.ts +31 -0
  34. package/dist/components/FmCustomAttribute.vue.d.ts +3 -8
  35. package/dist/components/FmLockableField.vue.d.ts +3 -0
  36. package/dist/components/FmMultiselectDialog.vue.d.ts +9 -1
  37. package/dist/components/FmMultiselectDialogProps.d.ts +2 -0
  38. package/dist/components/inventory-binding/InventoryBinding.vue.d.ts +1 -1
  39. package/dist/components/shell/inventory/binding-ui.vue.d.ts +1 -1
  40. package/dist/{decimal-BXePRNLM.js → decimal-DQUpCN-B.js} +1 -1
  41. package/dist/feature-DMBVVBsQ.js +1005 -0
  42. package/dist/{format-unit-display-BdC0fMRb.js → format-unit-display-COuIZISg.js} +242 -238
  43. package/dist/helper/fuzzy.d.ts +10 -0
  44. package/dist/index-CIrsMt6f.js +35546 -0
  45. package/dist/{stock-CE5Qq59r.js → stock-BJUTiXXk.js} +3 -3
  46. package/dist/stores/inventory.d.ts +8 -8
  47. package/dist/stores/location.d.ts +9 -0
  48. package/dist/stores/warehouse.d.ts +1 -0
  49. package/dist/style.css +1 -1
  50. package/dist/{supplier-Cy-jlD0j.js → supplier-CM-qQVyI.js} +1 -1
  51. package/dist/tsconfig.app.tsbuildinfo +1 -1
  52. package/dist/use-ingredient-select-dialog-Cn79xFNg.js +51 -0
  53. package/dist/{use-inventory-binding-dialog-nHDQBRL3.js → use-inventory-binding-dialog-zwOG19YV.js} +1 -1
  54. package/dist/views/adjustment-template/wastage-template/actions.d.ts +24 -0
  55. package/dist/views/adjustment-template/wastage-template/table.d.ts +24 -0
  56. package/dist/views/closing-draft/components/closing-draft-dialog/ClosingDraftDialog.vue.d.ts +8 -4
  57. package/dist/views/closing-draft/composables/use-closing-draft-table.d.ts +48 -24
  58. package/dist/views/closing-template/components/closing-template-form/composables/use-closing-template-items.d.ts +1 -1
  59. package/dist/views/closing-template/composables/use-closing-template-actions.d.ts +36 -12
  60. package/dist/views/closing-template/composables/use-closing-template-table.d.ts +36 -12
  61. package/dist/views/dev/components/AutocompleteTextField.vue.d.ts +2 -0
  62. package/dist/views/ingredient-group/composables/use-ingredient-group-table.d.ts +3 -3
  63. package/dist/views/ingredients/components/ingredient-form/IngredientForm.vue.d.ts +2 -2
  64. package/dist/views/ingredients/composables/use-ingredient-select-dialog.d.ts +16 -0
  65. package/dist/views/ingredients/composables/use-ingredient-table.d.ts +1 -1
  66. package/dist/views/receive-request/components/transfer-form/TransferForm.vue.d.ts +25 -17
  67. package/dist/views/receive-request/components/transfer-form/components/ForecastStock.vue.d.ts +2 -2
  68. package/dist/views/receive-request/components/transfer-form/composables/use-transfer-items.d.ts +1 -1
  69. package/dist/views/receive-request/composables/use-receive-request-form.d.ts +36 -24
  70. package/dist/views/receive-request/composables/use-receive-request-table.d.ts +36 -24
  71. package/dist/views/stock/components/dialog/AdjustedItemForm.vue.d.ts +2 -2
  72. package/dist/views/transfer-template/components/transfer-template-form/composables/use-template-enabled-locations-2.d.ts +8 -0
  73. package/dist/views/transfer-template/components/transfer-template-form/composables/use-template-enabled-locations.d.ts +1 -0
  74. package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-template-items.d.ts +1 -1
  75. package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +36 -12
  76. package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +36 -12
  77. package/dist/views/warehouse/components/WarehouseForm.vue.d.ts +2 -0
  78. package/dist/{vue-i18n-DIA7c33f.js → vue-i18n-CzPFJ9JY.js} +2 -2
  79. package/package.json +2 -2
  80. package/dist/ClosingTemplateView-4l891KsC.js +0 -1819
  81. package/dist/FmCustomAttribute.vue_vue_type_script_setup_true_lang-CyHyOhG6.js +0 -142
  82. package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DRqpc9k0.js +0 -286
  83. package/dist/StockView-B0c0FiPr.js +0 -1817
  84. package/dist/TransferTemplateView-MSbvSo96.js +0 -1286
  85. package/dist/components/FmCustomAttribute2.vue.d.ts +0 -18
  86. package/dist/index-irnhqIWw.js +0 -29202
@@ -1,7 +1,8 @@
1
1
  import { ref as x, onUnmounted as F, defineComponent as h, watch as P, onMounted as U, computed as g, resolveComponent as b, openBlock as S, createElementBlock as I, unref as v, createVNode as _, createElementVNode as p, toDisplayString as w, createBlock as G, createCommentVNode as M } from "vue";
2
- import { u as k, a as D, b as H, R as e, c as B, g as s, d as W } from "./app-Du-JrqLm.js";
3
- import { useCoreStore as A, useI18n as O } from "@feedmepos/mf-common";
2
+ import { u as k, a as D, b as H, R as e, g as s, c as W } from "./app-IM1yJnE8.js";
3
+ import { useCoreStore as A, useI18n as B } from "@feedmepos/mf-common";
4
4
  import { useRouter as C, useRoute as K } from "vue-router";
5
+ import { u as O } from "./feature-DMBVVBsQ.js";
5
6
  import { u as $ } from "./useTabStorage-BkIVScW_.js";
6
7
  import { u as Q } from "./googlemap-Dm8ERVai.js";
7
8
  import "./array-hChJVZLE.js";
@@ -40,19 +41,19 @@ const q = {
40
41
  }, X = { class: "flex flex-col gap-12 items-center text-center px-24 max-w-[1000px]" }, Y = { class: "fm-typo-en-title-lg-600" }, Z = { class: "text-fm-color-typo-secondary fm-typo-en-body-md-400" }, ee = { class: "flex gap-16" }, te = { href: "https://feedme.ai/product/inventory/features?tab=plans_%26_prices" }, oe = { href: "https://feedme.ai/form" }, ne = /* @__PURE__ */ h({
41
42
  __name: "InventoryView",
42
43
  setup(l) {
43
- const n = k(), i = D(), u = H(), r = A(), c = C(), o = z(), R = B(), { t: d } = O();
44
+ const n = k(), i = D(), u = H(), a = A(), c = C(), o = z(), R = O(), { t: d } = B();
44
45
  P(
45
- [() => r.sessionUser.value, () => r.currentBusiness.value],
46
- ([t, a]) => {
47
- f(t, a);
46
+ [() => a.sessionUser.value, () => a.currentBusiness.value],
47
+ ([t, r]) => {
48
+ f(t, r);
48
49
  }
49
50
  ), U(async () => {
50
- await R.init(), await r.readBusinesses();
51
- const t = r.sessionUser.value, a = r.currentBusiness.value;
52
- f(t, a);
51
+ await R.init(), await a.readBusinesses();
52
+ const t = a.sessionUser.value, r = a.currentBusiness.value;
53
+ f(t, r);
53
54
  });
54
- function f(t, a) {
55
- !t || !a || T();
55
+ function f(t, r) {
56
+ !t || !r || T();
56
57
  }
57
58
  async function T() {
58
59
  return await n.init(), await u.readSetting().catch((t) => {
@@ -60,7 +61,7 @@ const q = {
60
61
  }), await i.init();
61
62
  }
62
63
  const y = g(() => c.currentRoute.value.name === e.TRANSFER_TEMPLATE ? R.enablePoTemplate : !0);
63
- return (t, a) => {
64
+ return (t, r) => {
64
65
  const m = b("FmSpacer"), N = b("FmCircularProgress"), L = b("FmButton"), V = b("RouterView");
65
66
  return S(), I("div", null, [
66
67
  v(o).isLoading ? (S(), I("div", q, [
@@ -68,9 +69,9 @@ const q = {
68
69
  p("div", null, [
69
70
  _(N, { size: "xl" })
70
71
  ]),
71
- a[0] || (a[0] = p("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary pl-8" }, "Loading page...", -1)),
72
+ r[0] || (r[0] = p("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary pl-8" }, "Loading page...", -1)),
72
73
  _(m)
73
- ])) : y.value ? v(r).sessionUser.value ? (S(), G(V, { key: 2 })) : M("", !0) : (S(), I("div", J, [
74
+ ])) : y.value ? v(a).sessionUser.value ? (S(), G(V, { key: 2 })) : M("", !0) : (S(), I("div", J, [
74
75
  p("div", X, [
75
76
  p("div", Y, w(v(d)("inventory.common.proPlan.title")), 1),
76
77
  p("div", Z, w(v(d)("inventory.common.proPlan.subtitle")), 1)
@@ -93,15 +94,15 @@ const q = {
93
94
  ]);
94
95
  };
95
96
  }
96
- }), ae = { class: "h-full flex flex-col overflow-auto py-16" }, re = /* @__PURE__ */ h({
97
+ }), re = { class: "h-full flex flex-col overflow-auto py-16" }, ae = /* @__PURE__ */ h({
97
98
  __name: "NavigationTab",
98
99
  setup(l) {
99
- const n = K(), i = C(), u = A(), r = B(), c = $(), { t: o } = O();
100
- P([() => u.currentBusiness.value, () => n.name], ([t, a]) => {
101
- (t == null ? void 0 : t.menuVersion) === "v3" && (a === e.INGREDIENTS || a === e.RECIPE || a === e.UNIT) && i.push({ name: e.STOCK });
100
+ const n = K(), i = C(), u = A(), a = O(), c = $(), { t: o } = B();
101
+ P([() => u.currentBusiness.value, () => n.name], ([t, r]) => {
102
+ (t == null ? void 0 : t.menuVersion) === "v3" && (r === e.INGREDIENTS || r === e.RECIPE || r === e.UNIT) && i.push({ name: e.STOCK });
102
103
  });
103
104
  const R = g(() => {
104
- var a;
105
+ var r;
105
106
  const t = [
106
107
  {
107
108
  label: s(e.STOCK, o),
@@ -111,7 +112,7 @@ const q = {
111
112
  label: "Stock balance",
112
113
  value: e.STOCK
113
114
  },
114
- ...r.enableWastageTemplate ? [
115
+ ...a.enableWastageTemplate ? [
115
116
  {
116
117
  label: s(e.WASTAGE_TEMPLATE, o),
117
118
  value: e.WASTAGE_TEMPLATE
@@ -119,7 +120,7 @@ const q = {
119
120
  ] : []
120
121
  ]
121
122
  },
122
- ...r.enableClosingTemplate ? [
123
+ ...a.enableClosingTemplate ? [
123
124
  {
124
125
  label: "Closing",
125
126
  children: [
@@ -139,7 +140,7 @@ const q = {
139
140
  // icon: 'grocery',
140
141
  value: e.INGREDIENTS
141
142
  },
142
- ...r.enableIngredientGroup ? [
143
+ ...a.enableIngredientGroup ? [
143
144
  {
144
145
  label: s(e.INGREDIENT_GROUP, o),
145
146
  // icon: 'grocery',
@@ -168,7 +169,7 @@ const q = {
168
169
  label: s(e.APPROVAL, o),
169
170
  value: e.APPROVAL
170
171
  },
171
- ...r.enablePoTemplate ? [
172
+ ...a.enablePoTemplate ? [
172
173
  {
173
174
  label: s(e.TRANSFER_TEMPLATE, o),
174
175
  value: e.TRANSFER_TEMPLATE
@@ -196,7 +197,7 @@ const q = {
196
197
  value: e.INTEGRATION
197
198
  }
198
199
  ];
199
- return ((a = u.currentBusiness.value) == null ? void 0 : a.menuVersion) === "v3" ? t.filter(
200
+ return ((r = u.currentBusiness.value) == null ? void 0 : r.menuVersion) === "v3" ? t.filter(
200
201
  (m) => m.value !== e.INGREDIENTS && m.value !== e.RECIPE && m.value !== e.UNIT
201
202
  ) : t;
202
203
  }), d = g({
@@ -224,12 +225,12 @@ const q = {
224
225
  T.value = !1, setTimeout(() => {
225
226
  y.value = !c.getItem(f.value);
226
227
  }, 2e3);
227
- }), (t, a) => {
228
+ }), (t, r) => {
228
229
  const m = b("FmCollapsibleTabs");
229
- return S(), I("div", ae, [
230
+ return S(), I("div", re, [
230
231
  _(m, {
231
232
  modelValue: d.value,
232
- "onUpdate:modelValue": a[0] || (a[0] = (N) => d.value = N),
233
+ "onUpdate:modelValue": r[0] || (r[0] = (N) => d.value = N),
233
234
  items: R.value
234
235
  }, null, 8, ["modelValue", "items"])
235
236
  ]);
@@ -238,14 +239,14 @@ const q = {
238
239
  });
239
240
  typeof Promise.withResolvers > "u" && (Promise.withResolvers = () => {
240
241
  let l, n;
241
- return { promise: new Promise((u, r) => {
242
- l = u, n = r;
242
+ return { promise: new Promise((u, a) => {
243
+ l = u, n = a;
243
244
  }), resolve: l, reject: n };
244
245
  });
245
246
  typeof Promise.prototype.delayed > "u" && (Promise.prototype.delayed = async function(l) {
246
247
  return await new Promise((n) => setTimeout(n, l)), Promise.resolve(this);
247
248
  });
248
- const de = /* @__PURE__ */ h({
249
+ const fe = /* @__PURE__ */ h({
249
250
  __name: "App",
250
251
  setup(l) {
251
252
  const n = A(), i = Q(), u = W();
@@ -254,13 +255,13 @@ const de = /* @__PURE__ */ h({
254
255
  n.setEmbedded(!0);
255
256
  return;
256
257
  }
257
- n.registerSidebarComponent(re), i.initGoogleMap(u.appApi.googleMap).catch(() => {
258
+ n.registerSidebarComponent(ae), i.initGoogleMap(u.appApi.googleMap).catch(() => {
258
259
  console.error("Google map cannot be loaded");
259
260
  });
260
261
  }), P([() => n.currentCountry.value], () => {
261
- r();
262
+ a();
262
263
  });
263
- async function r() {
264
+ async function a() {
264
265
  var c;
265
266
  try {
266
267
  await n.readBusinesses(), n.currentBusiness.value = (c = n.businesses.value) == null ? void 0 : c.find((o) => o);
@@ -272,5 +273,5 @@ const de = /* @__PURE__ */ h({
272
273
  }
273
274
  });
274
275
  export {
275
- de as default
276
+ fe as default
276
277
  };
@@ -1,8 +1,8 @@
1
- import { defineComponent as ae, ref as g, watch as oe, computed as b, resolveComponent as re, openBlock as x, createBlock as J, unref as e, withCtx as y, createElementVNode as s, normalizeClass as ne, createVNode as n, normalizeStyle as se, toDisplayString as le, createElementBlock as ce, createCommentVNode as ie, Teleport as ue, mergeProps as pe } from "vue";
2
- import { u as me, av as v, aF as de, a8 as K, z as fe, _ as ve, B as _e, E as he, G as _ } from "./app-Du-JrqLm.js";
3
- import { a as De, b as ge, _ as be } from "./TransferDetails.vue_vue_type_script_setup_true_lang-BA0HIuSW.js";
4
- import { useBreakpoints as xe } from "@feedmepos/ui-library";
5
- import { useI18n as ye } from "@feedmepos/mf-common";
1
+ import { defineComponent as ae, ref as g, watch as oe, computed as b, resolveComponent as re, openBlock as y, createBlock as G, unref as e, withCtx as x, createElementVNode as s, normalizeClass as ne, createVNode as n, normalizeStyle as se, toDisplayString as le, createElementBlock as ce, createCommentVNode as ie, Teleport as ue, mergeProps as pe } from "vue";
2
+ import { u as me, az as v, aK as de, ab as J, y as fe, _ as ve, z as _e, B as he, E as _ } from "./app-IM1yJnE8.js";
3
+ import { a as De, b as ge, _ as be } from "./TransferDetails.vue_vue_type_script_setup_true_lang-D6sZDCEY.js";
4
+ import { useBreakpoints as ye } from "@feedmepos/ui-library";
5
+ import { useI18n as xe } from "@feedmepos/mf-common";
6
6
  const we = { class: "flex flex-col py-8" }, Re = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ke = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary line-clamp-1" }, Oe = { class: "fm-typo-en-body-md-400 text-fm-color-typo-primary line-clamp-1" }, Se = {
7
7
  key: 0,
8
8
  class: "fm-typo-en-body-md-400 text-fm-color-typo-primary line-clamp-1"
@@ -19,8 +19,8 @@ const we = { class: "flex flex-col py-8" }, Re = { class: "fm-typo-en-body-md-40
19
19
  name: "",
20
20
  ...de()
21
21
  }), a = g({
22
- startDate: K(w.value.start ?? /* @__PURE__ */ new Date()),
23
- endDate: K(w.value.end ?? /* @__PURE__ */ new Date())
22
+ startDate: J(w.value.start ?? /* @__PURE__ */ new Date()),
23
+ endDate: J(w.value.end ?? /* @__PURE__ */ new Date())
24
24
  });
25
25
  oe([() => a.value.startDate], () => {
26
26
  if (!a.value.startDate)
@@ -35,7 +35,7 @@ const we = { class: "flex flex-col py-8" }, Re = { class: "fm-typo-en-body-md-40
35
35
  return;
36
36
  }
37
37
  });
38
- const h = g(""), { breakpoints: R } = xe(), D = b(() => R.value.xs || R.value.sm), X = b(() => D.value ? 10 : 20), Z = fe(), { t: k } = ye(), B = b(() => [
38
+ const h = g(""), { breakpoints: R } = ye(), D = b(() => R.value.xs || R.value.sm), X = b(() => D.value ? 10 : 20), Z = fe(), { t: k } = xe(), B = b(() => [
39
39
  {
40
40
  label: k("common.refresh"),
41
41
  value: "refresh"
@@ -49,12 +49,12 @@ const we = { class: "flex flex-col py-8" }, Re = { class: "fm-typo-en-body-md-40
49
49
  }
50
50
  return (c, l) => {
51
51
  const ee = re("FmTable");
52
- return x(), J(ve, {
52
+ return y(), G(ve, {
53
53
  title: e(k)("inventory.transfer.approval.title"),
54
54
  actions: B.value,
55
55
  "onClick:action": I
56
56
  }, {
57
- default: y(() => [
57
+ default: x(() => [
58
58
  s("div", {
59
59
  class: ne([
60
60
  "flex flex-col gap-8 max-h-full",
@@ -79,13 +79,13 @@ const we = { class: "flex flex-col py-8" }, Re = { class: "fm-typo-en-body-md-40
79
79
  onRowClick: l[1] || (l[1] = (r) => e(o).promptShowTransferDetails(r.original.purchaseOrder, r.original)),
80
80
  "page-size": X.value
81
81
  }, {
82
- "list-row": y((r) => [
82
+ "list-row": x((r) => [
83
83
  n(he, {
84
84
  row: r,
85
85
  onRowClick: (t) => e(o).promptShowTransferDetails(t.purchaseOrder, t)
86
86
  }, {
87
- default: y((t) => {
88
- var O, S, T, i, C, z, F, M, u, $, V, p, Y, m, q, E, L, N, P, d, j, A, H, G, f, U;
87
+ default: x((t) => {
88
+ var O, S, T, i, C, z, M, $, u, F, V, p, Y, m, q, E, L, N, P, d, j, A, H, K, f, U;
89
89
  return [
90
90
  s("div", we, [
91
91
  s("div", Re, [
@@ -96,12 +96,12 @@ const we = { class: "flex flex-col py-8" }, Re = { class: "fm-typo-en-body-md-40
96
96
  ]),
97
97
  s("div", ke, [
98
98
  n(e(_), {
99
- render: (M = (F = (z = t.to_name) == null ? void 0 : z.column) == null ? void 0 : F.columnDef) == null ? void 0 : M.cell,
100
- props: ($ = (u = t.to_name) == null ? void 0 : u.getContext) == null ? void 0 : $.call(u)
99
+ render: ($ = (M = (z = t.to_name) == null ? void 0 : z.column) == null ? void 0 : M.columnDef) == null ? void 0 : $.cell,
100
+ props: (F = (u = t.to_name) == null ? void 0 : u.getContext) == null ? void 0 : F.call(u)
101
101
  }, null, 8, ["render", "props"])
102
102
  ]),
103
103
  s("div", Oe, le((q = (m = (Y = (p = (V = r.original.purchaseOrder) == null ? void 0 : V.items) == null ? void 0 : p.map) == null ? void 0 : Y.call(p, (te) => `${te.name}`)) == null ? void 0 : m.join) == null ? void 0 : q.call(m, ", ")), 1),
104
- (E = r.original.purchaseOrder) != null && E.ref ? (x(), ce("div", Se, [
104
+ (E = r.original.purchaseOrder) != null && E.ref ? (y(), ce("div", Se, [
105
105
  n(e(_), {
106
106
  render: (P = (N = (L = t.purchaseOrder_ref) == null ? void 0 : L.column) == null ? void 0 : N.columnDef) == null ? void 0 : P.cell,
107
107
  props: (j = (d = t.purchaseOrder_ref) == null ? void 0 : d.getContext) == null ? void 0 : j.call(d)
@@ -109,7 +109,7 @@ const we = { class: "flex flex-col py-8" }, Re = { class: "fm-typo-en-body-md-40
109
109
  ])) : ie("", !0),
110
110
  s("div", Te, [
111
111
  n(e(_), {
112
- render: (G = (H = (A = t.purchaseOrder_status) == null ? void 0 : A.column) == null ? void 0 : H.columnDef) == null ? void 0 : G.cell,
112
+ render: (K = (H = (A = t.purchaseOrder_status) == null ? void 0 : A.column) == null ? void 0 : H.columnDef) == null ? void 0 : K.cell,
113
113
  props: (U = (f = t.purchaseOrder_status) == null ? void 0 : f.getContext) == null ? void 0 : U.call(f)
114
114
  }, null, 8, ["render", "props"])
115
115
  ])
@@ -122,7 +122,7 @@ const we = { class: "flex flex-col py-8" }, Re = { class: "fm-typo-en-body-md-40
122
122
  _: 1
123
123
  }, 8, ["style", "column-defs", "row-data", "search-value", "loading", "page-size"])
124
124
  ], 2),
125
- (x(), J(ue, { to: "body" }, [
125
+ (y(), G(ue, { to: "body" }, [
126
126
  n(be, pe(e(o).transferDetailsProps.value, {
127
127
  onSubmitted: e(o).fetchData
128
128
  }), null, 16, ["onSubmitted"])
@@ -1,6 +1,6 @@
1
- import { defineComponent as C, ref as o, onMounted as M, onUnmounted as F, watch as x, resolveComponent as l, openBlock as i, createElementBlock as c, createBlock as I, withCtx as R, createVNode as a, createCommentVNode as z, createElementVNode as L } from "vue";
2
- import { _ as P } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-CQrjMOFh.js";
3
- import { a as V, aL as S } from "./app-Du-JrqLm.js";
1
+ import { defineComponent as C, ref as o, onMounted as M, onUnmounted as F, watch as x, resolveComponent as l, openBlock as i, createElementBlock as c, createBlock as I, withCtx as R, createVNode as a, createCommentVNode as z, createElementVNode as P } from "vue";
2
+ import { _ as V } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-CFMZ4VsK.js";
3
+ import { a as L, aQ as S } from "./app-IM1yJnE8.js";
4
4
  const U = {
5
5
  key: 0,
6
6
  class: "flex justify-end gap-8 items-center"
@@ -10,7 +10,7 @@ const U = {
10
10
  }, D = /* @__PURE__ */ C({
11
11
  __name: "BindingsDialog",
12
12
  setup(N) {
13
- const p = V(), d = o(!0), s = o(new Array()), u = o(), t = S(y);
13
+ const p = L(), d = o(!0), s = o(new Array()), u = o(), t = S(y);
14
14
  async function y() {
15
15
  await p.readInventory(), u.value = t.onMessage("props:inventory-bindings", (e) => {
16
16
  d.value = !1, s.value = e;
@@ -55,7 +55,7 @@ const U = {
55
55
  }, [
56
56
  d.value ? (i(), c("div", E, [
57
57
  a(h, { size: "md" }),
58
- n[2] || (n[2] = L("div", null, "Loading bindings dialog...", -1))
58
+ n[2] || (n[2] = P("div", null, "Loading bindings dialog...", -1))
59
59
  ])) : (i(), I(B, {
60
60
  key: 0,
61
61
  onValidationSuccess: n[1] || (n[1] = () => r.value ? void 0 : b()),
@@ -64,7 +64,7 @@ const U = {
64
64
  class: "flex flex-col gap-16"
65
65
  }, {
66
66
  default: R(() => [
67
- a(P, {
67
+ a(V, {
68
68
  "model-value": s.value,
69
69
  "onUpdate:modelValue": n[0] || (n[0] = (w) => s.value = w),
70
70
  "iframe-mode": "",
@@ -1,12 +1,12 @@
1
1
  import { defineComponent as S, computed as r, ref as l, onMounted as U, onUnmounted as V, resolveComponent as E, openBlock as p, createElementBlock as f, createVNode as u, createElementVNode as k } from "vue";
2
- import { a as M, aL as x, J as z } from "./app-Du-JrqLm.js";
2
+ import { a as M, aQ as x, H as z } from "./app-IM1yJnE8.js";
3
3
  const F = {
4
4
  key: 0,
5
5
  class: "flex flex-col gap-16"
6
6
  }, K = { class: "flex justify-end gap-8 items-center" }, w = {
7
7
  key: 1,
8
8
  class: "p-24 flex items-center justify-center gap-16"
9
- }, N = /* @__PURE__ */ S({
9
+ }, H = /* @__PURE__ */ S({
10
10
  __name: "BindingsPicker",
11
11
  setup(L) {
12
12
  const d = M(), C = r(() => d.recipes), I = r(() => d.skus), g = l(!0), i = l(new Array()), a = l("RECIPE"), c = r(() => a.value === "SKU" ? I.value.map((s) => ({
@@ -119,5 +119,5 @@ const F = {
119
119
  }
120
120
  });
121
121
  export {
122
- N as default
122
+ H as default
123
123
  };
@@ -1,6 +1,6 @@
1
- import { defineComponent as _, ref as c, provide as C, computed as f, resolveComponent as b, openBlock as p, createBlock as h, h as z, onMounted as B, onUnmounted as I, createElementBlock as y, createVNode as N, createElementVNode as L } from "vue";
2
- import { F as v, a as x, aL as E } from "./app-Du-JrqLm.js";
3
- import { components as F } from "@feedmepos/ui-library";
1
+ import { defineComponent as _, ref as c, provide as C, computed as f, resolveComponent as b, openBlock as p, createBlock as h, h as z, onMounted as B, onUnmounted as I, createElementBlock as y, createVNode as N, createElementVNode as x } from "vue";
2
+ import { F as v, a as E, aQ as F } from "./app-IM1yJnE8.js";
3
+ import { components as L } from "@feedmepos/ui-library";
4
4
  import "@feedmepos/mf-common";
5
5
  const P = /* @__PURE__ */ _({
6
6
  __name: "binding-ui",
@@ -64,7 +64,7 @@ const P = /* @__PURE__ */ _({
64
64
  size: 24,
65
65
  cell(i) {
66
66
  const e = a.value.find((n) => n.key === i.row.original.key);
67
- return z(F.FmButton, {
67
+ return z(L.FmButton, {
68
68
  icon: "edit",
69
69
  bgColor: "white",
70
70
  textColor: "neutral-grey-400",
@@ -93,7 +93,7 @@ const P = /* @__PURE__ */ _({
93
93
  }, D = /* @__PURE__ */ _({
94
94
  __name: "BindingsTable",
95
95
  setup(k) {
96
- const d = x(), u = c(!0), o = c(new Array()), m = f(() => d.recipes), a = f(() => d.skus), g = c(""), i = E(n), e = c();
96
+ const d = E(), u = c(!0), o = c(new Array()), m = f(() => d.recipes), a = f(() => d.skus), g = c(""), i = F(n), e = c();
97
97
  async function n() {
98
98
  await d.readInventory(), e.value = i.onMessage(
99
99
  "props:grouped-bindings",
@@ -126,7 +126,7 @@ const P = /* @__PURE__ */ _({
126
126
  }, [
127
127
  u.value ? (p(), y("div", R, [
128
128
  N(w, { size: "md" }),
129
- r[0] || (r[0] = L("div", null, "Loading bindings table...", -1))
129
+ r[0] || (r[0] = x("div", null, "Loading bindings table...", -1))
130
130
  ])) : (p(), h(P, {
131
131
  key: 0,
132
132
  items: o.value,