@feedmepos/mf-inventory-portal 1.2.10-dev.3 → 1.2.10-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 (52) hide show
  1. package/dist/{App-D9otYMgh.js → App-DE0rygXX.js} +1 -1
  2. package/dist/{ApprovalView-Bue46U6e.js → ApprovalView-9H9G2OWv.js} +17 -17
  3. package/dist/{BindingsDialog-Xleskmvg.js → BindingsDialog-BjXHdsGH.js} +2 -2
  4. package/dist/{BindingsPicker-BeNF1NcZ.js → BindingsPicker-BijILjQH.js} +4 -4
  5. package/dist/{BindingsTable-ecWz3SHk.js → BindingsTable-DlSpPTRi.js} +1 -1
  6. package/dist/{ClosingDraftView-DkxOW9Ns.js → ClosingDraftView-BaDkJuyF.js} +123 -123
  7. package/dist/{ClosingTemplateView-BbnpVNYF.js → ClosingTemplateView-CdESDzwA.js} +26 -26
  8. package/dist/{DeliveryOrderPrintPreview-CH-IzSM9.js → DeliveryOrderPrintPreview-Bwrd33F_.js} +9 -9
  9. package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DOR_Iu0w.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-QlB_K9Yi.js} +16 -16
  10. package/dist/{FmMultiselectDialog-DBgk0_mV.js → FmMultiselectDialog-CLxZbi3l.js} +4 -4
  11. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-DdxSlJRz.js → FmUnitInput.vue_vue_type_script_setup_true_lang-B6TbIvQI.js} +43 -43
  12. package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-C22gncaQ.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-CtLFZtQZ.js} +7 -7
  13. package/dist/{IngredientGroupView-CrNLRll8.js → IngredientGroupView-DXQ2TKjI.js} +13 -13
  14. package/dist/IngredientsView-FLCGHbsn.js +2467 -0
  15. package/dist/{IntegrationView-DRwnqCf9.js → IntegrationView-BKI0tf68.js} +24 -25
  16. package/dist/{InventoryBindingForm-DU6B0J0B.js → InventoryBindingForm-BGov_1MJ.js} +1 -1
  17. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-CLCDb25h.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-4IM7dQuV.js} +12 -12
  18. package/dist/{InventoryBindingSummary-BH2bWICt.js → InventoryBindingSummary-BQA0Sm_K.js} +1 -1
  19. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BD2hneTA.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-Bc5diF2E.js} +1 -1
  20. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-GabOf_-7.js → PremiumBadge.vue_vue_type_script_setup_true_lang-s529wQrr.js} +1 -1
  21. package/dist/{PublishView-B510iDYx.js → PublishView-DhZ5eMg0.js} +19 -19
  22. package/dist/{PurchaseOrderPrintPreview-Cbsl8gcZ.js → PurchaseOrderPrintPreview-cMNE8VTL.js} +7 -7
  23. package/dist/{ReceiveRequestView-rKyNjRbk.js → ReceiveRequestView-Cv-Cgi_o.js} +80 -80
  24. package/dist/{RecipeView-C9dw-1_E.js → RecipeView-ipT51Tbl.js} +39 -39
  25. package/dist/{StockView-scnHVHGB.js → StockView-CKok9_oG.js} +833 -830
  26. package/dist/SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-BnAwlQE1.js +172 -0
  27. package/dist/{SupplierView-to6stKYV.js → SupplierView-cGpKVDGP.js} +4 -4
  28. package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-laVp-HrL.js → TransferDetails.vue_vue_type_script_setup_true_lang-0ule7sK7.js} +11 -12
  29. package/dist/{TransferTemplateView-VOgIhPGW.js → TransferTemplateView-DrlLa0ed.js} +109 -109
  30. package/dist/{UnitView-sr5QkKex.js → UnitView-YFAtJ0CL.js} +16 -16
  31. package/dist/{WarehouseView-CB3luO1P.js → WarehouseView-CV5pg-4p.js} +16 -16
  32. package/dist/{app-BpyxIAaY.js → app-CUMtg_U0.js} +8610 -8548
  33. package/dist/app.js +1 -1
  34. package/dist/{closing-template-CEJaVQKn.js → closing-template-Cyva214n.js} +1 -1
  35. package/dist/components/FmInventoryTableToolbar.vue.d.ts +7 -0
  36. package/dist/components/netsuite/ItemSubsidiaryTreeDialog.vue.d.ts +16 -0
  37. package/dist/{decimal-Dqff6QMJ.js → decimal-117ZlAfM.js} +1 -1
  38. package/dist/{format-unit-display-DcORb0K7.js → format-unit-display-BXHj4DAV.js} +3 -3
  39. package/dist/{index-CFfIlNHC.js → index-Da1f9OoS.js} +1 -1
  40. package/dist/{index-rTyWq-0n.js → index-PWnt_za9.js} +1 -1
  41. package/dist/{purchase-order-template-BFPrzfeR.js → purchase-order-template-AWsxLxPR.js} +1 -1
  42. package/dist/{stock-CkgmiPOr.js → stock-D7EiEqJe.js} +1 -1
  43. package/dist/stores/integration/netsuite.d.ts +25 -3
  44. package/dist/style.css +1 -1
  45. package/dist/{supplier-Db_-hKgm.js → supplier-DQmyhp0R.js} +1 -1
  46. package/dist/tsconfig.app.tsbuildinfo +1 -1
  47. package/dist/{use-ingredient-select-dialog-CEEFJa9x.js → use-ingredient-select-dialog-C37DLY6c.js} +4 -4
  48. package/dist/{use-inventory-binding-dialog-C6Ev4777.js → use-inventory-binding-dialog-CmZereh8.js} +1 -1
  49. package/package.json +2 -2
  50. package/dist/FmAdminBadge-D4rqYlKu.js +0 -44
  51. package/dist/IngredientsView-DLK0Seww.js +0 -2319
  52. package/dist/SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-Dt1S8tTH.js +0 -158
@@ -0,0 +1,172 @@
1
+ import { defineComponent as I, computed as x, openBlock as l, createElementBlock as d, createElementVNode as e, normalizeClass as b, toDisplayString as u, unref as p, ref as D, resolveComponent as B, Fragment as $, createVNode as k, createCommentVNode as N, withCtx as C, renderList as E } from "vue";
2
+ import { useI18n as F, useCoreStore as A } from "@feedmepos/mf-common";
3
+ import { b as U } from "./app-CUMtg_U0.js";
4
+ function ee(o, n = !1) {
5
+ var c;
6
+ return o ? [
7
+ {
8
+ label: n ? o.abbrev : `1 ${o.name} (${o.abbrev})`,
9
+ abbrev: o.abbrev,
10
+ value: null
11
+ },
12
+ ...((c = o.measurements) == null ? void 0 : c.map((t) => ({
13
+ label: n ? t.abbrev : `1 ${t.name} (${t.abbrev})`,
14
+ abbrev: t.abbrev,
15
+ value: t.id
16
+ }))) ?? []
17
+ ] : [];
18
+ }
19
+ var y = /* @__PURE__ */ ((o) => (o.noInfo = "no-info", o.low = "low", o.mid = "mid", o.high = "high", o))(y || {});
20
+ const H = {
21
+ key: 0,
22
+ class: "flex"
23
+ }, O = {
24
+ key: 1,
25
+ class: "flex"
26
+ }, z = { class: "flex px-8 py-4 bg-fm-color-neutral-gray-100 fm-corner-radius-md gap-8" }, R = { class: "fm-typo-en-body-md-600 text-fm-color-typo-secondary" }, re = /* @__PURE__ */ I({
27
+ __name: "StockForecast",
28
+ props: {
29
+ days: {},
30
+ level: {}
31
+ },
32
+ setup(o) {
33
+ const n = o, { t: m } = F(), c = x(() => n.level ? n.level : typeof n.days != "number" ? y.noInfo : n.days > 14 ? y.high : n.days >= 7 && n.days <= 14 ? y.mid : y.low);
34
+ return (t, g) => typeof n.days == "number" ? (l(), d("div", H, [
35
+ e("div", {
36
+ class: b([
37
+ `fm-forecast-notification-${c.value}`,
38
+ "flex items-center gap-8 p-4 fm-corner-radius-md fm-typo-en-body-md-600"
39
+ ])
40
+ }, [
41
+ e("div", {
42
+ class: b([
43
+ "fm-forecast-notification-indicator",
44
+ `fm-forecast-notification-indicator-${c.value}`
45
+ ])
46
+ }, null, 2),
47
+ e("div", null, u(p(m)("inventory.stock.prediction.days", [n.days])), 1)
48
+ ], 2)
49
+ ])) : (l(), d("div", O, [
50
+ e("div", z, [
51
+ e("p", R, u(p(m)("inventory.stock.prediction.noData")), 1)
52
+ ])
53
+ ]));
54
+ }
55
+ }), Y = {
56
+ key: 0,
57
+ class: "flex items-center gap-8"
58
+ }, j = { class: "flex flex-col" }, q = { class: "fm-typo-en-heading-lg-600" }, G = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, J = {
59
+ key: 0,
60
+ class: "fm-typo-en-body-md-400 text-fm-color-system-warning-300"
61
+ }, K = {
62
+ key: 1,
63
+ class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
64
+ }, M = { class: "flex flex-col" }, Q = { class: "flex flex-col bg-fm-color-bg-secondary font-mono p-4 rounded-md" }, W = { class: "text-fm-color-typo-tertiary flex-shrink-0 fm-typo-en-body-md-400 whitespace-pre flex items-center" }, se = /* @__PURE__ */ I({
65
+ __name: "SubsidiaryTreeDialog",
66
+ setup(o) {
67
+ const n = D(!1), { t: m } = F(), c = A(), t = U(), g = x(() => {
68
+ var i;
69
+ return ((i = c.sessionUser.value) == null ? void 0 : i.role.isAdmin) ?? !1;
70
+ });
71
+ function h(i, r = [], a = []) {
72
+ const f = [];
73
+ return i.forEach((s, V) => {
74
+ const S = V === i.length - 1, P = [...r, S];
75
+ let v = "";
76
+ for (let _ = 0; _ < r.length; _++)
77
+ v += r[_] ? " " : "│ ";
78
+ v += S ? "└── " : "├── ", f.push({
79
+ id: s.id,
80
+ name: s.name,
81
+ prefix: r.length === 0 ? "" : v,
82
+ isCurrentBusiness: s.id === t.businessSubsidiaryId,
83
+ isRoot: r.length === 0,
84
+ isInPath: a.includes(s.id)
85
+ }), s.children && s.children.length > 0 && f.push(...h(s.children, P, a));
86
+ }), f;
87
+ }
88
+ function w(i, r) {
89
+ return i.map((a) => r.includes(a.id) ? {
90
+ ...a,
91
+ // Recursively filter children
92
+ children: a.children ? w(a.children, r) : []
93
+ } : null).filter(Boolean);
94
+ }
95
+ const T = x(() => {
96
+ if (!t.businessSubsidiaryId)
97
+ return [];
98
+ const i = t.getBusinessSubsidiaryTree(), r = t.getBusinessSubsidiaryPath();
99
+ if (g.value)
100
+ return h(i, [], r);
101
+ const a = w(i, r);
102
+ return h(a, [], r);
103
+ });
104
+ return (i, r) => {
105
+ const a = B("FmButton"), f = B("FmDialog");
106
+ return l(), d($, null, [
107
+ p(t).isEnabled ? (l(), d("div", Y, [
108
+ k(a, {
109
+ "prepend-icon": "info",
110
+ variant: "tertiary",
111
+ onClick: r[0] || (r[0] = (s) => n.value = !0)
112
+ })
113
+ ])) : N("", !0),
114
+ k(f, {
115
+ modelValue: n.value,
116
+ "onUpdate:modelValue": r[1] || (r[1] = (s) => n.value = s),
117
+ "close-button": "",
118
+ dismissAway: ""
119
+ }, {
120
+ "dialog-header": C(() => [
121
+ e("div", j, [
122
+ e("div", q, u(p(m)("inventory.integration.netsuite.subsidiaryHierarchy.title")), 1),
123
+ e("p", G, u(p(m)("inventory.integration.netsuite.subsidiaryHierarchy.description")), 1),
124
+ g.value ? (l(), d("p", J, " All subsidiaries are shown since you are an admin. ")) : (l(), d("p", K, " Only showing subsidiaries in your business path. ")),
125
+ r[2] || (r[2] = e("div", { class: "flex flex-wrap gap-2 mt-4" }, [
126
+ e("div", { class: "flex items-center gap-2 px-2 py-1 bg-fm-color-bg-brand-secondary rounded-md" }, [
127
+ e("span", { class: "w-3 h-3 rounded-sm bg-green-400" }),
128
+ e("span", { class: "fm-typo-en-body-sm-400" }, "Your Business")
129
+ ]),
130
+ e("div", { class: "flex items-center gap-2 px-2 py-1 bg-fm-color-bg-primary rounded-md border border-fm-color-border-secondary" }, [
131
+ e("span", { class: "w-3 h-3 rounded-sm bg-gray-200 border-2 border-gray-400" }),
132
+ e("span", { class: "fm-typo-en-body-sm-400" }, "Parent Subsidiary")
133
+ ])
134
+ ], -1))
135
+ ])
136
+ ]),
137
+ default: C(() => [
138
+ e("div", M, [
139
+ e("div", Q, [
140
+ (l(!0), d($, null, E(T.value, (s) => (l(), d("div", {
141
+ key: s.id,
142
+ class: "flex items-stretch"
143
+ }, [
144
+ e("span", W, u(s.prefix), 1),
145
+ e("div", {
146
+ class: b([
147
+ "px-2 py-1 rounded-md flex-1",
148
+ s.isCurrentBusiness ? "border-2 bg-green-200 border-green-400" : s.isInPath ? "border-2 bg-gray-200 border-gray-400" : "bg-fm-color-bg-primary border border-fm-color-border-secondary"
149
+ ])
150
+ }, [
151
+ e("span", {
152
+ class: b([
153
+ s.isCurrentBusiness || s.isInPath ? "fm-typo-en-body-md-600 text-fm-color-typo-primary" : "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
154
+ ])
155
+ }, u(s.name), 3)
156
+ ], 2)
157
+ ]))), 128))
158
+ ])
159
+ ])
160
+ ]),
161
+ _: 1
162
+ }, 8, ["modelValue"])
163
+ ], 64);
164
+ };
165
+ }
166
+ });
167
+ export {
168
+ y as S,
169
+ re as _,
170
+ se as a,
171
+ ee as g
172
+ };
@@ -1,11 +1,11 @@
1
1
  import { defineComponent as ae, mergeModels as Hd, computed as E, useModel as ed, resolveComponent as L, openBlock as S, createElementBlock as w, createElementVNode as h, createVNode as P, withCtx as U, toDisplayString as T, unref as p, Fragment as ne, renderList as $e, ref as k, createBlock as J, createCommentVNode as W, createTextVNode as wd, isRef as dd, normalizeClass as oe, watch as Ad, createSlots as jd, normalizeStyle as Kd, Teleport as Wd } from "vue";
2
- import { u as ue } from "./supplier-Db_-hKgm.js";
3
- import { b as De, h as Yd, D as td, i as me, f as Fe, a as ke, q as rd, r as nd, l as Xd, s as Zd, C as Td, u as _e, o as q, c as Pe, e as H, w as qd, y as Rd, z as zd, B as Md, E as Jd, G as Qd, H as et, K as dt, L as tt, O as rt, P as nt, Q as ye } from "./app-BpyxIAaY.js";
2
+ import { u as ue } from "./supplier-DQmyhp0R.js";
3
+ import { b as De, i as Yd, D as td, j as me, f as Fe, a as ke, r as rd, s as nd, m as Xd, v as Zd, E as Td, u as _e, p as q, c as Pe, e as H, x as qd, z as Rd, B as zd, C as Md, G as Jd, H as Qd, J as et, L as dt, O as tt, P as rt, Q as nt, T as ye } from "./app-CUMtg_U0.js";
4
4
  import { useI18n as ee, useCoreStore as Ce } from "@feedmepos/mf-common";
5
5
  import { useDialog as Ne, useSnackbar as Se, useProxiedModel as od, useDialogChild as ot, useBreakpoints as at } from "@feedmepos/ui-library";
6
6
  import { _ as it } from "./PreviewBadge.vue_vue_type_script_setup_true_lang-CRZiQHjx.js";
7
- import { _ as $t } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-DdxSlJRz.js";
8
- import { u as lt } from "./purchase-order-template-BFPrzfeR.js";
7
+ import { _ as $t } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-B6TbIvQI.js";
8
+ import { u as lt } from "./purchase-order-template-AWsxLxPR.js";
9
9
  import { defineStore as st } from "pinia";
10
10
  function ut(e, d) {
11
11
  const { t } = ee(), r = De();
@@ -1,14 +1,13 @@
1
- import { a7 as mt, u as _e, aV as F, aW as Ge, aF as Z, c as Fe, b as We, af as xt, ah as wt, ai as $t, aX as Rt, e as it, f as pt, a5 as rt, aY as kt, ac as ft, $ as yt, k as ye, aa as Dt, aZ as vt, am as je, h as ct, i as me, D as ve, a_ as ht, a$ as bt, b0 as Ee, V as gt, a8 as Ue, a9 as ze, ae as Ve, Z as De, t as ut, aD as Te, b1 as Qe, b2 as ke } from "./app-BpyxIAaY.js";
1
+ import { a8 as mt, u as _e, aW as F, aX as Ge, aG as Z, c as Fe, b as We, ag as xt, ai as wt, aj as $t, aY as Rt, e as it, f as pt, a6 as rt, aZ as kt, ad as ft, a0 as yt, l as ye, ab as Dt, a_ as vt, an as je, h as qe, i as ct, j as me, D as ve, a$ as ht, b0 as bt, b1 as Ee, W as gt, a9 as Ue, aa as ze, af as Ve, $ as De, t as ut, aE as Te, b2 as Qe, b3 as ke } from "./app-CUMtg_U0.js";
2
2
  import { ref as Y, computed as H, h as P, defineComponent as Se, reactive as Nt, onMounted as _t, resolveComponent as G, openBlock as f, createBlock as le, withCtx as X, createElementVNode as e, createVNode as I, unref as h, createElementBlock as x, toDisplayString as _, createCommentVNode as M, Fragment as ue, renderList as be, createTextVNode as Ne, normalizeClass as Be, watch as Ct, isRef as At, resolveDynamicComponent as Tt } from "vue";
3
- import { F as qt } from "./decimal-Dqff6QMJ.js";
3
+ import { F as qt } from "./decimal-117ZlAfM.js";
4
4
  import { useCoreStore as Me, useI18n as st } from "@feedmepos/mf-common";
5
5
  import { useDialog as Ye, useSnackbar as Pe, components as Ke, FmButtonVariant as fe, useProxiedModel as Ft } from "@feedmepos/ui-library";
6
- import { F as qe } from "./FmAdminBadge-D4rqYlKu.js";
7
- import { a as Pt, u as It, P as Ce, f as Et } from "./format-unit-display-DcORb0K7.js";
6
+ import { a as Pt, u as It, P as Ce, f as Et } from "./format-unit-display-BXHj4DAV.js";
8
7
  import { E as Lt } from "./empty-placeholder-wf6-BWE8.js";
9
- import { _ as Vt, F as Bt, a as Ut } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-DdxSlJRz.js";
8
+ import { _ as Vt, F as Bt, a as Ut } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-B6TbIvQI.js";
10
9
  import { u as Mt, R as dt } from "./usePromise-CbVUCxhj.js";
11
- import { u as jt } from "./index-rTyWq-0n.js";
10
+ import { u as jt } from "./index-PWnt_za9.js";
12
11
  const Ie = mt((g, r) => {
13
12
  const o = _e(), p = Me();
14
13
  return {
@@ -200,7 +199,7 @@ function Ot() {
200
199
  }
201
200
  var tt = /* @__PURE__ */ ((g) => (g.RECEIVE_REQUEST = "receive/request", g.APPROVAL = "approval", g))(tt || {});
202
201
  const Le = Y(), Xe = Y();
203
- function gn(g, r) {
202
+ function bn(g, r) {
204
203
  const o = Ye(), p = _e(), a = Fe();
205
204
  We();
206
205
  const n = Pt(), l = It(), s = Y(!1), i = Pe(), O = Ie(), $ = zt(), b = Y(new Array()), q = Y(new Array()), u = Y(
@@ -590,7 +589,7 @@ const Ae = {
590
589
  value: F.enum.returnStock
591
590
  }
592
591
  };
593
- function _n(g, r, o) {
592
+ function gn(g, r, o) {
594
593
  const p = _e(), a = We(), n = Me(), { t: l } = st();
595
594
  function s(u) {
596
595
  switch (u.status) {
@@ -2138,7 +2137,7 @@ const Jt = { class: "flex flex-row-reverse" }, er = /* @__PURE__ */ Se({
2138
2137
  }, tn = { class: "flex-1 flex flex-col items-center" }, rn = {
2139
2138
  class: "py-12 flex flex-col gap-4 flex-1",
2140
2139
  name: "delivery details"
2141
- }, sn = { class: "flex flex-col gap-8" }, on = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, nn = { class: "flex flex-col gap-4" }, an = { class: "flex gap-8 xs:flex-col" }, Sn = /* @__PURE__ */ Se({
2140
+ }, sn = { class: "flex flex-col gap-8" }, on = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, nn = { class: "flex flex-col gap-4" }, an = { class: "flex gap-8 xs:flex-col" }, _n = /* @__PURE__ */ Se({
2142
2141
  __name: "TransferDetails",
2143
2142
  props: {
2144
2143
  poRequest: {},
@@ -3050,9 +3049,9 @@ const Jt = { class: "flex flex-row-reverse" }, er = /* @__PURE__ */ Se({
3050
3049
  });
3051
3050
  export {
3052
3051
  tt as P,
3053
- Sn as _,
3054
- gn as a,
3055
- _n as b,
3052
+ _n as _,
3053
+ bn as a,
3054
+ gn as b,
3056
3055
  Ht as g,
3057
3056
  Ie as u
3058
3057
  };