@feedmepos/mf-inventory-portal 0.0.22-dev.34 → 0.0.22-dev.37

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 (70) hide show
  1. package/dist/{ApprovalView-2pX2IV1F.js → ApprovalView-Dco0PkEf.js} +8 -8
  2. package/dist/{BindingsDialog-EyImpE9g.js → BindingsDialog-DrCU_kIA.js} +9 -9
  3. package/dist/{BindingsPicker-CbBNBcWW.js → BindingsPicker-BMIIrlG6.js} +17 -17
  4. package/dist/{BindingsTable-CJeV7Dd2.js → BindingsTable-BHRmkL1P.js} +1 -1
  5. package/dist/{ClosingTemplateView-BDEooji1.js → ClosingTemplateView-kiej8Nah.js} +15 -15
  6. package/dist/FmDroppableField-Bl7A98it.js +152 -0
  7. package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DZtc5R4Z.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DQw4pBwH.js} +25 -25
  8. package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-z-BBBTkh.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-DBh79EM_.js} +20 -20
  9. package/dist/IngredientBindedItem.vue_vue_type_script_setup_true_lang-3OkJNtvH.js +51 -0
  10. package/dist/IngredientsView-m44wAwSR.js +1611 -0
  11. package/dist/{IntegrationView-1lXCciJp.js → IntegrationView-B4gCx21K.js} +71 -71
  12. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-Bgd922-L.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-D1frNXtV.js} +1 -1
  13. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-Bexig132.js → PremiumBadge.vue_vue_type_script_setup_true_lang-Dbs29jm_.js} +16 -16
  14. package/dist/{PurchaseOrderPrintPreview-036mLqRD.js → PurchaseOrderPrintPreview-lKu0y_xw.js} +7 -7
  15. package/dist/ReceiveRequestView-DflWKxgq.js +4053 -0
  16. package/dist/{RecipeView-BuiA-2uY.js → RecipeView-DfsXdlPn.js} +30 -29
  17. package/dist/StockView-BSeSpxkV.js +7762 -0
  18. package/dist/{SupplierView-Ck5hH5gT.js → SupplierView-DPWh1si_.js} +11 -11
  19. package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-DFDc3P3S.js → TransferDetails.vue_vue_type_script_setup_true_lang-Dt1lRW3W.js} +260 -262
  20. package/dist/TransferTemplateView-DGOT4oZN.js +2054 -0
  21. package/dist/{UnitView-DB2hQFMC.js → UnitView-X9bCqAWe.js} +16 -16
  22. package/dist/{WarehouseView-CFJiuhpx.js → WarehouseView-BphA-Peq.js} +20 -20
  23. package/dist/api/bill.d.ts +84 -238
  24. package/dist/api/purchase-order-template.d.ts +4 -2
  25. package/dist/{app-Z9P39kGh.js → app-DZiCiBV7.js} +18175 -18188
  26. package/dist/app.js +2 -2
  27. package/dist/{decimal-DIe_fFDH.js → decimal-Bx1Y3uW1.js} +1 -1
  28. package/dist/defineDeepModel-4XZbatJF.js +13 -0
  29. package/dist/format-time-from-id-CFJvgP70.js +15 -0
  30. package/dist/helper/xlsx.util.d.ts +7 -0
  31. package/dist/purchase-order-transaction-type-Ds7YRAAp.js +348 -0
  32. package/dist/stores/inventory.d.ts +63 -0
  33. package/dist/stores/location.d.ts +89 -0
  34. package/dist/stores/netsuite.d.ts +1 -0
  35. package/dist/stores/supplier.d.ts +120 -3
  36. package/dist/stores/warehouse.d.ts +7 -4
  37. package/dist/supplier-BhJT8KOX.js +70 -0
  38. package/dist/tsconfig.app.tsbuildinfo +1 -1
  39. package/dist/{use-template-enabled-locations-2-CeSeHnX0.js → use-template-enabled-locations-2-BrEPVOpT.js} +1 -1
  40. package/dist/views/closing-template/composables/use-closing-template-actions.d.ts +2 -2
  41. package/dist/views/closing-template/composables/use-closing-template-table.d.ts +2 -2
  42. package/dist/views/ingredients/composables/use-ingredient-form.d.ts +2 -2
  43. package/dist/views/receive-request/components/transfer-form/NetSuiteField.vue.d.ts +44 -0
  44. package/dist/views/receive-request/components/transfer-form/TransferForm.vue.d.ts +42 -34
  45. package/dist/views/receive-request/composables/use-receive-request-form.d.ts +75 -51
  46. package/dist/views/receive-request/composables/use-receive-request-table.d.ts +75 -51
  47. package/dist/views/recipe/composables/use-recipe-form.d.ts +2 -2
  48. package/dist/views/stock/components/StockRecordCard.vue.d.ts +42 -119
  49. package/dist/views/stock/composables/use-stock-action.d.ts +2 -2
  50. package/dist/views/transfer-template/components/transfer-template-import/TransferTemplateImport.vue.d.ts +2 -0
  51. package/dist/views/transfer-template/components/transfer-template-import/TransferTemplateImportItem.vue.d.ts +12 -0
  52. package/dist/views/transfer-template/components/transfer-template-import/TransferTemplateImportItemProps.d.ts +9 -0
  53. package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +10 -6
  54. package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +1850 -5
  55. package/dist/views/transfer-template/helpers/import-export.helper.d.ts +76 -0
  56. package/dist/views/transfer-template/helpers/remove-deleted-skus.helper.d.ts +1 -230
  57. package/dist/views/unit/composables/use-unit-form.d.ts +2 -2
  58. package/dist/views/warehouse/components/WarehouseForm.vue.d.ts +14 -8
  59. package/dist/{xlsx-DrDljHnF.js → xlsx-B9lpxKgq.js} +651 -651
  60. package/dist/xlsx.util-DP5wVnRT.js +78 -0
  61. package/package.json +1 -1
  62. package/dist/IngredientsView-BvKaI0nb.js +0 -1755
  63. package/dist/ReceiveRequestView-BGlxEJkh.js +0 -1626
  64. package/dist/StockView-BKX6NX-g.js +0 -1909
  65. package/dist/TransferTemplateView-ByYEje9E.js +0 -1237
  66. package/dist/defineDeepModel-DH8vhBpR.js +0 -13
  67. package/dist/format-time-from-id-CAjL4U2X.js +0 -15
  68. package/dist/purchase-order-transaction-type-BJDnbhdk.js +0 -338
  69. package/dist/supplier-wJJ7ATk2.js +0 -69
  70. package/dist/xlsx.util-BwF0vRjF.js +0 -109
@@ -1,14 +1,14 @@
1
1
  import { defineComponent as K, computed as _, openBlock as v, createElementBlock as w, createElementVNode as l, Fragment as q, renderList as H, toDisplayString as V, createCommentVNode as Y, ref as M, resolveComponent as I, createBlock as T, withCtx as R, createVNode as y, unref as a, isRef as Z, normalizeClass as ae, normalizeStyle as re, Teleport as ie, normalizeProps as ue, guardReactiveProps as de } from "vue";
2
- import { u as G, S as me, c as oe, R as j, A as ce, a as J, m as pe, n as fe, e as ee, j as ve } from "./app-Z9P39kGh.js";
2
+ import { u as G, S as me, c as oe, R as N, A as ce, a as J, l as pe, m as fe, e as ee, i as ve } from "./app-DZiCiBV7.js";
3
3
  import { useDialog as ye, useSnackbar as le, useProxiedModel as te, useBreakpoints as be } from "@feedmepos/ui-library";
4
4
  import { i as ge, _ as xe } from "./is-linked-ingredient-error-fJ2TJb3z.js";
5
- import { F as U, D as ne, R as N } from "./row-action.enum-PMKMRrZR.js";
5
+ import { F as U, D as ne, R as j } from "./row-action.enum-PMKMRrZR.js";
6
6
  import { defineStore as _e, storeToRefs as he } from "pinia";
7
7
  import { c as Ve, _ as Ue, F as we } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-DlNJ6kRg.js";
8
8
  import { useI18n as O } from "@feedmepos/mf-common";
9
- import { u as Ce, _ as ke, a as Fe } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-z-BBBTkh.js";
10
- import { F as Se } from "./decimal-DIe_fFDH.js";
11
- import { _ as $e } from "./NumberPrecisionInput.vue_vue_type_script_setup_true_lang-Bgd922-L.js";
9
+ import { u as Ce, _ as ke, a as Fe } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-DBh79EM_.js";
10
+ import { F as Se } from "./decimal-Bx1Y3uW1.js";
11
+ import { _ as $e } from "./NumberPrecisionInput.vue_vue_type_script_setup_true_lang-D1frNXtV.js";
12
12
  const Ee = { class: "flex flex-col gap-8" }, Ie = {
13
13
  key: 0,
14
14
  class: "flex flex-col"
@@ -189,15 +189,15 @@ const Ee = { class: "flex flex-col gap-8" }, Ie = {
189
189
  unitViewLoading: r
190
190
  };
191
191
  });
192
- function je() {
192
+ function Ne() {
193
193
  const { updateUnit: k, deleteUnit: f } = Q(), { t: b } = O();
194
194
  async function i(o, m) {
195
195
  const c = oe(m);
196
- if (o === N.Edit) {
196
+ if (o === j.Edit) {
197
197
  await k(c);
198
198
  return;
199
199
  }
200
- if (o === N.Delete) {
200
+ if (o === j.Delete) {
201
201
  await f(c);
202
202
  return;
203
203
  }
@@ -220,7 +220,7 @@ function je() {
220
220
  header: "",
221
221
  cell(o) {
222
222
  return Ve(
223
- [ne[N.Edit], ne[N.Delete]],
223
+ [ne[j.Edit], ne[j.Delete]],
224
224
  (m) => {
225
225
  i(m, o.row.original);
226
226
  }
@@ -235,7 +235,7 @@ function je() {
235
235
  }
236
236
  ] };
237
237
  }
238
- const Ne = { class: "flex flex-col gap-24" }, qe = { class: "flex gap-24" }, He = { class: "flex-1" }, Ke = { class: "flex-1" }, Ge = { class: "flex" }, Oe = { class: "flex items-center" }, Ye = { class: "fm-typo-en-body-lg-600 flex-grow" }, Je = { class: "flex flex-col gap-24" }, Qe = { class: "flex gap-24" }, We = { class: "flex-1" }, Xe = { class: "flex-1" }, Ze = /* @__PURE__ */ K({
238
+ const je = { class: "flex flex-col gap-24" }, qe = { class: "flex gap-24" }, He = { class: "flex-1" }, Ke = { class: "flex-1" }, Ge = { class: "flex" }, Oe = { class: "flex items-center" }, Ye = { class: "fm-typo-en-body-lg-600 flex-grow" }, Je = { class: "flex flex-col gap-24" }, Qe = { class: "flex gap-24" }, We = { class: "flex-1" }, Xe = { class: "flex-1" }, Ze = /* @__PURE__ */ K({
239
239
  __name: "UnitForm",
240
240
  props: {
241
241
  mode: {},
@@ -329,7 +329,7 @@ const Ne = { class: "flex flex-col gap-24" }, qe = { class: "flex gap-24" }, He
329
329
  default: R(() => {
330
330
  var P;
331
331
  return [
332
- l("div", Ne, [
332
+ l("div", je, [
333
333
  l("div", qe, [
334
334
  l("div", He, [
335
335
  y(d, {
@@ -337,7 +337,7 @@ const Ne = { class: "flex flex-col gap-24" }, qe = { class: "flex gap-24" }, He
337
337
  label: a(o)("inventory.unit.name"),
338
338
  modelValue: c.value,
339
339
  "onUpdate:modelValue": t[0] || (t[0] = (C) => c.value = C),
340
- rules: [a(j)()],
340
+ rules: [a(N)()],
341
341
  "label-mark": "required"
342
342
  }, null, 8, ["disabled", "label", "modelValue", "rules"])
343
343
  ]),
@@ -347,7 +347,7 @@ const Ne = { class: "flex flex-col gap-24" }, qe = { class: "flex gap-24" }, He
347
347
  label: a(o)("inventory.unit.symbol"),
348
348
  modelValue: p.value,
349
349
  "onUpdate:modelValue": t[1] || (t[1] = (C) => p.value = C),
350
- rules: [a(j)()],
350
+ rules: [a(N)()],
351
351
  "label-mark": "required"
352
352
  }, null, 8, ["disabled", "label", "modelValue", "rules"])
353
353
  ])
@@ -397,7 +397,7 @@ const Ne = { class: "flex flex-col gap-24" }, qe = { class: "flex gap-24" }, He
397
397
  label: a(o)("inventory.unit.measurement.name"),
398
398
  modelValue: e.modelValue.measurements[h].name,
399
399
  "onUpdate:modelValue": ($) => e.modelValue.measurements[h].name = $,
400
- rules: [a(j)()],
400
+ rules: [a(N)()],
401
401
  "label-mark": "required"
402
402
  }, null, 8, ["disabled", "label", "modelValue", "onUpdate:modelValue", "rules"])
403
403
  ]),
@@ -407,7 +407,7 @@ const Ne = { class: "flex flex-col gap-24" }, qe = { class: "flex gap-24" }, He
407
407
  label: a(o)("inventory.unit.measurement.symbol"),
408
408
  modelValue: e.modelValue.measurements[h].abbrev,
409
409
  "onUpdate:modelValue": ($) => e.modelValue.measurements[h].abbrev = $,
410
- rules: [a(j)()],
410
+ rules: [a(N)()],
411
411
  "label-mark": "required"
412
412
  }, null, 8, ["disabled", "label", "modelValue", "onUpdate:modelValue", "rules"])
413
413
  ])
@@ -569,7 +569,7 @@ const Ne = { class: "flex flex-col gap-24" }, qe = { class: "flex gap-24" }, He
569
569
  }), nt = { class: "flex flex-col py-8" }, ot = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, lt = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, yt = /* @__PURE__ */ K({
570
570
  __name: "UnitView",
571
571
  setup(k) {
572
- const f = G(), b = ve(), i = _(() => f.units), { createUnit: r, updateUnit: o } = Q(), { unitDialogProps: m, unitViewLoading: c } = he(Q()), { columnDefs: p } = je();
572
+ const f = G(), b = ve(), i = _(() => f.units), { createUnit: r, updateUnit: o } = Q(), { unitDialogProps: m, unitViewLoading: c } = he(Q()), { columnDefs: p } = Ne();
573
573
  function s(D) {
574
574
  D === "add" && r();
575
575
  }
@@ -1,11 +1,11 @@
1
1
  import { ref as W, defineComponent as I, watch as ee, onMounted as te, onUnmounted as Fe, openBlock as S, createElementBlock as q, toRaw as be, reactive as xe, createElementVNode as g, toDisplayString as U, unref as c, createVNode as V, resolveComponent as L, createSlots as $e, withCtx as N, createTextVNode as We, renderSlot as De, createBlock as z, createCommentVNode as Ae, computed as F, isRef as we, normalizeClass as Se, normalizeStyle as Re } from "vue";
2
- import { o as Pe, V as Te, W as Ue, c as O, X as ae, Y as le, Z as Ee, i as Le, R as E, j as Ne } from "./app-Z9P39kGh.js";
2
+ import { n as Pe, Z as Te, $ as Ue, c as O, a0 as ae, a1 as le, a2 as Ee, X as Le, R as E, i as Ne } from "./app-DZiCiBV7.js";
3
3
  import { useCoreStore as Be, useI18n as j } from "@feedmepos/mf-common";
4
4
  import { D as Ve, R as X, F as T } from "./row-action.enum-PMKMRrZR.js";
5
- import { c as qe, _ as ze, F as Y } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-DlNJ6kRg.js";
6
- import { u as Ie, _ as je, a as Oe } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-z-BBBTkh.js";
5
+ import { c as qe, _ as ze, F as J } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-DlNJ6kRg.js";
6
+ import { u as Ie, _ as je, a as Oe } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-DBh79EM_.js";
7
7
  import { useDialogChild as Ge, useDialog as Me, useSnackbar as se, useProxiedModel as oe, useBreakpoints as Ke } from "@feedmepos/ui-library";
8
- const J = Pe((m, h) => {
8
+ const Q = Pe((m, h) => {
9
9
  const y = Be();
10
10
  return {
11
11
  async readWarehouses() {
@@ -47,17 +47,17 @@ function Ce() {
47
47
  },
48
48
  // actions
49
49
  async readWarehouses() {
50
- const m = J();
50
+ const m = Q();
51
51
  this.warehouses = await m.readWarehouses();
52
52
  },
53
53
  async createWarehouse(m) {
54
- await J().createWarehouse(m);
54
+ await Q().createWarehouse(m);
55
55
  },
56
56
  async updateWarehouse(m) {
57
- await J().updateWarehouse(m._id, m.profile);
57
+ await Q().updateWarehouse(m._id, m.profile);
58
58
  },
59
59
  async deleteWarehouse(m) {
60
- await J().deleteWarehouse(m._id);
60
+ await Q().deleteWarehouse(m._id);
61
61
  },
62
62
  async init() {
63
63
  const m = Te();
@@ -244,7 +244,7 @@ const Xe = /* @__PURE__ */ I({
244
244
  function d(r) {
245
245
  i.value.map((f) => be(f).setMap(r));
246
246
  }
247
- function Q(r, f, b) {
247
+ function Y(r, f, b) {
248
248
  v(r, f, b);
249
249
  }
250
250
  function P() {
@@ -255,7 +255,7 @@ const Xe = /* @__PURE__ */ I({
255
255
  streetViewControl: !1,
256
256
  draggable: !0,
257
257
  scrollwheel: !0
258
- }), Q(s.value, "click", (r) => n("map-click", _(r)));
258
+ }), Y(s.value, "click", (r) => n("map-click", _(r)));
259
259
  }
260
260
  return ee(() => a.markers, C, { deep: !0 }), ee(() => a.polygons, w, { deep: !0 }), te(() => {
261
261
  !p.value || !l || (P(), C(a.markers), w(a.polygons));
@@ -267,7 +267,7 @@ const Xe = /* @__PURE__ */ I({
267
267
  class: "map app-map"
268
268
  }, null, 512));
269
269
  }
270
- }), Ye = { class: "flex flex-col gap-24" }, Je = { class: "flex flex-col gap-8" }, Qe = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, eo = { class: "fm-typo-en-body-lg-600" }, oo = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, to = { class: "fm-typo-en-body-lg-600" }, ao = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, lo = { class: "fm-typo-en-body-lg-600" }, so = /* @__PURE__ */ I({
270
+ }), Je = { class: "flex flex-col gap-24" }, Qe = { class: "flex flex-col gap-8" }, Ye = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, eo = { class: "fm-typo-en-body-lg-600" }, oo = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, to = { class: "fm-typo-en-body-lg-600" }, ao = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, lo = { class: "fm-typo-en-body-lg-600" }, so = /* @__PURE__ */ I({
271
271
  __name: "CoordinateDialog",
272
272
  props: {
273
273
  address: {
@@ -295,10 +295,10 @@ const Xe = /* @__PURE__ */ I({
295
295
  l.lat = v.lat, l.lng = v.lng, y.emitData(O(l)), s();
296
296
  }
297
297
  const _ = W();
298
- return (v, M) => (S(), q("div", Ye, [
299
- g("div", Je, [
298
+ return (v, M) => (S(), q("div", Je, [
299
+ g("div", Qe, [
300
300
  g("div", null, [
301
- g("span", Qe, U(c(n)("inventory.formField.coordinate.address")) + ": ", 1),
301
+ g("span", Ye, U(c(n)("inventory.formField.coordinate.address")) + ": ", 1),
302
302
  g("span", eo, U(p.value), 1)
303
303
  ]),
304
304
  g("div", null, [
@@ -917,7 +917,7 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
917
917
  }
918
918
  const { breakpoints: o } = Ke(), e = F(() => o.value.xs || o.value.sm), t = F(() => e.value ? 10 : 20), B = Ie();
919
919
  return (w, d) => {
920
- const Q = L("FmTable");
920
+ const Y = L("FmTable");
921
921
  return S(), z(je, {
922
922
  title: c(s)("inventory.warehouse.title"),
923
923
  actions: [
@@ -946,7 +946,7 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
946
946
  search: k.value,
947
947
  "onUpdate:search": d[0] || (d[0] = (P) => k.value = P)
948
948
  }, null, 8, ["search"]),
949
- (S(), z(Q, {
949
+ (S(), z(Y, {
950
950
  style: Re(c(B).tableHeight),
951
951
  "column-defs": c(C),
952
952
  "row-data": c(R)(a.value),
@@ -966,25 +966,25 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
966
966
  return [
967
967
  g("div", Co, [
968
968
  g("div", Fo, [
969
- V(c(Y), {
969
+ V(c(J), {
970
970
  render: (x = (b = (f = r.warehouse) == null ? void 0 : f.column) == null ? void 0 : b.columnDef) == null ? void 0 : x.cell,
971
971
  props: (G = (D = r.warehouse) == null ? void 0 : D.getContext) == null ? void 0 : G.call(D)
972
972
  }, null, 8, ["render", "props"])
973
973
  ]),
974
974
  g("div", xo, [
975
- V(c(Y), {
975
+ V(c(J), {
976
976
  render: (ue = (ne = (re = r.contact) == null ? void 0 : re.column) == null ? void 0 : ne.columnDef) == null ? void 0 : ue.cell,
977
977
  props: (ie = (K = r.contact) == null ? void 0 : K.getContext) == null ? void 0 : ie.call(K)
978
978
  }, null, 8, ["render", "props"])
979
979
  ]),
980
980
  (de = P.original) != null && de.email ? (S(), q("div", $o, [
981
- V(c(Y), {
981
+ V(c(J), {
982
982
  render: (me = (pe = (ce = r.email) == null ? void 0 : ce.column) == null ? void 0 : pe.columnDef) == null ? void 0 : me.cell,
983
983
  props: (fe = (H = r.email) == null ? void 0 : H.getContext) == null ? void 0 : fe.call(H)
984
984
  }, null, 8, ["render", "props"])
985
985
  ])) : Ae("", !0),
986
986
  g("div", Wo, [
987
- V(c(Y), {
987
+ V(c(J), {
988
988
  render: (ve = (ye = (he = r.address) == null ? void 0 : he.column) == null ? void 0 : ye.columnDef) == null ? void 0 : ve.cell,
989
989
  props: (ge = (Z = r.address) == null ? void 0 : Z.getContext) == null ? void 0 : ge.call(Z)
990
990
  }, null, 8, ["render", "props"])