@feedmepos/mf-inventory-portal 1.2.8-dev.1 → 1.2.8

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 (46) hide show
  1. package/dist/{App-BL2MW6zc.js → App-D1IJlQS8.js} +1 -1
  2. package/dist/{ApprovalView-C18JNyKG.js → ApprovalView-GnDYWZHY.js} +2 -2
  3. package/dist/{BindingsDialog-DxXGq2TK.js → BindingsDialog-Bs00N9mp.js} +2 -2
  4. package/dist/{BindingsPicker-BsuXkTQv.js → BindingsPicker-LO15pMdZ.js} +1 -1
  5. package/dist/{BindingsTable-BeGm5MK6.js → BindingsTable-g27KG9q4.js} +1 -1
  6. package/dist/{ClosingDraftView-yzzV-yhQ.js → ClosingDraftView-Ddsgcrmg.js} +2 -2
  7. package/dist/{ClosingTemplateView-DgI8ANjn.js → ClosingTemplateView-G8Ya81UZ.js} +3 -3
  8. package/dist/{DeliveryOrderPrintPreview-B3xmuRAQ.js → DeliveryOrderPrintPreview-qq1rhFKV.js} +1 -1
  9. package/dist/{FmAdminBadge-9bTzCMaP.js → FmAdminBadge-B2NpMmJi.js} +1 -1
  10. package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-B1pioWnC.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-C1i9CHE1.js} +3 -3
  11. package/dist/{FmMultiselectDialog-D4QIUWaf.js → FmMultiselectDialog-u2dbuZUp.js} +1 -1
  12. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-CwuM-hJU.js → FmUnitInput.vue_vue_type_script_setup_true_lang-vpiiv6C1.js} +1 -1
  13. package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-BFeK6K0l.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-3T-d1pIb.js} +1 -1
  14. package/dist/{IngredientGroupView-Ku7t3MgL.js → IngredientGroupView-CqB73-e4.js} +2 -2
  15. package/dist/{IngredientsView-CAn1-40w.js → IngredientsView-Cq42ytcN.js} +673 -688
  16. package/dist/{IntegrationView-DEtbdogx.js → IntegrationView-OHnUGZst.js} +4 -4
  17. package/dist/{InventoryBindingForm-BqBGbblS.js → InventoryBindingForm-DorgxR-Y.js} +1 -1
  18. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-CpVc2nGE.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-CZy77tY7.js} +3 -3
  19. package/dist/{InventoryBindingSummary-dEM8P354.js → InventoryBindingSummary-B_YavyPb.js} +1 -1
  20. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-0AaD13Wg.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-XuEDo134.js} +1 -1
  21. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-BqVwcG4Z.js → PremiumBadge.vue_vue_type_script_setup_true_lang-Blq1oE5l.js} +1 -1
  22. package/dist/{PublishView-CE2Ul9NM.js → PublishView-Ds_ztGcV.js} +1 -1
  23. package/dist/{PurchaseOrderPrintPreview-C6Lg4V4I.js → PurchaseOrderPrintPreview-DnyqN_xE.js} +1 -1
  24. package/dist/{ReceiveRequestView-CDTT3m48.js → ReceiveRequestView-ChpKsDaF.js} +8 -8
  25. package/dist/{RecipeView-CROKnpq9.js → RecipeView-Dyp9Xcme.js} +3 -3
  26. package/dist/StockForecast.vue_vue_type_style_index_0_lang-KLXSWvo5.js +59 -0
  27. package/dist/{StockView-Wv700Rt6.js → StockView-D-iP52Zw.js} +679 -694
  28. package/dist/{SupplierView-BNWtlH7a.js → SupplierView-BaEK3C8q.js} +4 -4
  29. package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-BvzSua6d.js → TransferDetails.vue_vue_type_script_setup_true_lang-B_ravTwn.js} +6 -6
  30. package/dist/{TransferTemplateView-DlxBMSPW.js → TransferTemplateView-3zS7hNZz.js} +7 -7
  31. package/dist/{UnitView-B56YIwiR.js → UnitView-BP5eztAG.js} +3 -3
  32. package/dist/{WarehouseView-C0d-uE4n.js → WarehouseView-DMY7Lgwq.js} +1 -1
  33. package/dist/{app-Bo3plhvb.js → app-P6XaUzjP.js} +14 -14
  34. package/dist/app.js +1 -1
  35. package/dist/{closing-template-ByR3kWir.js → closing-template-BGYZPBty.js} +1 -1
  36. package/dist/{decimal-YpqAHWnk.js → decimal-wz5HXhQ8.js} +1 -1
  37. package/dist/{format-unit-display-CpusApo9.js → format-unit-display-DOOJqLop.js} +3 -3
  38. package/dist/{index-CJTjmcUN.js → index-CHTB43Wl.js} +1 -1
  39. package/dist/{index-BHD7bEuA.js → index-oR0svfBM.js} +1 -1
  40. package/dist/{purchase-order-template-CNhjKd6p.js → purchase-order-template-BGunGekw.js} +1 -1
  41. package/dist/{stock-BhgeS5mL.js → stock-TJayQnag.js} +1 -1
  42. package/dist/{supplier-DG8JyhMj.js → supplier-C_vqpE92.js} +1 -1
  43. package/dist/{use-ingredient-select-dialog-LIEBAng-.js → use-ingredient-select-dialog-CIahwuTX.js} +1 -1
  44. package/dist/{use-inventory-binding-dialog-Df7DfQ1b.js → use-inventory-binding-dialog-BiKRXVhY.js} +1 -1
  45. package/package.json +2 -2
  46. package/dist/SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-BdtRkUS6.js +0 -158
package/dist/app.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import "vue";
2
- import { bk as a, bl as e, bm as o, bj as m, bn as t, a as i } from "./app-Bo3plhvb.js";
2
+ import { bk as a, bl as e, bm as o, bj as m, bn as t, a as i } from "./app-P6XaUzjP.js";
3
3
  export {
4
4
  a as FmApp,
5
5
  e as InventoryBindingForm,
@@ -1,4 +1,4 @@
1
- import { a6 as c } from "./app-Bo3plhvb.js";
1
+ import { a6 as c } from "./app-P6XaUzjP.js";
2
2
  import { useCoreStore as l } from "@feedmepos/mf-common";
3
3
  const p = c((r, s) => {
4
4
  function o() {
@@ -1,4 +1,4 @@
1
- import "./app-Bo3plhvb.js";
1
+ import "./app-P6XaUzjP.js";
2
2
  function m(a) {
3
3
  function t(o, n = !0) {
4
4
  const e = Math.round(Math.log10(o));
@@ -1,11 +1,11 @@
1
- import { a as q, Z as Ae, an as U, z as Ne, ao as ye, B as he, u as Z, k as L, C as De, x as le, E as ve, b as te, t as G, w as J, aQ as Oe, aI as Fe, a4 as Pe, G as Me, H as Ue, ap as Le, e as ce, f as re, R as me, s as Be, al as Qe, D as j, i as N, h as He } from "./app-Bo3plhvb.js";
1
+ import { a as q, Z as Ae, an as U, z as Ne, ao as ye, B as he, u as Z, k as L, C as De, x as le, E as ve, b as te, t as G, w as J, aQ as Oe, aI as Fe, a4 as Pe, G as Me, H as Ue, ap as Le, e as ce, f as re, R as me, s as Be, al as Qe, D as j, i as N, h as He } from "./app-P6XaUzjP.js";
2
2
  import { useCoreStore as ge, useI18n as ne } from "@feedmepos/mf-common";
3
3
  import { useDialogChild as Ve, useSnackbar as be, useDialog as qe, FmButtonVariant as z, components as X } from "@feedmepos/ui-library";
4
4
  import { defineStore as xe } from "pinia";
5
- import { u as Se } from "./purchase-order-template-CNhjKd6p.js";
5
+ import { u as Se } from "./purchase-order-template-BGunGekw.js";
6
6
  import { defineComponent as oe, resolveComponent as Q, openBlock as _, createElementBlock as E, createElementVNode as C, normalizeClass as H, createTextVNode as je, toDisplayString as D, unref as A, createCommentVNode as V, createVNode as P, withCtx as ee, Fragment as B, renderList as Y, ref as R, onMounted as ze, computed as ue, watch as Ke, createSlots as Ye, createBlock as K, h as W } from "vue";
7
7
  import { useRouter as We } from "vue-router";
8
- import { u as ae } from "./supplier-DG8JyhMj.js";
8
+ import { u as ae } from "./supplier-C_vqpE92.js";
9
9
  function Te(e) {
10
10
  const t = q(), a = e.sku, u = t.skuById[a._id];
11
11
  if (u.unit._id !== a.unit._id) return !0;
@@ -1,4 +1,4 @@
1
- import { b3 as x, bb as V, bc as q, bd as Ne, be as cl, bf as sr, bg as Lt, bh as fl, bi as $l } from "./app-Bo3plhvb.js";
1
+ import { b3 as x, bb as V, bc as q, bd as Ne, be as cl, bf as sr, bg as Lt, bh as fl, bi as $l } from "./app-P6XaUzjP.js";
2
2
  function vl(t, e) {
3
3
  for (var r = 0; r < e.length; r++) {
4
4
  const n = e[r];
@@ -1,5 +1,5 @@
1
1
  import { ref as b, computed as u } from "vue";
2
- import { u as d, b4 as p, aW as v, c as m, b as h } from "./app-Bo3plhvb.js";
2
+ import { u as d, b4 as p, aW as v, c as m, b as h } from "./app-P6XaUzjP.js";
3
3
  import { useSnackbar as E } from "@feedmepos/ui-library";
4
4
  function I() {
5
5
  return {
@@ -1,4 +1,4 @@
1
- import { a6 as s } from "./app-Bo3plhvb.js";
1
+ import { a6 as s } from "./app-P6XaUzjP.js";
2
2
  import { useCoreStore as c } from "@feedmepos/mf-common";
3
3
  const u = s((n, a) => {
4
4
  function o() {
@@ -1,4 +1,4 @@
1
- import { a6 as m, u as k, a as l, ax as B, Z as p } from "./app-Bo3plhvb.js";
1
+ import { a6 as m, u as k, a as l, ax as B, Z as p } from "./app-P6XaUzjP.js";
2
2
  import { useCoreStore as v } from "@feedmepos/mf-common";
3
3
  import { useSnackbar as $ } from "@feedmepos/ui-library";
4
4
  import { ref as y, computed as b } from "vue";
@@ -1,4 +1,4 @@
1
- import { a6 as m, u, c as b, C as w, ay as v, az as $ } from "./app-Bo3plhvb.js";
1
+ import { a6 as m, u, c as b, C as w, ay as v, az as $ } from "./app-P6XaUzjP.js";
2
2
  import { useCoreStore as c } from "@feedmepos/mf-common";
3
3
  import { defineStore as A } from "pinia";
4
4
  import { ref as l, computed as d } from "vue";
@@ -1,5 +1,5 @@
1
1
  import { defineStore as y } from "pinia";
2
- import { a as S, s as b } from "./app-Bo3plhvb.js";
2
+ import { a as S, s as b } from "./app-P6XaUzjP.js";
3
3
  import { useDialog as A } from "@feedmepos/ui-library";
4
4
  import { useI18n as I } from "@feedmepos/mf-common";
5
5
  const h = y(
@@ -1,4 +1,4 @@
1
- import { a as P, s as g } from "./app-Bo3plhvb.js";
1
+ import { a as P, s as g } from "./app-P6XaUzjP.js";
2
2
  import { useDialog as E } from "@feedmepos/ui-library";
3
3
  function B() {
4
4
  const u = P(), _ = E();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@feedmepos/mf-inventory-portal",
3
- "version": "1.2.8-dev.1",
3
+ "version": "1.2.8",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"
@@ -43,9 +43,9 @@
43
43
  "vue-i18n": "^10.0.5",
44
44
  "vue-router": "^4.4.0",
45
45
  "xlsx": "^0.18.5",
46
- "@feedmepos/inventory-core-2": "^2.0.0",
47
46
  "@feedmepos/inventory-core": "^1.0.1-dev.2",
48
47
  "@feedmepos/inventory-core-dart": "^1.0.0",
48
+ "@feedmepos/inventory-core-2": "^2.0.0",
49
49
  "@feedmepos/inventory-core-js": "^1.0.1",
50
50
  "@feedmepos/netsuite-core": "^1.0.0",
51
51
  "@feedmepos/zod-inventory": "^1.0.12"
@@ -1,158 +0,0 @@
1
- import { defineComponent as T, computed as x, openBlock as c, createElementBlock as d, createElementVNode as s, normalizeClass as b, toDisplayString as u, unref as p, ref as P, resolveComponent as k, Fragment as B, createVNode as C, createCommentVNode as w, withCtx as I, createTextVNode as E, renderList as U } from "vue";
2
- import { useI18n as V, useCoreStore as A } from "@feedmepos/mf-common";
3
- import { b as H } from "./app-Bo3plhvb.js";
4
- function L(o, r = !1) {
5
- var l;
6
- return o ? [
7
- {
8
- label: r ? o.abbrev : `1 ${o.name} (${o.abbrev})`,
9
- abbrev: o.abbrev,
10
- value: null
11
- },
12
- ...((l = o.measurements) == null ? void 0 : l.map((n) => ({
13
- label: r ? n.abbrev : `1 ${n.name} (${n.abbrev})`,
14
- abbrev: n.abbrev,
15
- value: n.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 z = {
21
- key: 0,
22
- class: "flex"
23
- }, O = {
24
- key: 1,
25
- class: "flex"
26
- }, R = { class: "flex px-8 py-4 bg-fm-color-neutral-gray-100 fm-corner-radius-md gap-8" }, j = { class: "fm-typo-en-body-md-600 text-fm-color-typo-secondary" }, ee = /* @__PURE__ */ T({
27
- __name: "StockForecast",
28
- props: {
29
- days: {},
30
- level: {}
31
- },
32
- setup(o) {
33
- const r = o, { t: f } = V(), l = x(() => r.level ? r.level : typeof r.days != "number" ? y.noInfo : r.days > 14 ? y.high : r.days >= 7 && r.days <= 14 ? y.mid : y.low);
34
- return (n, h) => typeof r.days == "number" ? (c(), d("div", z, [
35
- s("div", {
36
- class: b([
37
- `fm-forecast-notification-${l.value}`,
38
- "flex items-center gap-8 p-4 fm-corner-radius-md fm-typo-en-body-md-600"
39
- ])
40
- }, [
41
- s("div", {
42
- class: b([
43
- "fm-forecast-notification-indicator",
44
- `fm-forecast-notification-indicator-${l.value}`
45
- ])
46
- }, null, 2),
47
- s("div", null, u(p(f)("inventory.stock.prediction.days", [r.days])), 1)
48
- ], 2)
49
- ])) : (c(), d("div", O, [
50
- s("div", R, [
51
- s("p", j, u(p(f)("inventory.stock.prediction.noData")), 1)
52
- ])
53
- ]));
54
- }
55
- }), q = {
56
- key: 0,
57
- class: "flex items-center gap-8"
58
- }, G = { class: "flex flex-col" }, J = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, K = {
59
- key: 0,
60
- class: "fm-typo-en-body-md-400 text-fm-color-system-warning-300"
61
- }, M = { class: "flex flex-col" }, Q = { class: "flex flex-col bg-fm-color-bg-secondary font-mono" }, W = { class: "text-fm-color-typo-tertiary flex-shrink-0 fm-typo-en-body-md-400 whitespace-pre flex items-center" }, te = /* @__PURE__ */ T({
62
- __name: "SubsidiaryTreeDialog",
63
- setup(o) {
64
- const r = P(!1), { t: f } = V(), l = A(), n = H(), h = x(() => {
65
- var i;
66
- return ((i = l.sessionUser.value) == null ? void 0 : i.role.isAdmin) ?? !1;
67
- });
68
- function v(i, e = [], a = []) {
69
- const m = [];
70
- return i.forEach((t, N) => {
71
- const $ = N === i.length - 1, D = [...e, $];
72
- let _ = "";
73
- for (let g = 0; g < e.length; g++)
74
- _ += e[g] ? " " : "│ ";
75
- _ += $ ? "└── " : "├── ", m.push({
76
- id: t.id,
77
- name: t.name,
78
- prefix: e.length === 0 ? "" : _,
79
- isCurrentBusiness: t.id === n.businessSubsidiaryId,
80
- isRoot: e.length === 0,
81
- isInPath: a.includes(t.id)
82
- }), t.children && t.children.length > 0 && m.push(...v(t.children, D, a));
83
- }), m;
84
- }
85
- function S(i, e) {
86
- return i.map((a) => e.includes(a.id) ? {
87
- ...a,
88
- // Recursively filter children
89
- children: a.children ? S(a.children, e) : []
90
- } : null).filter(Boolean);
91
- }
92
- const F = x(() => {
93
- if (!n.businessSubsidiaryId)
94
- return [];
95
- const i = n.getBusinessSubsidiaryTree(), e = n.getBusinessSubsidiaryPath();
96
- if (h.value)
97
- return v(i, [], e);
98
- const a = S(i, e);
99
- return v(a, [], e);
100
- });
101
- return (i, e) => {
102
- const a = k("FmButton"), m = k("FmDialog");
103
- return c(), d(B, null, [
104
- p(n).isEnabled ? (c(), d("div", q, [
105
- C(a, {
106
- "prepend-icon": "info",
107
- variant: "tertiary",
108
- onClick: e[0] || (e[0] = (t) => r.value = !0)
109
- })
110
- ])) : w("", !0),
111
- C(m, {
112
- modelValue: r.value,
113
- "onUpdate:modelValue": e[1] || (e[1] = (t) => r.value = t),
114
- "close-button": ""
115
- }, {
116
- "dialog-header": I(() => [
117
- s("div", G, [
118
- E(u(p(f)("inventory.integration.netsuite.subsidiaryHierarchy.title")) + " ", 1),
119
- s("p", J, u(p(f)("inventory.integration.netsuite.subsidiaryHierarchy.description")), 1),
120
- h.value ? (c(), d("p", K, " All subsidiaries are shown since you are an admin. ")) : w("", !0)
121
- ])
122
- ]),
123
- default: I(() => [
124
- s("div", M, [
125
- s("div", Q, [
126
- (c(!0), d(B, null, U(F.value, (t) => (c(), d("div", {
127
- key: t.id,
128
- class: "flex"
129
- }, [
130
- s("span", W, u(t.prefix), 1),
131
- s("div", {
132
- class: b([
133
- "flex flex-col",
134
- t.isInPath ? "border-fm-color-border-brand-primary bg-fm-color-bg-brand-tertiary" : "border-fm-color-border-secondary bg-fm-color-bg-primary"
135
- ])
136
- }, [
137
- s("span", {
138
- class: b([
139
- t.isCurrentBusiness ? "fm-typo-en-body-lg-600 text-fm-color-typo-primary" : t.isInPath ? "fm-typo-en-body-md-600 text-fm-color-typo-primary" : "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
140
- ])
141
- }, u(t.name), 3)
142
- ], 2)
143
- ]))), 128))
144
- ])
145
- ])
146
- ]),
147
- _: 1
148
- }, 8, ["modelValue"])
149
- ], 64);
150
- };
151
- }
152
- });
153
- export {
154
- y as S,
155
- ee as _,
156
- te as a,
157
- L as g
158
- };