@feedmepos/mf-inventory-portal 1.2.29 → 1.2.30

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 (80) hide show
  1. package/dist/{App-BcetoQcK.js → App-CZJre5y8.js} +56 -54
  2. package/dist/{ApprovalView-CyRCctkZ.js → ApprovalView-CnxHxojY.js} +34 -28
  3. package/dist/{BindingsDialog-DLN2RPYo.js → BindingsDialog-C6lCOPNs.js} +2 -2
  4. package/dist/{BindingsPicker-CDtYeSVh.js → BindingsPicker-DZtFKLQ5.js} +6 -5
  5. package/dist/{BindingsTable-C19Bm8d6.js → BindingsTable-BmQGLuJ4.js} +28 -24
  6. package/dist/{ClosingDraftView-DBFIR6Xv.js → ClosingDraftView-KLtlh31f.js} +184 -176
  7. package/dist/{ClosingHistoryView-BEZOwsPz.js → ClosingHistoryView-Rf1yMhMj.js} +43 -41
  8. package/dist/{ClosingTemplateView-COifu0I6.js → ClosingTemplateView-C_IiKnGx.js} +116 -98
  9. package/dist/{DeliveryOrderPrintPreview-lBFtH_Rm.js → DeliveryOrderPrintPreview-UF7V005U.js} +15 -14
  10. package/dist/FmDroppableField-J0xUsOTV.js +154 -0
  11. package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BhhmWaOl.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BcMvEdc0.js} +74 -72
  12. package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CqAeF0wL.js +279 -0
  13. package/dist/{FmMultiselectDialog-CBYvYJnE.js → FmMultiselectDialog-B0aKuf2o.js} +1 -1
  14. package/dist/FmMultiselectDialog-BasrjBFA.js +597 -0
  15. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-CLuceimk.js → FmUnitInput.vue_vue_type_script_setup_true_lang-CaYJJkXz.js} +51 -49
  16. package/dist/{ImportView-DYNjmjys.js → ImportView-DRSoz0uM.js} +81 -74
  17. package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-BXefPowE.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-DA8SlWPy.js} +5 -5
  18. package/dist/{IngredientGroupView-CNzK_dDv.js → IngredientGroupView-D5Laak2-.js} +73 -65
  19. package/dist/{IngredientsView-BnrA0ijB.js → IngredientsView-TG3fPQhR.js} +358 -345
  20. package/dist/{IntegrationView-DwcP5MgB.js → IntegrationView-CElpjyo7.js} +219 -209
  21. package/dist/{InventoryBindingForm-DeqdcXzm.js → InventoryBindingForm-CBgxRYBd.js} +1 -1
  22. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-FuPTxo7z.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-Ys5GBHoQ.js} +41 -40
  23. package/dist/{InventoryBindingSummary-Dp0bshzL.js → InventoryBindingSummary-OK3vNWhi.js} +1 -1
  24. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DLvWaFvA.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-9QRntUlk.js} +5 -5
  25. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-tLW9bojI.js → PremiumBadge.vue_vue_type_script_setup_true_lang-Bc01NoOn.js} +22 -21
  26. package/dist/{PublishView-CxIU1aI4.js → PublishView-CLMfiLjP.js} +26 -23
  27. package/dist/{PurchaseOrderPrintPreview-DWxp3cFM.js → PurchaseOrderPrintPreview-Dy77yWDC.js} +10 -9
  28. package/dist/{ReceiveRequestView-CF9ingct.js → ReceiveRequestView-BhD-NaHE.js} +324 -308
  29. package/dist/{RecipeView-B87vakmu.js → RecipeView-RWaO94w_.js} +73 -64
  30. package/dist/SingleColumnLayout.vue_vue_type_script_setup_true_lang-DY7TaxPK.js +251 -0
  31. package/dist/{StockView-XJY3690u.js → StockView-D5t8OxaG.js} +292 -282
  32. package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-DY1iRl1F.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-3Asf1TGd.js} +1 -1
  33. package/dist/{SupplierView-Y2NqnJ6-.js → SupplierView-DiospFKq.js} +92 -80
  34. package/dist/SystemTrailDialog.vue_vue_type_script_setup_true_lang-DfCHteOF.js +177 -0
  35. package/dist/TableActionableRow.vue_vue_type_script_setup_true_lang-DlNJ6kRg.js +135 -0
  36. package/dist/TemplatePublishDialog.vue_vue_type_script_setup_true_lang-CNtvx-LA.js +123 -0
  37. package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-l0qRNa0W.js → TransferDetails.vue_vue_type_script_setup_true_lang-p959Op4k.js} +318 -305
  38. package/dist/{TransferTemplateView-DBlasHGY.js → TransferTemplateView-ePZFdZ0p.js} +228 -216
  39. package/dist/{UnitView-C8z90hHr.js → UnitView-Banlxw7y.js} +70 -63
  40. package/dist/{WarehouseView-egtnCnzo.js → WarehouseView-BL-p5hbi.js} +123 -114
  41. package/dist/WastageTemplateView-B1pmSuW0.js +2288 -0
  42. package/dist/_plugin-vue_export-helper-CHgC5LLL.js +9 -0
  43. package/dist/app-EpEEb8EO.js +64040 -0
  44. package/dist/app-rgirz_52.js +8024 -0
  45. package/dist/app.js +6 -6
  46. package/dist/closing-template-zIjwO1_E.js +117 -0
  47. package/dist/date2-Dnc8Y81g.js +116 -0
  48. package/dist/dayjs.min-TdUgzmww.js +282 -0
  49. package/dist/{decimal-CLM3HUsc.js → decimal-C6s3GvGb.js} +4 -3
  50. package/dist/defineDeepModel-BSaaXVBF.js +19 -0
  51. package/dist/duplicate-template-Bw0H416G.js +34 -0
  52. package/dist/feature-C95Hao53.js +20162 -0
  53. package/dist/form-mode.enum-BKiNVH6A.js +4 -0
  54. package/dist/format-time-from-id-DlbHo6kY.js +15 -0
  55. package/dist/{format-unit-display-BWoznxQp.js → format-unit-display-QBS54q0R.js} +308 -297
  56. package/dist/{import-export.helper-DgKnsYRB.js → import-export.helper-CUKCKtP7.js} +56 -52
  57. package/dist/index-CFn_9RMm.js +45 -0
  58. package/dist/{index-CK61uHgW.js → index-S9Ak__QC.js} +1 -1
  59. package/dist/{index-tMZSFG5r.js → index-goD-WGVb.js} +16 -14
  60. package/dist/lodash-gq8IrP4j.js +3678 -0
  61. package/dist/netsuite-CnhAKyAO.js +4316 -0
  62. package/dist/{purchase-order-template-D7dkJMqf.js → purchase-order-template-CBIpWdEW.js} +1 -1
  63. package/dist/router/shared.spec.d.ts +1 -0
  64. package/dist/row-action.enum-BcW_L_nE.js +67 -0
  65. package/dist/rules-DKklsaS1.js +201 -0
  66. package/dist/{stock-B3EEUmkF.js → stock-3K93Mif9.js} +1 -1
  67. package/dist/{stock-DYBHa0KN.js → stock-BW8fen3H.js} +11 -10
  68. package/dist/style.css +1 -1
  69. package/dist/{supplier-CY7Hj_a2.js → supplier-CObCSfot.js} +27 -26
  70. package/dist/tsconfig.app.tsbuildinfo +1 -1
  71. package/dist/{use-ingredient-select-dialog-Dlv7Eowu.js → use-ingredient-select-dialog-DwvQiaVW.js} +4 -3
  72. package/dist/{use-inventory-binding-dialog-DOSfDQte.js → use-inventory-binding-dialog-CuLEHLDM.js} +4 -3
  73. package/dist/use-template-enabled-locations-2-DkUJeppb.js +111 -0
  74. package/dist/views/adjustment-template/wastage-template/table.d.ts +1 -1
  75. package/dist/views/closing-template/composables/use-closing-template-actions.d.ts +1 -1
  76. package/dist/vue-i18n-CUznvVzc.js +2365 -0
  77. package/dist/xlsx-bT1p3YVR.js +24004 -0
  78. package/dist/xlsx.util-Cr9DpDFb.js +78 -0
  79. package/package.json +6 -6
  80. package/dist/app-B5p73NM9.js +0 -130949
@@ -1,7 +1,9 @@
1
- import { ref as B, onUnmounted as D, defineComponent as w, watch as L, onMounted as M, computed as P, resolveComponent as y, openBlock as R, createElementBlock as A, unref as T, createVNode as g, createElementVNode as v, toDisplayString as x, createBlock as F, createCommentVNode as W } from "vue";
2
- import { u as K, a as $, b as j, R as e, c as V, m as _, g as r, d as k } from "./app-B5p73NM9.js";
3
- import { useCoreStore as U, useI18n as H } from "@feedmepos/mf-common";
4
- import { useRouter as O, useRoute as z } from "vue-router";
1
+ import { ref as B, onUnmounted as D, defineComponent as w, watch as L, onMounted as M, computed as P, resolveComponent as y, openBlock as R, createElementBlock as A, unref as T, createVNode as g, createElementVNode as f, toDisplayString as x, createBlock as F, createCommentVNode as W } from "vue";
2
+ import { u as K, a as $, R as e, m as _, g as a, b as V } from "./app-EpEEb8EO.js";
3
+ import { useCoreStore as U, useI18n as k } from "@feedmepos/mf-common";
4
+ import { useRouter as O, useRoute as j } from "vue-router";
5
+ import { u as H } from "./feature-C95Hao53.js";
6
+ import { u as z } from "./netsuite-CnhAKyAO.js";
5
7
  import { u as Q } from "./useTabStorage-BkIVScW_.js";
6
8
  import { u as Y } from "./googlemap-Dm8ERVai.js";
7
9
  function q() {
@@ -15,13 +17,13 @@ function J() {
15
17
  const c = O();
16
18
  if (!I.value.loadingHookInstalled) {
17
19
  I.value.loadingHookInstalled = !0;
18
- const a = c.beforeEach(() => {
20
+ const r = c.beforeEach(() => {
19
21
  I.value.isLoading = !0;
20
22
  }), d = c.afterEach(() => {
21
23
  I.value.isLoading = !1;
22
24
  });
23
25
  D(() => {
24
- I.value.loadingHookInstalled = !1, a(), d();
26
+ I.value.loadingHookInstalled = !1, r(), d();
25
27
  });
26
28
  }
27
29
  return {
@@ -36,10 +38,10 @@ const X = {
36
38
  }, Z = {
37
39
  key: 1,
38
40
  class: "flex flex-col pt-[200px] gap-32 items-center"
39
- }, ee = { class: "flex flex-col gap-12 items-center text-center px-24 max-w-[1000px]" }, te = { class: "fm-typo-en-title-lg-600" }, oe = { class: "text-fm-color-typo-secondary fm-typo-en-body-md-400" }, ne = { class: "flex gap-16" }, ae = { href: "https://feedme.ai/product/inventory/features?tab=plans_%26_prices" }, re = { href: "https://feedme.ai/form" }, le = /* @__PURE__ */ w({
41
+ }, ee = { class: "flex flex-col gap-12 items-center text-center px-24 max-w-[1000px]" }, te = { class: "fm-typo-en-title-lg-600" }, oe = { class: "text-fm-color-typo-secondary fm-typo-en-body-md-400" }, ne = { class: "flex gap-16" }, re = { href: "https://feedme.ai/product/inventory/features?tab=plans_%26_prices" }, ae = { href: "https://feedme.ai/form" }, le = /* @__PURE__ */ w({
40
42
  __name: "InventoryView",
41
43
  setup(c) {
42
- const a = K(), d = $(), p = j(), l = U(), s = O(), m = J(), t = V(), { t: E } = H();
44
+ const r = K(), d = $(), p = z(), l = U(), s = O(), m = J(), t = H(), { t: E } = k();
43
45
  L(
44
46
  [() => l.sessionUser.value, () => l.currentBusiness.value],
45
47
  ([u, i]) => {
@@ -54,7 +56,7 @@ const X = {
54
56
  !u || !i || N();
55
57
  }
56
58
  async function N() {
57
- return await a.init(), await p.readSetting().catch((u) => {
59
+ return await r.init(), await p.readSetting().catch((u) => {
58
60
  console.error("[all] error on reading netsuite store", u);
59
61
  }), await d.init();
60
62
  }
@@ -64,24 +66,24 @@ const X = {
64
66
  return R(), A("div", null, [
65
67
  T(m).isLoading ? (R(), A("div", X, [
66
68
  g(S),
67
- v("div", null, [
69
+ f("div", null, [
68
70
  g(G, { size: "xl" })
69
71
  ]),
70
- i[0] || (i[0] = v("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary pl-8" }, "Loading page...", -1)),
72
+ i[0] || (i[0] = f("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary pl-8" }, "Loading page...", -1)),
71
73
  g(S)
72
74
  ])) : C.value ? T(l).sessionUser.value ? (R(), F(n, { key: 2 })) : W("", !0) : (R(), A("div", Z, [
73
- v("div", ee, [
74
- v("div", te, x(T(E)("inventory.common.proPlan.title")), 1),
75
- v("div", oe, x(T(E)("inventory.common.proPlan.subtitle")), 1)
75
+ f("div", ee, [
76
+ f("div", te, x(T(E)("inventory.common.proPlan.title")), 1),
77
+ f("div", oe, x(T(E)("inventory.common.proPlan.subtitle")), 1)
76
78
  ]),
77
- v("div", ne, [
78
- v("a", ae, [
79
+ f("div", ne, [
80
+ f("a", re, [
79
81
  g(o, {
80
82
  label: T(E)("inventory.common.proPlan.comparePlans"),
81
83
  variant: "secondary"
82
84
  }, null, 8, ["label"])
83
85
  ]),
84
- v("a", re, [
86
+ f("a", ae, [
85
87
  g(o, {
86
88
  label: T(E)("inventory.common.proPlan.callUs"),
87
89
  "prepend-icon": "call"
@@ -95,22 +97,22 @@ const X = {
95
97
  }), se = { class: "h-full flex flex-col overflow-auto py-16" }, ie = /* @__PURE__ */ w({
96
98
  __name: "NavigationTab",
97
99
  setup(c) {
98
- const a = _.object({
100
+ const r = _.object({
99
101
  label: _.string(),
100
102
  value: _.string().optional(),
101
103
  icon: _.string().optional(),
102
104
  hide: _.boolean().optional(),
103
- children: _.array(_.lazy(() => a)).optional()
104
- }), d = z(), p = O(), l = U(), s = V(), m = Q(), { t } = H(), { isDev: E } = k();
105
+ children: _.array(_.lazy(() => r)).optional()
106
+ }), d = j(), p = O(), l = U(), s = H(), m = Q(), { t } = k(), { isDev: E } = V();
105
107
  L([() => l.currentBusiness.value, () => d.name], ([o, n]) => {
106
108
  (o == null ? void 0 : o.menuVersion) === "v3" && (n === e.INGREDIENTS || n === e.RECIPE || n === e.UNIT) && p.push({ name: e.STOCK });
107
109
  });
108
110
  const h = (o) => o.filter((n) => !n.hide).map((n) => n.children ? { ...n, children: h(n.children) } : n), N = (o) => o.map((n) => {
109
111
  delete n.hide;
110
- const f = n;
111
- return n.children && (f.children = N(n.children)), f;
112
+ const v = n;
113
+ return n.children && (v.children = N(n.children)), v;
112
114
  }), C = P(() => {
113
- var f;
115
+ var v;
114
116
  const o = [
115
117
  {
116
118
  label: "Non-Production Environment",
@@ -119,7 +121,7 @@ const X = {
119
121
  hide: !E
120
122
  },
121
123
  {
122
- label: r(e.STOCK, t),
124
+ label: a(e.STOCK, t),
123
125
  // icon: 'inventory_2',
124
126
  children: [
125
127
  {
@@ -127,7 +129,7 @@ const X = {
127
129
  value: e.STOCK
128
130
  },
129
131
  {
130
- label: r(e.WASTAGE_TEMPLATE, t),
132
+ label: a(e.WASTAGE_TEMPLATE, t),
131
133
  value: e.WASTAGE_TEMPLATE,
132
134
  hide: !s.enableWastageTemplate
133
135
  }
@@ -137,39 +139,39 @@ const X = {
137
139
  label: "Closing",
138
140
  children: [
139
141
  {
140
- label: r(e.CLOSING_HISTORY, t),
142
+ label: a(e.CLOSING_HISTORY, t),
141
143
  value: e.CLOSING_HISTORY
142
144
  },
143
145
  {
144
- label: r(e.CLOSING_TEMPLATE, t),
146
+ label: a(e.CLOSING_TEMPLATE, t),
145
147
  value: e.CLOSING_TEMPLATE,
146
148
  hide: !s.enableClosingTemplate
147
149
  },
148
150
  {
149
- label: r(e.CLOSING_DRAFT, t),
151
+ label: a(e.CLOSING_DRAFT, t),
150
152
  value: e.CLOSING_DRAFT,
151
153
  hide: !s.enableClosingTemplate
152
154
  }
153
155
  ]
154
156
  },
155
157
  {
156
- label: r(e.INGREDIENTS, t),
158
+ label: a(e.INGREDIENTS, t),
157
159
  // icon: 'grocery',
158
160
  value: e.INGREDIENTS
159
161
  },
160
162
  {
161
- label: r(e.INGREDIENT_GROUP, t),
163
+ label: a(e.INGREDIENT_GROUP, t),
162
164
  // icon: 'grocery',
163
165
  value: e.INGREDIENT_GROUP,
164
166
  hide: !s.enableIngredientGroup
165
167
  },
166
168
  {
167
- label: r(e.RECIPE, t),
169
+ label: a(e.RECIPE, t),
168
170
  // icon: 'weight',
169
171
  value: e.RECIPE
170
172
  },
171
173
  {
172
- label: r(e.UNIT, t),
174
+ label: a(e.UNIT, t),
173
175
  // icon: 'fastfood',
174
176
  value: e.UNIT
175
177
  },
@@ -178,46 +180,46 @@ const X = {
178
180
  // icon: 'swap_horiz',
179
181
  children: [
180
182
  {
181
- label: r(e.RECEIVE_REQUEST, t),
183
+ label: a(e.RECEIVE_REQUEST, t),
182
184
  value: e.RECEIVE_REQUEST
183
185
  },
184
186
  {
185
- label: r(e.APPROVAL, t),
187
+ label: a(e.APPROVAL, t),
186
188
  value: e.APPROVAL
187
189
  },
188
190
  {
189
- label: r(e.TRANSFER_TEMPLATE, t),
191
+ label: a(e.TRANSFER_TEMPLATE, t),
190
192
  value: e.TRANSFER_TEMPLATE,
191
193
  hide: !s.enablePoTemplate
192
194
  }
193
195
  ]
194
196
  },
195
197
  {
196
- label: r(e.SUPPLIER, t),
198
+ label: a(e.SUPPLIER, t),
197
199
  // icon: 'group',
198
200
  value: e.SUPPLIER
199
201
  },
200
202
  {
201
- label: r(e.WAREHOUSE, t),
203
+ label: a(e.WAREHOUSE, t),
202
204
  // icon: 'warehouse',
203
205
  value: e.WAREHOUSE
204
206
  },
205
207
  {
206
- label: r(e.PUBLISH, t),
208
+ label: a(e.PUBLISH, t),
207
209
  value: e.PUBLISH
208
210
  },
209
211
  {
210
- label: r(e.IMPORT, t),
212
+ label: a(e.IMPORT, t),
211
213
  value: e.IMPORT,
212
214
  hide: !s.enableBulkImport
213
215
  },
214
216
  {
215
- label: r(e.INTEGRATION, t),
217
+ label: a(e.INTEGRATION, t),
216
218
  // icon: 'integration_instructions',
217
219
  value: e.INTEGRATION
218
220
  }
219
221
  ], n = N(h(o));
220
- return ((f = l.currentBusiness.value) == null ? void 0 : f.menuVersion) === "v3" ? n.filter(
222
+ return ((v = l.currentBusiness.value) == null ? void 0 : v.menuVersion) === "v3" ? n.filter(
221
223
  (b) => b.value !== e.INGREDIENTS && b.value !== e.RECIPE && b.value !== e.UNIT && b.value !== e.PUBLISH
222
224
  ) : n;
223
225
  }), u = P({
@@ -246,9 +248,9 @@ const X = {
246
248
  G.value = !m.getItem(i.value);
247
249
  }, 2e3);
248
250
  }), (o, n) => {
249
- const f = y("FmCollapsibleTabs");
251
+ const v = y("FmCollapsibleTabs");
250
252
  return R(), A("div", se, [
251
- g(f, {
253
+ g(v, {
252
254
  modelValue: u.value,
253
255
  "onUpdate:modelValue": n[0] || (n[0] = (b) => u.value = b),
254
256
  items: C.value
@@ -258,33 +260,33 @@ const X = {
258
260
  }
259
261
  });
260
262
  typeof Promise.withResolvers > "u" && (Promise.withResolvers = () => {
261
- let c, a;
263
+ let c, r;
262
264
  return { promise: new Promise((p, l) => {
263
- c = p, a = l;
264
- }), resolve: c, reject: a };
265
+ c = p, r = l;
266
+ }), resolve: c, reject: r };
265
267
  });
266
268
  typeof Promise.prototype.delayed > "u" && (Promise.prototype.delayed = async function(c) {
267
- return await new Promise((a) => setTimeout(a, c)), Promise.resolve(this);
269
+ return await new Promise((r) => setTimeout(r, c)), Promise.resolve(this);
268
270
  });
269
- const fe = /* @__PURE__ */ w({
271
+ const Ee = /* @__PURE__ */ w({
270
272
  __name: "App",
271
273
  setup(c) {
272
- const a = U(), d = Y(), p = k();
274
+ const r = U(), d = Y(), p = V();
273
275
  M(() => {
274
276
  if (window.location.href.includes("print-preview")) {
275
- a.setEmbedded(!0), document.body.classList.add("print-mode");
277
+ r.setEmbedded(!0), document.body.classList.add("print-mode");
276
278
  return;
277
279
  }
278
- a.registerSidebarComponent(ie), d.initGoogleMap(p.appApi.googleMap).catch(() => {
280
+ r.registerSidebarComponent(ie), d.initGoogleMap(p.appApi.googleMap).catch(() => {
279
281
  console.error("Google map cannot be loaded");
280
282
  });
281
- }), L([() => a.currentCountry.value], () => {
283
+ }), L([() => r.currentCountry.value], () => {
282
284
  l();
283
285
  });
284
286
  async function l() {
285
287
  var s;
286
288
  try {
287
- await a.readBusinesses(), a.currentBusiness.value = (s = a.businesses.value) == null ? void 0 : s.find((m) => m);
289
+ await r.readBusinesses(), r.currentBusiness.value = (s = r.businesses.value) == null ? void 0 : s.find((m) => m);
288
290
  } catch (m) {
289
291
  console.error("error when trying to reset businesses:", m);
290
292
  }
@@ -293,5 +295,5 @@ const fe = /* @__PURE__ */ w({
293
295
  }
294
296
  });
295
297
  export {
296
- fe as default
298
+ Ee as default
297
299
  };
@@ -1,15 +1,21 @@
1
- import { defineComponent as ue, ref as y, watch as ie, computed as d, resolveComponent as ce, openBlock as x, createBlock as W, unref as n, withCtx as k, createElementVNode as c, normalizeClass as pe, createVNode as i, normalizeStyle as de, toDisplayString as me, createElementBlock as fe, createCommentVNode as ve, Teleport as he, mergeProps as _e } from "vue";
2
- import { u as De, b as ge, m as b, aZ as ye, am as X, G as be, N as Oe, H as Re, I as Se, J as xe, K as ke, L as O } from "./app-B5p73NM9.js";
3
- import { u as qe, P as q, a as we, _ as Pe } from "./TransferDetails.vue_vue_type_script_setup_true_lang-l0qRNa0W.js";
4
- import { useBreakpoints as Ne } from "@feedmepos/ui-library";
5
- import { useI18n as Te } from "@feedmepos/mf-common";
6
- const Ae = { class: "flex flex-col py-8" }, Ce = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Me = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary line-clamp-1" }, Le = { class: "fm-typo-en-body-md-400 text-fm-color-typo-primary line-clamp-1" }, Ve = {
1
+ import { defineComponent as ue, ref as y, watch as ie, computed as d, resolveComponent as ce, openBlock as x, createBlock as X, unref as n, withCtx as k, createElementVNode as c, normalizeClass as pe, createVNode as i, normalizeStyle as de, toDisplayString as me, createElementBlock as fe, createCommentVNode as ve, Teleport as he, mergeProps as _e } from "vue";
2
+ import { u as De, m as b } from "./app-EpEEb8EO.js";
3
+ import { a as ge, _ as ye } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CqAeF0wL.js";
4
+ import { u as be, P as q, a as Oe, _ as Re } from "./TransferDetails.vue_vue_type_script_setup_true_lang-p959Op4k.js";
5
+ import { d as Z } from "./date2-Dnc8Y81g.js";
6
+ import { u as Se, _ as xe } from "./SingleColumnLayout.vue_vue_type_script_setup_true_lang-DY7TaxPK.js";
7
+ import { _ as ke, F as O } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-DlNJ6kRg.js";
8
+ import { useBreakpoints as qe } from "@feedmepos/ui-library";
9
+ import { useI18n as we } from "@feedmepos/mf-common";
10
+ import { N as Pe, H as Ne } from "./app-rgirz_52.js";
11
+ import { u as Te } from "./netsuite-CnhAKyAO.js";
12
+ const Ae = { class: "flex flex-col py-8" }, Ce = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Me = { 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" }, Fe = {
7
13
  key: 0,
8
14
  class: "fm-typo-en-body-md-400 text-fm-color-typo-primary line-clamp-1"
9
- }, ze = { class: "pt-8" }, je = /* @__PURE__ */ ue({
15
+ }, Le = { class: "pt-8" }, Xe = /* @__PURE__ */ ue({
10
16
  __name: "ApprovalView",
11
- setup(Fe) {
12
- const a = qe(q.APPROVAL), { columnDefs: I } = we(q.APPROVAL, a, a.shipments), B = De(), ee = ge();
17
+ setup(ze) {
18
+ const a = be(q.APPROVAL), { columnDefs: I } = Oe(q.APPROVAL, a, a.shipments), B = De(), ee = Te();
13
19
  b.object({
14
20
  name: b.string().optional().nullable(),
15
21
  start: b.date().optional().nullable(),
@@ -17,10 +23,10 @@ const Ae = { class: "flex flex-col py-8" }, Ce = { class: "fm-typo-en-body-md-40
17
23
  });
18
24
  const w = y({
19
25
  name: "",
20
- ...ye()
26
+ ...ge()
21
27
  }), l = y({
22
- startDate: X(w.value.start ?? /* @__PURE__ */ new Date()),
23
- endDate: X(w.value.end ?? /* @__PURE__ */ new Date())
28
+ startDate: Z(w.value.start ?? /* @__PURE__ */ new Date()),
29
+ endDate: Z(w.value.end ?? /* @__PURE__ */ new Date())
24
30
  });
25
31
  ie([() => l.value.startDate], () => {
26
32
  if (!l.value.startDate)
@@ -36,7 +42,7 @@ const Ae = { class: "flex flex-col py-8" }, Ce = { class: "fm-typo-en-body-md-40
36
42
  }
37
43
  a.updateDateRange(l.value.startDate, l.value.endDate);
38
44
  });
39
- const R = y(""), { breakpoints: P } = Ne(), S = d(() => P.value.xs || P.value.sm), te = d(() => S.value ? 10 : 20), ae = be(), { t: N } = Te(), re = d(() => [
45
+ const R = y(""), { breakpoints: P } = qe(), S = d(() => P.value.xs || P.value.sm), te = d(() => S.value ? 10 : 20), ae = Se(), { t: N } = we(), re = d(() => [
40
46
  {
41
47
  label: N("inventory.common.refresh"),
42
48
  value: "refresh"
@@ -96,10 +102,10 @@ const Ae = { class: "flex flex-col py-8" }, Ce = { class: "fm-typo-en-body-md-40
96
102
  }), m = y(null), oe = d(() => {
97
103
  if (!m.value)
98
104
  return a.purchaseRequests.value;
99
- const u = Oe.build(m.value);
105
+ const u = Pe.build(m.value);
100
106
  return a.purchaseRequests.value.filter((s) => {
101
107
  var e, r, t, o, p;
102
- return Re(
108
+ return Ne(
103
109
  {
104
110
  netsuiteTransactionNumber: (r = (e = s.netSuite) == null ? void 0 : e.additionalInfo) == null ? void 0 : r.transactionnumber,
105
111
  netsuiteOrderNo: (t = s.netSuite) == null ? void 0 : t.refNo,
@@ -112,7 +118,7 @@ const Ae = { class: "flex flex-col py-8" }, Ce = { class: "fm-typo-en-body-md-40
112
118
  });
113
119
  return (u, s) => {
114
120
  const e = ce("FmTable");
115
- return x(), W(Se, {
121
+ return x(), X(xe, {
116
122
  title: n(N)("inventory.transfer.approval.title"),
117
123
  actions: re.value,
118
124
  "onClick:action": se
@@ -129,7 +135,7 @@ const Ae = { class: "flex flex-col py-8" }, Ce = { class: "fm-typo-en-body-md-40
129
135
  }
130
136
  ])
131
137
  }, [
132
- i(xe, {
138
+ i(ye, {
133
139
  "date-range-query": "",
134
140
  "date-range": l.value,
135
141
  "onUpdate:dateRange": s[0] || (s[0] = (t) => l.value = t),
@@ -160,7 +166,7 @@ const Ae = { class: "flex flex-col py-8" }, Ce = { class: "fm-typo-en-body-md-40
160
166
  onRowClick: (o) => n(a).promptShowTransferDetails(o.purchaseOrder, o)
161
167
  }, {
162
168
  default: k((o) => {
163
- var p, T, A, f, C, M, L, V, v, z, F, h, $, _, E, H, Y, U, j, D, G, J, K, Z, g, Q;
169
+ var p, T, A, f, C, M, V, F, v, L, z, h, $, _, E, H, Y, U, j, D, G, J, K, Q, g, W;
164
170
  return [
165
171
  c("div", Ae, [
166
172
  c("div", Ce, [
@@ -171,21 +177,21 @@ const Ae = { class: "flex flex-col py-8" }, Ce = { class: "fm-typo-en-body-md-40
171
177
  ]),
172
178
  c("div", Me, [
173
179
  i(n(O), {
174
- render: (V = (L = (M = o.to_name) == null ? void 0 : M.column) == null ? void 0 : L.columnDef) == null ? void 0 : V.cell,
175
- props: (z = (v = o.to_name) == null ? void 0 : v.getContext) == null ? void 0 : z.call(v)
180
+ render: (F = (V = (M = o.to_name) == null ? void 0 : M.column) == null ? void 0 : V.columnDef) == null ? void 0 : F.cell,
181
+ props: (L = (v = o.to_name) == null ? void 0 : v.getContext) == null ? void 0 : L.call(v)
176
182
  }, null, 8, ["render", "props"])
177
183
  ]),
178
- c("div", Le, me((E = (_ = ($ = (h = (F = t.original.purchaseOrder) == null ? void 0 : F.items) == null ? void 0 : h.map) == null ? void 0 : $.call(h, (le) => `${le.name}`)) == null ? void 0 : _.join) == null ? void 0 : E.call(_, ", ")), 1),
179
- (H = t.original.purchaseOrder) != null && H.ref ? (x(), fe("div", Ve, [
184
+ c("div", Ve, me((E = (_ = ($ = (h = (z = t.original.purchaseOrder) == null ? void 0 : z.items) == null ? void 0 : h.map) == null ? void 0 : $.call(h, (le) => `${le.name}`)) == null ? void 0 : _.join) == null ? void 0 : E.call(_, ", ")), 1),
185
+ (H = t.original.purchaseOrder) != null && H.ref ? (x(), fe("div", Fe, [
180
186
  i(n(O), {
181
187
  render: (j = (U = (Y = o.purchaseOrder_ref) == null ? void 0 : Y.column) == null ? void 0 : U.columnDef) == null ? void 0 : j.cell,
182
188
  props: (G = (D = o.purchaseOrder_ref) == null ? void 0 : D.getContext) == null ? void 0 : G.call(D)
183
189
  }, null, 8, ["render", "props"])
184
190
  ])) : ve("", !0),
185
- c("div", ze, [
191
+ c("div", Le, [
186
192
  i(n(O), {
187
- render: (Z = (K = (J = o.purchaseOrder_status) == null ? void 0 : J.column) == null ? void 0 : K.columnDef) == null ? void 0 : Z.cell,
188
- props: (Q = (g = o.purchaseOrder_status) == null ? void 0 : g.getContext) == null ? void 0 : Q.call(g)
193
+ render: (Q = (K = (J = o.purchaseOrder_status) == null ? void 0 : J.column) == null ? void 0 : K.columnDef) == null ? void 0 : Q.cell,
194
+ props: (W = (g = o.purchaseOrder_status) == null ? void 0 : g.getContext) == null ? void 0 : W.call(g)
189
195
  }, null, 8, ["render", "props"])
190
196
  ])
191
197
  ])
@@ -197,8 +203,8 @@ const Ae = { class: "flex flex-col py-8" }, Ce = { class: "fm-typo-en-body-md-40
197
203
  _: 1
198
204
  }, 8, ["style", "column-defs", "row-data", "search-value", "loading", "page-size"])
199
205
  ], 2),
200
- (x(), W(he, { to: "body" }, [
201
- i(Pe, _e({
206
+ (x(), X(he, { to: "body" }, [
207
+ i(Re, _e({
202
208
  scope: n(q).APPROVAL
203
209
  }, {
204
210
  ...n(a).transferDetailsProps.value,
@@ -216,5 +222,5 @@ const Ae = { class: "flex flex-col py-8" }, Ce = { class: "fm-typo-en-body-md-40
216
222
  }
217
223
  });
218
224
  export {
219
- je as default
225
+ Xe as default
220
226
  };
@@ -1,6 +1,6 @@
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 c, createBlock as I, withCtx as R, createVNode as a, createCommentVNode as z, createElementVNode as P } from "vue";
2
- import { _ as V } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-FuPTxo7z.js";
3
- import { a as L, bc as S } from "./app-B5p73NM9.js";
2
+ import { _ as V } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-Ys5GBHoQ.js";
3
+ import { a as L, a9 as S } from "./app-EpEEb8EO.js";
4
4
  const U = {
5
5
  key: 0,
6
6
  class: "flex justify-end gap-8 items-center"
@@ -1,12 +1,13 @@
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 { a as x, bc as M, x as z } from "./app-B5p73NM9.js";
2
+ import { a as M } from "./FmMultiselectDialog-BasrjBFA.js";
3
+ import { a as x, a9 as z } from "./app-EpEEb8EO.js";
3
4
  const F = {
4
5
  key: 0,
5
6
  class: "flex flex-col gap-16"
6
7
  }, K = { class: "flex justify-end gap-8 items-center" }, w = {
7
8
  key: 1,
8
9
  class: "p-24 flex items-center justify-center gap-16"
9
- }, N = /* @__PURE__ */ S({
10
+ }, A = /* @__PURE__ */ S({
10
11
  __name: "BindingsPicker",
11
12
  setup(L) {
12
13
  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) => ({
@@ -62,7 +63,7 @@ const F = {
62
63
  ];
63
64
  }
64
65
  }
65
- }), _ = l(), o = M(B);
66
+ }), _ = l(), o = z(B);
66
67
  async function B() {
67
68
  await d.readInventory(), _.value = o.onMessage(
68
69
  "props:binding-items",
@@ -97,7 +98,7 @@ const F = {
97
98
  u(t, { size: "md" }),
98
99
  s[1] || (s[1] = k("div", null, "Loading bindings dialog...", -1))
99
100
  ])) : (p(), f("div", F, [
100
- u(z, {
101
+ u(M, {
101
102
  "model-value": b.value,
102
103
  "onUpdate:modelValue": s[0] || (s[0] = (m) => b.value = m),
103
104
  items: c.value
@@ -119,5 +120,5 @@ const F = {
119
120
  }
120
121
  });
121
122
  export {
122
- N as default
123
+ A as default
123
124
  };
@@ -1,7 +1,11 @@
1
1
  import { defineComponent as x, ref as r, provide as C, computed as g, resolveComponent as h, openBlock as l, createElementBlock as u, createStaticVNode as F, Fragment as L, renderList as I, createElementVNode as p, toDisplayString as v, createVNode as w, withModifiers as N, onMounted as E, onUnmounted as z, createBlock as M } from "vue";
2
- import { F as b, a as P, bc as R } from "./app-B5p73NM9.js";
2
+ import { F as b, a as P, a9 as R } from "./app-EpEEb8EO.js";
3
+ import "./dayjs.min-TdUgzmww.js";
3
4
  import "@feedmepos/ui-library";
5
+ /* empty css */
4
6
  import "@feedmepos/mf-common";
7
+ import "./app-rgirz_52.js";
8
+ import "./lodash-gq8IrP4j.js";
5
9
  const U = { class: "" }, D = ["onClick"], O = { class: "flex-grow-0 flex-shrink-0 basis-5/12 py-8 pl-8" }, V = { class: "flex-grow-0 flex-shrink-0 basis-3/12 py-8" }, S = { class: "flex-grow-0 flex-shrink-0 basis-3/12 py-8" }, $ = { class: "flex-grow-0 flex-shrink-0 basis-1/12 py-4" }, T = /* @__PURE__ */ x({
6
10
  __name: "binding-ui",
7
11
  props: {
@@ -22,24 +26,24 @@ const U = { class: "" }, D = ["onClick"], O = { class: "flex-grow-0 flex-shrink-
22
26
  C("closeDialog", () => {
23
27
  d.value.isOpen = !d.value.isOpen;
24
28
  });
25
- const i = _, f = a, m = g(() => i.items.map((s) => ({
29
+ const n = _, m = a, f = g(() => n.items.map((s) => ({
26
30
  key: s.key,
27
31
  name: s.name,
28
32
  _skuLinked: s.bindings.filter(
29
- ({ type: t, id: e }) => t === b.enum.SKU && i.skus.some((c) => c._id === e)
33
+ ({ type: t, id: e }) => t === b.enum.SKU && n.skus.some((c) => c._id === e)
30
34
  ).length,
31
35
  _recipeLinked: s.bindings.filter(
32
- ({ type: t, id: e }) => t === b.enum.RECIPE && i.recipes.some((c) => c._id === e)
36
+ ({ type: t, id: e }) => t === b.enum.RECIPE && n.recipes.some((c) => c._id === e)
33
37
  ).length,
34
38
  onUpdate: async () => {
35
- i.editable && f("click:open-binding-dialog", i.type, s);
39
+ n.editable && m("click:open-binding-dialog", n.type, s);
36
40
  }
37
41
  })));
38
42
  return (k, s) => {
39
43
  const t = h("FmButton");
40
44
  return l(), u("div", U, [
41
45
  s[0] || (s[0] = F('<div class="flex font-bold bg-[#F7F8FA]"><div class="flex-grow-0 flex-shrink-0 basis-5/12 py-8"></div><div class="flex-grow-0 flex-shrink-0 basis-3/12 py-8">Ingredient</div><div class="flex-grow-0 flex-shrink-0 basis-3/12 py-8">Recipe</div><div class="flex-grow-0 flex-shrink-0 basis-1/12 py-8"></div></div>', 1)),
42
- (l(!0), u(L, null, I(m.value, (e) => (l(), u("div", {
46
+ (l(!0), u(L, null, I(f.value, (e) => (l(), u("div", {
43
47
  key: e.key,
44
48
  class: "cursor-pointer flex border-t border-[rgba(17,32,47,0.15] items-center",
45
49
  onClick: e.onUpdate
@@ -53,7 +57,7 @@ const U = { class: "" }, D = ["onClick"], O = { class: "flex-grow-0 flex-shrink-
53
57
  icon: "edit",
54
58
  "icon-color": "#000",
55
59
  size: "md",
56
- disabled: !i.editable,
60
+ disabled: !n.editable,
57
61
  type: "button",
58
62
  onClick: N(e.onUpdate, ["stop"])
59
63
  }, null, 8, ["disabled", "onClick"])
@@ -65,34 +69,34 @@ const U = { class: "" }, D = ["onClick"], O = { class: "flex-grow-0 flex-shrink-
65
69
  }), A = {
66
70
  key: 1,
67
71
  class: "p-24 flex items-center justify-center gap-16"
68
- }, K = /* @__PURE__ */ x({
72
+ }, W = /* @__PURE__ */ x({
69
73
  __name: "BindingsTable",
70
74
  setup(_) {
71
- const a = P(), d = r(!0), i = r(new Array()), f = g(() => a.recipes), m = g(() => a.skus), k = r(""), s = R(e), t = r();
75
+ const a = P(), d = r(!0), n = r(new Array()), m = g(() => a.recipes), f = g(() => a.skus), k = r(""), s = R(e), t = r();
72
76
  async function e() {
73
77
  await a.readInventory(), t.value = s.onMessage(
74
78
  "props:grouped-bindings",
75
- (n) => {
76
- d.value = !1, i.value = n;
79
+ (i) => {
80
+ d.value = !1, n.value = i;
77
81
  }
78
82
  ), s.sendMessage("props:grouped-bindings");
79
83
  }
80
- async function c(n, o) {
84
+ async function c(i, o) {
81
85
  s.sendMessage("@click:open-binding-dialog", {
82
- key: n,
86
+ key: i,
83
87
  binding: o
84
88
  });
85
89
  }
86
90
  const y = r();
87
91
  return E(() => {
88
- const n = y.value;
89
- n && new ResizeObserver(() => {
90
- s.sendMessage("resize", n.scrollHeight);
91
- }).observe(n);
92
+ const i = y.value;
93
+ i && new ResizeObserver(() => {
94
+ s.sendMessage("resize", i.scrollHeight);
95
+ }).observe(i);
92
96
  }), z(() => {
93
- var n, o;
94
- (o = (n = t.value) == null ? void 0 : n.removeEventListener) == null || o.call(n);
95
- }), (n, o) => {
97
+ var i, o;
98
+ (o = (i = t.value) == null ? void 0 : i.removeEventListener) == null || o.call(i);
99
+ }), (i, o) => {
96
100
  const B = h("FmCircularProgress");
97
101
  return l(), u("div", {
98
102
  class: "bg-white",
@@ -104,9 +108,9 @@ const U = { class: "" }, D = ["onClick"], O = { class: "flex-grow-0 flex-shrink-
104
108
  o[0] || (o[0] = p("div", null, "Loading bindings table...", -1))
105
109
  ])) : (l(), M(T, {
106
110
  key: 0,
107
- items: i.value,
108
- recipes: f.value,
109
- skus: m.value,
111
+ items: n.value,
112
+ recipes: m.value,
113
+ skus: f.value,
110
114
  type: k.value,
111
115
  editable: "",
112
116
  "onClick:openBindingDialog": c
@@ -116,5 +120,5 @@ const U = { class: "" }, D = ["onClick"], O = { class: "flex-grow-0 flex-shrink-
116
120
  }
117
121
  });
118
122
  export {
119
- K as default
123
+ W as default
120
124
  };