@feedmepos/mf-inventory-portal 1.2.7-dev.2 → 1.2.7-dev.4

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 (55) hide show
  1. package/dist/{App-CBwWCCOM.js → App-C36fMhxq.js} +1 -1
  2. package/dist/{ApprovalView-BrRGheio.js → ApprovalView-BK-UXBwv.js} +26 -26
  3. package/dist/{BindingsDialog-BSPkkRis.js → BindingsDialog-C5ry8Cg7.js} +2 -2
  4. package/dist/{BindingsPicker-L3XnC3__.js → BindingsPicker-D1lrIB-Y.js} +1 -1
  5. package/dist/{BindingsTable-CgUm0Ity.js → BindingsTable-CoWyge2-.js} +1 -1
  6. package/dist/{ClosingDraftView-D_gq2fCk.js → ClosingDraftView-FFi85ylu.js} +203 -203
  7. package/dist/{ClosingTemplateView-Q16zr6EV.js → ClosingTemplateView-BvSH7TM0.js} +53 -53
  8. package/dist/{DeliveryOrderPrintPreview-mVDQO6Xq.js → DeliveryOrderPrintPreview-BVVWnadB.js} +9 -9
  9. package/dist/{FmAdminBadge-Cjy6QPoR.js → FmAdminBadge-DtBVrN_M.js} +6 -6
  10. package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DnH2Qxnr.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CSigrMC2.js} +21 -21
  11. package/dist/{FmMultiselectDialog-BbYhJk_O.js → FmMultiselectDialog-Df50mxnw.js} +1 -1
  12. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-D0qlxGgo.js → FmUnitInput.vue_vue_type_script_setup_true_lang-CdSQVfaU.js} +27 -27
  13. package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-CCuLSITo.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-A7Pgq3Sl.js} +1 -1
  14. package/dist/{IngredientGroupView-CJ9Rsfg-.js → IngredientGroupView-BVM3Um9Z.js} +12 -12
  15. package/dist/IngredientsView-75ahXQeJ.js +2271 -0
  16. package/dist/{IntegrationView-B4giJ-Zl.js → IntegrationView-DEUOEn_W.js} +84 -84
  17. package/dist/{InventoryBindingForm-bNRoyTsA.js → InventoryBindingForm-C2HvBwlT.js} +1 -1
  18. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-DAaoOXUY.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-CXJSFCLP.js} +41 -41
  19. package/dist/{InventoryBindingSummary-NfFve-nM.js → InventoryBindingSummary-B-V9QkyH.js} +1 -1
  20. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DP11tzty.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BELqcyvD.js} +1 -1
  21. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-yjjkBSqL.js → PremiumBadge.vue_vue_type_script_setup_true_lang-BBE5_txM.js} +5 -5
  22. package/dist/{PublishView-w9GYA6kf.js → PublishView-DKkCs9F8.js} +17 -17
  23. package/dist/{PurchaseOrderPrintPreview-DmdDJmEq.js → PurchaseOrderPrintPreview-BvFR-uQk.js} +9 -9
  24. package/dist/{ReceiveRequestView-z4o7lZvK.js → ReceiveRequestView-BIrBMqdY.js} +80 -80
  25. package/dist/{RecipeView-DiiQtfXn.js → RecipeView-CI_Tec4J.js} +49 -49
  26. package/dist/{StockView-DKR2nFdm.js → StockView-Bx3lqHZg.js} +327 -327
  27. package/dist/{SupplierView-BJcU4iQk.js → SupplierView-BT2aZGQE.js} +1103 -1016
  28. package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-UNVxzRmJ.js → TransferDetails.vue_vue_type_script_setup_true_lang-DWdnLRCB.js} +245 -245
  29. package/dist/{TransferTemplateView-rCbAWlh_.js → TransferTemplateView-DQtlCFze.js} +88 -87
  30. package/dist/{UnitView-BW9hbVHL.js → UnitView-h61yFjgP.js} +59 -59
  31. package/dist/{WarehouseView-BO0hf42-.js → WarehouseView-I8GqyD2C.js} +25 -25
  32. package/dist/api/netsuite.d.ts +3 -0
  33. package/dist/api/purchase-order-template.d.ts +1 -0
  34. package/dist/{app-ChezCkd5.js → app-CxSrmhCK.js} +6888 -6786
  35. package/dist/app.d.ts +57 -0
  36. package/dist/app.js +3 -3
  37. package/dist/components/FmInventoryTableToolbar.vue.d.ts +9 -2
  38. package/dist/components/SubsidiaryTreeDialog.vue.d.ts +2 -0
  39. package/dist/{decimal-1sc-GcXN.js → decimal-DpfcXNky.js} +1 -1
  40. package/dist/{format-unit-display-BK2TkQOA.js → format-unit-display-xov4MvuI.js} +368 -400
  41. package/dist/{index-CWivxw9k.js → index-B4hWNXtZ.js} +1 -1
  42. package/dist/{index-cLW2Uxz3.js → index-CwzV_5fz.js} +1 -1
  43. package/dist/purchase-order-template-DkBl6qMP.js +41 -0
  44. package/dist/{stock-FEj_v-SS.js → stock-Nt176YY7.js} +1 -1
  45. package/dist/stores/integration/netsuite.d.ts +10 -0
  46. package/dist/{supplier-2r8VFThu.js → supplier-B7gAUwhb.js} +1 -1
  47. package/dist/tsconfig.app.tsbuildinfo +1 -1
  48. package/dist/{use-ingredient-select-dialog-CvgFQA-k.js → use-ingredient-select-dialog-9HkEvXXS.js} +5 -5
  49. package/dist/{use-inventory-binding-dialog-BNp88Pjt.js → use-inventory-binding-dialog-pSVgqxMM.js} +8 -8
  50. package/dist/views/ingredients/components/ingredient-form/IngredientForm.vue.d.ts +16 -0
  51. package/dist/views/ingredients/components/ingredient-form/IngredientFormProps.d.ts +4 -0
  52. package/dist/views/integration/components/netsuite/business/BusinessNetSuiteSideSheet.vue.d.ts +2 -0
  53. package/dist/views/supplier/components/SupplierSupplyItemField.vue.d.ts +3 -0
  54. package/package.json +1 -1
  55. package/dist/IngredientsView-BbKzQnQP.js +0 -1886
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as ee, computed as _, reactive as ne, resolveComponent as k, openBlock as r, createElementBlock as p, createVNode as y, withCtx as U, createElementVNode as n, toDisplayString as m, unref as i, createBlock as B, createCommentVNode as v, Fragment as E, renderList as C, nextTick as oe } from "vue";
2
- import { a as te, Y as le, b6 as ie, j as h, b7 as T, W as G, V as se, F as de } from "./app-ChezCkd5.js";
3
- import { u as re } from "./use-inventory-binding-dialog-BNp88Pjt.js";
4
- import { _ as ae, c as ue, d as me } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-D0qlxGgo.js";
2
+ import { a as te, a1 as le, b7 as ie, k as h, b8 as T, $ as G, Z as se, F as de } from "./app-CxSrmhCK.js";
3
+ import { u as re } from "./use-inventory-binding-dialog-pSVgqxMM.js";
4
+ import { _ as ae, c as ue, d as me } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-CdSQVfaU.js";
5
5
  import { useI18n as ce } from "@feedmepos/mf-common";
6
6
  const pe = { class: "flex flex-col gap-24" }, ye = { class: "flex flex-col gap-16" }, fe = { class: "flex items-center" }, ve = { class: "flex-1 fm-typo-en-title-sm-600" }, be = { class: "flex flex-col" }, ge = { class: "flex py-8 px-12 border-b border-fm-color-neutral-gray-200 bg-fm-color-neutral-gray-100 h-[44px] items-center" }, _e = { class: "fm-typo-en-body-md-600 text-fm-color-typo-secondary" }, xe = { class: "flex flex-col w-full border-b border-fm-color-neutral-gray-100" }, he = {
7
7
  class: "flex items-center",
@@ -21,16 +21,16 @@ const pe = { class: "flex flex-col gap-24" }, ye = { class: "flex flex-col gap-1
21
21
  }, Pe = {
22
22
  class: "flex items-center",
23
23
  style: { "min-height": "48px" }
24
- }, Ne = { class: "flex-1 fm-typo-en-body-md-400 py-8 px-12" }, Te = { class: "flex flex-col" }, Me = { class: "w-[200px]" }, De = {
24
+ }, Ne = { class: "flex-1 fm-typo-en-body-md-400 py-8 px-12" }, Te = { class: "flex flex-col" }, Me = { class: "w-[200px]" }, $e = {
25
25
  key: 0,
26
26
  class: "w-[52px]"
27
- }, Ke = { class: "flex flex-col gap-16" }, $e = { class: "flex items-center" }, je = { class: "flex-1 fm-typo-en-title-sm-600" }, Ye = { class: "flex flex-col" }, ze = { class: "flex py-8 px-12 border-b border-fm-color-neutral-gray-200 bg-fm-color-neutral-gray-100 h-[44px] items-center" }, Le = { class: "flex-1 fm-typo-en-body-md-600 text-fm-color-typo-secondary" }, Oe = { class: "fm-typo-en-body-md-600 text-fm-color-typo-secondary w-[150px] px-16" }, We = {
27
+ }, De = { class: "flex flex-col gap-16" }, Ke = { class: "flex items-center" }, je = { class: "flex-1 fm-typo-en-title-sm-600" }, ze = { class: "flex flex-col" }, Le = { class: "flex py-8 px-12 border-b border-fm-color-neutral-gray-200 bg-fm-color-neutral-gray-100 h-[44px] items-center" }, Oe = { class: "flex-1 fm-typo-en-body-md-600 text-fm-color-typo-secondary" }, Ye = { class: "fm-typo-en-body-md-600 text-fm-color-typo-secondary w-[150px] px-16" }, We = {
28
28
  class: "flex items-center w-full",
29
29
  style: { "min-height": "48px" }
30
- }, qe = { class: "flex-1 fm-typo-en-body-md-400 py-8 px-12" }, He = { class: "line-clamp-1" }, Je = { class: "w-[150px]" }, Qe = {
30
+ }, Ze = { class: "flex-1 fm-typo-en-body-md-400 py-8 px-12" }, qe = { class: "line-clamp-1" }, He = { class: "w-[150px]" }, Je = {
31
31
  key: 0,
32
32
  class: "w-[52px]"
33
- }, Xe = { class: "flex flex-col px-12 pb-4" }, ln = /* @__PURE__ */ ee({
33
+ }, Qe = { class: "flex flex-col px-12 pb-4" }, ln = /* @__PURE__ */ ee({
34
34
  __name: "InventoryBindingForm",
35
35
  props: {
36
36
  id: {},
@@ -43,8 +43,8 @@ const pe = { class: "flex flex-col gap-24" }, ye = { class: "flex flex-col gap-1
43
43
  enableIngredientGroup: { type: Boolean }
44
44
  },
45
45
  emits: ["update:modelValue", "click:pick-inventory-bindings"],
46
- setup(M, { emit: D }) {
47
- const { t: a } = ce(), x = te(), K = _(() => x.recipeById), I = _(() => x.skuById), $ = _(() => x.skuGroupById), s = M, b = D, A = _(() => le({
46
+ setup(M, { emit: $ }) {
47
+ const { t: a } = ce(), x = te(), D = _(() => x.recipeById), I = _(() => x.skuById), K = _(() => x.skuGroupById), s = M, b = $, A = _(() => le({
48
48
  parentId: s.id,
49
49
  bindings: s.modelValue,
50
50
  recipes: x.recipes.map((o) => o._id === s.id ? {
@@ -63,33 +63,33 @@ const pe = { class: "flex flex-col gap-24" }, ye = { class: "flex flex-col gap-1
63
63
  var t;
64
64
  return (t = e.bindingPaths[0]) == null ? void 0 : t.id;
65
65
  }))
66
- ), j = _(() => s.modelValue.filter((e) => e.type === "RECIPE")), { promptIngredientsBinding: Y, promptRecipesBinding: z, promptIngredientGroupsBinding: L } = re();
67
- async function O() {
66
+ ), j = _(() => s.modelValue.filter((e) => e.type === "RECIPE")), { promptIngredientsBinding: z, promptRecipesBinding: L, promptIngredientGroupsBinding: O } = re();
67
+ async function Y() {
68
68
  if (s.iframeMode) {
69
69
  b("click:pick-inventory-bindings", "RECIPE");
70
70
  return;
71
71
  }
72
- z(
72
+ L(
73
73
  s.modelValue,
74
74
  (e) => b("update:modelValue", e),
75
75
  s.id ? [s.id] : []
76
76
  );
77
77
  }
78
78
  const W = _(() => s.modelValue.filter((e) => e.type === "SKU_GROUP"));
79
- async function q() {
80
- L(
79
+ async function Z() {
80
+ O(
81
81
  s.modelValue,
82
82
  (e) => b("update:modelValue", e),
83
83
  s.id ? [s.id] : []
84
84
  );
85
85
  }
86
86
  const R = _(() => s.modelValue.filter((e) => e.type === "SKU") ?? []);
87
- async function H() {
87
+ async function q() {
88
88
  if (s.iframeMode) {
89
89
  b("click:pick-inventory-bindings", "SKU");
90
90
  return;
91
91
  }
92
- Y(
92
+ z(
93
93
  s.modelValue,
94
94
  (e) => b("update:modelValue", e),
95
95
  s.excludeBindingId,
@@ -113,10 +113,10 @@ const pe = { class: "flex flex-col gap-24" }, ye = { class: "flex flex-col gap-1
113
113
  throw new Error(`Cannot find ingredient: ${e.id}`);
114
114
  return (d = I.value[e.id]) == null ? void 0 : d.unit;
115
115
  }
116
- function J(e) {
116
+ function H(e) {
117
117
  return { amount: e.amount, measurement: e.measurement };
118
118
  }
119
- function Q(e, t, o) {
119
+ function J(e, t, o) {
120
120
  const d = o.map((f) => f.id !== e ? f : {
121
121
  ...f,
122
122
  amount: t.amount,
@@ -125,7 +125,7 @@ const pe = { class: "flex flex-col gap-24" }, ye = { class: "flex flex-col gap-1
125
125
  b("update:modelValue", d);
126
126
  }
127
127
  const N = ne({});
128
- function X(e) {
128
+ function Q(e) {
129
129
  return N[e.id] ?? {
130
130
  modelValue: {
131
131
  amount: e.amount,
@@ -134,7 +134,7 @@ const pe = { class: "flex flex-col gap-24" }, ye = { class: "flex flex-col gap-1
134
134
  amountAsString: h(e.amount)
135
135
  };
136
136
  }
137
- function Z(e, t) {
137
+ function X(e, t) {
138
138
  oe(() => {
139
139
  N[e.id] = {
140
140
  modelValue: {
@@ -171,7 +171,7 @@ const pe = { class: "flex flex-col gap-24" }, ye = { class: "flex flex-col gap-1
171
171
  "border-color": "primary",
172
172
  label: i(a)("inventory.inventoryBindings.linkRecipe"),
173
173
  "prepend-icon": "link",
174
- onClick: O
174
+ onClick: Y
175
175
  }, null, 8, ["label"]))
176
176
  ]),
177
177
  n("div", be, [
@@ -192,7 +192,7 @@ const pe = { class: "flex flex-col gap-24" }, ye = { class: "flex flex-col gap-1
192
192
  n("div", xe, [
193
193
  n("div", he, [
194
194
  n("div", Ve, [
195
- n("div", Be, m((g = K.value[l.id]) == null ? void 0 : g.name), 1)
195
+ n("div", Be, m((g = D.value[l.id]) == null ? void 0 : g.name), 1)
196
196
  ]),
197
197
  n("div", ke, [
198
198
  y(f, {
@@ -239,7 +239,7 @@ const pe = { class: "flex flex-col gap-24" }, ye = { class: "flex flex-col gap-1
239
239
  "border-color": "primary",
240
240
  label: i(a)("inventory.inventoryBindings.linkIngredientGroup"),
241
241
  "prepend-icon": "link",
242
- onClick: q
242
+ onClick: Z
243
243
  }, null, 8, ["label"]))
244
244
  ]),
245
245
  n("div", Ce, [
@@ -268,7 +268,7 @@ const pe = { class: "flex flex-col gap-24" }, ye = { class: "flex flex-col gap-1
268
268
  ])) : v("", !0),
269
269
  n("div", Pe, [
270
270
  n("div", Ne, [
271
- n("div", Te, m((g = $.value[l.id]) == null ? void 0 : g.name), 1)
271
+ n("div", Te, m((g = K.value[l.id]) == null ? void 0 : g.name), 1)
272
272
  ]),
273
273
  n("div", Me, [
274
274
  y(f, {
@@ -279,7 +279,7 @@ const pe = { class: "flex flex-col gap-24" }, ye = { class: "flex flex-col gap-1
279
279
  invalid: V
280
280
  }, null, 8, ["disabled", "modelValue", "onUpdate:modelValue", "invalid"])
281
281
  ]),
282
- e.readonly ? v("", !0) : (r(), p("div", De, [
282
+ e.readonly ? v("", !0) : (r(), p("div", $e, [
283
283
  y(d, {
284
284
  disabled: e.disabled,
285
285
  type: "button",
@@ -297,8 +297,8 @@ const pe = { class: "flex flex-col gap-24" }, ye = { class: "flex flex-col gap-1
297
297
  }, 1032, ["disabled", "modelValue", "rules"]))), 128))
298
298
  ])
299
299
  ])) : v("", !0),
300
- n("div", Ke, [
301
- n("div", $e, [
300
+ n("div", De, [
301
+ n("div", Ke, [
302
302
  n("div", je, m(i(a)("inventory.inventoryBindings.ingredient")), 1),
303
303
  e.readonly ? v("", !0) : (r(), B(d, {
304
304
  key: 0,
@@ -307,13 +307,13 @@ const pe = { class: "flex flex-col gap-24" }, ye = { class: "flex flex-col gap-1
307
307
  "border-color": "primary",
308
308
  label: i(a)("inventory.inventoryBindings.linkIngredient"),
309
309
  "prepend-icon": "link",
310
- onClick: H
310
+ onClick: q
311
311
  }, null, 8, ["label"]))
312
312
  ]),
313
- n("div", Ye, [
314
- n("div", ze, [
315
- n("div", Le, m(i(a)("inventory.inventoryBindings.ingredient")), 1),
316
- n("div", Oe, m(i(a)("inventory.inventoryBindings.amount")), 1),
313
+ n("div", ze, [
314
+ n("div", Le, [
315
+ n("div", Oe, m(i(a)("inventory.inventoryBindings.ingredient")), 1),
316
+ n("div", Ye, m(i(a)("inventory.inventoryBindings.amount")), 1),
317
317
  t[5] || (t[5] = n("div", { class: "w-[52px]" }, null, -1))
318
318
  ]),
319
319
  (r(!0), p(E, null, C(R.value, (l, V) => {
@@ -323,21 +323,21 @@ const pe = { class: "flex flex-col gap-24" }, ye = { class: "flex flex-col gap-1
323
323
  class: "flex flex-col border-b border-fm-color-neutral-gray-100"
324
324
  }, [
325
325
  n("div", We, [
326
- n("div", qe, [
327
- n("span", He, m((g = I.value[l.id]) == null ? void 0 : g.name), 1)
326
+ n("div", Ze, [
327
+ n("span", qe, m((g = I.value[l.id]) == null ? void 0 : g.name), 1)
328
328
  ]),
329
- n("div", Je, [
329
+ n("div", He, [
330
330
  y(ae, {
331
- "model-value": J(l),
332
- "onUpdate:modelValue": (c) => c && Q(l.id, c, e.modelValue),
333
- "onUpdate:amount": (c) => Z(l, c),
331
+ "model-value": H(l),
332
+ "onUpdate:modelValue": (c) => c && J(l.id, c, e.modelValue),
333
+ "onUpdate:amount": (c) => X(l, c),
334
334
  unit: P(l),
335
335
  placement: V === R.value.length - 1 ? "top" : "bottom",
336
336
  "convert-amount-on-change-unit": "",
337
337
  disabled: e.readonly
338
338
  }, null, 8, ["model-value", "onUpdate:modelValue", "onUpdate:amount", "unit", "placement", "disabled"])
339
339
  ]),
340
- e.readonly ? v("", !0) : (r(), p("div", Qe, [
340
+ e.readonly ? v("", !0) : (r(), p("div", Je, [
341
341
  y(d, {
342
342
  disabled: e.disabled,
343
343
  type: "button",
@@ -347,13 +347,13 @@ const pe = { class: "flex flex-col gap-24" }, ye = { class: "flex flex-col gap-1
347
347
  }, null, 8, ["disabled", "onClick"])
348
348
  ]))
349
349
  ]),
350
- n("div", Xe, [
350
+ n("div", Qe, [
351
351
  y(o, {
352
352
  modelValue: +i(h)(l.amount ?? { amount: 1, precision: 0 }),
353
353
  rules: [i(G)(0)]
354
354
  }, null, 8, ["modelValue", "rules"]),
355
355
  y(o, {
356
- modelValue: X(l),
356
+ modelValue: Q(l),
357
357
  rules: [
358
358
  i(ue)(),
359
359
  i(me)(P(l)),
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as l, resolveComponent as m, openBlock as c, createBlock as d, h as g } from "vue";
2
2
  import { useI18n as p } from "@feedmepos/mf-common";
3
3
  import { components as u } from "@feedmepos/ui-library";
4
- import { F as r } from "./app-ChezCkd5.js";
4
+ import { F as r } from "./app-CxSrmhCK.js";
5
5
  const w = /* @__PURE__ */ l({
6
6
  __name: "InventoryBindingSummary",
7
7
  props: {
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as V, computed as w, ref as h, watch as u, resolveComponent as i, openBlock as F, createBlock as g, withCtx as d, createVNode as A, createElementVNode as k, normalizeClass as K } from "vue";
2
- import { V as s } from "./app-ChezCkd5.js";
2
+ import { Z as s } from "./app-CxSrmhCK.js";
3
3
  const _ = ["value", "disabled"], C = /* @__PURE__ */ V({
4
4
  __name: "NumberPrecisionInput",
5
5
  props: {
@@ -1,4 +1,4 @@
1
- import { aJ as u, aK as _, a4 as h, u as F } from "./app-ChezCkd5.js";
1
+ import { aL as u, aM as _, a6 as h, u as F } from "./app-CxSrmhCK.js";
2
2
  import { useCoreStore as y } from "@feedmepos/mf-common";
3
3
  import { ref as v, defineComponent as k, resolveComponent as l, openBlock as g, createElementBlock as S, renderSlot as x, createVNode as m, withCtx as O } from "vue";
4
4
  function w(e, t) {
@@ -78,11 +78,11 @@ function D() {
78
78
  }
79
79
  };
80
80
  }
81
- function N(e) {
81
+ function L(e) {
82
82
  let t = e.substring(e.indexOf("_") + 1);
83
83
  return t.includes("_") && (t = t.substring(0, t.lastIndexOf("_"))), Number.isNaN(Date.parse(t)) ? null : new Date(t).toISOString();
84
84
  }
85
- const b = { class: "flex items-center gap-8" }, B = "Experience enhanced inventory features with premium plan.", L = /* @__PURE__ */ k({
85
+ const b = { class: "flex items-center gap-8" }, B = "Experience enhanced inventory features with premium plan.", N = /* @__PURE__ */ k({
86
86
  __name: "PremiumBadge",
87
87
  props: {
88
88
  zIndex: {}
@@ -108,8 +108,8 @@ const b = { class: "flex items-center gap-8" }, B = "Experience enhanced invento
108
108
  }
109
109
  });
110
110
  export {
111
- L as _,
111
+ N as _,
112
112
  C as e,
113
- N as i,
113
+ L as i,
114
114
  D as u
115
115
  };
@@ -1,10 +1,10 @@
1
- import { defineComponent as Q, ref as V, computed as c, watch as X, resolveComponent as l, openBlock as W, createBlock as z, unref as h, createSlots as Z, withCtx as u, createElementVNode as f, normalizeClass as ee, createVNode as a, normalizeStyle as te, Teleport as oe, h as g } from "vue";
2
- import { aD as ne, u as ae, a as se, b1 as le, C as ie, _ as re, a5 as B } from "./app-ChezCkd5.js";
1
+ import { defineComponent as Q, ref as D, computed as c, watch as X, resolveComponent as l, openBlock as W, createBlock as z, unref as h, createSlots as Z, withCtx as u, createElementVNode as f, normalizeClass as ee, createVNode as a, normalizeStyle as te, Teleport as oe, h as g } from "vue";
2
+ import { aF as ne, u as ae, a as se, b2 as le, K as ie, _ as re, a7 as B } from "./app-CxSrmhCK.js";
3
3
  import { useBreakpoints as ce, useDialog as ue, useSnackbar as me, components as H } from "@feedmepos/ui-library";
4
4
  const pe = { class: "flex flex-col py-8" }, de = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ye = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, ge = /* @__PURE__ */ Q({
5
5
  __name: "PublishView",
6
6
  setup(be) {
7
- const { t } = ne(), { breakpoints: x } = ce(), n = ae(), A = se(), S = le(), i = V(!1), m = c(() => A.state.inventory.updatedAt ? A.state.inventory.updatedAt : null), R = ie(), C = ue(), Y = me(), N = c(() => n.locationsWithInventory), _ = c(() => x.value.xs || x.value.sm), $ = c(() => _.value ? 10 : 20);
7
+ const { t } = ne(), { breakpoints: x } = ce(), n = ae(), A = se(), S = le(), i = D(!1), m = c(() => A.state.inventory.updatedAt ? A.state.inventory.updatedAt : null), R = ie(), F = ue(), Y = me(), N = c(() => n.locationsWithInventory), _ = c(() => x.value.xs || x.value.sm), $ = c(() => _.value ? 10 : 20);
8
8
  X(
9
9
  () => n._locations,
10
10
  async () => {
@@ -14,7 +14,7 @@ const pe = { class: "flex flex-col py-8" }, de = { class: "fm-typo-en-body-md-40
14
14
  { immediate: !0 }
15
15
  // Optional: triggers the watcher immediately on mount
16
16
  );
17
- const U = c(() => [
17
+ const K = c(() => [
18
18
  {
19
19
  label: t("inventory.common.refresh"),
20
20
  value: "refresh",
@@ -22,10 +22,10 @@ const pe = { class: "flex flex-col py-8" }, de = { class: "fm-typo-en-body-md-40
22
22
  },
23
23
  { label: t("inventory.publish.actions.publishAll"), value: "publish", isPrimary: !0 }
24
24
  ]);
25
- async function q(e) {
25
+ async function U(e) {
26
26
  switch (e) {
27
27
  case "publish":
28
- C.open({
28
+ F.open({
29
29
  title: t("inventory.common.publish"),
30
30
  message: "Are you sure you want to publish to all locations?",
31
31
  primaryActions: { text: t("inventory.common.publish"), close: !0 },
@@ -39,13 +39,13 @@ const pe = { class: "flex flex-col py-8" }, de = { class: "fm-typo-en-body-md-40
39
39
  break;
40
40
  }
41
41
  }
42
- const w = V(!1), E = [
42
+ const w = D(!1), q = [
43
43
  {
44
44
  value: "publish",
45
45
  label: t("inventory.publish.actions.publishAll")
46
46
  }
47
47
  ];
48
- function K(e) {
48
+ function E(e) {
49
49
  switch (w.value = !1, e) {
50
50
  case "publish":
51
51
  console.log("publish all");
@@ -108,7 +108,7 @@ const pe = { class: "flex flex-col py-8" }, de = { class: "fm-typo-en-body-md-40
108
108
  variant: "secondary",
109
109
  icon: "sync",
110
110
  onClick: () => {
111
- C.open({
111
+ F.open({
112
112
  title: t("inventory.common.publish"),
113
113
  message: `Are you sure you want to publish this location "${e.row.original.name}"?`,
114
114
  primaryActions: { text: t("inventory.common.publish"), close: !0 },
@@ -145,8 +145,8 @@ const pe = { class: "flex flex-col py-8" }, de = { class: "fm-typo-en-body-md-40
145
145
  const s = l("FmChip"), p = l("FlexRender"), d = l("TableActionableRow"), G = l("FmTable"), J = l("FmCollapsibleTabs"), O = l("FmBottomSheet");
146
146
  return W(), z(re, {
147
147
  title: h(t)("inventory.publish.title"),
148
- actions: U.value,
149
- "onClick:action": q
148
+ actions: K.value,
149
+ "onClick:action": U
150
150
  }, Z({
151
151
  default: u(() => [
152
152
  f("div", {
@@ -169,19 +169,19 @@ const pe = { class: "flex flex-col py-8" }, de = { class: "fm-typo-en-body-md-40
169
169
  "list-row": u((r) => [
170
170
  a(d, { row: r }, {
171
171
  default: u((y) => {
172
- var F, I, k, b, M, L, P, D, v, T;
172
+ var C, I, k, b, M, L, P, T, v, V;
173
173
  return [
174
174
  f("div", pe, [
175
175
  f("div", de, [
176
176
  a(p, {
177
- render: (k = (I = (F = y.code) == null ? void 0 : F.column) == null ? void 0 : I.columnDef) == null ? void 0 : k.cell,
177
+ render: (k = (I = (C = y.code) == null ? void 0 : C.column) == null ? void 0 : I.columnDef) == null ? void 0 : k.cell,
178
178
  props: (M = (b = y.code) == null ? void 0 : b.getContext) == null ? void 0 : M.call(b)
179
179
  }, null, 8, ["render", "props"])
180
180
  ]),
181
181
  f("div", ye, [
182
182
  a(p, {
183
- render: (D = (P = (L = y.name) == null ? void 0 : L.column) == null ? void 0 : P.columnDef) == null ? void 0 : D.cell,
184
- props: (T = (v = y.name) == null ? void 0 : v.getContext) == null ? void 0 : T.call(v)
183
+ render: (T = (P = (L = y.name) == null ? void 0 : L.column) == null ? void 0 : P.columnDef) == null ? void 0 : T.cell,
184
+ props: (V = (v = y.name) == null ? void 0 : v.getContext) == null ? void 0 : V.call(v)
185
185
  }, null, 8, ["render", "props"])
186
186
  ])
187
187
  ])
@@ -202,8 +202,8 @@ const pe = { class: "flex flex-col py-8" }, de = { class: "fm-typo-en-body-md-40
202
202
  default: u(() => [
203
203
  a(J, {
204
204
  class: "pb-8",
205
- items: E,
206
- "onUpdate:modelValue": o[0] || (o[0] = (r) => K(r))
205
+ items: q,
206
+ "onUpdate:modelValue": o[0] || (o[0] = (r) => E(r))
207
207
  })
208
208
  ]),
209
209
  _: 1
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as b, computed as m, ref as x, onMounted as f, openBlock as u, createElementBlock as n, createElementVNode as t, toDisplayString as e, normalizeStyle as g, createTextVNode as i, Fragment as o, createCommentVNode as p, renderList as v } from "vue";
2
2
  import { useRoute as w } from "vue-router";
3
- import { aC as y, ap as k } from "./app-ChezCkd5.js";
4
- const C = { class: "purchase-box" }, A = { valign: "bottom" }, R = { class: "title" }, N = { class: "text-right" }, O = { class: "header" }, P = { class: "sub-header" }, D = { class: "caption" }, E = { class: "address" }, S = { class: "text-right" }, T = { class: "sub-header" }, F = { class: "address" }, q = { class: "purchase-body" }, L = { class: "text-left" }, U = { class: "text-left" }, V = { class: "text-right" }, B = { class: "text-right" }, H = { class: "text-right" }, I = { style: { "padding-top": "30px" } }, M = { valign: "bottom" }, z = { class: "header" }, J = { class: "caption" }, Q = {
3
+ import { aE as y, ar as k } from "./app-CxSrmhCK.js";
4
+ const A = { class: "purchase-box" }, C = { valign: "bottom" }, R = { class: "title" }, E = { class: "text-right" }, N = { class: "header" }, O = { class: "sub-header" }, P = { class: "caption" }, D = { class: "address" }, S = { class: "text-right" }, T = { class: "sub-header" }, F = { class: "address" }, q = { class: "purchase-body" }, L = { class: "text-left" }, U = { class: "text-left" }, V = { class: "text-right" }, B = { class: "text-right" }, H = { class: "text-right" }, I = { style: { "padding-top": "30px" } }, M = { valign: "bottom" }, z = { class: "header" }, J = { class: "caption" }, Q = {
5
5
  class: "text-left",
6
6
  style: { width: "20%" }
7
7
  }, j = { class: "text-left" }, G = {
@@ -25,9 +25,9 @@ const C = { class: "purchase-box" }, A = { valign: "bottom" }, R = { class: "tit
25
25
  }), _ = w(), s = x(JSON.parse(_.query.data));
26
26
  return f(() => {
27
27
  setTimeout(() => window.print(), 500);
28
- }), (Y, l) => (u(), n("div", C, [
28
+ }), (Y, l) => (u(), n("div", A, [
29
29
  t("table", null, [
30
- t("tr", A, [
30
+ t("tr", C, [
31
31
  t("td", null, [
32
32
  t("div", R, e(s.value.title ?? "Inventory Order"), 1),
33
33
  t("div", null, "Ref: " + e(s.value.ref), 1),
@@ -35,8 +35,8 @@ const C = { class: "purchase-box" }, A = { valign: "bottom" }, R = { class: "tit
35
35
  style: g({ color: c.value })
36
36
  }, e(s.value.status), 5)
37
37
  ]),
38
- t("td", N, [
39
- t("div", O, "ORD #" + e(s.value.orderNumber), 1),
38
+ t("td", E, [
39
+ t("div", N, "ORD #" + e(s.value.orderNumber), 1),
40
40
  t("div", null, e(s.value.createdAt), 1)
41
41
  ])
42
42
  ])
@@ -46,9 +46,9 @@ const C = { class: "purchase-box" }, A = { valign: "bottom" }, R = { class: "tit
46
46
  t("tr", null, [
47
47
  t("td", null, [
48
48
  l[4] || (l[4] = t("div", { class: "header" }, "Supplier", -1)),
49
- t("div", P, e(s.value.supplier.name), 1),
50
- t("div", D, e(s.value.supplier.registrationNumber), 1),
51
- t("div", E, [
49
+ t("div", O, e(s.value.supplier.name), 1),
50
+ t("div", P, e(s.value.supplier.registrationNumber), 1),
51
+ t("div", D, [
52
52
  i(e(s.value.supplier.line1), 1),
53
53
  l[1] || (l[1] = t("br", null, null, -1)),
54
54
  s.value.supplier.line2 ? (u(), n(o, { key: 0 }, [