@feedmepos/mf-inventory-portal 1.0.36 → 1.0.37-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 (80) hide show
  1. package/dist/{App-BM-ivBnF.js → App-_SMozUEj.js} +1 -1
  2. package/dist/{ApprovalView-C4hE43Zp.js → ApprovalView-D55iBGg5.js} +19 -19
  3. package/dist/{BindingsDialog-BqjiXxGY.js → BindingsDialog-Di_xTPkA.js} +4 -4
  4. package/dist/{BindingsPicker-DqCR7P5k.js → BindingsPicker-BwIKt9Il.js} +1 -1
  5. package/dist/{BindingsTable-DD_mVBtS.js → BindingsTable-CMFvNSAH.js} +4 -4
  6. package/dist/{ClosingDraftView-CL09Xu9q.js → ClosingDraftView-DXoi5cw9.js} +26 -26
  7. package/dist/ClosingTemplateView-DaPOj50P.js +1849 -0
  8. package/dist/{DeliveryOrderPrintPreview-CNPUHnpX.js → DeliveryOrderPrintPreview-CkIPZo14.js} +4 -4
  9. package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DB6m8oSF.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BSzt53-l.js} +11 -11
  10. package/dist/{FmMultiselectDialog-DJ5cyN7G.js → FmMultiselectDialog-EpV0X6CI.js} +1 -1
  11. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-CPAnSCWa.js → FmUnitInput.vue_vue_type_script_setup_true_lang-Cn3qOqJr.js} +21 -21
  12. package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-CauBVtK9.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-BUQQL5kL.js} +1 -1
  13. package/dist/{IngredientGroupView-D0U1ivRz.js → IngredientGroupView-DvxOGAuo.js} +2 -2
  14. package/dist/IngredientsView-BhFDYfnd.js +1851 -0
  15. package/dist/{IntegrationView-hERgFYsT.js → IntegrationView-B_EmS2-x.js} +69 -69
  16. package/dist/{InventoryBindingForm-vO00BnZP.js → InventoryBindingForm-B79lRAe6.js} +1 -1
  17. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-Bku7tdc-.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-DBsD7abQ.js} +24 -24
  18. package/dist/{InventoryBindingSummary-DWOniuG6.js → InventoryBindingSummary-CmnSXYAW.js} +1 -1
  19. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-C4_atZsW.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CDRN_Nrk.js} +1 -1
  20. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-DUdI1WOL.js → PremiumBadge.vue_vue_type_script_setup_true_lang-BknocD4_.js} +10 -10
  21. package/dist/{PublishView-enVS6QHQ.js → PublishView-DNkUYpMh.js} +17 -17
  22. package/dist/{PurchaseOrderPrintPreview-Z769Yvkh.js → PurchaseOrderPrintPreview-D0UhIY8z.js} +12 -12
  23. package/dist/{ReceiveRequestView-BYYWrgNX.js → ReceiveRequestView-DsBpjA9P.js} +797 -782
  24. package/dist/{RecipeView-CU9pkFiv.js → RecipeView-lpMLqWM8.js} +3 -3
  25. package/dist/{StockView-iqR-h1Mg.js → StockView-CIgg_FTJ.js} +6 -6
  26. package/dist/{SupplierView-DFzgQ53O.js → SupplierView-fwzviqqM.js} +3 -3
  27. package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-BEVlutvf.js → TransferDetails.vue_vue_type_script_setup_true_lang-TYNgMCEs.js} +604 -602
  28. package/dist/{TransferTemplateView-EZ_z14kY.js → TransferTemplateView-CSy8pydr.js} +83 -83
  29. package/dist/{UnitView-gYD75UdW.js → UnitView-CMOz7RLY.js} +3 -3
  30. package/dist/{WarehouseView-COLgYw-j.js → WarehouseView-B-1c6rRg.js} +1 -1
  31. package/dist/api/duplicate-template.d.ts +5 -0
  32. package/dist/api/inventory.d.ts +4 -0
  33. package/dist/api/netsuite.d.ts +7 -0
  34. package/dist/{app-DMbkakEB.js → app-CFm28RQ_.js} +53154 -52645
  35. package/dist/app.d.ts +9 -0
  36. package/dist/app.js +1 -1
  37. package/dist/components/inventory-binding/InventoryBinding.vue.d.ts +1 -0
  38. package/dist/components/row-action.enum.d.ts +2 -1
  39. package/dist/components/shell/inventory/binding-ui.vue.d.ts +1 -0
  40. package/dist/{decimal-BLjZMddB.js → decimal-UyI93Y1E.js} +1 -1
  41. package/dist/format-unit-display-CNki_g8Q.js +1275 -0
  42. package/dist/{index-C5rv3Yu2.js → index-BWYshfa3.js} +1 -1
  43. package/dist/{index-Bj0hlHvy.js → index-DliBh-3z.js} +1 -1
  44. package/dist/{stock-DjOpPBxG.js → stock-A60nU_aj.js} +1 -1
  45. package/dist/stores/integration/netsuite.d.ts +7 -1
  46. package/dist/stores/inventory.d.ts +9 -0
  47. package/dist/{supplier-BRKfl2V3.js → supplier-lcKFLaW5.js} +1 -1
  48. package/dist/tsconfig.app.tsbuildinfo +1 -1
  49. package/dist/{use-ingredient-select-dialog-DRIWNN3P.js → use-ingredient-select-dialog-B17VDJ0o.js} +1 -1
  50. package/dist/{use-inventory-binding-dialog-DLnKkFpe.js → use-inventory-binding-dialog-sj5lERBj.js} +1 -1
  51. package/dist/views/adjustment-template/wastage-template/actions.d.ts +4 -1
  52. package/dist/views/closing-draft/components/closing-draft-dialog/ClosingDraftDialog.vue.d.ts +8 -0
  53. package/dist/views/closing-draft/composables/use-closing-draft-table.d.ts +24 -0
  54. package/dist/views/closing-template/components/closing-template-form/composables/use-closing-template-items.d.ts +1 -0
  55. package/dist/views/closing-template/composables/use-closing-template-actions.d.ts +16 -1
  56. package/dist/views/closing-template/composables/use-closing-template-table.d.ts +12 -0
  57. package/dist/views/ingredients/components/ingredient-form/IngredientForm.vue.d.ts +2 -0
  58. package/dist/views/ingredients/composables/use-ingredient-table.d.ts +1 -0
  59. package/dist/views/integration/components/netsuite/InventoryTransferIngredientTable.vue.d.ts +2 -0
  60. package/dist/views/integration/components/netsuite/business/BusinessNetSuiteSideSheet.vue.d.ts +4 -0
  61. package/dist/views/receive-request/components/transfer-form/TransferForm.vue.d.ts +17 -0
  62. package/dist/views/receive-request/components/transfer-form/components/ForecastStock.vue.d.ts +2 -0
  63. package/dist/views/receive-request/components/transfer-form/components/TransferItemTable.vue.d.ts +4 -0
  64. package/dist/views/receive-request/components/transfer-form/composables/use-transfer-items.d.ts +1 -0
  65. package/dist/views/receive-request/composables/use-process-purchase-order.d.ts +4 -0
  66. package/dist/views/receive-request/composables/use-receive-request-form.d.ts +24 -0
  67. package/dist/views/receive-request/composables/use-receive-request-table.d.ts +24 -0
  68. package/dist/views/stock/components/dialog/AdjustedItemForm.vue.d.ts +2 -0
  69. package/dist/views/transfer-template/components/transfer-template-dialog/TransferTemplateDialog.vue.d.ts +2 -0
  70. package/dist/views/transfer-template/components/transfer-template-form/components/NetSuiteCustomCodeSelection.vue.d.ts +2 -0
  71. package/dist/views/transfer-template/components/transfer-template-form/components/TransferTemplateItemTable.vue.d.ts +2 -0
  72. package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-template-items.d.ts +1 -0
  73. package/dist/views/transfer-template/composables/use-netsuite-custom-field.d.ts +3 -0
  74. package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +16 -1
  75. package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +12 -0
  76. package/dist/{vue-i18n-x8-PdKzv.js → vue-i18n-CZSieSF0.js} +487 -487
  77. package/package.json +4 -4
  78. package/dist/ClosingTemplateView-CDWMdZOk.js +0 -1804
  79. package/dist/IngredientsView-pgJWthql.js +0 -1838
  80. package/dist/format-unit-display-BkXJg2Ux.js +0 -1230
@@ -1,9 +1,9 @@
1
- import { defineComponent as ee, computed as g, 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, X as le, a_ as ie, j as h, a$ as N, V as G, T as se, F as de } from "./app-DMbkakEB.js";
3
- import { u as re } from "./use-inventory-binding-dialog-DLnKkFpe.js";
4
- import { _ as ae, c as ue, d as me } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-CPAnSCWa.js";
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, X as le, b0 as ie, j as h, b1 as N, V as G, T as se, F as de } from "./app-CFm28RQ_.js";
3
+ import { u as re } from "./use-inventory-binding-dialog-sj5lERBj.js";
4
+ import { _ as ae, c as ue, d as me } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-Cn3qOqJr.js";
5
5
  import { useI18n as ce } from "@feedmepos/mf-common";
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" }, _e = { class: "flex py-8 px-12 border-b border-fm-color-neutral-gray-200 bg-fm-color-neutral-gray-100 h-[44px] items-center" }, ge = { 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 = {
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",
8
8
  style: { "min-height": "48px" }
9
9
  }, Ve = { class: "flex-1 fm-typo-en-body-md-400 py-8 px-12" }, Be = { class: "flex flex-col" }, ke = { class: "w-[200px]" }, Ie = {
@@ -21,10 +21,10 @@ 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
- }, Te = { class: "flex-1 fm-typo-en-body-md-400 py-8 px-12" }, Ne = { class: "flex flex-col" }, Me = { class: "w-[200px]" }, $e = {
24
+ }, Te = { class: "flex-1 fm-typo-en-body-md-400 py-8 px-12" }, Ne = { class: "flex flex-col" }, Me = { class: "w-[200px]" }, De = {
25
25
  key: 0,
26
26
  class: "w-[52px]"
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 = {
27
+ }, Ke = { class: "flex flex-col gap-16" }, $e = { 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
30
  }, Xe = { class: "flex-1 fm-typo-en-body-md-400 py-8 px-12" }, qe = { class: "line-clamp-1" }, He = { class: "w-[150px]" }, Je = {
@@ -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: $ }) {
47
- const { t: a } = ce(), x = te(), D = g(() => x.recipeById), I = g(() => x.skuById), K = g(() => x.skuGroupById), s = M, b = $, A = g(() => le({
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({
48
48
  parentId: s.id,
49
49
  bindings: s.modelValue,
50
50
  recipes: x.recipes.map((o) => o._id === s.id ? {
@@ -58,12 +58,12 @@ const pe = { class: "flex flex-col gap-24" }, ye = { class: "flex flex-col gap-1
58
58
  }
59
59
  } : o),
60
60
  skuGroups: x.skuGroups
61
- }).inventoryBindings.filter((o) => "error" in o && o.error).map((o) => o).filter((o) => o.reason === ie.enum.circularDependency)), w = g(
61
+ }).inventoryBindings.filter((o) => "error" in o && o.error).map((o) => o).filter((o) => o.reason === ie.enum.circularDependency)), w = _(
62
62
  () => new Set(A.value.map((e) => {
63
63
  var t;
64
64
  return (t = e.bindingPaths[0]) == null ? void 0 : t.id;
65
65
  }))
66
- ), j = g(() => s.modelValue.filter((e) => e.type === "RECIPE")), { promptIngredientsBinding: z, promptRecipesBinding: L, promptIngredientGroupsBinding: O } = re();
66
+ ), j = _(() => s.modelValue.filter((e) => e.type === "RECIPE")), { promptIngredientsBinding: z, promptRecipesBinding: L, promptIngredientGroupsBinding: O } = re();
67
67
  async function Y() {
68
68
  if (s.iframeMode) {
69
69
  b("click:pick-inventory-bindings", "RECIPE");
@@ -75,7 +75,7 @@ const pe = { class: "flex flex-col gap-24" }, ye = { class: "flex flex-col gap-1
75
75
  s.id ? [s.id] : []
76
76
  );
77
77
  }
78
- const W = g(() => s.modelValue.filter((e) => e.type === "SKU_GROUP"));
78
+ const W = _(() => s.modelValue.filter((e) => e.type === "SKU_GROUP"));
79
79
  async function X() {
80
80
  O(
81
81
  s.modelValue,
@@ -83,7 +83,7 @@ const pe = { class: "flex flex-col gap-24" }, ye = { class: "flex flex-col gap-1
83
83
  s.id ? [s.id] : []
84
84
  );
85
85
  }
86
- const R = g(() => s.modelValue.filter((e) => e.type === "SKU") ?? []);
86
+ const R = _(() => s.modelValue.filter((e) => e.type === "SKU") ?? []);
87
87
  async function q() {
88
88
  if (s.iframeMode) {
89
89
  b("click:pick-inventory-bindings", "SKU");
@@ -175,8 +175,8 @@ const pe = { class: "flex flex-col gap-24" }, ye = { class: "flex flex-col gap-1
175
175
  }, null, 8, ["label"]))
176
176
  ]),
177
177
  n("div", be, [
178
- n("div", _e, [
179
- n("div", ge, m(i(a)("inventory.inventoryBindings.recipe")), 1),
178
+ n("div", ge, [
179
+ n("div", _e, m(i(a)("inventory.inventoryBindings.recipe")), 1),
180
180
  t[1] || (t[1] = n("div", { class: "w-[200px]" }, null, -1)),
181
181
  t[2] || (t[2] = n("div", { class: "w-[52px]" }, null, -1))
182
182
  ]),
@@ -187,12 +187,12 @@ const pe = { class: "flex flex-col gap-24" }, ye = { class: "flex flex-col gap-1
187
187
  rules: [i(N)(0), i(G)(0)]
188
188
  }, {
189
189
  default: U(({ invalid: V }) => {
190
- var _;
190
+ var g;
191
191
  return [
192
192
  n("div", xe, [
193
193
  n("div", he, [
194
194
  n("div", Ve, [
195
- n("div", Be, m((_ = D.value[l.id]) == null ? void 0 : _.name), 1)
195
+ n("div", Be, m((g = K.value[l.id]) == null ? void 0 : g.name), 1)
196
196
  ]),
197
197
  n("div", ke, [
198
198
  y(f, {
@@ -255,7 +255,7 @@ const pe = { class: "flex flex-col gap-24" }, ye = { class: "flex flex-col gap-1
255
255
  rules: [i(N)(0), i(G)(0)]
256
256
  }, {
257
257
  default: U(({ invalid: V }) => {
258
- var _;
258
+ var g;
259
259
  return [
260
260
  n("div", Re, [
261
261
  w.value.has(l.id) ? (r(), p("div", Se, [
@@ -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", Te, [
271
- n("div", Ne, m((_ = K.value[l.id]) == null ? void 0 : _.name), 1)
271
+ n("div", Ne, m((g = $.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", $e, [
282
+ e.readonly ? v("", !0) : (r(), p("div", De, [
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", De, [
301
- n("div", Ke, [
300
+ n("div", Ke, [
301
+ n("div", $e, [
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,
@@ -317,14 +317,14 @@ const pe = { class: "flex flex-col gap-24" }, ye = { class: "flex flex-col gap-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) => {
320
- var _;
320
+ var g;
321
321
  return r(), p("div", {
322
322
  key: l.id,
323
323
  class: "flex flex-col border-b border-fm-color-neutral-gray-100"
324
324
  }, [
325
325
  n("div", We, [
326
326
  n("div", Xe, [
327
- n("span", qe, m((_ = I.value[l.id]) == null ? void 0 : _.name), 1)
327
+ n("span", qe, m((g = I.value[l.id]) == null ? void 0 : g.name), 1)
328
328
  ]),
329
329
  n("div", He, [
330
330
  y(ae, {
@@ -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-DMbkakEB.js";
4
+ import { F as r } from "./app-CFm28RQ_.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 { T as s } from "./app-DMbkakEB.js";
2
+ import { T as s } from "./app-CFm28RQ_.js";
3
3
  const T = ["value", "disabled"], B = /* @__PURE__ */ V({
4
4
  __name: "NumberPrecisionInput",
5
5
  props: {
@@ -1,4 +1,4 @@
1
- import { aC as u, aD as _, a3 as h, u as F } from "./app-DMbkakEB.js";
1
+ import { aE as u, aF as _, a3 as F, u as h } from "./app-CFm28RQ_.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) {
@@ -8,7 +8,7 @@ function I(e, t) {
8
8
  const r = t.map((o) => o.name), n = e.map((o) => w(o, t));
9
9
  return u.aoa_to_sheet([r, ...n]);
10
10
  }
11
- async function z(e, t) {
11
+ async function C(e, t) {
12
12
  const r = u.book_new();
13
13
  for (const n of e) {
14
14
  const o = I(
@@ -22,8 +22,8 @@ async function z(e, t) {
22
22
  }
23
23
  await _(r, t);
24
24
  }
25
- const f = h((e, t) => {
26
- const r = F(), n = y();
25
+ const f = F((e, t) => {
26
+ const r = h(), n = y();
27
27
  return {
28
28
  async getInventoryForecast() {
29
29
  var s;
@@ -52,7 +52,7 @@ function $() {
52
52
  };
53
53
  }
54
54
  const c = v($());
55
- function A() {
55
+ function D() {
56
56
  return {
57
57
  // state
58
58
  get inventoryForecast() {
@@ -82,7 +82,7 @@ function N(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 E = { class: "flex items-center gap-8" }, b = "Experience enhanced inventory features with premium plan.", L = /* @__PURE__ */ k({
86
86
  __name: "PremiumBadge",
87
87
  props: {
88
88
  zIndex: {}
@@ -90,12 +90,12 @@ const b = { class: "flex items-center gap-8" }, B = "Experience enhanced invento
90
90
  setup(e) {
91
91
  return (t, r) => {
92
92
  const n = l("FmPill"), o = l("FmTooltip");
93
- return g(), S("div", b, [
93
+ return g(), S("div", E, [
94
94
  x(t.$slots, "default"),
95
95
  m(o, {
96
96
  variant: "plain",
97
97
  placement: "top",
98
- content: B,
98
+ content: b,
99
99
  "z-index": t.zIndex
100
100
  }, {
101
101
  default: O(() => [
@@ -109,7 +109,7 @@ const b = { class: "flex items-center gap-8" }, B = "Experience enhanced invento
109
109
  });
110
110
  export {
111
111
  L as _,
112
- z as e,
112
+ C as e,
113
113
  N as i,
114
- A as u
114
+ D as u
115
115
  };
@@ -1,11 +1,11 @@
1
- import { defineComponent as Q, ref as z, computed as r, resolveComponent as s, openBlock as I, createBlock as B, unref as v, createSlots as X, withCtx as u, createElementVNode as h, normalizeClass as Z, createVNode as n, normalizeStyle as ee, Teleport as te, h as f } from "vue";
2
- import { u as oe, a as ne, aV as ae, B as se, _ as le, ak as H } from "./app-DMbkakEB.js";
1
+ import { defineComponent as O, ref as z, computed as r, resolveComponent as s, openBlock as I, createBlock as B, unref as v, createSlots as Q, withCtx as u, createElementVNode as h, normalizeClass as Z, createVNode as n, normalizeStyle as ee, Teleport as te, h as f } from "vue";
2
+ import { u as oe, a as ne, aX as ae, B as se, _ as le, al as H } from "./app-CFm28RQ_.js";
3
3
  import { useBreakpoints as ie, useDialog as re, useSnackbar as ue, components as R } from "@feedmepos/ui-library";
4
- import { u as ce } from "./vue-i18n-x8-PdKzv.js";
5
- const me = { class: "flex flex-col py-8" }, pe = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, de = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, ge = /* @__PURE__ */ Q({
4
+ import { u as ce } from "./vue-i18n-CZSieSF0.js";
5
+ const me = { class: "flex flex-col py-8" }, pe = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, de = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, ge = /* @__PURE__ */ O({
6
6
  __name: "PublishView",
7
7
  setup(ye) {
8
- const { t } = ce(), { breakpoints: x } = ie(), l = oe(), A = ne(), S = ae(), g = z(!1), c = r(() => A.state.inventory.updatedAt ? A.state.inventory.updatedAt : null), Y = se(), k = re(), N = ue(), $ = r(() => l.locations), _ = r(() => x.value.xs || x.value.sm), U = r(() => _.value ? 10 : 20), q = r(() => [
8
+ const { t } = ce(), { breakpoints: x } = ie(), l = oe(), A = ne(), S = ae(), g = z(!1), c = r(() => A.state.inventory.updatedAt ? A.state.inventory.updatedAt : null), Y = se(), C = re(), N = ue(), $ = r(() => l.locations), _ = r(() => x.value.xs || x.value.sm), U = r(() => _.value ? 10 : 20), q = r(() => [
9
9
  {
10
10
  label: t("inventory.common.refresh"),
11
11
  value: "refresh",
@@ -16,7 +16,7 @@ const me = { class: "flex flex-col py-8" }, pe = { class: "fm-typo-en-body-md-40
16
16
  async function E(e) {
17
17
  switch (e) {
18
18
  case "publish":
19
- k.open({
19
+ C.open({
20
20
  title: t("inventory.common.publish"),
21
21
  message: "Are you sure you want to publish to all locations?",
22
22
  primaryActions: { text: t("inventory.common.publish"), close: !0 },
@@ -42,7 +42,7 @@ const me = { class: "flex flex-col py-8" }, pe = { class: "fm-typo-en-body-md-40
42
42
  console.log("publish all");
43
43
  }
44
44
  }
45
- const j = [
45
+ const X = [
46
46
  {
47
47
  id: "type",
48
48
  header: () => t("inventory.publish.columns.type"),
@@ -99,7 +99,7 @@ const me = { class: "flex flex-col py-8" }, pe = { class: "fm-typo-en-body-md-40
99
99
  variant: "secondary",
100
100
  icon: "sync",
101
101
  onClick: () => {
102
- k.open({
102
+ C.open({
103
103
  title: t("inventory.common.publish"),
104
104
  message: `Are you sure you want to publish this location "${e.row.original.name}"?`,
105
105
  primaryActions: { text: t("inventory.common.publish"), close: !0 },
@@ -133,12 +133,12 @@ const me = { class: "flex flex-col py-8" }, pe = { class: "fm-typo-en-body-md-40
133
133
  // }
134
134
  ];
135
135
  return (e, o) => {
136
- const a = s("FmChip"), m = s("FlexRender"), p = s("TableActionableRow"), G = s("FmTable"), J = s("FmCollapsibleTabs"), O = s("FmBottomSheet");
136
+ const a = s("FmChip"), m = s("FlexRender"), p = s("TableActionableRow"), j = s("FmTable"), G = s("FmCollapsibleTabs"), J = s("FmBottomSheet");
137
137
  return I(), B(le, {
138
138
  title: v(t)("inventory.publish.title"),
139
139
  actions: q.value,
140
140
  "onClick:action": E
141
- }, X({
141
+ }, Q({
142
142
  default: u(() => [
143
143
  h("div", {
144
144
  class: Z([
@@ -149,9 +149,9 @@ const me = { class: "flex flex-col py-8" }, pe = { class: "fm-typo-en-body-md-40
149
149
  }
150
150
  ])
151
151
  }, [
152
- n(G, {
152
+ n(j, {
153
153
  style: ee(v(Y).tableHeight),
154
- "column-defs": j,
154
+ "column-defs": X,
155
155
  "row-data": $.value,
156
156
  loading: !v(l)._currentLocation || g.value,
157
157
  "loading-text": "Loading",
@@ -160,18 +160,18 @@ const me = { class: "flex flex-col py-8" }, pe = { class: "fm-typo-en-body-md-40
160
160
  "list-row": u((i) => [
161
161
  n(p, { row: i }, {
162
162
  default: u((d) => {
163
- var C, F, M, y, P, V, L, T, b, D;
163
+ var F, k, M, y, P, L, T, V, b, D;
164
164
  return [
165
165
  h("div", me, [
166
166
  h("div", pe, [
167
167
  n(m, {
168
- render: (M = (F = (C = d.code) == null ? void 0 : C.column) == null ? void 0 : F.columnDef) == null ? void 0 : M.cell,
168
+ render: (M = (k = (F = d.code) == null ? void 0 : F.column) == null ? void 0 : k.columnDef) == null ? void 0 : M.cell,
169
169
  props: (P = (y = d.code) == null ? void 0 : y.getContext) == null ? void 0 : P.call(y)
170
170
  }, null, 8, ["render", "props"])
171
171
  ]),
172
172
  h("div", de, [
173
173
  n(m, {
174
- render: (T = (L = (V = d.name) == null ? void 0 : V.column) == null ? void 0 : L.columnDef) == null ? void 0 : T.cell,
174
+ render: (V = (T = (L = d.name) == null ? void 0 : L.column) == null ? void 0 : T.columnDef) == null ? void 0 : V.cell,
175
175
  props: (D = (b = d.name) == null ? void 0 : b.getContext) == null ? void 0 : D.call(b)
176
176
  }, null, 8, ["render", "props"])
177
177
  ])
@@ -185,13 +185,13 @@ const me = { class: "flex flex-col py-8" }, pe = { class: "fm-typo-en-body-md-40
185
185
  }, 8, ["style", "row-data", "loading", "page-size"])
186
186
  ], 2),
187
187
  (I(), B(te, { to: "body" }, [
188
- n(O, {
188
+ n(J, {
189
189
  "dismiss-away": "",
190
190
  modelValue: w.value,
191
191
  "onUpdate:modelValue": o[1] || (o[1] = (i) => w.value = i)
192
192
  }, {
193
193
  default: u(() => [
194
- n(J, {
194
+ n(G, {
195
195
  class: "pb-8",
196
196
  items: K,
197
197
  "onUpdate:modelValue": o[0] || (o[0] = (i) => W(i))
@@ -1,10 +1,10 @@
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
- import { useRoute as w } from "vue-router";
3
- import { aw as y, aj as k } from "./app-DMbkakEB.js";
4
- const A = { class: "purchase-box" }, C = { 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" }, j = { class: "header" }, z = { class: "caption" }, J = {
1
+ import { defineComponent as b, computed as x, ref as m, 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
+ import { useRoute as k } from "vue-router";
3
+ import { ax as y, ak as w } from "./app-CFm28RQ_.js";
4
+ const A = { class: "purchase-box" }, C = { 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 = {
5
5
  class: "text-left",
6
6
  style: { width: "20%" }
7
- }, Q = { class: "text-left" }, G = {
7
+ }, j = { class: "text-left" }, G = {
8
8
  class: "text-right",
9
9
  style: { width: "15%" }
10
10
  }, K = {
@@ -13,7 +13,7 @@ const A = { class: "purchase-box" }, C = { valign: "bottom" }, R = { class: "tit
13
13
  }, W = /* @__PURE__ */ b({
14
14
  __name: "PurchaseOrderPrintPreview",
15
15
  setup(X) {
16
- const c = m(() => {
16
+ const c = x(() => {
17
17
  switch (s.value.status) {
18
18
  case y.enum.CANCEL:
19
19
  return "#FF0000";
@@ -22,7 +22,7 @@ const A = { class: "purchase-box" }, C = { valign: "bottom" }, R = { class: "tit
22
22
  default:
23
23
  return "#7A7A7A";
24
24
  }
25
- }), _ = w(), s = x(JSON.parse(_.query.data));
25
+ }), _ = k(), s = m(JSON.parse(_.query.data));
26
26
  return f(() => {
27
27
  setTimeout(() => window.print(), 500);
28
28
  }), (Y, l) => (u(), n("div", A, [
@@ -125,8 +125,8 @@ const A = { class: "purchase-box" }, C = { valign: "bottom" }, R = { class: "tit
125
125
  t("table", null, [
126
126
  t("tr", M, [
127
127
  t("td", null, [
128
- t("div", j, "Ref: " + e(r.ref), 1),
129
- t("div", z, e(r.createdAt), 1),
128
+ t("div", z, "Ref: " + e(r.ref), 1),
129
+ t("div", J, e(r.createdAt), 1),
130
130
  t("div", null, "Remark: " + e(r.remark), 1)
131
131
  ])
132
132
  ])
@@ -135,8 +135,8 @@ const A = { class: "purchase-box" }, C = { valign: "bottom" }, R = { class: "tit
135
135
  t("table", null, [
136
136
  t("tbody", null, [
137
137
  (u(!0), n(o, null, v(r.items, (d, h) => (u(), n("tr", { key: h }, [
138
- t("td", J, e(d.code), 1),
139
- t("td", Q, e(d.description), 1),
138
+ t("td", Q, e(d.code), 1),
139
+ t("td", j, e(d.description), 1),
140
140
  t("td", G, e(d.quantity), 1),
141
141
  t("td", K, e(d.unit), 1)
142
142
  ]))), 128))
@@ -147,7 +147,7 @@ const A = { class: "purchase-box" }, C = { valign: "bottom" }, R = { class: "tit
147
147
  ])
148
148
  ]));
149
149
  }
150
- }), et = /* @__PURE__ */ k(W, [["__scopeId", "data-v-3cb85541"]]);
150
+ }), et = /* @__PURE__ */ w(W, [["__scopeId", "data-v-3cb85541"]]);
151
151
  export {
152
152
  et as default
153
153
  };