@feedmepos/mf-inventory-portal 0.0.21-dev.4 → 0.0.21-dev.6

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 (32) hide show
  1. package/dist/ApprovalView-GLULYXhB.js +129 -0
  2. package/dist/{BindingsDialog-BFLeun5L.js → BindingsDialog-CXI3W-Hf.js} +1 -1
  3. package/dist/{BindingsPicker-CnjJZH9t.js → BindingsPicker-YNEUzqxB.js} +1 -1
  4. package/dist/{BindingsTable-C3VTa0YL.js → BindingsTable-Cy4PcSQp.js} +1 -1
  5. package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-DYBTXD_J.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-BR3OkQ-I.js} +2 -2
  6. package/dist/{IngredientsView-CQYJfAze.js → IngredientsView-M2-z4vrK.js} +99 -91
  7. package/dist/IntegrationView-C7Sp44u8.js +1141 -0
  8. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-Wv8RvXJL.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DjPYm570.js} +1 -1
  9. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-DsOGlAb7.js → PremiumBadge.vue_vue_type_script_setup_true_lang-B16W7VNn.js} +1 -1
  10. package/dist/{PurchaseOrderPrintPreview-B0hDduXB.js → PurchaseOrderPrintPreview-BAmltwDR.js} +1 -1
  11. package/dist/ReceiveRequestView-duFig9xt.js +216 -0
  12. package/dist/{RecipeView-DYKhSgtw.js → RecipeView-PJ3_kqGW.js} +182 -174
  13. package/dist/{StockView-BIGGG87A.js → StockView-CfuIqMzx.js} +547 -539
  14. package/dist/{SupplierView-DQzopnzt.js → SupplierView-DYwDjW-n.js} +263 -255
  15. package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-D8-sMRGm.js → TransferDetails.vue_vue_type_script_setup_true_lang-DLgZMAZE.js} +3 -3
  16. package/dist/{TransferDialog.vue_vue_type_script_setup_true_lang-CSUnXAyq.js → TransferDialog.vue_vue_type_script_setup_true_lang-DDbshbou.js} +4 -4
  17. package/dist/{TransferTemplateView-DWF54okN.js → TransferTemplateView-Dp8iePEq.js} +372 -364
  18. package/dist/{UnitView-Cdw8xxzV.js → UnitView-CCHbOX2X.js} +186 -178
  19. package/dist/{WarehouseView-DOelxuIh.js → WarehouseView-pH9cKRsq.js} +388 -380
  20. package/dist/{app-SBnQEeEV.js → app-COMlDiBt.js} +4 -4
  21. package/dist/app.js +1 -1
  22. package/dist/{decimal-BlEB2PrM.js → decimal-Dq4Uw3ur.js} +1 -1
  23. package/dist/{id-to-date-Y6berpHs.js → id-to-date-DZlIkqnX.js} +1 -1
  24. package/dist/{purchase-order-transaction-type-Dp0wsGal.js → purchase-order-transaction-type-Bu3XfZVh.js} +2 -2
  25. package/dist/{supplier-I_rYvljH.js → supplier-BLxvWUju.js} +1 -1
  26. package/dist/tsconfig.app.tsbuildinfo +1 -1
  27. package/dist/{xlsx-DGwG2ekM.js → xlsx-DvThoLQ9.js} +1 -1
  28. package/dist/{xlsx.util-Dsf-EgrG.js → xlsx.util-BaRCR8Wi.js} +2 -2
  29. package/package.json +3 -3
  30. package/dist/ApprovalView-BS4jzhAR.js +0 -121
  31. package/dist/IntegrationView-9V2OcyP_.js +0 -1172
  32. package/dist/ReceiveRequestView-3boFHkOO.js +0 -208
@@ -0,0 +1,129 @@
1
+ import { defineComponent as ee, ref as h, watch as te, computed as U, resolveComponent as ae, openBlock as g, createBlock as G, unref as e, withCtx as b, createElementVNode as s, normalizeClass as oe, createVNode as n, normalizeStyle as re, toDisplayString as ne, createElementBlock as se, createCommentVNode as le, Teleport as ie, mergeProps as ce } from "vue";
2
+ import { Y as f, O as J, j as pe } from "./app-COMlDiBt.js";
3
+ import { b as ue, u as me, _ as de, a as fe } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-BR3OkQ-I.js";
4
+ import { u as _e } from "./purchase-order-transaction-type-Bu3XfZVh.js";
5
+ import { u as ve, _ as De } from "./TransferDetails.vue_vue_type_script_setup_true_lang-DLgZMAZE.js";
6
+ import { _ as he, F as _ } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-DlNJ6kRg.js";
7
+ import { useBreakpoints as ge } from "@feedmepos/ui-library";
8
+ import { useI18n as be } from "@feedmepos/mf-common";
9
+ const xe = { class: "flex flex-col py-8" }, ye = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, we = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary line-clamp-1" }, Oe = { class: "fm-typo-en-body-md-400 text-fm-color-typo-primary line-clamp-1" }, Re = {
10
+ key: 0,
11
+ class: "fm-typo-en-body-md-400 text-fm-color-typo-primary line-clamp-1"
12
+ }, ke = { class: "pt-8" }, je = /* @__PURE__ */ ee({
13
+ __name: "ApprovalView",
14
+ setup(Se) {
15
+ const o = _e("approval"), { columnDefs: K } = ve("approval", o), Q = pe();
16
+ f.object({
17
+ name: f.string().optional().nullable(),
18
+ start: f.date().optional().nullable(),
19
+ end: f.date().optional().nullable()
20
+ });
21
+ const x = h({
22
+ name: "",
23
+ ...ue()
24
+ }), a = h({
25
+ startDate: J(x.value.start ?? /* @__PURE__ */ new Date()),
26
+ endDate: J(x.value.end ?? /* @__PURE__ */ new Date())
27
+ });
28
+ te([() => a.value.startDate], () => {
29
+ if (!a.value.startDate)
30
+ return;
31
+ if (!a.value.endDate) {
32
+ a.value.endDate = a.value.startDate;
33
+ return;
34
+ }
35
+ const w = new Date(a.value.startDate);
36
+ if (new Date(a.value.endDate).getTime() < w.getTime()) {
37
+ a.value.endDate = a.value.startDate;
38
+ return;
39
+ }
40
+ });
41
+ const v = h(""), { breakpoints: y } = ge(), D = U(() => y.value.xs || y.value.sm), W = U(() => D.value ? 10 : 20), X = me(), { t: Z } = be();
42
+ return (w, l) => {
43
+ const B = ae("FmTable");
44
+ return g(), G(de, {
45
+ title: e(Z)("inventory.transfer.approval.title")
46
+ }, {
47
+ default: b(() => [
48
+ s("div", {
49
+ class: oe([
50
+ "flex flex-col gap-8 max-h-full",
51
+ {
52
+ "p-0": D.value,
53
+ "px-24 ": !D.value
54
+ }
55
+ ])
56
+ }, [
57
+ n(fe, {
58
+ searchable: "",
59
+ "change-location": "",
60
+ search: v.value,
61
+ "onUpdate:search": l[0] || (l[0] = (r) => v.value = r),
62
+ actions: [{ icon: "refresh", onClick: e(o).fetchData }]
63
+ }, null, 8, ["search", "actions"]),
64
+ n(B, {
65
+ style: re(e(X).tableHeight),
66
+ "column-defs": e(K),
67
+ "row-data": e(o).purchaseRequests.value,
68
+ "search-value": v.value,
69
+ loading: !e(Q)._currentLocation || e(o).loading.value,
70
+ onRowClick: l[1] || (l[1] = (r) => e(o).promptShowTransferDetails(r.original.purchaseOrder, r.original)),
71
+ "page-size": W.value
72
+ }, {
73
+ "list-row": b((r) => [
74
+ n(he, {
75
+ row: r,
76
+ onRowClick: (t) => e(o).promptShowTransferDetails(t.purchaseOrder, t)
77
+ }, {
78
+ default: b((t) => {
79
+ var O, R, k, i, S, T, C, z, c, F, M, p, Y, u, $, V, j, q, L, m, N, E, P, A, d, H;
80
+ return [
81
+ s("div", xe, [
82
+ s("div", ye, [
83
+ n(e(_), {
84
+ render: (k = (R = (O = t.purchaseOrder__id) == null ? void 0 : O.column) == null ? void 0 : R.columnDef) == null ? void 0 : k.cell,
85
+ props: (S = (i = t.purchaseOrder__id) == null ? void 0 : i.getContext) == null ? void 0 : S.call(i)
86
+ }, null, 8, ["render", "props"])
87
+ ]),
88
+ s("div", we, [
89
+ n(e(_), {
90
+ render: (z = (C = (T = t.to_name) == null ? void 0 : T.column) == null ? void 0 : C.columnDef) == null ? void 0 : z.cell,
91
+ props: (F = (c = t.to_name) == null ? void 0 : c.getContext) == null ? void 0 : F.call(c)
92
+ }, null, 8, ["render", "props"])
93
+ ]),
94
+ s("div", Oe, ne(($ = (u = (Y = (p = (M = r.original.purchaseOrder) == null ? void 0 : M.items) == null ? void 0 : p.map) == null ? void 0 : Y.call(p, (I) => `${I.name}`)) == null ? void 0 : u.join) == null ? void 0 : $.call(u, ", ")), 1),
95
+ (V = r.original.purchaseOrder) != null && V.ref ? (g(), se("div", Re, [
96
+ n(e(_), {
97
+ render: (L = (q = (j = t.purchaseOrder_ref) == null ? void 0 : j.column) == null ? void 0 : q.columnDef) == null ? void 0 : L.cell,
98
+ props: (N = (m = t.purchaseOrder_ref) == null ? void 0 : m.getContext) == null ? void 0 : N.call(m)
99
+ }, null, 8, ["render", "props"])
100
+ ])) : le("", !0),
101
+ s("div", ke, [
102
+ n(e(_), {
103
+ render: (A = (P = (E = t.purchaseOrder_status) == null ? void 0 : E.column) == null ? void 0 : P.columnDef) == null ? void 0 : A.cell,
104
+ props: (H = (d = t.purchaseOrder_status) == null ? void 0 : d.getContext) == null ? void 0 : H.call(d)
105
+ }, null, 8, ["render", "props"])
106
+ ])
107
+ ])
108
+ ];
109
+ }),
110
+ _: 2
111
+ }, 1032, ["row", "onRowClick"])
112
+ ]),
113
+ _: 1
114
+ }, 8, ["style", "column-defs", "row-data", "search-value", "loading", "page-size"])
115
+ ], 2),
116
+ (g(), G(ie, { to: "body" }, [
117
+ n(De, ce(e(o).transferDetailsProps.value, {
118
+ onSubmitted: e(o).fetchData
119
+ }), null, 16, ["onSubmitted"])
120
+ ]))
121
+ ]),
122
+ _: 1
123
+ }, 8, ["title"]);
124
+ };
125
+ }
126
+ });
127
+ export {
128
+ je as default
129
+ };
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as C, ref as o, onMounted as M, onUnmounted as F, watch as x, resolveComponent as l, openBlock as i, createElementBlock as d, createBlock as I, withCtx as R, createVNode as a, createCommentVNode as z, createElementVNode as P } from "vue";
2
- import { u as V, am as L, _ as S } from "./app-SBnQEeEV.js";
2
+ import { u as V, am as L, _ as S } from "./app-COMlDiBt.js";
3
3
  const U = {
4
4
  key: 0,
5
5
  class: "flex justify-end gap-8 items-center"
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as S, computed as r, ref as l, onMounted as U, onUnmounted as V, resolveComponent as E, openBlock as p, createElementBlock as f, createVNode as u, createElementVNode as k } from "vue";
2
- import { u as x, am as M, y as z } from "./app-SBnQEeEV.js";
2
+ import { u as x, am as M, y as z } from "./app-COMlDiBt.js";
3
3
  const K = {
4
4
  key: 0,
5
5
  class: "flex flex-col gap-16"
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as _, ref as c, provide as C, computed as f, resolveComponent as b, openBlock as p, createBlock as h, h as z, onMounted as B, onUnmounted as I, createElementBlock as y, createVNode as N, createElementVNode as x } from "vue";
2
- import { q as v, u as E, am as L } from "./app-SBnQEeEV.js";
2
+ import { q as v, u as E, am as L } from "./app-COMlDiBt.js";
3
3
  import { components as F } from "@feedmepos/ui-library";
4
4
  import "@feedmepos/mf-common";
5
5
  const P = /* @__PURE__ */ _({
@@ -1,6 +1,6 @@
1
1
  import { reactive as E, onUnmounted as q, defineComponent as V, computed as _, resolveComponent as h, openBlock as a, createElementBlock as b, Fragment as F, createElementVNode as f, unref as u, normalizeClass as D, toDisplayString as L, createCommentVNode as y, renderList as R, createBlock as w, createVNode as v, renderSlot as G, Teleport as J, ref as O, withCtx as T, watch as K, mergeModels as W, useModel as U } from "vue";
2
2
  import { useBreakpoints as S, FmButtonVariant as X } from "@feedmepos/ui-library";
3
- import { j as P, O as N } from "./app-SBnQEeEV.js";
3
+ import { j as P, O as N } from "./app-COMlDiBt.js";
4
4
  import { useCoreStore as Z, useI18n as j } from "@feedmepos/mf-common";
5
5
  const I = E({});
6
6
  function A() {
@@ -315,7 +315,7 @@ const me = { class: "inline-flex rounded-md items-center gap-4 justify-center h-
315
315
  }, [
316
316
  f("div", {
317
317
  class: D([
318
- "flex gap-8 items-center h-48",
318
+ "flex gap-8 items-center",
319
319
  {
320
320
  "px-8 flex-col-reverse h-[unset]": c.value,
321
321
  "h-48": !c.value