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

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 (96) hide show
  1. package/dist/{App-bY_YcLwH.js → App-BJ_vKOR1.js} +70 -75
  2. package/dist/{ApprovalView-vzIiBqt2.js → ApprovalView-B_prTTtl.js} +34 -34
  3. package/dist/{BindingsDialog-DCh2ORem.js → BindingsDialog-BPuKgJIk.js} +2 -2
  4. package/dist/{BindingsPicker-DcNG03p-.js → BindingsPicker-Dv_cmEil.js} +2 -2
  5. package/dist/{BindingsTable-B_Yaq-z3.js → BindingsTable-BNSfYRfq.js} +4 -4
  6. package/dist/{ClosingDraftView-C0T8cWEB.js → ClosingDraftView-C78tcaJ3.js} +399 -413
  7. package/dist/{ClosingHistoryView-DkKAjh7T.js → ClosingHistoryView-DY8liEk3.js} +27 -27
  8. package/dist/{ClosingTemplateView-DpH1EyW5.js → ClosingTemplateView-pJXEcrjO.js} +17 -18
  9. package/dist/{DeliveryOrderPrintPreview-B2ecLaLu.js → DeliveryOrderPrintPreview-Bu_l-kxu.js} +1 -1
  10. package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-Dgibb-Fh.js +231 -0
  11. package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-kVpsL4cx.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-DHe5G3kX.js} +12 -12
  12. package/dist/{FmMultiselectDialog-DGUwruxs.js → FmMultiselectDialog-C3iCMK5I.js} +1 -1
  13. package/dist/FmMultiselectDialog-CDONDKxE.js +598 -0
  14. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-CRTG3VFo.js → FmUnitInput.vue_vue_type_script_setup_true_lang-CefvebOx.js} +3 -3
  15. package/dist/{ImportView-Bk4Z7nGh.js → ImportView-JrenRgiI.js} +7 -7
  16. package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-BEJ19Uej.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-CSdxodp6.js} +1 -1
  17. package/dist/{IngredientGroupView-8GHMMOux.js → IngredientGroupView-aDFq_ZDh.js} +107 -108
  18. package/dist/{IngredientsView-DbmODx-v.js → IngredientsView-DSh3UqDg.js} +125 -126
  19. package/dist/{IntegrationView-DC0O_Lk4.js → IntegrationView-KhZ78uxM.js} +80 -80
  20. package/dist/{InventoryBindingForm-ln0q25n_.js → InventoryBindingForm-DZu0CZYh.js} +1 -1
  21. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-CFgk9rSe.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-YuCn0irA.js} +21 -21
  22. package/dist/{InventoryBindingSummary-BlNXhS4v.js → InventoryBindingSummary-DZxLhZ_-.js} +1 -1
  23. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BY_mXqPr.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DAwpZY3n.js} +1 -1
  24. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-BhNjwE3X.js → PremiumBadge.vue_vue_type_script_setup_true_lang-CPDxwz-V.js} +2 -2
  25. package/dist/{PublishView-5GkTzxbi.js → PublishView-CLnQ7NBN.js} +3 -3
  26. package/dist/{PurchaseOrderPrintPreview-Dj5lJ5Ou.js → PurchaseOrderPrintPreview-DiBztBma.js} +1 -1
  27. package/dist/ReceiveRequestView-_TOSnDGJ.js +2913 -0
  28. package/dist/{RecipeView-OLPRwnVx.js → RecipeView-BPIMvoTw.js} +82 -83
  29. package/dist/{StockView-TcA5zJqr.js → StockView-CI8MUJay.js} +112 -113
  30. package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-DZ6TDkKR.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-DEBHEMkh.js} +1 -1
  31. package/dist/{SupplierView-77qI9YCg.js → SupplierView-COihDMNY.js} +27 -28
  32. package/dist/{SystemTrailDialog.vue_vue_type_script_setup_true_lang-_8YeihNH.js → SystemTrailDialog.vue_vue_type_script_setup_true_lang-D-c0Ayis.js} +2 -2
  33. package/dist/TableActionableRow.vue_vue_type_script_setup_true_lang-cfFHDIwQ.js +162 -0
  34. package/dist/{TemplatePublishDialog.vue_vue_type_script_setup_true_lang-ByPIjcED.js → TemplatePublishDialog.vue_vue_type_script_setup_true_lang-D8vbPlie.js} +13 -13
  35. package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-7BoFD5wV.js → TransferDetails.vue_vue_type_script_setup_true_lang-BVuuw11z.js} +659 -658
  36. package/dist/{TransferTemplateView-CI0U36Tr.js → TransferTemplateView-B2NNfrEq.js} +81 -82
  37. package/dist/{UnitView-fNFFUNlb.js → UnitView-ZsbM07hw.js} +19 -20
  38. package/dist/{WarehouseView-BAXgnZnO.js → WarehouseView-Cd5RFu5v.js} +20 -21
  39. package/dist/{WastageTemplateView-C5qCXWqZ.js → WastageTemplateView-DpikyyZW.js} +164 -165
  40. package/dist/api/netsuite.d.ts +0 -8
  41. package/dist/{app-CddcvygU.js → app-CySQTQxj.js} +4410 -4513
  42. package/dist/app-uBuHtW8m.js +8127 -0
  43. package/dist/app.d.ts +0 -52
  44. package/dist/app.js +1 -1
  45. package/dist/{closing-template-DxdLqlb1.js → closing-template-DXGjC5AG.js} +1 -1
  46. package/dist/components/FmInventoryTableToolbar.vue.d.ts +0 -8
  47. package/dist/components/FmMultiselectDialogProps.d.ts +0 -5
  48. package/dist/cypress/component/receive-request/KDI-15-total-price-currency.cy.d.ts +2 -0
  49. package/dist/{date2-CVZy20Q_.js → date2-BWoUn1K_.js} +1 -1
  50. package/dist/{dayjs.min-NrRtjg32.js → dayjs.min-cMW8olEu.js} +26 -26
  51. package/dist/{decimal-Du3Grkk9.js → decimal-8BRzZQU6.js} +2 -2
  52. package/dist/{defineDeepModel-DgRoiQBp.js → defineDeepModel-AsUZ-DyW.js} +1 -1
  53. package/dist/{duplicate-template-DvnZ4BW6.js → duplicate-template-CyHfZR3S.js} +1 -1
  54. package/dist/{feature-CTA18HlL.js → feature-Dm0FnWf9.js} +6178 -8906
  55. package/dist/{format-time-from-id-6kt1RMWs.js → format-time-from-id-C9lmv5BP.js} +1 -1
  56. package/dist/{format-unit-display-mVJ-nuJe.js → format-unit-display-BV8pJisO.js} +11 -11
  57. package/dist/{import-export.helper-DWwlJy7N.js → import-export.helper-Djxw_H5S.js} +5 -5
  58. package/dist/{index-By-jyWOP.js → index-8hCa5_Gb.js} +1 -1
  59. package/dist/{index-BfcdagSF.js → index-D6u3kywf.js} +1 -1
  60. package/dist/{index-BEcj1jGd.js → index-DidYtgNc.js} +3 -3
  61. package/dist/{lodash-D0COOw3m.js → lodash-CW_Ea6mA.js} +1 -1
  62. package/dist/netsuite-BEto-z0v.js +5131 -0
  63. package/dist/{purchase-order-template-CJCmABzP.js → purchase-order-template-BTzjcgrO.js} +1 -1
  64. package/dist/router/name.d.ts +0 -1
  65. package/dist/{rules-hQBVd1Mn.js → rules-DkVWS5mF.js} +9 -9
  66. package/dist/{stock-4xGaezEy.js → stock-CHw8pI8V.js} +3 -3
  67. package/dist/{stock-B6QW-S14.js → stock-D8hLHgeN.js} +1 -1
  68. package/dist/stores/feature.d.ts +2 -4
  69. package/dist/stores/integration/netsuite.d.ts +0 -5
  70. package/dist/style.css +1 -1
  71. package/dist/{supplier-C-dmFnqw.js → supplier-Dv83IfQr.js} +2 -2
  72. package/dist/tsconfig.app.tsbuildinfo +1 -1
  73. package/dist/{use-ingredient-select-dialog-DgYSZDN8.js → use-ingredient-select-dialog-CJjd4g-6.js} +2 -2
  74. package/dist/{use-inventory-binding-dialog-CnYcA_Fo.js → use-inventory-binding-dialog-D4g79p5S.js} +2 -2
  75. package/dist/{use-template-enabled-locations-2-B_aZrMUU.js → use-template-enabled-locations-2-Cg2iqQdq.js} +2 -2
  76. package/dist/views/ingredients/helper/calculate-default-cost.d.ts +9 -0
  77. package/dist/views/receive-request/components/transfer-form/TransferForm2.vue.d.ts +22 -0
  78. package/dist/views/receive-request/components/transfer-form/TransferFormWithController.vue.d.ts +0 -714
  79. package/dist/views/receive-request/components/transfer-form/composables/use-transfer-items.d.ts +1 -8
  80. package/dist/views/stock/components/StockRecordCard.vue.d.ts +1 -1
  81. package/dist/{vue-i18n-BCEDBY4T.js → vue-i18n-kUcLfpvT.js} +563 -563
  82. package/dist/{xlsx-CJsXiiEq.js → xlsx-BjeMbhDF.js} +398 -398
  83. package/dist/{xlsx.util-CSudzOii.js → xlsx.util-9eMlJfd9.js} +1 -1
  84. package/package.json +5 -5
  85. package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CI4z5XYQ.js +0 -188
  86. package/dist/FmMultiselectDialog-BviFuAM5.js +0 -618
  87. package/dist/ReceiveRequestView-BAYczSpW.js +0 -2913
  88. package/dist/SurchargeView-CxW2ZZ8a.js +0 -460
  89. package/dist/TableActionableRow.vue_vue_type_script_setup_true_lang-Ca_eYa8-.js +0 -84
  90. package/dist/api/surcharge.d.ts +0 -31
  91. package/dist/app-DiX-EfV6.js +0 -8167
  92. package/dist/component-DpCUABT3.js +0 -82
  93. package/dist/netsuite-3LgQ5ztL.js +0 -5402
  94. package/dist/stores/surcharge.d.ts +0 -18
  95. package/dist/surcharge-Db4IiSEQ.js +0 -71
  96. package/dist/views/surcharge/SurchargeView.vue.d.ts +0 -2
@@ -1,4 +1,4 @@
1
- import { r as m, u, a as d } from "./xlsx-CJsXiiEq.js";
1
+ import { r as m, u, a as d } from "./xlsx-BjeMbhDF.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.51-dev.1",
3
+ "version": "1.2.51",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"
@@ -15,7 +15,7 @@
15
15
  },
16
16
  "dependencies": {
17
17
  "@feedmepos/core": "2.14.40",
18
- "@feedmepos/custom-attributes": "0.0.1-rc.5",
18
+ "@feedmepos/custom-attributes": "0.0.1-rc.3",
19
19
  "@feedmepos/feature-flag": "^0.0.15",
20
20
  "@feedmepos/menu": "1.5.22",
21
21
  "@feedmepos/mf-common": "^1.28.2",
@@ -43,12 +43,12 @@
43
43
  "vue-i18n": "^10.0.5",
44
44
  "vue-router": "^4.4.0",
45
45
  "xlsx": "^0.18.5",
46
+ "@feedmepos/inventory-core": "^1.0.1-dev.2",
46
47
  "@feedmepos/inventory-core-2": "^2.0.0",
47
48
  "@feedmepos/inventory-core-dart": "^1.0.0",
48
49
  "@feedmepos/inventory-core-js": "^1.0.1",
49
- "@feedmepos/inventory-core": "^1.0.1-dev.2",
50
- "@feedmepos/zod-inventory": "^2.0.0",
51
- "@feedmepos/netsuite-core": "^1.0.0"
50
+ "@feedmepos/netsuite-core": "^1.0.0",
51
+ "@feedmepos/zod-inventory": "^2.0.0"
52
52
  },
53
53
  "devDependencies": {
54
54
  "@rushstack/eslint-patch": "^1.10.3",
@@ -1,188 +0,0 @@
1
- import { u as B, t as h, T as E, V as R, z as w } from "./app-CddcvygU.js";
2
- import { u as z } from "./supplier-C-dmFnqw.js";
3
- import { computed as u, defineComponent as A, mergeModels as q, useModel as D, ref as H, resolveComponent as g, openBlock as y, createElementBlock as O, normalizeStyle as U, createElementVNode as M, createVNode as $, withCtx as x, createBlock as I, createCommentVNode as C, Fragment as W, renderList as Y, unref as N } from "vue";
4
- import { F as j } from "./FmMultiselectDialog-BviFuAM5.js";
5
- function _(o) {
6
- const c = R.safeParse(o);
7
- if (c.success) return c.data;
8
- throw new Error("Invalid supplier data");
9
- }
10
- function S(o) {
11
- return {
12
- _id: o.doc._id,
13
- internal: o.type,
14
- contactName: o.doc.profile.name,
15
- name: o.doc.profile.name ?? "",
16
- email: o.doc.profile.email,
17
- phoneNumber: o.doc.profile.phoneNo,
18
- registrationNumber: o.doc.profile.regNo,
19
- address: o.doc.profile.address ?? {
20
- line1: "",
21
- state: "",
22
- city: "",
23
- postcode: "",
24
- country: ""
25
- },
26
- preparationTime: o.preparationTime
27
- };
28
- }
29
- function G(o, c, p = !1, f = !1) {
30
- const r = z(), n = B();
31
- n.watchLocation(async () => {
32
- var m;
33
- await r.readSuppliers();
34
- const s = o();
35
- if ((m = s.supplier) != null && m._id) return;
36
- const e = f ? r.suppliers[0] : r.businessSuppliers[0], t = (p ? n.locations.filter((a) => a.doc._id !== n.currentLocation.doc._id) : n.locations)[0];
37
- c({
38
- ...s,
39
- supplier: e ? _(e) : t ? S(t) : s.supplier
40
- });
41
- });
42
- const d = u(
43
- () => {
44
- var s, e;
45
- return typeof ((e = (s = o()) == null ? void 0 : s.supplier) == null ? void 0 : e.internal) == "string" ? h.enum.transfer : h.enum.purchase;
46
- }
47
- ), v = u({
48
- get() {
49
- var s, e;
50
- return (e = (s = o()) == null ? void 0 : s.supplier) == null ? void 0 : e._id;
51
- },
52
- set(s) {
53
- const e = o() ?? {};
54
- if (d.value === h.enum.purchase) {
55
- const k = (f ? r.suppliers : r.businessSuppliers).find((P) => P._id === s);
56
- c({
57
- ...e,
58
- supplier: k ? _(k) : e.supplier
59
- });
60
- return;
61
- }
62
- const m = (p ? n.allLocations.filter(
63
- (a) => a.doc._id !== n.currentLocation.doc._id
64
- ) : n.allLocations).find((a) => a.doc._id === s);
65
- c({
66
- ...e,
67
- supplier: m ? S(m) : e.supplier
68
- });
69
- }
70
- }), b = u(() => r.locationSuppliers.map(_)), L = u(() => r.businessSuppliers.map(_)), F = u(() => {
71
- const s = [...b.value], e = [...L.value];
72
- return f ? [...e, ...s] : e;
73
- }), l = u(() => {
74
- var i;
75
- const s = ((i = n._currentLocation) == null ? void 0 : i.type) === E.warehouse;
76
- return (p ? n.allLocations.filter(
77
- (t) => t.doc._id !== n.currentLocation.doc._id
78
- ) : n.allLocations).filter((t) => s || t.acceptRequest).map(S);
79
- }), V = u(() => {
80
- if (d.value === h.enum.purchase) {
81
- const e = b.value.map((t) => ({
82
- label: t.name,
83
- value: t._id
84
- })), i = L.value.map((t) => ({
85
- label: t.name,
86
- sublabel: "Business supplier",
87
- value: t._id
88
- }));
89
- return f ? [...e, ...i] : i;
90
- }
91
- return l.value.map((e) => ({
92
- label: e.name,
93
- sublabel: e.internal ? `${e.internal}` : void 0,
94
- value: e._id
95
- }));
96
- }), T = u(() => {
97
- var t, m;
98
- const s = (m = (t = o()) == null ? void 0 : t.supplier) == null ? void 0 : m._id;
99
- if (d.value === h.enum.purchase) {
100
- const a = r.suppliers.find((k) => k._id === s);
101
- return a ? _(a) : null;
102
- }
103
- const i = n.allLocations.find((a) => a.doc._id);
104
- return i ? S(i) : null;
105
- });
106
- return {
107
- transferLocationModel: v,
108
- transferLocationOptions: V,
109
- locationOptionsTypePurchase: F,
110
- locationOptionsTypePurchaseLocationLevel: b,
111
- locationOptionsTypeTransfer: l,
112
- selectedLocation: T
113
- };
114
- }
115
- const J = { class: "overflow-y-auto h-full pb-8" }, ee = /* @__PURE__ */ A({
116
- __name: "FmFilterableMenuOptions",
117
- props: /* @__PURE__ */ q({
118
- modelValue: {},
119
- maxHeight: {},
120
- width: {},
121
- handleItemChange: { type: Function },
122
- items: {},
123
- options: {}
124
- }, {
125
- search: {},
126
- searchModifiers: {}
127
- }),
128
- emits: ["update:search"],
129
- setup(o) {
130
- const c = o, p = D(o, "search"), f = u(
131
- () => new j(c.items, ["label", "sublabel"], {
132
- caseSensitive: !1,
133
- sort: !0
134
- })
135
- ), r = u(() => f.value.search(p.value)), n = H();
136
- return console.log({ stickyRef: n }), (d, v) => {
137
- const b = g("FmButton"), L = g("FmTextField"), F = g("FmMenuItem");
138
- return y(), O("div", {
139
- class: "relative",
140
- style: U({ width: d.width })
141
- }, [
142
- M("div", {
143
- class: "sticky top-0 bg-white mb-8",
144
- ref_key: "stickyRef",
145
- ref: n
146
- }, [
147
- $(L, {
148
- modelValue: p.value,
149
- "onUpdate:modelValue": v[1] || (v[1] = (l) => p.value = l),
150
- placeholder: "Filter options"
151
- }, {
152
- append: x(() => [
153
- p.value ? (y(), I(b, {
154
- key: 0,
155
- variant: "tertiary",
156
- "prepend-icon": "close",
157
- onClick: v[0] || (v[0] = (l) => p.value = "")
158
- })) : C("", !0)
159
- ]),
160
- _: 1
161
- }, 8, ["modelValue"])
162
- ], 512),
163
- M("div", J, [
164
- (y(!0), O(W, null, Y(r.value, (l, V) => (y(), I(F, {
165
- key: V,
166
- label: l.label,
167
- sublabel: l.sublabel,
168
- "model-value": N(w)(d.modelValue, l.value),
169
- onClick: () => d.handleItemChange(N(w)(d.modelValue, l.value), l),
170
- onVnodeMounted: (T) => {
171
- var s, e;
172
- return N(w)(d.modelValue, l.value) && ((s = T.el) == null || s.scrollIntoView({ behavior: "instant", block: "end" }), (e = T.el) == null || e.scrollIntoView({ behavior: "smooth", block: "center" })), void 0;
173
- }
174
- }, null, 8, ["label", "sublabel", "model-value", "onClick", "onVnodeMounted"]))), 128)),
175
- r.value.length ? C("", !0) : (y(), I(F, {
176
- key: 0,
177
- disabled: "",
178
- label: "No options available"
179
- }))
180
- ])
181
- ], 4);
182
- };
183
- }
184
- });
185
- export {
186
- ee as _,
187
- G as u
188
- };