@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,13 +1,14 @@
1
- import { defineComponent as Y, ref as x, onMounted as ie, resolveComponent as F, openBlock as E, createElementBlock as A, Fragment as re, createElementVNode as w, toDisplayString as ce, createVNode as g, createCommentVNode as K, computed as k, watch as ue, createBlock as T, withCtx as P, unref as y, isRef as Z, normalizeClass as de, normalizeStyle as me, Teleport as pe, normalizeProps as fe, guardReactiveProps as ve } from "vue";
2
- import { u as I, c as G, S as ye, a as z, k as ee, R as ge, U as be, _ as _e, A as we, e as te, f as Re, j as he } from "./app-Z9P39kGh.js";
1
+ import { defineComponent as Y, ref as x, onMounted as ie, resolveComponent as F, openBlock as E, createElementBlock as A, Fragment as re, createElementVNode as w, toDisplayString as ce, createVNode as g, createCommentVNode as K, computed as V, watch as ue, createBlock as T, withCtx as P, unref as y, isRef as Z, normalizeClass as de, normalizeStyle as me, Teleport as pe, normalizeProps as fe, guardReactiveProps as ve } from "vue";
2
+ import { u as I, c as G, S as ye, a as z, j as ee, R as ge, U as be, _ as _e, A as we, e as te, f as Re, i as he } from "./app-DZiCiBV7.js";
3
3
  import { useDialog as Ce, useSnackbar as se, useProxiedModel as ne, useBreakpoints as Ee } from "@feedmepos/ui-library";
4
4
  import { i as xe, _ as Se } from "./is-linked-ingredient-error-fJ2TJb3z.js";
5
5
  import { F as C, D as oe, R as L } from "./row-action.enum-PMKMRrZR.js";
6
- import { _ as le, t as Fe, d as ke } from "./xlsx.util-BwF0vRjF.js";
7
- import { defineStore as Ve, storeToRefs as De } from "pinia";
8
- import { c as Ie, _ as $e, F as ae } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-DlNJ6kRg.js";
6
+ import { _ as le } from "./IngredientBindedItem.vue_vue_type_script_setup_true_lang-3OkJNtvH.js";
7
+ import { defineStore as Fe, storeToRefs as Ve } from "pinia";
8
+ import { c as ke, _ as De, F as ae } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-DlNJ6kRg.js";
9
9
  import { useI18n as j } from "@feedmepos/mf-common";
10
- import { u as Ae, _ as Pe, a as Be } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-z-BBBTkh.js";
10
+ import { u as Ie, _ as $e, a as Ae } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-DBh79EM_.js";
11
+ import { t as Pe, d as Be } from "./xlsx.util-DP5wVnRT.js";
11
12
  const Te = {
12
13
  key: 0,
13
14
  class: "flex flex-col items-center w-full h-full gap-24"
@@ -52,7 +53,7 @@ const Te = {
52
53
  ], 64);
53
54
  };
54
55
  }
55
- }), q = Ve("recipeForm", function() {
56
+ }), q = Fe("recipeForm", function() {
56
57
  const p = Ce(), v = se(), i = I(), l = x(!1), c = x();
57
58
  function r() {
58
59
  const t = {
@@ -171,7 +172,7 @@ function Le() {
171
172
  id: "action",
172
173
  header: "",
173
174
  cell(d) {
174
- return Ie(
175
+ return ke(
175
176
  [oe[L.Edit], oe[L.Delete]],
176
177
  (u) => {
177
178
  l(u, d.row.original.original);
@@ -216,7 +217,7 @@ const ze = { class: "flex flex-col gap-40" }, Ye = {
216
217
  emits: ["update:modelValue", "click:submit"],
217
218
  setup(R, { expose: p, emit: v }) {
218
219
  var h;
219
- const i = R, l = v, { t: c } = j(), r = k({
220
+ const i = R, l = v, { t: c } = j(), r = V({
220
221
  get() {
221
222
  var n;
222
223
  return ((n = i.modelValue) == null ? void 0 : n.name) ?? "";
@@ -225,7 +226,7 @@ const ze = { class: "flex flex-col gap-40" }, Ye = {
225
226
  const o = i.modelValue ?? {};
226
227
  o.name = n, l("update:modelValue", o);
227
228
  }
228
- }), f = k({
229
+ }), f = V({
229
230
  get() {
230
231
  var n;
231
232
  return ((n = i.modelValue) == null ? void 0 : n.contains) ?? [];
@@ -258,14 +259,14 @@ const ze = { class: "flex flex-col gap-40" }, Ye = {
258
259
  _(n);
259
260
  });
260
261
  async function _(n) {
261
- var o, V;
262
- n && !b.value && ((o = i.modelValue) != null && o._id) && (b.value = !0, a.value = await t.getAffectedMenu((V = i.modelValue) == null ? void 0 : V._id), b.value = !1);
262
+ var o, k;
263
+ n && !b.value && ((o = i.modelValue) != null && o._id) && (b.value = !0, a.value = await t.getAffectedMenu((k = i.modelValue) == null ? void 0 : k._id), b.value = !1);
263
264
  }
264
- const s = k(
265
+ const s = V(
265
266
  () => t.recipes.map((n) => ({ label: n.name, value: n.name }))
266
267
  ), m = x((h = i.modelValue) == null ? void 0 : h.name);
267
268
  return (n, o) => {
268
- const V = F("FmTextField"), H = F("FmCard"), $ = F("FmSwitch"), D = F("FmSpacer"), M = F("FmCircularProgress"), U = F("FmForm");
269
+ const k = F("FmTextField"), H = F("FmCard"), $ = F("FmSwitch"), D = F("FmSpacer"), M = F("FmCircularProgress"), U = F("FmForm");
269
270
  return E(), T(U, {
270
271
  ref_key: "formRef",
271
272
  ref: u,
@@ -273,7 +274,7 @@ const ze = { class: "flex flex-col gap-40" }, Ye = {
273
274
  }, {
274
275
  default: P(() => [
275
276
  w("div", ze, [
276
- g(V, {
277
+ g(k, {
277
278
  disabled: n.disabled,
278
279
  label: y(c)("inventory.recipe.name"),
279
280
  "model-value": r.value,
@@ -342,7 +343,7 @@ const ze = { class: "flex flex-col gap-40" }, Ye = {
342
343
  },
343
344
  emits: ["update:show"],
344
345
  setup(R) {
345
- const p = R, v = I(), i = se(), { t: l } = j(), c = ne(p, "show"), r = ne(p, "recipe"), f = k(() => {
346
+ const p = R, v = I(), i = se(), { t: l } = j(), c = ne(p, "show"), r = ne(p, "recipe"), f = V(() => {
346
347
  switch (p.mode) {
347
348
  case C.READ:
348
349
  return "";
@@ -352,7 +353,7 @@ const ze = { class: "flex flex-col gap-40" }, Ye = {
352
353
  return l("inventory.recipe.create.title");
353
354
  }
354
355
  return "";
355
- }), d = k(() => {
356
+ }), d = V(() => {
356
357
  switch (p.mode) {
357
358
  case C.READ:
358
359
  return "";
@@ -495,20 +496,20 @@ function Oe() {
495
496
  ...d === 0 ? [] : [["", "", "", "", "", ""]],
496
497
  [f.name, "No bindings", "", "", "", ""]
497
498
  ];
498
- }), r = Fe(l, ["Name", "Type", "Code", "Item", "Amount", "Unit"]);
499
- ke(r, `RECIPE_${Re(/* @__PURE__ */ new Date(), "-", "-")}.xlsx`);
499
+ }), r = Pe(l, ["Name", "Type", "Code", "Item", "Amount", "Unit"]);
500
+ Be(r, `RECIPE_${Re(/* @__PURE__ */ new Date(), "-", "-")}.xlsx`);
500
501
  }
501
- const Je = { class: "flex flex-col py-8" }, Qe = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, We = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, rt = /* @__PURE__ */ Y({
502
+ const Je = { class: "flex flex-col py-8" }, Qe = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, We = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ct = /* @__PURE__ */ Y({
502
503
  __name: "RecipeView",
503
504
  setup(R) {
504
- const p = I(), v = k(() => p.recipes), i = he(), { createRecipe: l, updateRecipe: c } = q(), { recipeDialogProps: r, recipeViewLoading: f } = De(q()), { columnDefs: d, formatRowData: u } = Le(), t = k(() => u(v.value));
505
+ const p = I(), v = V(() => p.recipes), i = he(), { createRecipe: l, updateRecipe: c } = q(), { recipeDialogProps: r, recipeViewLoading: f } = Ve(q()), { columnDefs: d, formatRowData: u } = Le(), t = V(() => u(v.value));
505
506
  function a(o) {
506
507
  o === "add" && l();
507
508
  }
508
- const e = x(""), b = k(() => f.value), { breakpoints: _ } = Ee(), s = k(() => _.value.xs || _.value.sm), m = k(() => s.value ? 10 : 20), h = Ae(), { t: n } = j();
509
- return (o, V) => {
509
+ const e = x(""), b = V(() => f.value), { breakpoints: _ } = Ee(), s = V(() => _.value.xs || _.value.sm), m = V(() => s.value ? 10 : 20), h = Ie(), { t: n } = j();
510
+ return (o, k) => {
510
511
  const H = F("FmTable");
511
- return E(), T(Pe, {
512
+ return E(), T($e, {
512
513
  title: y(n)("inventory.recipe.title"),
513
514
  actions: [
514
515
  {
@@ -530,10 +531,10 @@ const Je = { class: "flex flex-col py-8" }, Qe = { class: "fm-typo-en-body-lg-60
530
531
  }
531
532
  ])
532
533
  }, [
533
- g(Be, {
534
+ g(Ae, {
534
535
  searchable: "",
535
536
  search: e.value,
536
- "onUpdate:search": V[0] || (V[0] = ($) => e.value = $),
537
+ "onUpdate:search": k[0] || (k[0] = ($) => e.value = $),
537
538
  actions: [{ icon: "ios_share", onClick: y(Oe) }]
538
539
  }, null, 8, ["search", "actions"]),
539
540
  (E(), T(H, {
@@ -542,12 +543,12 @@ const Je = { class: "flex flex-col py-8" }, Qe = { class: "fm-typo-en-body-lg-60
542
543
  "row-data": t.value,
543
544
  "search-value": e.value,
544
545
  loading: !y(i)._currentLocation || b.value,
545
- onRowClick: V[1] || (V[1] = ($) => y(c)($.original.original)),
546
+ onRowClick: k[1] || (k[1] = ($) => y(c)($.original.original)),
546
547
  key: v.value.length,
547
548
  "page-size": m.value
548
549
  }, {
549
550
  "list-row": P(($) => [
550
- g($e, {
551
+ g(De, {
551
552
  row: $,
552
553
  onRowClick: (D) => y(c)(D.original)
553
554
  }, {
@@ -586,5 +587,5 @@ const Je = { class: "flex flex-col py-8" }, Qe = { class: "fm-typo-en-body-lg-60
586
587
  }
587
588
  });
588
589
  export {
589
- rt as default
590
+ ct as default
590
591
  };