@feedmepos/mf-inventory-portal 0.0.22-dev.1 → 0.0.22-dev.10

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 (76) hide show
  1. package/dist/App.vue.d.ts +2 -0
  2. package/dist/{ApprovalView-CtH8I01g.js → ApprovalView-FwJEAzkU.js} +19 -19
  3. package/dist/{BindingsDialog-DFrk_fyd.js → BindingsDialog-DFLnNDpl.js} +1 -1
  4. package/dist/{BindingsPicker-400gISaV.js → BindingsPicker-Dsd2wQUR.js} +19 -19
  5. package/dist/{BindingsTable-CnFKI6iP.js → BindingsTable-CTvUEEjT.js} +1 -1
  6. package/dist/ClosingTemplateView-CPbDZmei.js +1066 -0
  7. package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-B9RU_arW.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-MW-Ni07p.js} +13 -15
  8. package/dist/{IngredientsView-CRTAgKJz.js → IngredientsView-C07TvvCQ.js} +5 -6
  9. package/dist/{IntegrationView-CNFTKqjk.js → IntegrationView-BAnrTgio.js} +2 -2
  10. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-VkiVLx1K.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-YAjDfJ_v.js} +1 -1
  11. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-DkZrgqyr.js → PremiumBadge.vue_vue_type_script_setup_true_lang-CvzA5XrI.js} +1 -1
  12. package/dist/{PurchaseOrderPrintPreview-CJli-_Vn.js → PurchaseOrderPrintPreview-FiOxyAL2.js} +1 -1
  13. package/dist/{ReceiveRequestView-DV_GDzJG.js → ReceiveRequestView-BTZ_99LY.js} +15 -16
  14. package/dist/{RecipeView-CTm_7oNG.js → RecipeView-BTRlXuIp.js} +3 -3
  15. package/dist/{StockView-DtHT2ulM.js → StockView-B50nZjP-.js} +8 -9
  16. package/dist/{SupplierView-B9A5R2Vm.js → SupplierView-CYEdoZ7g.js} +37 -37
  17. package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-CMMMgbwA.js +762 -0
  18. package/dist/TransferDialog.vue_vue_type_script_setup_true_lang-BKmp6Emq.js +1505 -0
  19. package/dist/TransferTemplateView-DJYoQWDE.js +1277 -0
  20. package/dist/{UnitView-BL-jtVuZ.js → UnitView-Cg9lop9G.js} +4 -4
  21. package/dist/WarehouseView-DQKq_W8l.js +1017 -0
  22. package/dist/api/closing-template.d.ts +14 -0
  23. package/dist/api/inventory.d.ts +5 -7
  24. package/dist/api/netsuite.d.ts +46 -0
  25. package/dist/api/purchase-order-template.d.ts +0 -4
  26. package/dist/{app-C-z1MfF6.js → app-CRbOk4dN.js} +15759 -15399
  27. package/dist/app.d.ts +6 -0
  28. package/dist/app.js +2 -2
  29. package/dist/components/FmMultiselectDialogProps.d.ts +1 -0
  30. package/dist/components/VirtualScroll.vue.d.ts +47 -0
  31. package/dist/{decimal-DZz-_lgE.js → decimal-BrFW4i9P.js} +1 -1
  32. package/dist/{defineDeepModel-7VQajdPt.js → defineDeepModel-Dihj57Tu.js} +4 -4
  33. package/dist/extensions/promises.d.ts +14 -0
  34. package/dist/{format-time-from-id-9XFszs1J.js → format-time-from-id-CAMmsTAi.js} +1 -1
  35. package/dist/helper/date2.d.ts +1 -0
  36. package/dist/{id-to-date-Bkue77uI.js → id-to-date-CLOPCZAL.js} +1 -1
  37. package/dist/purchase-order-transaction-type-C6B_s24N.js +676 -0
  38. package/dist/stores/api.d.ts +1 -0
  39. package/dist/stores/feature.d.ts +0 -1
  40. package/dist/stores/helper/core-store-proxy.d.ts +3 -0
  41. package/dist/stores/helper/generate-backend-urls.d.ts +1 -0
  42. package/dist/stores/inventory.d.ts +7 -0
  43. package/dist/stores/location.d.ts +24 -42
  44. package/dist/stores/netsuite.d.ts +56 -0
  45. package/dist/stores/route.d.ts +0 -5
  46. package/dist/stores/warehouse.d.ts +4 -7
  47. package/dist/style.css +1 -1
  48. package/dist/{supplier-C6YWXF2Y.js → supplier-CQ57ob8j.js} +1 -1
  49. package/dist/tsconfig.app.tsbuildinfo +1 -1
  50. package/dist/use-template-enabled-locations-2-D5I1uMwS.js +85 -0
  51. package/dist/views/closing-template/components/closing-template-publish/ClosingTemplatePublish.vue.d.ts +6 -0
  52. package/dist/views/closing-template/composables/use-closing-template-actions.d.ts +276 -84
  53. package/dist/views/closing-template/composables/use-closing-template-table.d.ts +341 -85
  54. package/dist/views/receive-request/components/transfer-form/TransferForm.vue.d.ts +14 -0
  55. package/dist/views/receive-request/composables/use-receive-request-form.d.ts +42 -0
  56. package/dist/views/receive-request/composables/use-receive-request-table.d.ts +42 -0
  57. package/dist/views/transfer-template/components/transfer-template-form/composables/use-template-enabled-locations-2.d.ts +13 -0
  58. package/dist/views/transfer-template/components/transfer-template-form/composables/use-template-enabled-locations.d.ts +4 -7
  59. package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-locations.d.ts +2 -2
  60. package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +132 -84
  61. package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +44 -1014
  62. package/dist/views/transfer-template/helpers/remove-deleted-skus.helper.d.ts +251 -0
  63. package/dist/views/warehouse/components/WarehouseForm.vue.d.ts +8 -14
  64. package/dist/{xlsx-Dl6dAHFx.js → xlsx-WWSZpgZu.js} +1 -1
  65. package/dist/{xlsx.util-C1tUhDb8.js → xlsx.util-DjCdSP8D.js} +2 -2
  66. package/package.json +5 -5
  67. package/dist/ClosingTemplateView--8m8cua_.js +0 -919
  68. package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-mUNCQTNw.js +0 -740
  69. package/dist/TransferDialog.vue_vue_type_script_setup_true_lang-BwkUuXqj.js +0 -1428
  70. package/dist/TransferTemplateView-DnyenkGu.js +0 -1349
  71. package/dist/WarehouseView-BkUv1792.js +0 -1056
  72. package/dist/array-ClJzD_Lt.js +0 -30
  73. package/dist/layout/InventoryLayout.vue.d.ts +0 -2
  74. package/dist/layout/layout-routes.d.ts +0 -6
  75. package/dist/purchase-order-transaction-type-DHzMBgFs.js +0 -712
  76. package/dist/use-template-enabled-locations-CFCfbaOd.js +0 -57
package/dist/App.vue.d.ts CHANGED
@@ -1,2 +1,4 @@
1
+ import '@/extensions/array';
2
+ import '@/extensions/promises';
1
3
  declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
4
  export default _default;
@@ -1,8 +1,8 @@
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-C-z1MfF6.js";
3
- import { b as ue, u as me, _ as de, a as fe } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-B9RU_arW.js";
4
- import { u as _e } from "./purchase-order-transaction-type-DHzMBgFs.js";
5
- import { u as ve, _ as De } from "./TransferDetails.vue_vue_type_script_setup_true_lang-mUNCQTNw.js";
1
+ import { defineComponent as ee, ref as h, watch as te, computed as U, resolveComponent as ae, openBlock as g, createBlock as Z, 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 { Z as f, O as G, j as pe } from "./app-CRbOk4dN.js";
3
+ import { b as ue, u as me, _ as de, a as fe } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-MW-Ni07p.js";
4
+ import { u as _e } from "./purchase-order-transaction-type-C6B_s24N.js";
5
+ import { u as ve, _ as De } from "./TransferDetails.vue_vue_type_script_setup_true_lang-CMMMgbwA.js";
6
6
  import { _ as he, F as _ } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-DlNJ6kRg.js";
7
7
  import { useBreakpoints as ge } from "@feedmepos/ui-library";
8
8
  import { useI18n as be } from "@feedmepos/mf-common";
@@ -12,7 +12,7 @@ const xe = { class: "flex flex-col py-8" }, ye = { class: "fm-typo-en-body-md-40
12
12
  }, ke = { class: "pt-8" }, je = /* @__PURE__ */ ee({
13
13
  __name: "ApprovalView",
14
14
  setup(Se) {
15
- const o = _e("approval"), { columnDefs: K } = ve("approval", o), Q = pe();
15
+ const o = _e("approval"), { columnDefs: J } = ve("approval", o), K = pe();
16
16
  f.object({
17
17
  name: f.string().optional().nullable(),
18
18
  start: f.date().optional().nullable(),
@@ -22,8 +22,8 @@ const xe = { class: "flex flex-col py-8" }, ye = { class: "fm-typo-en-body-md-40
22
22
  name: "",
23
23
  ...ue()
24
24
  }), a = h({
25
- startDate: J(x.value.start ?? /* @__PURE__ */ new Date()),
26
- endDate: J(x.value.end ?? /* @__PURE__ */ new Date())
25
+ startDate: G(x.value.start ?? /* @__PURE__ */ new Date()),
26
+ endDate: G(x.value.end ?? /* @__PURE__ */ new Date())
27
27
  });
28
28
  te([() => a.value.startDate], () => {
29
29
  if (!a.value.startDate)
@@ -38,11 +38,11 @@ const xe = { class: "flex flex-col py-8" }, ye = { class: "fm-typo-en-body-md-40
38
38
  return;
39
39
  }
40
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();
41
+ const v = h(""), { breakpoints: y } = ge(), D = U(() => y.value.xs || y.value.sm), Q = U(() => D.value ? 10 : 20), W = me(), { t: X } = be();
42
42
  return (w, l) => {
43
43
  const B = ae("FmTable");
44
- return g(), G(de, {
45
- title: e(Z)("inventory.transfer.approval.title")
44
+ return g(), Z(de, {
45
+ title: e(X)("inventory.transfer.approval.title")
46
46
  }, {
47
47
  default: b(() => [
48
48
  s("div", {
@@ -62,13 +62,13 @@ const xe = { class: "flex flex-col py-8" }, ye = { class: "fm-typo-en-body-md-40
62
62
  actions: [{ icon: "refresh", onClick: e(o).fetchData }]
63
63
  }, null, 8, ["search", "actions"]),
64
64
  n(B, {
65
- style: re(e(X).tableHeight),
66
- "column-defs": e(K),
65
+ style: re(e(W).tableHeight),
66
+ "column-defs": e(J),
67
67
  "row-data": e(o).purchaseRequests.value,
68
68
  "search-value": v.value,
69
- loading: !e(Q)._currentLocation || e(o).loading.value,
69
+ loading: !e(K)._currentLocation || e(o).loading.value,
70
70
  onRowClick: l[1] || (l[1] = (r) => e(o).promptShowTransferDetails(r.original.purchaseOrder, r.original)),
71
- "page-size": W.value
71
+ "page-size": Q.value
72
72
  }, {
73
73
  "list-row": b((r) => [
74
74
  n(he, {
@@ -76,7 +76,7 @@ const xe = { class: "flex flex-col py-8" }, ye = { class: "fm-typo-en-body-md-40
76
76
  onRowClick: (t) => e(o).promptShowTransferDetails(t.purchaseOrder, t)
77
77
  }, {
78
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;
79
+ var O, R, k, i, S, T, C, z, c, F, M, p, $, u, V, Y, j, q, L, m, N, E, P, A, d, H;
80
80
  return [
81
81
  s("div", xe, [
82
82
  s("div", ye, [
@@ -91,8 +91,8 @@ const xe = { class: "flex flex-col py-8" }, ye = { class: "fm-typo-en-body-md-40
91
91
  props: (F = (c = t.to_name) == null ? void 0 : c.getContext) == null ? void 0 : F.call(c)
92
92
  }, null, 8, ["render", "props"])
93
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, [
94
+ s("div", Oe, ne((V = (u = ($ = (p = (M = r.original.purchaseOrder) == null ? void 0 : M.items) == null ? void 0 : p.map) == null ? void 0 : $.call(p, (I) => `${I.name}`)) == null ? void 0 : u.join) == null ? void 0 : V.call(u, ", ")), 1),
95
+ (Y = r.original.purchaseOrder) != null && Y.ref ? (g(), se("div", Re, [
96
96
  n(e(_), {
97
97
  render: (L = (q = (j = t.purchaseOrder_ref) == null ? void 0 : j.column) == null ? void 0 : q.columnDef) == null ? void 0 : L.cell,
98
98
  props: (N = (m = t.purchaseOrder_ref) == null ? void 0 : m.getContext) == null ? void 0 : N.call(m)
@@ -113,7 +113,7 @@ const xe = { class: "flex flex-col py-8" }, ye = { class: "fm-typo-en-body-md-40
113
113
  _: 1
114
114
  }, 8, ["style", "column-defs", "row-data", "search-value", "loading", "page-size"])
115
115
  ], 2),
116
- (g(), G(ie, { to: "body" }, [
116
+ (g(), Z(ie, { to: "body" }, [
117
117
  n(De, ce(e(o).transferDetailsProps.value, {
118
118
  onSubmitted: e(o).fetchData
119
119
  }), null, 16, ["onSubmitted"])
@@ -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-C-z1MfF6.js";
2
+ import { u as V, ao as L, _ as S } from "./app-CRbOk4dN.js";
3
3
  const U = {
4
4
  key: 0,
5
5
  class: "flex justify-end gap-8 items-center"
@@ -1,22 +1,22 @@
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-C-z1MfF6.js";
3
- const K = {
1
+ import { defineComponent as S, computed as u, ref as l, onMounted as U, onUnmounted as V, resolveComponent as E, openBlock as p, createElementBlock as f, createVNode as r, createElementVNode as k } from "vue";
2
+ import { u as M, ao as x, y as z } from "./app-CRbOk4dN.js";
3
+ const F = {
4
4
  key: 0,
5
5
  class: "flex flex-col gap-16"
6
- }, w = { class: "flex justify-end gap-8 items-center" }, F = {
6
+ }, K = { class: "flex justify-end gap-8 items-center" }, w = {
7
7
  key: 1,
8
8
  class: "p-24 flex items-center justify-center gap-16"
9
9
  }, N = /* @__PURE__ */ S({
10
10
  __name: "BindingsPicker",
11
11
  setup(L) {
12
- const d = x(), C = r(() => d.recipes), I = r(() => d.skus), g = l(!0), i = l(new Array()), a = l("RECIPE"), c = r(() => a.value === "SKU" ? I.value.map((s) => ({
12
+ const d = M(), C = u(() => d.recipes), I = u(() => d.skus), g = l(!0), i = l(new Array()), a = l("RECIPE"), c = u(() => a.value === "SKU" ? I.value.map((s) => ({
13
13
  label: s.name,
14
14
  sublabel: s.code,
15
15
  value: s
16
16
  })) : C.value.map((s) => ({
17
17
  label: s.name,
18
18
  value: s
19
- }))), b = r({
19
+ }))), b = u({
20
20
  get() {
21
21
  if (a.value === "SKU") {
22
22
  const e = i.value.filter((n) => n.type === "SKU");
@@ -62,9 +62,9 @@ const K = {
62
62
  ];
63
63
  }
64
64
  }
65
- }), _ = l(), o = M(B);
65
+ }), y = l(), o = x(B);
66
66
  async function B() {
67
- await d.readInventory(), _.value = o.onMessage(
67
+ await d.readInventory(), y.value = o.onMessage(
68
68
  "props:binding-items",
69
69
  (e) => {
70
70
  g.value = !1, a.value = e.type, i.value = e.bindings;
@@ -77,38 +77,38 @@ const K = {
77
77
  function R() {
78
78
  o.sendMessage("@submit:items", i.value);
79
79
  }
80
- const y = l();
80
+ const _ = l();
81
81
  return U(() => {
82
- const e = y.value;
82
+ const e = _.value;
83
83
  e && new ResizeObserver(() => {
84
84
  o.sendMessage("resize", e.scrollHeight);
85
85
  }).observe(e);
86
86
  }), V(() => {
87
87
  var e, s;
88
- (s = (e = _.value) == null ? void 0 : e.removeEventListener) == null || s.call(e);
88
+ (s = (e = y.value) == null ? void 0 : e.removeEventListener) == null || s.call(e);
89
89
  }), (e, s) => {
90
90
  const n = E("FmButton"), t = E("FmCircularProgress");
91
91
  return p(), f("div", {
92
92
  class: "bg-white",
93
93
  ref_key: "resizeableRef",
94
- ref: y
94
+ ref: _
95
95
  }, [
96
- g.value ? (p(), f("div", F, [
97
- u(t, { size: "md" }),
96
+ g.value ? (p(), f("div", w, [
97
+ r(t, { size: "md" }),
98
98
  s[1] || (s[1] = k("div", null, "Loading bindings dialog...", -1))
99
- ])) : (p(), f("div", K, [
100
- u(z, {
99
+ ])) : (p(), f("div", F, [
100
+ r(z, {
101
101
  "model-value": b.value,
102
102
  "onUpdate:modelValue": s[0] || (s[0] = (m) => b.value = m),
103
103
  items: c.value
104
104
  }, null, 8, ["model-value", "items"]),
105
- k("div", w, [
106
- u(n, {
105
+ k("div", K, [
106
+ r(n, {
107
107
  variant: "tertiary",
108
108
  label: "Close",
109
109
  onClick: P
110
110
  }),
111
- u(n, {
111
+ r(n, {
112
112
  label: "Submit",
113
113
  onClick: R
114
114
  })
@@ -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-C-z1MfF6.js";
2
+ import { q as v, u as E, ao as L } from "./app-CRbOk4dN.js";
3
3
  import { components as F } from "@feedmepos/ui-library";
4
4
  import "@feedmepos/mf-common";
5
5
  const P = /* @__PURE__ */ _({