@feedmepos/mf-inventory-portal 1.1.2 → 1.1.3-dev.2

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 (54) hide show
  1. package/dist/{App-BhEtjLqO.js → App-Y70p19Gp.js} +1 -1
  2. package/dist/ApprovalView-BVyt_mNb.js +219 -0
  3. package/dist/{BindingsDialog-CX3Hu_r6.js → BindingsDialog-BULs3OTl.js} +4 -4
  4. package/dist/{BindingsPicker-BbinQ8Hl.js → BindingsPicker-DpAk5M6U.js} +1 -1
  5. package/dist/{BindingsTable-DxlSz6Ev.js → BindingsTable-DzQzbNFw.js} +4 -4
  6. package/dist/ClosingDraftView-BpRIs-2B.js +1676 -0
  7. package/dist/{ClosingTemplateView-CB9_JOl4.js → ClosingTemplateView-B-kRLpTZ.js} +487 -473
  8. package/dist/{DeliveryOrderPrintPreview-BlE3fIAT.js → DeliveryOrderPrintPreview-CSZndykZ.js} +1 -1
  9. package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DxKFFyWs.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CDvzOUsD.js} +3 -3
  10. package/dist/{FmMultiselectDialog-DcviKwNR.js → FmMultiselectDialog-DSJ2MFmR.js} +1 -1
  11. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-CepHeClt.js → FmUnitInput.vue_vue_type_script_setup_true_lang-XUPKPUMs.js} +1 -1
  12. package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-Dg8VdQzg.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-c0_HwN-t.js} +1 -1
  13. package/dist/{IngredientGroupView-EE8lN8JL.js → IngredientGroupView-DQ-EBjd-.js} +2 -2
  14. package/dist/{IngredientsView-BkDpHVvn.js → IngredientsView-CQgltl5_.js} +4 -4
  15. package/dist/{IntegrationView-Bj7sb1gO.js → IntegrationView-CNcVeIFO.js} +1170 -1141
  16. package/dist/{InventoryBindingForm-BkazprFH.js → InventoryBindingForm-BuKXc_Sa.js} +1 -1
  17. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-BbQqYyzL.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-DQaufX7H.js} +3 -3
  18. package/dist/{InventoryBindingSummary-D0XiOdR4.js → InventoryBindingSummary-D68_zXou.js} +1 -1
  19. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-Pf8BPDZw.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-d2nPZ3lt.js} +1 -1
  20. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-D2Tx3xSj.js → PremiumBadge.vue_vue_type_script_setup_true_lang-DkRWn5u5.js} +1 -1
  21. package/dist/{PublishView-BUIcrw8m.js → PublishView-CpQ71JIU.js} +18 -18
  22. package/dist/{PurchaseOrderPrintPreview-lO7Bilm5.js → PurchaseOrderPrintPreview-DZo7aY7C.js} +1 -1
  23. package/dist/{ReceiveRequestView-BZV-8Ib3.js → ReceiveRequestView-C4546P-_.js} +697 -694
  24. package/dist/{RecipeView-2Tm12Zuk.js → RecipeView-BRwqCYV9.js} +3 -3
  25. package/dist/{StockView-DaWS_HQl.js → StockView-cvnJr_oX.js} +6 -6
  26. package/dist/{SupplierView-nfxqynuY.js → SupplierView-DwS-SiXQ.js} +648 -646
  27. package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-B2NLmIxb.js +2280 -0
  28. package/dist/{TransferTemplateView-CGjfCELA.js → TransferTemplateView-CGKjXln1.js} +6 -6
  29. package/dist/{UnitView-Cm5WuuEN.js → UnitView-BabatKhp.js} +3 -3
  30. package/dist/{WarehouseView-BSLX0g3B.js → WarehouseView-BtEuG-Iw.js} +1 -1
  31. package/dist/api/duplicate-template.d.ts +3 -3
  32. package/dist/api/netsuite.d.ts +1 -0
  33. package/dist/{app-CnDLBWW7.js → app-cN81pzZd.js} +23769 -23459
  34. package/dist/app.d.ts +9 -0
  35. package/dist/app.js +5 -5
  36. package/dist/{decimal-DmezA5YT.js → decimal-CC3JyA3f.js} +1 -1
  37. package/dist/{format-unit-display-Bcq6wldv.js → format-unit-display-B7SHcLn9.js} +216 -202
  38. package/dist/{index-C476dvi7.js → index-D-5LSVee.js} +2686 -2650
  39. package/dist/{index-R97nRHsF.js → index-DldWujwI.js} +1 -1
  40. package/dist/{stock-Dd0YSjSF.js → stock-DBkA5bTB.js} +1 -1
  41. package/dist/style.css +1 -1
  42. package/dist/{supplier-C4s3SHui.js → supplier-C_xP9tgW.js} +1 -1
  43. package/dist/tsconfig.app.tsbuildinfo +1 -1
  44. package/dist/{use-ingredient-select-dialog-DaXBOLhz.js → use-ingredient-select-dialog-mXti22kH.js} +1 -1
  45. package/dist/{use-inventory-binding-dialog-CsFwoUbg.js → use-inventory-binding-dialog-0b-ngROc.js} +1 -1
  46. package/dist/views/closing-draft/components/closing-draft-action/RefreshBalanceAction.vue.d.ts +19 -0
  47. package/dist/views/closing-draft/composables/use-closing-draft-actions.d.ts +4 -1
  48. package/dist/views/receive-request/components/transfer-details/TransferDetailsProps.d.ts +8 -0
  49. package/dist/views/receive-request/composables/fn.d.ts +32 -0
  50. package/dist/{vue-i18n-CdkMdZ30.js → vue-i18n-DB3u4gQS.js} +492 -492
  51. package/package.json +4 -4
  52. package/dist/ApprovalView-BHIVSsbz.js +0 -213
  53. package/dist/ClosingDraftView-B5gQ2k-T.js +0 -1520
  54. package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-g74nRiM0.js +0 -2213
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@feedmepos/mf-inventory-portal",
3
- "version": "1.1.2",
3
+ "version": "1.1.3-dev.2",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"
@@ -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.0",
46
+ "@feedmepos/inventory-core": "^1.0.1-dev.2",
47
47
  "@feedmepos/inventory-core-2": "^2.0.0",
48
48
  "@feedmepos/inventory-core-dart": "^1.0.0",
49
+ "@feedmepos/inventory-core-js": "^1.0.1",
49
50
  "@feedmepos/netsuite-core": "^1.0.0",
50
- "@feedmepos/zod-inventory": "^1.0.12",
51
- "@feedmepos/inventory-core-js": "^1.0.1"
51
+ "@feedmepos/zod-inventory": "^1.0.12"
52
52
  },
53
53
  "devDependencies": {
54
54
  "@rushstack/eslint-patch": "^1.10.3",
@@ -1,213 +0,0 @@
1
- import { defineComponent as le, ref as y, watch as ue, computed as d, resolveComponent as ie, openBlock as x, createBlock as W, unref as n, withCtx as k, createElementVNode as i, normalizeClass as ce, createVNode as u, normalizeStyle as pe, toDisplayString as de, createElementBlock as me, createCommentVNode as fe, Teleport as ve, mergeProps as he } from "vue";
2
- import { u as _e, b as De, aD as b, aO as ge, ae as X, B as ye, N as be, H as Oe, _ as Re, C as Se, E as xe, G as O } from "./app-CnDLBWW7.js";
3
- import { a as ke, P as q, b as qe, _ as we } from "./TransferDetails.vue_vue_type_script_setup_true_lang-g74nRiM0.js";
4
- import { useBreakpoints as Pe } from "@feedmepos/ui-library";
5
- import { useI18n as Ne } from "@feedmepos/mf-common";
6
- const Te = { class: "flex flex-col py-8" }, Ce = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ae = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary line-clamp-1" }, Ve = { class: "fm-typo-en-body-md-400 text-fm-color-typo-primary line-clamp-1" }, Le = {
7
- key: 0,
8
- class: "fm-typo-en-body-md-400 text-fm-color-typo-primary line-clamp-1"
9
- }, Me = { class: "pt-8" }, Ue = /* @__PURE__ */ le({
10
- __name: "ApprovalView",
11
- setup(ze) {
12
- const s = ke(q.APPROVAL), { columnDefs: Z } = qe(q.APPROVAL, s), B = _e(), I = De();
13
- b.object({
14
- name: b.string().optional().nullable(),
15
- start: b.date().optional().nullable(),
16
- end: b.date().optional().nullable()
17
- });
18
- const w = y({
19
- name: "",
20
- ...ge()
21
- }), o = y({
22
- startDate: X(w.value.start ?? /* @__PURE__ */ new Date()),
23
- endDate: X(w.value.end ?? /* @__PURE__ */ new Date())
24
- });
25
- ue([() => o.value.startDate], () => {
26
- if (!o.value.startDate)
27
- return;
28
- if (!o.value.endDate) {
29
- o.value.endDate = o.value.startDate;
30
- return;
31
- }
32
- const l = new Date(o.value.startDate);
33
- if (new Date(o.value.endDate).getTime() < l.getTime()) {
34
- o.value.endDate = o.value.startDate;
35
- return;
36
- }
37
- s.updateDateRange(o.value.startDate, o.value.endDate);
38
- });
39
- const R = y(""), { breakpoints: P } = Pe(), S = d(() => P.value.xs || P.value.sm), ee = d(() => S.value ? 10 : 20), te = ye(), { t: N } = Ne(), ae = d(() => [
40
- {
41
- label: N("inventory.common.refresh"),
42
- value: "refresh"
43
- }
44
- ]);
45
- function re(l) {
46
- switch (l) {
47
- case "refresh":
48
- return s.fetchData();
49
- }
50
- }
51
- const se = d(() => {
52
- const l = [
53
- {
54
- type: "string",
55
- key: "status",
56
- entity: "purchaseOrderRequest",
57
- values: Array.from(
58
- new Set(
59
- s.purchaseRequests.value.map((t) => {
60
- var e;
61
- return ((e = t.purchaseOrder) == null ? void 0 : e.status) ?? "";
62
- }).filter((t) => t !== "")
63
- )
64
- )
65
- }
66
- ], r = [
67
- {
68
- type: "string",
69
- key: "netsuiteTransactionNumber",
70
- entity: "purchaseOrderRequest",
71
- values: s.purchaseRequests.value.map((t) => {
72
- var e, a;
73
- return (a = (e = t.netSuite) == null ? void 0 : e.additionalInfo) == null ? void 0 : a.transactionnumber;
74
- }).filter((t) => t != null)
75
- },
76
- {
77
- type: "string",
78
- key: "netsuiteOrderNo",
79
- entity: "purchaseOrderRequest",
80
- values: s.purchaseRequests.value.map((t) => {
81
- var e;
82
- return (e = t.netSuite) == null ? void 0 : e.refNo;
83
- }).filter((t) => t != null)
84
- },
85
- {
86
- type: "string",
87
- key: "netsuiteOrderId",
88
- entity: "purchaseOrderRequest",
89
- values: s.purchaseRequests.value.map((t) => {
90
- var e;
91
- return (e = t.netSuite) == null ? void 0 : e.id;
92
- }).filter((t) => t != null)
93
- }
94
- ];
95
- return [...l, ...I.isEnabled ? r : []];
96
- }), m = y(null), ne = d(() => {
97
- if (!m.value)
98
- return s.purchaseRequests.value;
99
- const l = be.build(m.value);
100
- return s.purchaseRequests.value.filter((r) => {
101
- var t, e, a, c, p;
102
- return Oe(
103
- {
104
- netsuiteTransactionNumber: (e = (t = r.netSuite) == null ? void 0 : t.additionalInfo) == null ? void 0 : e.transactionnumber,
105
- netsuiteOrderNo: (a = r.netSuite) == null ? void 0 : a.refNo,
106
- netsuiteOrderId: (c = r.netSuite) == null ? void 0 : c.id,
107
- status: (p = r.purchaseOrder) == null ? void 0 : p.status
108
- },
109
- l
110
- );
111
- });
112
- });
113
- return (l, r) => {
114
- const t = ie("FmTable");
115
- return x(), W(Re, {
116
- title: n(N)("inventory.transfer.approval.title"),
117
- actions: ae.value,
118
- "onClick:action": re
119
- }, {
120
- default: k(() => [
121
- i("div", {
122
- class: ce([
123
- "flex flex-col gap-8 max-h-full",
124
- {
125
- "p-0": S.value,
126
- "px-24 ": !S.value
127
- }
128
- ])
129
- }, [
130
- u(Se, {
131
- "date-range-query": "",
132
- "date-range": o.value,
133
- "onUpdate:dateRange": r[0] || (r[0] = (e) => o.value = e),
134
- searchable: "",
135
- "change-location": "",
136
- search: R.value,
137
- "onUpdate:search": r[1] || (r[1] = (e) => R.value = e),
138
- filterable: "",
139
- "filter-attributes": se.value,
140
- filter: m.value,
141
- "onUpdate:filter": r[2] || (r[2] = (e) => m.value = e)
142
- }, null, 8, ["date-range", "search", "filter-attributes", "filter"]),
143
- u(t, {
144
- style: pe(n(te).tableHeight),
145
- "column-defs": n(Z),
146
- "row-data": ne.value,
147
- "search-value": R.value,
148
- loading: !n(B)._currentLocation || n(s).loading.value,
149
- onRowClick: r[3] || (r[3] = (e) => n(s).promptShowTransferDetails(
150
- e.original.purchaseOrder,
151
- e.original
152
- )),
153
- "page-size": ee.value
154
- }, {
155
- "list-row": k((e) => [
156
- u(xe, {
157
- row: e,
158
- onRowClick: (a) => n(s).promptShowTransferDetails(a.purchaseOrder, a)
159
- }, {
160
- default: k((a) => {
161
- var c, p, T, f, C, A, V, L, v, M, z, h, E, _, F, $, H, Y, U, D, j, G, J, K, g, Q;
162
- return [
163
- i("div", Te, [
164
- i("div", Ce, [
165
- u(n(O), {
166
- render: (T = (p = (c = a.purchaseOrder__id) == null ? void 0 : c.column) == null ? void 0 : p.columnDef) == null ? void 0 : T.cell,
167
- props: (C = (f = a.purchaseOrder__id) == null ? void 0 : f.getContext) == null ? void 0 : C.call(f)
168
- }, null, 8, ["render", "props"])
169
- ]),
170
- i("div", Ae, [
171
- u(n(O), {
172
- render: (L = (V = (A = a.to_name) == null ? void 0 : A.column) == null ? void 0 : V.columnDef) == null ? void 0 : L.cell,
173
- props: (M = (v = a.to_name) == null ? void 0 : v.getContext) == null ? void 0 : M.call(v)
174
- }, null, 8, ["render", "props"])
175
- ]),
176
- i("div", Ve, de((F = (_ = (E = (h = (z = e.original.purchaseOrder) == null ? void 0 : z.items) == null ? void 0 : h.map) == null ? void 0 : E.call(h, (oe) => `${oe.name}`)) == null ? void 0 : _.join) == null ? void 0 : F.call(_, ", ")), 1),
177
- ($ = e.original.purchaseOrder) != null && $.ref ? (x(), me("div", Le, [
178
- u(n(O), {
179
- render: (U = (Y = (H = a.purchaseOrder_ref) == null ? void 0 : H.column) == null ? void 0 : Y.columnDef) == null ? void 0 : U.cell,
180
- props: (j = (D = a.purchaseOrder_ref) == null ? void 0 : D.getContext) == null ? void 0 : j.call(D)
181
- }, null, 8, ["render", "props"])
182
- ])) : fe("", !0),
183
- i("div", Me, [
184
- u(n(O), {
185
- render: (K = (J = (G = a.purchaseOrder_status) == null ? void 0 : G.column) == null ? void 0 : J.columnDef) == null ? void 0 : K.cell,
186
- props: (Q = (g = a.purchaseOrder_status) == null ? void 0 : g.getContext) == null ? void 0 : Q.call(g)
187
- }, null, 8, ["render", "props"])
188
- ])
189
- ])
190
- ];
191
- }),
192
- _: 2
193
- }, 1032, ["row", "onRowClick"])
194
- ]),
195
- _: 1
196
- }, 8, ["style", "column-defs", "row-data", "search-value", "loading", "page-size"])
197
- ], 2),
198
- (x(), W(ve, { to: "body" }, [
199
- u(we, he({
200
- scope: n(q).APPROVAL
201
- }, n(s).transferDetailsProps.value, {
202
- onSubmitted: n(s).fetchData
203
- }), null, 16, ["scope", "onSubmitted"])
204
- ]))
205
- ]),
206
- _: 1
207
- }, 8, ["title", "actions"]);
208
- };
209
- }
210
- });
211
- export {
212
- Ue as default
213
- };