@feedmepos/mf-inventory-portal 0.0.19-dev.2 → 0.0.19-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 (53) hide show
  1. package/dist/{ApprovalView-DU7oB2Zk.js → ApprovalView-CT8w22Ga.js} +16 -17
  2. package/dist/{BindingsDialog-BgfV0G46.js → BindingsDialog-CrB5aA3X.js} +5 -6
  3. package/dist/{BindingsPicker-tUI5WYBk.js → BindingsPicker-jBTfZ4vJ.js} +6 -7
  4. package/dist/{BindingsTable-8G-Nc4pC.js → BindingsTable-DaZ3Vxpn.js} +14 -17
  5. package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-DaHXKF1s.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-BWFoHqPU.js} +16 -17
  6. package/dist/IngredientsView-DOoXPJop.js +1750 -0
  7. package/dist/IntegrationView-BX1nvP-k.js +1172 -0
  8. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BKlWhMnB.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CFConGe4.js} +1 -1
  9. package/dist/{PurchaseOrderPrintPreview-YFcOtdfJ.js → PurchaseOrderPrintPreview-DSXXSlof.js} +13 -13
  10. package/dist/{ReceiveRequestView-bIXyVVX9.js → ReceiveRequestView-5nXXoRL_.js} +165 -172
  11. package/dist/RecipeView-DtoX2e_9.js +572 -0
  12. package/dist/StockView-DTnY8LfO.js +1876 -0
  13. package/dist/{SupplierView-BiSqTXnz.js → SupplierView-CzWM2tH4.js} +34 -37
  14. package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-CvbKNb0C.js → TransferDetails.vue_vue_type_script_setup_true_lang-DIc2G2jF.js} +34 -36
  15. package/dist/UnitView-Bk-OLoW2.js +638 -0
  16. package/dist/{WarehouseView-B8UxxAL6.js → WarehouseView-C3F_YWO-.js} +49 -50
  17. package/dist/app-YOcJA0qj.js +66729 -0
  18. package/dist/app.d.ts +30 -0
  19. package/dist/app.js +5 -3
  20. package/dist/{decimal-BtIn4K57.js → decimal-Cr-8e35u.js} +1 -1
  21. package/dist/{stock-estimate-C4PL0Fcz.js → id-to-date-9OvJMyEX.js} +12 -13
  22. package/dist/{layout-ITqYtCVu.js → layout-DCDPTIlR.js} +14 -14
  23. package/dist/router/name.d.ts +1 -2
  24. package/dist/{supplier-CA0OR3DU.js → supplier-Bos9ifGc.js} +3 -3
  25. package/dist/tsconfig.app.tsbuildinfo +1 -1
  26. package/dist/views/ingredients/composables/use-ingredient-form.d.ts +14 -2
  27. package/dist/views/ingredients/composables/use-ingredient-table.d.ts +1 -2
  28. package/dist/views/receive-request/composables/use-receive-request-table.d.ts +12 -12
  29. package/dist/views/recipe/composables/use-recipe-form.d.ts +14 -2
  30. package/dist/views/recipe/composables/use-recipe-table.d.ts +1 -2
  31. package/dist/views/stock/composables/use-stock-action.d.ts +26 -0
  32. package/dist/views/stock/composables/use-stock-table.d.ts +1 -8
  33. package/dist/views/unit/composables/use-unit-form.d.ts +14 -2
  34. package/dist/views/unit/composables/use-unit-table.d.ts +1 -2
  35. package/dist/{xlsx-DAVatAlv.js → xlsx-CUjMCYbh.js} +660 -660
  36. package/dist/{xlsx.util-BsZI2tNE.js → xlsx.util-ByRzckFP.js} +2 -2
  37. package/package.json +2 -2
  38. package/dist/FmMultiselectDialog.vue_vue_type_script_setup_true_lang-CxOk5ule.js +0 -143
  39. package/dist/FmUnitInput.vue_vue_type_script_setup_true_lang-D-vJDMKb.js +0 -236
  40. package/dist/IngredientsView-CAh7D4tL.js +0 -1760
  41. package/dist/IntegrationView-Bf7yHuS8.js +0 -1166
  42. package/dist/InventoryBindingForm.vue_vue_type_script_setup_true_lang-BdVrpR9J.js +0 -277
  43. package/dist/RecipeView-BD0mvxCg.js +0 -575
  44. package/dist/StockView-BCq37bGl.js +0 -1865
  45. package/dist/UnitView-DSdn__9m.js +0 -643
  46. package/dist/app-RVyC2D4O.js +0 -43892
  47. package/dist/date2-C2PfOqbB.js +0 -95
  48. package/dist/dayjs.min-0pzT_dbr.js +0 -282
  49. package/dist/fuzzy-yzIM5KUK.js +0 -41
  50. package/dist/index-l87_vggM.js +0 -21515
  51. package/dist/number-B5d98l0m.js +0 -97
  52. package/dist/rules-CCwuHe8Y.js +0 -85
  53. package/dist/use-inventory-binding-dialog-CTriImiV.js +0 -93
package/dist/app.d.ts CHANGED
@@ -497,6 +497,20 @@ export declare const i18nMessages: {
497
497
  };
498
498
  integration: {
499
499
  title: string;
500
+ description: string;
501
+ fmh: {
502
+ title: string;
503
+ description: string;
504
+ };
505
+ apply: {
506
+ title: string;
507
+ products: string;
508
+ addons: string;
509
+ applyProduct: string;
510
+ applyAddon: string;
511
+ name: string;
512
+ code: string;
513
+ };
500
514
  };
501
515
  };
502
516
  };
@@ -996,9 +1010,25 @@ export declare const i18nMessages: {
996
1010
  };
997
1011
  integration: {
998
1012
  title: string;
1013
+ description: string;
1014
+ fmh: {
1015
+ title: string;
1016
+ description: string;
1017
+ };
1018
+ apply: {
1019
+ title: string;
1020
+ products: string;
1021
+ addons: string;
1022
+ applyProduct: string;
1023
+ applyAddon: string;
1024
+ code: string;
1025
+ name: string;
1026
+ };
999
1027
  };
1000
1028
  };
1001
1029
  };
1002
1030
  };
1003
1031
  export { routers } from './router/shared';
1004
1032
  export { default as FmApp } from './App.vue';
1033
+ export { default as InventoryBindingForm } from './views/ingredients/components/inventory-binding/InventoryBindingForm.vue';
1034
+ export { useInventoryStore } from './stores/inventory';
package/dist/app.js CHANGED
@@ -1,6 +1,8 @@
1
- import { G as e, D as r, E as o } from "./app-RVyC2D4O.js";
1
+ import { ah as e, _ as r, af as n, ag as o, u as t } from "./app-YOcJA0qj.js";
2
2
  export {
3
3
  e as FmApp,
4
- r as i18nMessages,
5
- o as routers
4
+ r as InventoryBindingForm,
5
+ n as i18nMessages,
6
+ o as routers,
7
+ t as useInventoryStore
6
8
  };
@@ -1,4 +1,4 @@
1
- import "./index-l87_vggM.js";
1
+ import "./app-YOcJA0qj.js";
2
2
  function m(a) {
3
3
  function t(o, n = !0) {
4
4
  const e = Math.round(Math.log10(o));
@@ -1,6 +1,6 @@
1
- import { u as l, a as f } from "./xlsx-DAVatAlv.js";
2
- import { defineComponent as _, resolveComponent as d, openBlock as h, createElementBlock as y, renderSlot as F, createVNode as p, withCtx as v, createElementVNode as g, ref as k } from "vue";
3
- import { h as x, f as I } from "./app-RVyC2D4O.js";
1
+ import { u as l, a as f } from "./xlsx-CUjMCYbh.js";
2
+ import { defineComponent as _, resolveComponent as d, openBlock as y, createElementBlock as h, renderSlot as F, createVNode as p, withCtx as v, createElementVNode as g, ref as k } from "vue";
3
+ import { n as x, j as I } from "./app-YOcJA0qj.js";
4
4
  import { useCoreStore as w } from "@feedmepos/mf-common";
5
5
  function S(e, t) {
6
6
  return t.map((r) => typeof r.selector == "function" ? r.selector(e) : e[r.selector]);
@@ -31,7 +31,7 @@ const O = { class: "flex items-center gap-8" }, E = { class: "p-4 bg-fm-color-sy
31
31
  setup(e) {
32
32
  return (t, r) => {
33
33
  const o = d("FmIcon"), s = d("FmTooltip");
34
- return h(), y("div", O, [
34
+ return y(), h("div", O, [
35
35
  F(t.$slots, "default"),
36
36
  p(s, {
37
37
  variant: "plain",
@@ -53,12 +53,7 @@ const O = { class: "flex items-center gap-8" }, E = { class: "p-4 bg-fm-color-sy
53
53
  ]);
54
54
  };
55
55
  }
56
- });
57
- function T(e) {
58
- let t = e.substring(e.indexOf("_") + 1);
59
- return t.includes("_") && (t = t.substring(0, t.lastIndexOf("_"))), Number.isNaN(Date.parse(t)) ? null : new Date(t).toISOString();
60
- }
61
- const m = x((e, t) => {
56
+ }), m = x((e, t) => {
62
57
  const r = I(), o = w();
63
58
  return {
64
59
  async getInventoryForecast() {
@@ -88,7 +83,7 @@ function $() {
88
83
  };
89
84
  }
90
85
  const c = k($());
91
- function M() {
86
+ function T() {
92
87
  return {
93
88
  // state
94
89
  get inventoryForecast() {
@@ -114,9 +109,13 @@ function M() {
114
109
  }
115
110
  };
116
111
  }
112
+ function M(e) {
113
+ let t = e.substring(e.indexOf("_") + 1);
114
+ return t.includes("_") && (t = t.substring(0, t.lastIndexOf("_"))), Number.isNaN(Date.parse(t)) ? null : new Date(t).toISOString();
115
+ }
117
116
  export {
118
117
  L as _,
119
118
  P as e,
120
- T as i,
121
- M as u
119
+ M as i,
120
+ T as u
122
121
  };
@@ -1,7 +1,7 @@
1
- import { components as x, useBreakpoints as B } from "@feedmepos/ui-library";
2
- import { h as i, defineComponent as I, computed as M, resolveComponent as R, openBlock as u, createBlock as _, normalizeClass as V, withCtx as L, createElementVNode as d, renderSlot as z, normalizeProps as N, guardReactiveProps as P, createElementBlock as c, Fragment as h, renderList as D, createVNode as k, unref as b, createCommentVNode as w } from "vue";
3
- import { x as E } from "./app-RVyC2D4O.js";
4
- const { FmMenu: S, FmButton: $, FmMenuItem: j } = x;
1
+ import { components as B, useBreakpoints as M } from "@feedmepos/ui-library";
2
+ import { h as i, defineComponent as I, computed as R, resolveComponent as _, openBlock as a, createBlock as x, normalizeClass as V, withCtx as L, createElementVNode as d, renderSlot as z, normalizeProps as N, guardReactiveProps as P, createElementBlock as c, Fragment as h, renderList as D, createVNode as k, unref as b, createCommentVNode as w } from "vue";
3
+ import { aa as E } from "./app-YOcJA0qj.js";
4
+ const { FmMenu: S, FmButton: $, FmMenuItem: j } = B;
5
5
  function Q(o, n) {
6
6
  return i(
7
7
  S,
@@ -68,15 +68,15 @@ const y = I({
68
68
  actionColumnId: { default: "action" }
69
69
  },
70
70
  setup(o) {
71
- const n = o, t = M(
71
+ const n = o, t = R(
72
72
  () => n.row.getVisibleCells().reduce(
73
73
  (e, r) => (e[r.column.id] = r, e),
74
74
  {}
75
75
  )
76
76
  );
77
77
  return (e, r) => {
78
- const F = R("FmListItem");
79
- return u(), _(F, {
78
+ const F = _("FmListItem");
79
+ return a(), x(F, {
80
80
  class: V([
81
81
  "px-12 py-16 w-full border-b border-fm-color-neutral-gray-100",
82
82
  {
@@ -91,18 +91,18 @@ const y = I({
91
91
  })
92
92
  }, {
93
93
  default: L(() => {
94
- var m, s, p, a, f;
94
+ var m, s, p, u, f;
95
95
  return [
96
96
  d("div", A, [
97
97
  d("div", H, [
98
98
  z(e.$slots, "default", N(P(t.value)), () => [
99
99
  d("div", T, [
100
- (u(!0), c(h, null, D(n.row.getVisibleCells(), (l) => {
100
+ (a(!0), c(h, null, D(n.row.getVisibleCells(), (l) => {
101
101
  var C, g, v;
102
- return u(), c(h, {
102
+ return a(), c(h, {
103
103
  key: l.id
104
104
  }, [
105
- l.column.id !== e.actionColumnId ? (u(), c("div", q, [
105
+ l.column.id !== e.actionColumnId ? (a(), c("div", q, [
106
106
  k(b(y), {
107
107
  render: (g = (C = l.column) == null ? void 0 : C.columnDef) == null ? void 0 : g.cell,
108
108
  props: (v = l.getContext) == null ? void 0 : v.call(l)
@@ -113,11 +113,11 @@ const y = I({
113
113
  ])
114
114
  ])
115
115
  ]),
116
- t.value[e.actionColumnId ?? ""] ? (u(), c("div", G, [
116
+ t.value[e.actionColumnId ?? ""] ? (a(), c("div", G, [
117
117
  d("div", null, [
118
118
  k(b(y), {
119
119
  render: (p = (s = (m = t.value[e.actionColumnId ?? ""]) == null ? void 0 : m.column) == null ? void 0 : s.columnDef) == null ? void 0 : p.cell,
120
- props: (f = (a = t.value[e.actionColumnId ?? ""]) == null ? void 0 : a.getContext) == null ? void 0 : f.call(a)
120
+ props: (f = (u = t.value[e.actionColumnId ?? ""]) == null ? void 0 : u.getContext) == null ? void 0 : f.call(u)
121
121
  }, null, 8, ["render", "props"])
122
122
  ])
123
123
  ])) : w("", !0)
@@ -132,7 +132,7 @@ const y = I({
132
132
  function W() {
133
133
  return {
134
134
  get tableHeight() {
135
- const o = E(), { breakpoints: n } = B();
135
+ const o = E(), { breakpoints: n } = M();
136
136
  return o.isIframeMode ? n.value.xs || n.value.sm ? {
137
137
  height: "calc(100dvh - 180px)"
138
138
  } : {
@@ -1,4 +1,3 @@
1
- import { type useI18n } from '@feedmepos/mf-common';
2
1
  export declare enum RouteName {
3
2
  INGREDIENTS = "INGREDIENTS",
4
3
  RECIPE = "RECIPE",
@@ -15,4 +14,4 @@ export declare enum RouteName {
15
14
  IFRAME_INVENTORY_BINDINGS_DIALOG = "IFRAME_INVENTORY_BINDINGS_DIALOG",
16
15
  IFRAME_INVENTORY_BINDINGS_PICKER = "IFRAME_INVENTORY_BINDINGS_PICKER"
17
16
  }
18
- export declare function getReadableRouteName(route: RouteName, t: ReturnType<typeof useI18n>['t']): string;
17
+ export declare function getReadableRouteName(route: RouteName, t: Translator): string;
@@ -1,4 +1,4 @@
1
- import { h as u, f as o, k as c, l } from "./app-RVyC2D4O.js";
1
+ import { n as u, j as o, Q as c, T as l } from "./app-YOcJA0qj.js";
2
2
  import { ref as d } from "vue";
3
3
  const n = u((e, r) => {
4
4
  const a = o();
@@ -27,7 +27,7 @@ function S() {
27
27
  };
28
28
  }
29
29
  const s = d(S());
30
- function f() {
30
+ function A() {
31
31
  return {
32
32
  // state
33
33
  get suppliers() {
@@ -61,5 +61,5 @@ function f() {
61
61
  };
62
62
  }
63
63
  export {
64
- f as u
64
+ A as u
65
65
  };