@feedmepos/mf-inventory-portal 0.0.25-dev.5 → 0.0.25-dev.50

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 (117) hide show
  1. package/dist/{App-Kq8apMtA.js → App-B7fIlPKw.js} +29 -28
  2. package/dist/ApprovalView-Dp20w8em.js +143 -0
  3. package/dist/{BindingsDialog-DOXckftj.js → BindingsDialog-BIHCuoDe.js} +6 -6
  4. package/dist/{BindingsPicker-Cm5vh_SU.js → BindingsPicker-DoM1Dh1y.js} +8 -8
  5. package/dist/{BindingsTable-CqIY16hU.js → BindingsTable-ChJYIxrf.js} +6 -6
  6. package/dist/ClosingDraftView-L4EHR0Sb.js +1348 -0
  7. package/dist/ClosingTemplateView-CFVINyCr.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-Dn-DgO81.js +211 -0
  10. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-0Kw57u62.js → FmUnitInput.vue_vue_type_script_setup_true_lang-CdWkJ2U-.js} +52 -52
  11. package/dist/IngredientBindedItem.vue_vue_type_script_setup_true_lang-BN2ec0EU.js +51 -0
  12. package/dist/{IngredientGroupView-CLmsjrp8.js → IngredientGroupView-Vz6XV_-q.js} +14 -14
  13. package/dist/{IngredientsView-T5S1322D.js → IngredientsView-D1lmg_97.js} +577 -551
  14. package/dist/{IntegrationView-DLLrgrr9.js → IntegrationView-CfDmLYwt.js} +661 -690
  15. package/dist/{InventoryBindingForm-BCPZcNwR.js → InventoryBindingForm-C68ZfWme.js} +1 -1
  16. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-DY96hhyi.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-Bd13FqsE.js} +96 -96
  17. package/dist/{InventoryBindingSummary-CpCsz_Xc.js → InventoryBindingSummary-DT9cg2b4.js} +1 -1
  18. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CP5yNARW.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BfhvXVHK.js} +1 -1
  19. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-Cow0sp-k.js → PremiumBadge.vue_vue_type_script_setup_true_lang-Dvj1F-DM.js} +15 -15
  20. package/dist/PublishView-DMzULnCX.js +222 -0
  21. package/dist/{PurchaseOrderPrintPreview-DQ8GaxvA.js → PurchaseOrderPrintPreview-D6wcth8H.js} +1 -1
  22. package/dist/ReceiveRequestView-DsX41zj-.js +2579 -0
  23. package/dist/{RecipeView-CROffYxl.js → RecipeView-DlKk9-tm.js} +47 -46
  24. package/dist/{index-B2ISFLHY.js → StockView-CNmvVK0V.js} +3616 -1783
  25. package/dist/{SupplierView-DUFTtK7r.js → SupplierView-BcoOgM67.js} +446 -457
  26. package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-CDDvq_mI.js +1605 -0
  27. package/dist/TransferTemplateView-BI96LQfP.js +1526 -0
  28. package/dist/{UnitView-B4jcaZF4.js → UnitView-BF2eBWtF.js} +14 -14
  29. package/dist/{WarehouseView-BmZtdMZU.js → WarehouseView-joOR4EsJ.js} +332 -314
  30. package/dist/api/closing-draft.d.ts +1 -0
  31. package/dist/api/inventory.d.ts +9 -6
  32. package/dist/api/netsuite.d.ts +22 -5
  33. package/dist/api/purchase-order.d.ts +7 -1
  34. package/dist/api/stock.d.ts +1 -0
  35. package/dist/app-DavuMSpS.js +88117 -0
  36. package/dist/app.js +1 -1
  37. package/dist/components/FmAutocompleteTextField.vue.d.ts +31 -0
  38. package/dist/components/FmCustomAttribute.vue.d.ts +3 -8
  39. package/dist/components/FmLockableField.vue.d.ts +3 -0
  40. package/dist/components/FmMultiselectDialog.d.ts +23 -0
  41. package/dist/components/FmMultiselectDialog.vue.d.ts +9 -1
  42. package/dist/components/FmMultiselectDialogProps.d.ts +2 -0
  43. package/dist/components/inventory-binding/InventoryBinding.vue.d.ts +1 -1
  44. package/dist/components/shell/inventory/binding-ui.vue.d.ts +1 -1
  45. package/dist/{decimal-T4Ng3pLP.js → decimal-C_LJTg2_.js} +1 -1
  46. package/dist/feature-D3M-bziy.js +1015 -0
  47. package/dist/{format-unit-display-D6tf1DHa.js → format-unit-display-BebmN2s-.js} +335 -328
  48. package/dist/helper/country.d.ts +1 -0
  49. package/dist/helper/fuzzy.d.ts +10 -0
  50. package/dist/index-BDEeA1dY.js +12197 -0
  51. package/dist/index-DzshvJTA.js +77 -0
  52. package/dist/{stock-CmZXXh6b.js → stock-CHVVTrSI.js} +29 -25
  53. package/dist/stores/feature.d.ts +7 -5
  54. package/dist/stores/helper/generate-backend-urls.d.ts +0 -1
  55. package/dist/stores/integration/index.d.ts +1 -0
  56. package/dist/stores/integration/netsuite.d.ts +22 -5
  57. package/dist/stores/inventory.d.ts +141 -8
  58. package/dist/stores/location.d.ts +9 -0
  59. package/dist/stores/stock.d.ts +5 -0
  60. package/dist/stores/warehouse.d.ts +5 -7
  61. package/dist/style.css +1 -1
  62. package/dist/{supplier-BVsAD8Ou.js → supplier-Ddl4sUpm.js} +1 -1
  63. package/dist/tsconfig.app.tsbuildinfo +1 -1
  64. package/dist/use-ingredient-select-dialog-Z6bbIKfM.js +51 -0
  65. package/dist/{use-inventory-binding-dialog-CqrrqmB7.js → use-inventory-binding-dialog-Dj45RBWc.js} +1 -1
  66. package/dist/views/adjustment-template/wastage-template/actions.d.ts +24 -0
  67. package/dist/views/adjustment-template/wastage-template/table.d.ts +24 -0
  68. package/dist/views/closing-draft/components/closing-draft-dialog/ClosingDraftDialog.vue.d.ts +8 -4
  69. package/dist/views/closing-draft/composables/use-closing-draft-actions.d.ts +4 -1
  70. package/dist/views/closing-draft/composables/use-closing-draft-table.d.ts +48 -24
  71. package/dist/views/closing-draft/helpers/export-draft.helper.d.ts +1 -1
  72. package/dist/views/closing-template/components/closing-template-form/composables/use-closing-template-items.d.ts +1 -1
  73. package/dist/views/closing-template/composables/use-closing-template-actions.d.ts +36 -12
  74. package/dist/views/closing-template/composables/use-closing-template-table.d.ts +36 -12
  75. package/dist/views/dev/components/AutocompleteTextField.vue.d.ts +2 -0
  76. package/dist/views/ingredient-group/composables/use-ingredient-group-table.d.ts +3 -3
  77. package/dist/views/ingredients/components/ingredient-form/IngredientForm.vue.d.ts +2 -2
  78. package/dist/views/ingredients/composables/use-ingredient-select-dialog.d.ts +16 -0
  79. package/dist/views/ingredients/composables/use-ingredient-table.d.ts +1 -1
  80. package/dist/views/receive-request/components/netsuite/NetSuiteProps.d.ts +2 -0
  81. package/dist/views/receive-request/components/transfer-details/TransferDetailsProps.d.ts +4 -1
  82. package/dist/views/receive-request/components/transfer-form/TransferForm.vue.d.ts +427 -31
  83. package/dist/views/receive-request/components/transfer-form/components/ForecastStock.vue.d.ts +8 -4
  84. package/dist/views/receive-request/components/transfer-form/components/TransferItemTable.vue.d.ts +382 -2
  85. package/dist/views/receive-request/components/transfer-form/composables/use-transfer-items.d.ts +7 -4
  86. package/dist/views/receive-request/composables/use-process-purchase-order.d.ts +18 -0
  87. package/dist/views/receive-request/composables/use-receive-request-form.d.ts +867 -68
  88. package/dist/views/receive-request/composables/use-receive-request-table.d.ts +678 -70
  89. package/dist/views/receive-request/import/XilnexImportDialog.vue.d.ts +22 -0
  90. package/dist/views/receive-request/import/XilnexImportForm.vue.d.ts +17 -0
  91. package/dist/views/receive-request/import/XilnexResult.vue.d.ts +17 -0
  92. package/dist/views/receive-request/import/export.d.ts +12 -0
  93. package/dist/views/receive-request/import/props.d.ts +7 -0
  94. package/dist/views/stock/components/dialog/AdjustedItemForm.vue.d.ts +4 -2
  95. package/dist/views/transfer-template/components/transfer-template-form/components/TransferTemplateItemTable.vue.d.ts +220 -0
  96. package/dist/views/transfer-template/components/transfer-template-form/composables/use-template-enabled-locations-2.d.ts +8 -0
  97. package/dist/views/transfer-template/components/transfer-template-form/composables/use-template-enabled-locations.d.ts +1 -0
  98. package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-template-items.d.ts +10 -5
  99. package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +72 -24
  100. package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +72 -24
  101. package/dist/views/transfer-template/composables/useTransferTemplateHelper.d.ts +305 -0
  102. package/dist/views/warehouse/components/WarehouseForm.vue.d.ts +10 -14
  103. package/dist/{vue-i18n-Mb3AM8uP.js → vue-i18n-Cak3W4nS.js} +331 -331
  104. package/package.json +4 -4
  105. package/dist/ApprovalView-DXlXet32.js +0 -138
  106. package/dist/ClosingDraftView-CABY9YVF.js +0 -1225
  107. package/dist/ClosingTemplateView-Bsd6W6id.js +0 -1819
  108. package/dist/FmCustomAttribute.vue_vue_type_script_setup_true_lang-d-Qy7I_I.js +0 -142
  109. package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CXjO-PL0.js +0 -286
  110. package/dist/PublishView-BQ9pqu-S.js +0 -192
  111. package/dist/ReceiveRequestView-Cj1g6ZzI.js +0 -1876
  112. package/dist/StockView-D_XXAmSl.js +0 -1817
  113. package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-BLADqDM9.js +0 -1327
  114. package/dist/TransferTemplateView-Dy2nZRCc.js +0 -1284
  115. package/dist/app-DcBKHZIR.js +0 -85643
  116. package/dist/components/FmCustomAttribute2.vue.d.ts +0 -18
  117. package/dist/index-Cxi2NbBg.js +0 -29202
@@ -1,7 +1,8 @@
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-DcBKHZIR.js";
3
- import { useCoreStore as A, useI18n as O } from "@feedmepos/mf-common";
4
- import { useRouter as C, useRoute as K } from "vue-router";
1
+ import { ref as U, onUnmounted as F, defineComponent as h, watch as P, onMounted as x, 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 B, createCommentVNode as M } from "vue";
2
+ import { u as k, a as D, b as H, R as e, g as s, c as W } from "./app-DavuMSpS.js";
3
+ import { useCoreStore as A, useI18n as G } from "@feedmepos/mf-common";
4
+ import { useRouter as L, useRoute as K } from "vue-router";
5
+ import { u as O } from "./feature-D3M-bziy.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";
@@ -11,9 +12,9 @@ function j() {
11
12
  isLoading: !1
12
13
  };
13
14
  }
14
- const E = x(j());
15
+ const E = U(j());
15
16
  function z() {
16
- const l = C();
17
+ const l = L();
17
18
  if (!E.value.loadingHookInstalled) {
18
19
  E.value.loadingHookInstalled = !0;
19
20
  const n = l.beforeEach(() => {
@@ -40,13 +41,13 @@ 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(), r = A(), m = L(), o = z(), R = O(), { t: d } = G();
44
45
  P(
45
46
  [() => r.sessionUser.value, () => r.currentBusiness.value],
46
47
  ([t, a]) => {
47
48
  f(t, a);
48
49
  }
49
- ), U(async () => {
50
+ ), x(async () => {
50
51
  await R.init(), await r.readBusinesses();
51
52
  const t = r.sessionUser.value, a = r.currentBusiness.value;
52
53
  f(t, a);
@@ -59,31 +60,31 @@ const q = {
59
60
  console.error("error on reading netsuite store", t);
60
61
  }), await i.init();
61
62
  }
62
- const y = g(() => c.currentRoute.value.name === e.TRANSFER_TEMPLATE ? R.enablePoTemplate : !0);
63
+ const y = g(() => m.currentRoute.value.name === e.TRANSFER_TEMPLATE ? R.enablePoTemplate : !0);
63
64
  return (t, a) => {
64
- const m = b("FmSpacer"), N = b("FmCircularProgress"), L = b("FmButton"), V = b("RouterView");
65
+ const c = b("FmSpacer"), N = b("FmCircularProgress"), C = b("FmButton"), V = b("RouterView");
65
66
  return S(), I("div", null, [
66
67
  v(o).isLoading ? (S(), I("div", q, [
67
- _(m),
68
+ _(c),
68
69
  p("div", null, [
69
70
  _(N, { size: "xl" })
70
71
  ]),
71
72
  a[0] || (a[0] = p("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary pl-8" }, "Loading page...", -1)),
72
- _(m)
73
- ])) : y.value ? v(r).sessionUser.value ? (S(), G(V, { key: 2 })) : M("", !0) : (S(), I("div", J, [
73
+ _(c)
74
+ ])) : y.value ? v(r).sessionUser.value ? (S(), B(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)
77
78
  ]),
78
79
  p("div", ee, [
79
80
  p("a", te, [
80
- _(L, {
81
+ _(C, {
81
82
  label: v(d)("inventory.common.proPlan.comparePlans"),
82
83
  variant: "secondary"
83
84
  }, null, 8, ["label"])
84
85
  ]),
85
86
  p("a", oe, [
86
- _(L, {
87
+ _(C, {
87
88
  label: v(d)("inventory.common.proPlan.callUs"),
88
89
  "prepend-icon": "call"
89
90
  }, null, 8, ["label"])
@@ -96,7 +97,7 @@ const q = {
96
97
  }), ae = { class: "h-full flex flex-col overflow-auto py-16" }, re = /* @__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
+ const n = K(), i = L(), u = A(), r = O(), m = $(), { t: o } = G();
100
101
  P([() => u.currentBusiness.value, () => n.name], ([t, a]) => {
101
102
  (t == null ? void 0 : t.menuVersion) === "v3" && (a === e.INGREDIENTS || a === e.RECIPE || a === e.UNIT) && i.push({ name: e.STOCK });
102
103
  });
@@ -197,7 +198,7 @@ const q = {
197
198
  }
198
199
  ];
199
200
  return ((a = u.currentBusiness.value) == null ? void 0 : a.menuVersion) === "v3" ? t.filter(
200
- (m) => m.value !== e.INGREDIENTS && m.value !== e.RECIPE && m.value !== e.UNIT
201
+ (c) => c.value !== e.INGREDIENTS && c.value !== e.RECIPE && c.value !== e.UNIT && c.value !== e.PUBLISH
201
202
  ) : t;
202
203
  }), d = g({
203
204
  get() {
@@ -212,22 +213,22 @@ const q = {
212
213
  var t;
213
214
  return `NavigationTab.${(t = u.currentBusiness.value) == null ? void 0 : t._id}`;
214
215
  }
215
- ), T = x(!1), y = g({
216
+ ), T = U(!1), y = g({
216
217
  get() {
217
218
  return T.value;
218
219
  },
219
220
  set(t) {
220
- T.value = t, t || c.setItem(f.value, "true");
221
+ T.value = t, t || m.setItem(f.value, "true");
221
222
  }
222
223
  });
223
224
  return P([() => f.value], () => {
224
225
  T.value = !1, setTimeout(() => {
225
- y.value = !c.getItem(f.value);
226
+ y.value = !m.getItem(f.value);
226
227
  }, 2e3);
227
228
  }), (t, a) => {
228
- const m = b("FmCollapsibleTabs");
229
+ const c = b("FmCollapsibleTabs");
229
230
  return S(), I("div", ae, [
230
- _(m, {
231
+ _(c, {
231
232
  modelValue: d.value,
232
233
  "onUpdate:modelValue": a[0] || (a[0] = (N) => d.value = N),
233
234
  items: R.value
@@ -245,11 +246,11 @@ typeof Promise.withResolvers > "u" && (Promise.withResolvers = () => {
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();
252
- U(() => {
253
+ x(() => {
253
254
  if (window.location.href.includes("print-preview")) {
254
255
  n.setEmbedded(!0);
255
256
  return;
@@ -261,16 +262,16 @@ const de = /* @__PURE__ */ h({
261
262
  r();
262
263
  });
263
264
  async function r() {
264
- var c;
265
+ var m;
265
266
  try {
266
- await n.readBusinesses(), n.currentBusiness.value = (c = n.businesses.value) == null ? void 0 : c.find((o) => o);
267
+ await n.readBusinesses(), n.currentBusiness.value = (m = n.businesses.value) == null ? void 0 : m.find((o) => o);
267
268
  } catch (o) {
268
269
  console.error("error when trying to reset businesses:", o);
269
270
  }
270
271
  }
271
- return (c, o) => (S(), G(ne));
272
+ return (m, o) => (S(), B(ne));
272
273
  }
273
274
  });
274
275
  export {
275
- de as default
276
+ fe as default
276
277
  };
@@ -0,0 +1,143 @@
1
+ import { defineComponent as oe, ref as g, watch as re, computed as b, resolveComponent as ne, openBlock as x, createBlock as J, unref as e, withCtx as y, createElementVNode as s, normalizeClass as se, createVNode as n, normalizeStyle as le, toDisplayString as ce, createElementBlock as ie, createCommentVNode as ue, Teleport as pe, mergeProps as me } from "vue";
2
+ import { u as de, az as _, aK as fe, ab as Q, z as _e, _ as ve, B as he, C as De, E as v } from "./app-DavuMSpS.js";
3
+ import { a as ge, P as O, b as be, _ as xe } from "./TransferDetails.vue_vue_type_script_setup_true_lang-CDDvq_mI.js";
4
+ import { useBreakpoints as ye } from "@feedmepos/ui-library";
5
+ import { useI18n as Oe } from "@feedmepos/mf-common";
6
+ const Re = { class: "flex flex-col py-8" }, we = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Pe = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary line-clamp-1" }, ke = { class: "fm-typo-en-body-md-400 text-fm-color-typo-primary line-clamp-1" }, Ce = {
7
+ key: 0,
8
+ class: "fm-typo-en-body-md-400 text-fm-color-typo-primary line-clamp-1"
9
+ }, Se = { class: "pt-8" }, $e = /* @__PURE__ */ oe({
10
+ __name: "ApprovalView",
11
+ setup(Te) {
12
+ const o = ge(O.APPROVAL), { columnDefs: W } = be(O.APPROVAL, o), X = de();
13
+ _.object({
14
+ name: _.string().optional().nullable(),
15
+ start: _.date().optional().nullable(),
16
+ end: _.date().optional().nullable()
17
+ });
18
+ const R = g({
19
+ name: "",
20
+ ...fe()
21
+ }), a = g({
22
+ startDate: Q(R.value.start ?? /* @__PURE__ */ new Date()),
23
+ endDate: Q(R.value.end ?? /* @__PURE__ */ new Date())
24
+ });
25
+ re([() => a.value.startDate], () => {
26
+ if (!a.value.startDate)
27
+ return;
28
+ if (!a.value.endDate) {
29
+ a.value.endDate = a.value.startDate;
30
+ return;
31
+ }
32
+ const c = new Date(a.value.startDate);
33
+ if (new Date(a.value.endDate).getTime() < c.getTime()) {
34
+ a.value.endDate = a.value.startDate;
35
+ return;
36
+ }
37
+ });
38
+ const h = g(""), { breakpoints: w } = ye(), D = b(() => w.value.xs || w.value.sm), Z = b(() => D.value ? 10 : 20), B = _e(), { t: P } = Oe(), I = b(() => [
39
+ {
40
+ label: P("common.refresh"),
41
+ value: "refresh"
42
+ }
43
+ ]);
44
+ function ee(c) {
45
+ switch (c) {
46
+ case "refresh":
47
+ return o.fetchData();
48
+ }
49
+ }
50
+ return (c, l) => {
51
+ const te = ne("FmTable");
52
+ return x(), J(ve, {
53
+ title: e(P)("inventory.transfer.approval.title"),
54
+ actions: I.value,
55
+ "onClick:action": ee
56
+ }, {
57
+ default: y(() => [
58
+ s("div", {
59
+ class: se([
60
+ "flex flex-col gap-8 max-h-full",
61
+ {
62
+ "p-0": D.value,
63
+ "px-24 ": !D.value
64
+ }
65
+ ])
66
+ }, [
67
+ n(he, {
68
+ searchable: "",
69
+ "change-location": "",
70
+ search: h.value,
71
+ "onUpdate:search": l[0] || (l[0] = (r) => h.value = r)
72
+ }, null, 8, ["search"]),
73
+ n(te, {
74
+ style: le(e(B).tableHeight),
75
+ "column-defs": e(W),
76
+ "row-data": e(o).purchaseRequests.value,
77
+ "search-value": h.value,
78
+ loading: !e(X)._currentLocation || e(o).loading.value,
79
+ onRowClick: l[1] || (l[1] = (r) => e(o).promptShowTransferDetails(
80
+ r.original.purchaseOrder,
81
+ r.original
82
+ )),
83
+ "page-size": Z.value
84
+ }, {
85
+ "list-row": y((r) => [
86
+ n(De, {
87
+ row: r,
88
+ onRowClick: (t) => e(o).promptShowTransferDetails(t.purchaseOrder, t)
89
+ }, {
90
+ default: y((t) => {
91
+ var k, C, S, i, T, A, z, V, u, L, M, p, $, m, E, F, Y, q, N, d, j, H, K, U, f, G;
92
+ return [
93
+ s("div", Re, [
94
+ s("div", we, [
95
+ n(e(v), {
96
+ render: (S = (C = (k = t.purchaseOrder__id) == null ? void 0 : k.column) == null ? void 0 : C.columnDef) == null ? void 0 : S.cell,
97
+ props: (T = (i = t.purchaseOrder__id) == null ? void 0 : i.getContext) == null ? void 0 : T.call(i)
98
+ }, null, 8, ["render", "props"])
99
+ ]),
100
+ s("div", Pe, [
101
+ n(e(v), {
102
+ render: (V = (z = (A = t.to_name) == null ? void 0 : A.column) == null ? void 0 : z.columnDef) == null ? void 0 : V.cell,
103
+ props: (L = (u = t.to_name) == null ? void 0 : u.getContext) == null ? void 0 : L.call(u)
104
+ }, null, 8, ["render", "props"])
105
+ ]),
106
+ s("div", ke, ce((E = (m = ($ = (p = (M = r.original.purchaseOrder) == null ? void 0 : M.items) == null ? void 0 : p.map) == null ? void 0 : $.call(p, (ae) => `${ae.name}`)) == null ? void 0 : m.join) == null ? void 0 : E.call(m, ", ")), 1),
107
+ (F = r.original.purchaseOrder) != null && F.ref ? (x(), ie("div", Ce, [
108
+ n(e(v), {
109
+ render: (N = (q = (Y = t.purchaseOrder_ref) == null ? void 0 : Y.column) == null ? void 0 : q.columnDef) == null ? void 0 : N.cell,
110
+ props: (j = (d = t.purchaseOrder_ref) == null ? void 0 : d.getContext) == null ? void 0 : j.call(d)
111
+ }, null, 8, ["render", "props"])
112
+ ])) : ue("", !0),
113
+ s("div", Se, [
114
+ n(e(v), {
115
+ render: (U = (K = (H = t.purchaseOrder_status) == null ? void 0 : H.column) == null ? void 0 : K.columnDef) == null ? void 0 : U.cell,
116
+ props: (G = (f = t.purchaseOrder_status) == null ? void 0 : f.getContext) == null ? void 0 : G.call(f)
117
+ }, null, 8, ["render", "props"])
118
+ ])
119
+ ])
120
+ ];
121
+ }),
122
+ _: 2
123
+ }, 1032, ["row", "onRowClick"])
124
+ ]),
125
+ _: 1
126
+ }, 8, ["style", "column-defs", "row-data", "search-value", "loading", "page-size"])
127
+ ], 2),
128
+ (x(), J(pe, { to: "body" }, [
129
+ n(xe, me({
130
+ scope: e(O).APPROVAL
131
+ }, e(o).transferDetailsProps.value, {
132
+ onSubmitted: e(o).fetchData
133
+ }), null, 16, ["scope", "onSubmitted"])
134
+ ]))
135
+ ]),
136
+ _: 1
137
+ }, 8, ["title", "actions"]);
138
+ };
139
+ }
140
+ });
141
+ export {
142
+ $e as default
143
+ };
@@ -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-DY96hhyi.js";
3
- import { a as V, aL as S } from "./app-DcBKHZIR.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 S } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-Bd13FqsE.js";
3
+ import { a as V, aS as L } from "./app-DavuMSpS.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 = V(), d = o(!0), s = o(new Array()), u = o(), t = L(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(S, {
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
- 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-DcBKHZIR.js";
1
+ import { defineComponent as R, 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, aS as x, H as z } from "./app-DavuMSpS.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__ */ R({
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) => ({
@@ -71,10 +71,10 @@ const F = {
71
71
  }
72
72
  ), o.sendMessage("props:binding-items");
73
73
  }
74
- function P() {
74
+ function S() {
75
75
  o.sendMessage("@close");
76
76
  }
77
- function R() {
77
+ function P() {
78
78
  o.sendMessage("@submit:items", i.value);
79
79
  }
80
80
  const y = l();
@@ -106,11 +106,11 @@ const F = {
106
106
  u(n, {
107
107
  variant: "tertiary",
108
108
  label: "Close",
109
- onClick: P
109
+ onClick: S
110
110
  }),
111
111
  u(n, {
112
112
  label: "Submit",
113
- onClick: R
113
+ onClick: P
114
114
  })
115
115
  ])
116
116
  ]))
@@ -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-DcBKHZIR.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, aS as F } from "./app-DavuMSpS.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,