@feedmepos/mf-inventory-portal 1.2.53 → 1.2.55-dev.1

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 (98) hide show
  1. package/dist/{App-BsfuPPE8.js → App-Dr4bSbWV.js} +75 -70
  2. package/dist/{ApprovalView-DpYZ90XA.js → ApprovalView-BrUi6das.js} +34 -34
  3. package/dist/{BindingsDialog-BV-jLs8M.js → BindingsDialog-DtsEDaFx.js} +2 -2
  4. package/dist/{BindingsPicker-B1hTzIMf.js → BindingsPicker-BDSimsxV.js} +2 -2
  5. package/dist/{BindingsTable-LQX4W3ew.js → BindingsTable-ArpmNkQm.js} +4 -4
  6. package/dist/{ClosingDraftView-BmeO2Js_.js → ClosingDraftView-D7qz1YGt.js} +19 -18
  7. package/dist/{ClosingHistoryView--gDKiBmN.js → ClosingHistoryView-ND9smQRb.js} +27 -27
  8. package/dist/{ClosingTemplateView-CeH6R1_D.js → ClosingTemplateView--1tzOPIu.js} +18 -17
  9. package/dist/{DeliveryOrderPrintPreview-uf9jap78.js → DeliveryOrderPrintPreview-Ctv1Qp_a.js} +1 -1
  10. package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-lA-iPoWZ.js +188 -0
  11. package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-mZtCQnzs.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-UJewH4Il.js} +12 -12
  12. package/dist/FmMultiselectDialog-Br5_D-b5.js +618 -0
  13. package/dist/{FmMultiselectDialog-B9qB5-LO.js → FmMultiselectDialog-BrJlUxMZ.js} +1 -1
  14. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-27q4Oj88.js → FmUnitInput.vue_vue_type_script_setup_true_lang-BvIdnKjl.js} +3 -3
  15. package/dist/{ImportView-D4k9msYw.js → ImportView-fEnHrPWZ.js} +7 -7
  16. package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-BYoVIP2q.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-DVELkyVY.js} +1 -1
  17. package/dist/{IngredientGroupView-C20V_hvY.js → IngredientGroupView-B1owkM3C.js} +108 -107
  18. package/dist/{IngredientsView-DzsB-qrK.js → IngredientsView-BTKXnnw5.js} +126 -125
  19. package/dist/{IntegrationView-DFSUowj3.js → IntegrationView-C2jarXxh.js} +80 -80
  20. package/dist/{InventoryBindingForm-Dlnx6-L7.js → InventoryBindingForm-Gq8XfKbC.js} +1 -1
  21. package/dist/InventoryBindingForm.vue_vue_type_script_setup_true_lang-BVkTXQvA.js +403 -0
  22. package/dist/{InventoryBindingSummary-CgpN2hF0.js → InventoryBindingSummary-CqQu65hi.js} +1 -1
  23. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-tv-itLDe.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DIukT297.js} +1 -1
  24. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-3BHMqt41.js → PremiumBadge.vue_vue_type_script_setup_true_lang-D2aU4Ij2.js} +2 -2
  25. package/dist/{PublishView-BtMTxpSh.js → PublishView-CBYg-KST.js} +3 -3
  26. package/dist/{PurchaseOrderPrintPreview-DGCQUgF5.js → PurchaseOrderPrintPreview-C_jrGksW.js} +1 -1
  27. package/dist/ReceiveRequestView-iawt5dnN.js +2915 -0
  28. package/dist/{RecipeView-CPnCVxz2.js → RecipeView-Dv5BTxLT.js} +83 -82
  29. package/dist/{StockView-DYHl_yAy.js → StockView-oSkKCORB.js} +113 -112
  30. package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-Desv7VmF.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-BJ3gnpTq.js} +1 -1
  31. package/dist/{SupplierView-BtKlc0mc.js → SupplierView-tipIYgX7.js} +28 -27
  32. package/dist/SurchargeView-CW1lsyEC.js +460 -0
  33. package/dist/{SystemTrailDialog.vue_vue_type_script_setup_true_lang-C2fsq7Kj.js → SystemTrailDialog.vue_vue_type_script_setup_true_lang-B3FZqxjr.js} +2 -2
  34. package/dist/TableActionableRow.vue_vue_type_script_setup_true_lang-Ca_eYa8-.js +84 -0
  35. package/dist/{TemplatePublishDialog.vue_vue_type_script_setup_true_lang-C6utSuyH.js → TemplatePublishDialog.vue_vue_type_script_setup_true_lang-D86rTw7c.js} +17 -17
  36. package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-BMhCFnlM.js → TransferDetails.vue_vue_type_script_setup_true_lang-cGzs-dHw.js} +15 -15
  37. package/dist/{TransferTemplateView-D0_xhGDZ.js → TransferTemplateView-dSJSgnil.js} +82 -81
  38. package/dist/{UnitView-BAX2GeM3.js → UnitView-VHi5WMrF.js} +20 -19
  39. package/dist/{WarehouseView-CccEHOZw.js → WarehouseView-DLZaux-w.js} +21 -20
  40. package/dist/{WastageTemplateView-CMNtM1FX.js → WastageTemplateView-KyvwCkdu.js} +67 -66
  41. package/dist/api/netsuite.d.ts +8 -0
  42. package/dist/api/stock-estimate.d.ts +1 -0
  43. package/dist/api/surcharge.d.ts +31 -0
  44. package/dist/{app-D_U5i9il.js → app-Cq2T5z21.js} +4511 -4405
  45. package/dist/app-DiX-EfV6.js +8167 -0
  46. package/dist/app.d.ts +52 -0
  47. package/dist/app.js +1 -1
  48. package/dist/{closing-template-Bl0MMVQ3.js → closing-template-TwdeC6qT.js} +1 -1
  49. package/dist/component-DpCUABT3.js +82 -0
  50. package/dist/components/FmInventoryTableToolbar.vue.d.ts +8 -0
  51. package/dist/components/FmMultiselectDialogProps.d.ts +5 -0
  52. package/dist/{date2-bUTaCyeL.js → date2-Dunl1OWI.js} +1 -1
  53. package/dist/{dayjs.min-CsC_tYI1.js → dayjs.min-D_81k3gd.js} +26 -26
  54. package/dist/{decimal-DLO8y7yi.js → decimal-B9DLzi9Y.js} +2 -2
  55. package/dist/{defineDeepModel-Qi54tGyL.js → defineDeepModel-B15nBS96.js} +1 -1
  56. package/dist/{duplicate-template-CMQSNAkP.js → duplicate-template-BSxFsv2u.js} +1 -1
  57. package/dist/{feature-C3Qi_YOQ.js → feature-KwyjpPTq.js} +8956 -6221
  58. package/dist/{format-time-from-id-CiF32HPN.js → format-time-from-id-BfL9V23H.js} +1 -1
  59. package/dist/{format-unit-display-CWaFU32C.js → format-unit-display-BfSLhflE.js} +11 -11
  60. package/dist/{import-export.helper-CmZ04MNQ.js → import-export.helper-TUsgMxew.js} +5 -5
  61. package/dist/{index-DWbh3c13.js → index-C2H5HeFF.js} +1 -1
  62. package/dist/{index-BV6lZh0u.js → index-CXtJlhZZ.js} +3 -3
  63. package/dist/{index-v0HfyjdJ.js → index-DTnKa-sF.js} +1 -1
  64. package/dist/{lodash-l5GzTb80.js → lodash-DRR2nS2T.js} +1 -1
  65. package/dist/{netsuite-DlEPiEX1.js → netsuite-CAFiEoX5.js} +2034 -1687
  66. package/dist/{purchase-order-template-C-MSW7Bo.js → purchase-order-template-CSJXceBK.js} +1 -1
  67. package/dist/router/name.d.ts +1 -0
  68. package/dist/{rules-BF70lxi7.js → rules-BdFLL1aa.js} +9 -9
  69. package/dist/{stock-CU4n1u6e.js → stock-B80FaSS2.js} +1 -1
  70. package/dist/{stock-FcnkYSxh.js → stock-CgsgvX9b.js} +3 -3
  71. package/dist/stores/feature.d.ts +4 -0
  72. package/dist/stores/integration/netsuite.d.ts +5 -0
  73. package/dist/stores/surcharge.d.ts +18 -0
  74. package/dist/style.css +1 -1
  75. package/dist/{supplier-BV8FzK18.js → supplier-BsycjnD1.js} +2 -2
  76. package/dist/surcharge-BH6kETCu.js +71 -0
  77. package/dist/tsconfig.app.tsbuildinfo +1 -1
  78. package/dist/{use-ingredient-select-dialog-FCv8J6-r.js → use-ingredient-select-dialog-B2cFOc3t.js} +2 -2
  79. package/dist/{use-inventory-binding-dialog-UNAoymW3.js → use-inventory-binding-dialog-CKUtJDHW.js} +2 -2
  80. package/dist/{use-template-enabled-locations-2-6TzeRZSX.js → use-template-enabled-locations-2-tPL4lEZ_.js} +2 -2
  81. package/dist/views/receive-request/components/transfer-form/TransferFormWithController.vue.d.ts +1 -0
  82. package/dist/views/receive-request/components/transfer-form/components/ForecastStock.vue.d.ts +2 -0
  83. package/dist/views/receive-request/components/transfer-form/composables/use-transfer-items.d.ts +8 -1
  84. package/dist/views/stock/components/StockRecordCard.vue.d.ts +1 -1
  85. package/dist/views/surcharge/SurchargeView.vue.d.ts +2 -0
  86. package/dist/{vue-i18n-W40GsXxp.js → vue-i18n-BhCaMx-9.js} +213 -213
  87. package/dist/{xlsx-BD3jzYqf.js → xlsx-DJaY2xSF.js} +398 -398
  88. package/dist/{xlsx.util-DA4HjNKa.js → xlsx.util-CZq_uKdw.js} +1 -1
  89. package/package.json +3 -4
  90. package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BPPKetxg.js +0 -231
  91. package/dist/FmMultiselectDialog-C9pVEMlL.js +0 -598
  92. package/dist/InventoryBindingForm.vue_vue_type_script_setup_true_lang-DiKt7AYo.js +0 -375
  93. package/dist/ReceiveRequestView-AY3n7b7j.js +0 -2923
  94. package/dist/TableActionableRow.vue_vue_type_script_setup_true_lang-cfFHDIwQ.js +0 -162
  95. package/dist/app-uBuHtW8m.js +0 -8127
  96. package/dist/cypress/component/receive-request/KDI-15-total-price-currency.cy.d.ts +0 -2
  97. package/dist/views/ingredients/helper/calculate-default-cost.d.ts +0 -9
  98. package/dist/views/receive-request/components/transfer-form/TransferForm2.vue.d.ts +0 -22
@@ -1,4 +1,4 @@
1
- import { r as m, u, a as d } from "./xlsx-BD3jzYqf.js";
1
+ import { r as m, u, a as d } from "./xlsx-DJaY2xSF.js";
2
2
  function* x(o) {
3
3
  const [e, n] = o.split(":"), t = /\d+/, l = t.exec(e), c = t.exec(n);
4
4
  if (!l || !c)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@feedmepos/mf-inventory-portal",
3
- "version": "1.2.53",
3
+ "version": "1.2.55-dev.1",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"
@@ -15,11 +15,10 @@
15
15
  },
16
16
  "dependencies": {
17
17
  "@feedmepos/core": "2.14.40",
18
- "@feedmepos/custom-attributes": "0.0.1-rc.3",
18
+ "@feedmepos/custom-attributes": "0.0.1-rc.5",
19
19
  "@feedmepos/feature-flag": "^0.0.15",
20
20
  "@feedmepos/menu": "1.5.22",
21
- "@feedmepos/mf-common": "^1.28.6",
22
- "@feedmepos/mf-remy-panel": "0.2.1",
21
+ "@feedmepos/mf-common": "^1.28.2",
23
22
  "@feedmepos/ui-library": "1.8.3",
24
23
  "@tanstack/vue-table": "^8.17.3",
25
24
  "@types/dinero.js": "^1.9.4",
@@ -1,231 +0,0 @@
1
- import { J as O, u as D, t as C, T as A, V as E, y as V } from "./app-D_U5i9il.js";
2
- import { a as L, t as R } from "./rules-BF70lxi7.js";
3
- import { u as z } from "./supplier-BV8FzK18.js";
4
- import { computed as f, defineComponent as H, mergeModels as j, useModel as q, ref as x, resolveComponent as w, openBlock as P, createElementBlock as U, normalizeStyle as W, createElementVNode as I, createVNode as $, withCtx as J, createBlock as g, createCommentVNode as N, Fragment as Y, renderList as K, unref as M } from "vue";
5
- import { F as Q } from "./FmMultiselectDialog-C9pVEMlL.js";
6
- function X(e, r, a) {
7
- var o;
8
- if (!!r.measurement === !!a && ((o = r.measurement) == null ? void 0 : o.id) === a)
9
- return r;
10
- if (!a)
11
- return {
12
- costPerUnit: r.costPerUnit
13
- };
14
- const n = e.measurements.find((p) => p.id === a);
15
- return n ? {
16
- costPerUnit: r.costPerUnit,
17
- measurement: n
18
- } : {
19
- costPerUnit: r.costPerUnit
20
- };
21
- }
22
- function ne(e, r, a, u) {
23
- var T, _, s;
24
- const l = (s = (_ = (T = u == null ? void 0 : u.supplier) == null ? void 0 : T.supplyItems) == null ? void 0 : _.find(
25
- (t) => t.skuId === e._id
26
- )) == null ? void 0 : s.defaultCost;
27
- if (u != null && u.manualTotalCost)
28
- return {
29
- cost: u.manualTotalCost,
30
- skuDefaultCost: e.defaultCost ?? void 0,
31
- supplierOverrideCost: l ?? void 0
32
- };
33
- const n = e.defaultCost ? X(e.unit, e.defaultCost, e.trackingMeasurement) : void 0, o = l ?? n, p = o == null ? void 0 : o.costPerUnit, v = p ? o != null && o.measurement ? +L(p) / +L(o == null ? void 0 : o.measurement.conversion) : +L(p) : void 0, b = v ? a ? v * +L(a.conversion) : v : void 0, h = b ? +L(r) * b : void 0;
34
- return {
35
- cost: h ? {
36
- ...R(h ?? 0, 2),
37
- currency: O()
38
- } : {
39
- amount: 0,
40
- precision: 0,
41
- currency: O()
42
- },
43
- skuDefaultCost: e.defaultCost ?? void 0,
44
- supplierOverrideCost: l ?? void 0
45
- };
46
- }
47
- function k(e) {
48
- const r = E.safeParse(e);
49
- if (r.success) return r.data;
50
- throw new Error("Invalid supplier data");
51
- }
52
- function S(e) {
53
- return {
54
- _id: e.doc._id,
55
- internal: e.type,
56
- contactName: e.doc.profile.name,
57
- name: e.doc.profile.name ?? "",
58
- email: e.doc.profile.email,
59
- phoneNumber: e.doc.profile.phoneNo,
60
- registrationNumber: e.doc.profile.regNo,
61
- address: e.doc.profile.address ?? {
62
- line1: "",
63
- state: "",
64
- city: "",
65
- postcode: "",
66
- country: ""
67
- },
68
- preparationTime: e.preparationTime
69
- };
70
- }
71
- function re(e, r, a = !1, u = !1) {
72
- const l = z(), n = D();
73
- n.watchLocation(async () => {
74
- var y;
75
- await l.readSuppliers();
76
- const s = e();
77
- if ((y = s.supplier) != null && y._id) return;
78
- const t = u ? l.suppliers[0] : l.businessSuppliers[0], i = (a ? n.locations.filter((d) => d.doc._id !== n.currentLocation.doc._id) : n.locations)[0];
79
- r({
80
- ...s,
81
- supplier: t ? k(t) : i ? S(i) : s.supplier
82
- });
83
- });
84
- const o = f(
85
- () => {
86
- var s, t;
87
- return typeof ((t = (s = e()) == null ? void 0 : s.supplier) == null ? void 0 : t.internal) == "string" ? C.enum.transfer : C.enum.purchase;
88
- }
89
- ), p = f({
90
- get() {
91
- var s, t;
92
- return (t = (s = e()) == null ? void 0 : s.supplier) == null ? void 0 : t._id;
93
- },
94
- set(s) {
95
- const t = e() ?? {};
96
- if (o.value === C.enum.purchase) {
97
- const F = (u ? l.suppliers : l.businessSuppliers).find((B) => B._id === s);
98
- r({
99
- ...t,
100
- supplier: F ? k(F) : t.supplier
101
- });
102
- return;
103
- }
104
- const y = (a ? n.allLocations.filter(
105
- (d) => d.doc._id !== n.currentLocation.doc._id
106
- ) : n.allLocations).find((d) => d.doc._id === s);
107
- r({
108
- ...t,
109
- supplier: y ? S(y) : t.supplier
110
- });
111
- }
112
- }), v = f(() => l.locationSuppliers.map(k)), b = f(() => l.businessSuppliers.map(k)), h = f(() => {
113
- const s = [...v.value], t = [...b.value];
114
- return u ? [...t, ...s] : t;
115
- }), c = f(() => {
116
- var m;
117
- const s = ((m = n._currentLocation) == null ? void 0 : m.type) === A.warehouse;
118
- return (a ? n.allLocations.filter(
119
- (i) => i.doc._id !== n.currentLocation.doc._id
120
- ) : n.allLocations).filter((i) => s || i.acceptRequest).map(S);
121
- }), T = f(() => {
122
- if (o.value === C.enum.purchase) {
123
- const t = v.value.map((i) => ({
124
- label: i.name,
125
- value: i._id
126
- })), m = b.value.map((i) => ({
127
- label: i.name,
128
- sublabel: "Business supplier",
129
- value: i._id
130
- }));
131
- return u ? [...t, ...m] : m;
132
- }
133
- return c.value.map((t) => ({
134
- label: t.name,
135
- sublabel: t.internal ? `${t.internal}` : void 0,
136
- value: t._id
137
- }));
138
- }), _ = f(() => {
139
- var i, y;
140
- const s = (y = (i = e()) == null ? void 0 : i.supplier) == null ? void 0 : y._id;
141
- if (o.value === C.enum.purchase) {
142
- const d = l.suppliers.find((F) => F._id === s);
143
- return d ? k(d) : null;
144
- }
145
- const m = n.allLocations.find((d) => d.doc._id);
146
- return m ? S(m) : null;
147
- });
148
- return {
149
- transferLocationModel: p,
150
- transferLocationOptions: T,
151
- locationOptionsTypePurchase: h,
152
- locationOptionsTypePurchaseLocationLevel: v,
153
- locationOptionsTypeTransfer: c,
154
- selectedLocation: _
155
- };
156
- }
157
- const Z = { class: "overflow-y-auto h-full pb-8" }, ae = /* @__PURE__ */ H({
158
- __name: "FmFilterableMenuOptions",
159
- props: /* @__PURE__ */ j({
160
- modelValue: {},
161
- maxHeight: {},
162
- width: {},
163
- handleItemChange: { type: Function },
164
- items: {},
165
- options: {}
166
- }, {
167
- search: {},
168
- searchModifiers: {}
169
- }),
170
- emits: ["update:search"],
171
- setup(e) {
172
- const r = e, a = q(e, "search"), u = f(
173
- () => new Q(r.items, ["label", "sublabel"], {
174
- caseSensitive: !1,
175
- sort: !0
176
- })
177
- ), l = f(() => u.value.search(a.value)), n = x();
178
- return console.log({ stickyRef: n }), (o, p) => {
179
- const v = w("FmButton"), b = w("FmTextField"), h = w("FmMenuItem");
180
- return P(), U("div", {
181
- class: "relative",
182
- style: W({ width: o.width })
183
- }, [
184
- I("div", {
185
- class: "sticky top-0 bg-white mb-8",
186
- ref_key: "stickyRef",
187
- ref: n
188
- }, [
189
- $(b, {
190
- modelValue: a.value,
191
- "onUpdate:modelValue": p[1] || (p[1] = (c) => a.value = c),
192
- placeholder: "Filter options"
193
- }, {
194
- append: J(() => [
195
- a.value ? (P(), g(v, {
196
- key: 0,
197
- variant: "tertiary",
198
- "prepend-icon": "close",
199
- onClick: p[0] || (p[0] = (c) => a.value = "")
200
- })) : N("", !0)
201
- ]),
202
- _: 1
203
- }, 8, ["modelValue"])
204
- ], 512),
205
- I("div", Z, [
206
- (P(!0), U(Y, null, K(l.value, (c, T) => (P(), g(h, {
207
- key: T,
208
- label: c.label,
209
- sublabel: c.sublabel,
210
- "model-value": M(V)(o.modelValue, c.value),
211
- onClick: () => o.handleItemChange(M(V)(o.modelValue, c.value), c),
212
- onVnodeMounted: (_) => {
213
- var s, t;
214
- return M(V)(o.modelValue, c.value) && ((s = _.el) == null || s.scrollIntoView({ behavior: "instant", block: "end" }), (t = _.el) == null || t.scrollIntoView({ behavior: "smooth", block: "center" })), void 0;
215
- }
216
- }, null, 8, ["label", "sublabel", "model-value", "onClick", "onVnodeMounted"]))), 128)),
217
- l.value.length ? N("", !0) : (P(), g(h, {
218
- key: 0,
219
- disabled: "",
220
- label: "No options available"
221
- }))
222
- ])
223
- ], 4);
224
- };
225
- }
226
- });
227
- export {
228
- ae as _,
229
- ne as c,
230
- re as u
231
- };