@feedmepos/mf-inventory-portal 0.0.25-dev.20 → 0.0.25-dev.21

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 (42) hide show
  1. package/dist/App-D6WBVERc.js +278 -0
  2. package/dist/{ApprovalView-BnTD6HJE.js → ApprovalView-BIBoagE8.js} +2 -2
  3. package/dist/{BindingsDialog-DLLq9cDi.js → BindingsDialog-DHRRkK1Z.js} +2 -2
  4. package/dist/{BindingsPicker-NXJruTzV.js → BindingsPicker-DohvMDDF.js} +1 -1
  5. package/dist/{BindingsTable-Bs211Phb.js → BindingsTable-C_JwU9ei.js} +1 -1
  6. package/dist/{ClosingDraftView-B4_2-44Y.js → ClosingDraftView-BBebhUj-.js} +2 -2
  7. package/dist/{ClosingTemplateView-Db6Fn2kD.js → ClosingTemplateView-CXRN19-D.js} +2 -2
  8. package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-YNtFlw4B.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BJufUQNE.js} +3 -3
  9. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-jnn4TF71.js → FmUnitInput.vue_vue_type_script_setup_true_lang-C5Xk19jY.js} +1 -1
  10. package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-nP9OAqMD.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-7HNI82u-.js} +1 -1
  11. package/dist/{IngredientGroupView-Bc2_n2PG.js → IngredientGroupView-l2bAc1Kj.js} +1 -1
  12. package/dist/{IngredientsView-BePK8LAK.js → IngredientsView-zDXt7KEx.js} +4 -4
  13. package/dist/{IntegrationView-CfpQDaZj.js → IntegrationView-BYnlAPrP.js} +1 -1
  14. package/dist/{InventoryBindingForm-BiwiGKsQ.js → InventoryBindingForm-BuweG4Vl.js} +1 -1
  15. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-DgOJi8Lz.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-DgxN0U4N.js} +3 -3
  16. package/dist/{InventoryBindingSummary-CIMPOjDM.js → InventoryBindingSummary-BpEo0JsK.js} +1 -1
  17. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-B-XKuP8P.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CcjzkzCt.js} +1 -1
  18. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-45qs9f6I.js → PremiumBadge.vue_vue_type_script_setup_true_lang-Ej20iSHA.js} +1 -1
  19. package/dist/{PublishView-DgtRnkwT.js → PublishView-DCZ0zIaP.js} +2 -2
  20. package/dist/{PurchaseOrderPrintPreview-Cp_Ye4dK.js → PurchaseOrderPrintPreview-Cag7UEvz.js} +1 -1
  21. package/dist/{ReceiveRequestView-oe1V_bVC.js → ReceiveRequestView-ChIJGA98.js} +9 -9
  22. package/dist/{RecipeView-Dy6W78uU.js → RecipeView-bBshe0eF.js} +3 -3
  23. package/dist/{StockView-D2kDteQe.js → StockView-D6-oKpAC.js} +7 -7
  24. package/dist/{SupplierView-rNltG4Fy.js → SupplierView-dyIcGp9Q.js} +4 -4
  25. package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-C_7wbQow.js +1771 -0
  26. package/dist/{TransferTemplateView-PcJvtsk4.js → TransferTemplateView-D2rxV0k_.js} +7 -7
  27. package/dist/{UnitView-BSWzk_pn.js → UnitView-DVS5Az5c.js} +3 -3
  28. package/dist/{WarehouseView-Dh-Q19A6.js → WarehouseView-CR03TpnA.js} +1 -1
  29. package/dist/{app-Dyd8pohX.js → app-oV9ISfFL.js} +10 -10
  30. package/dist/app.js +1 -1
  31. package/dist/{decimal-aSw2Jae-.js → decimal-C7zgfr5G.js} +1 -1
  32. package/dist/{feature-BdLkjjxs.js → feature-CDQQ-mV9.js} +1 -1
  33. package/dist/{format-unit-display-Ca92KbGT.js → format-unit-display-CVBzrNQ4.js} +2 -2
  34. package/dist/{index-Cvl2NcJ7.js → index-0VS4cuk3.js} +2 -2
  35. package/dist/{stock-CvQLThK4.js → stock-BIP_NIK_.js} +1 -1
  36. package/dist/{supplier-C5hvXTbC.js → supplier-DUQ2VSMg.js} +1 -1
  37. package/dist/{use-ingredient-select-dialog-BP_mP7e_.js → use-ingredient-select-dialog-VkU5_Aaj.js} +1 -1
  38. package/dist/{use-inventory-binding-dialog-C_bBts1K.js → use-inventory-binding-dialog-BXp0z3v_.js} +1 -1
  39. package/dist/{vue-i18n-Clx6r-KT.js → vue-i18n-CCd5_SRR.js} +250 -250
  40. package/package.json +1 -1
  41. package/dist/App-oGRS_PEV.js +0 -277
  42. package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-CX9l0sM4.js +0 -1769
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@feedmepos/mf-inventory-portal",
3
- "version": "0.0.25-dev.20",
3
+ "version": "0.0.25-dev.21",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"
@@ -1,277 +0,0 @@
1
- import { ref as x, onUnmounted as F, defineComponent as h, watch as P, onMounted as U, computed as g, resolveComponent as b, openBlock as S, createElementBlock as I, unref as v, createVNode as _, createElementVNode as p, toDisplayString as w, createBlock as G, createCommentVNode as M } from "vue";
2
- import { u as k, a as D, b as H, R as e, g as s, c as W } from "./app-Dyd8pohX.js";
3
- import { useCoreStore as A, useI18n as B } from "@feedmepos/mf-common";
4
- import { useRouter as C, useRoute as K } from "vue-router";
5
- import { u as O } from "./feature-BdLkjjxs.js";
6
- import { u as $ } from "./useTabStorage-BkIVScW_.js";
7
- import { u as Q } from "./googlemap-Dm8ERVai.js";
8
- import "./array-hChJVZLE.js";
9
- function j() {
10
- return {
11
- loadingHookInstalled: !1,
12
- isLoading: !1
13
- };
14
- }
15
- const E = x(j());
16
- function z() {
17
- const l = C();
18
- if (!E.value.loadingHookInstalled) {
19
- E.value.loadingHookInstalled = !0;
20
- const n = l.beforeEach(() => {
21
- E.value.isLoading = !0;
22
- }), i = l.afterEach(() => {
23
- E.value.isLoading = !1;
24
- });
25
- F(() => {
26
- E.value.loadingHookInstalled = !1, n(), i();
27
- });
28
- }
29
- return {
30
- get isLoading() {
31
- return E.value.isLoading;
32
- }
33
- };
34
- }
35
- const q = {
36
- key: 0,
37
- class: "flex flex-col items-center w-full h-full gap-24"
38
- }, J = {
39
- key: 1,
40
- class: "flex flex-col pt-[200px] gap-32 items-center"
41
- }, X = { class: "flex flex-col gap-12 items-center text-center px-24 max-w-[1000px]" }, Y = { class: "fm-typo-en-title-lg-600" }, Z = { class: "text-fm-color-typo-secondary fm-typo-en-body-md-400" }, ee = { class: "flex gap-16" }, te = { href: "https://feedme.ai/product/inventory/features?tab=plans_%26_prices" }, oe = { href: "https://feedme.ai/form" }, ne = /* @__PURE__ */ h({
42
- __name: "InventoryView",
43
- setup(l) {
44
- const n = k(), i = D(), u = H(), a = A(), c = C(), o = z(), R = O(), { t: d } = B();
45
- P(
46
- [() => a.sessionUser.value, () => a.currentBusiness.value],
47
- ([t, r]) => {
48
- f(t, r);
49
- }
50
- ), U(async () => {
51
- await R.init(), await a.readBusinesses();
52
- const t = a.sessionUser.value, r = a.currentBusiness.value;
53
- f(t, r);
54
- });
55
- function f(t, r) {
56
- !t || !r || T();
57
- }
58
- async function T() {
59
- return await n.init(), await u.readSetting().catch((t) => {
60
- console.error("error on reading netsuite store", t);
61
- }), await i.init();
62
- }
63
- const y = g(() => c.currentRoute.value.name === e.TRANSFER_TEMPLATE ? R.enablePoTemplate : !0);
64
- return (t, r) => {
65
- const m = b("FmSpacer"), N = b("FmCircularProgress"), L = b("FmButton"), V = b("RouterView");
66
- return S(), I("div", null, [
67
- v(o).isLoading ? (S(), I("div", q, [
68
- _(m),
69
- p("div", null, [
70
- _(N, { size: "xl" })
71
- ]),
72
- r[0] || (r[0] = p("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary pl-8" }, "Loading page...", -1)),
73
- _(m)
74
- ])) : y.value ? v(a).sessionUser.value ? (S(), G(V, { key: 2 })) : M("", !0) : (S(), I("div", J, [
75
- p("div", X, [
76
- p("div", Y, w(v(d)("inventory.common.proPlan.title")), 1),
77
- p("div", Z, w(v(d)("inventory.common.proPlan.subtitle")), 1)
78
- ]),
79
- p("div", ee, [
80
- p("a", te, [
81
- _(L, {
82
- label: v(d)("inventory.common.proPlan.comparePlans"),
83
- variant: "secondary"
84
- }, null, 8, ["label"])
85
- ]),
86
- p("a", oe, [
87
- _(L, {
88
- label: v(d)("inventory.common.proPlan.callUs"),
89
- "prepend-icon": "call"
90
- }, null, 8, ["label"])
91
- ])
92
- ])
93
- ]))
94
- ]);
95
- };
96
- }
97
- }), re = { class: "h-full flex flex-col overflow-auto py-16" }, ae = /* @__PURE__ */ h({
98
- __name: "NavigationTab",
99
- setup(l) {
100
- const n = K(), i = C(), u = A(), a = O(), c = $(), { t: o } = B();
101
- P([() => u.currentBusiness.value, () => n.name], ([t, r]) => {
102
- (t == null ? void 0 : t.menuVersion) === "v3" && (r === e.INGREDIENTS || r === e.RECIPE || r === e.UNIT) && i.push({ name: e.STOCK });
103
- });
104
- const R = g(() => {
105
- var r;
106
- const t = [
107
- {
108
- label: s(e.STOCK, o),
109
- // icon: 'inventory_2',
110
- children: [
111
- {
112
- label: "Stock balance",
113
- value: e.STOCK
114
- },
115
- ...a.enableWastageTemplate ? [
116
- {
117
- label: s(e.WASTAGE_TEMPLATE, o),
118
- value: e.WASTAGE_TEMPLATE
119
- }
120
- ] : []
121
- ]
122
- },
123
- ...a.enableClosingTemplate ? [
124
- {
125
- label: "Closing",
126
- children: [
127
- {
128
- label: s(e.CLOSING_TEMPLATE, o),
129
- value: e.CLOSING_TEMPLATE
130
- },
131
- {
132
- label: s(e.CLOSING_DRAFT, o),
133
- value: e.CLOSING_DRAFT
134
- }
135
- ]
136
- }
137
- ] : [],
138
- {
139
- label: s(e.INGREDIENTS, o),
140
- // icon: 'grocery',
141
- value: e.INGREDIENTS
142
- },
143
- ...a.enableIngredientGroup ? [
144
- {
145
- label: s(e.INGREDIENT_GROUP, o),
146
- // icon: 'grocery',
147
- value: e.INGREDIENT_GROUP
148
- }
149
- ] : [],
150
- {
151
- label: s(e.RECIPE, o),
152
- // icon: 'weight',
153
- value: e.RECIPE
154
- },
155
- {
156
- label: s(e.UNIT, o),
157
- // icon: 'fastfood',
158
- value: e.UNIT
159
- },
160
- {
161
- label: o("inventory.transfer.title"),
162
- // icon: 'swap_horiz',
163
- children: [
164
- {
165
- label: s(e.RECEIVE_REQUEST, o),
166
- value: e.RECEIVE_REQUEST
167
- },
168
- {
169
- label: s(e.APPROVAL, o),
170
- value: e.APPROVAL
171
- },
172
- ...a.enablePoTemplate ? [
173
- {
174
- label: s(e.TRANSFER_TEMPLATE, o),
175
- value: e.TRANSFER_TEMPLATE
176
- }
177
- ] : []
178
- ]
179
- },
180
- {
181
- label: s(e.SUPPLIER, o),
182
- // icon: 'group',
183
- value: e.SUPPLIER
184
- },
185
- {
186
- label: s(e.WAREHOUSE, o),
187
- // icon: 'warehouse',
188
- value: e.WAREHOUSE
189
- },
190
- {
191
- label: s(e.PUBLISH, o),
192
- value: e.PUBLISH
193
- },
194
- {
195
- label: s(e.INTEGRATION, o),
196
- // icon: 'integration_instructions',
197
- value: e.INTEGRATION
198
- }
199
- ];
200
- return ((r = u.currentBusiness.value) == null ? void 0 : r.menuVersion) === "v3" ? t.filter(
201
- (m) => m.value !== e.INGREDIENTS && m.value !== e.RECIPE && m.value !== e.UNIT
202
- ) : t;
203
- }), d = g({
204
- get() {
205
- if (n.name)
206
- return String(n.name);
207
- },
208
- set(t) {
209
- t && i.push({ name: t });
210
- }
211
- }), f = g(
212
- () => {
213
- var t;
214
- return `NavigationTab.${(t = u.currentBusiness.value) == null ? void 0 : t._id}`;
215
- }
216
- ), T = x(!1), y = g({
217
- get() {
218
- return T.value;
219
- },
220
- set(t) {
221
- T.value = t, t || c.setItem(f.value, "true");
222
- }
223
- });
224
- return P([() => f.value], () => {
225
- T.value = !1, setTimeout(() => {
226
- y.value = !c.getItem(f.value);
227
- }, 2e3);
228
- }), (t, r) => {
229
- const m = b("FmCollapsibleTabs");
230
- return S(), I("div", re, [
231
- _(m, {
232
- modelValue: d.value,
233
- "onUpdate:modelValue": r[0] || (r[0] = (N) => d.value = N),
234
- items: R.value
235
- }, null, 8, ["modelValue", "items"])
236
- ]);
237
- };
238
- }
239
- });
240
- typeof Promise.withResolvers > "u" && (Promise.withResolvers = () => {
241
- let l, n;
242
- return { promise: new Promise((u, a) => {
243
- l = u, n = a;
244
- }), resolve: l, reject: n };
245
- });
246
- typeof Promise.prototype.delayed > "u" && (Promise.prototype.delayed = async function(l) {
247
- return await new Promise((n) => setTimeout(n, l)), Promise.resolve(this);
248
- });
249
- const fe = /* @__PURE__ */ h({
250
- __name: "App",
251
- setup(l) {
252
- const n = A(), i = Q(), u = W();
253
- U(() => {
254
- if (window.location.href.includes("print-preview")) {
255
- n.setEmbedded(!0);
256
- return;
257
- }
258
- n.registerSidebarComponent(ae), i.initGoogleMap(u.appApi.googleMap).catch(() => {
259
- console.error("Google map cannot be loaded");
260
- });
261
- }), P([() => n.currentCountry.value], () => {
262
- a();
263
- });
264
- async function a() {
265
- var c;
266
- try {
267
- await n.readBusinesses(), n.currentBusiness.value = (c = n.businesses.value) == null ? void 0 : c.find((o) => o);
268
- } catch (o) {
269
- console.error("error when trying to reset businesses:", o);
270
- }
271
- }
272
- return (c, o) => (S(), G(ne));
273
- }
274
- });
275
- export {
276
- fe as default
277
- };