@feedmepos/mf-inventory-portal 0.0.25-dev.4 → 0.0.25-dev.42

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 (112) hide show
  1. package/dist/{App-DavuRdR4.js → App-BgLyTa3Z.js} +35 -34
  2. package/dist/ApprovalView-UC31qsPD.js +143 -0
  3. package/dist/{BindingsDialog-Ckbhr9x3.js → BindingsDialog-h9el4EvX.js} +6 -6
  4. package/dist/{BindingsPicker-B63gIPVJ.js → BindingsPicker-Cw5AT6xO.js} +8 -8
  5. package/dist/{BindingsTable-5w7_8JzF.js → BindingsTable-Boj3hZup.js} +6 -6
  6. package/dist/ClosingDraftView-DOH7FmkH.js +1348 -0
  7. package/dist/ClosingTemplateView-CG7qArA8.js +1859 -0
  8. package/dist/FmCustomAttribute.vue_vue_type_script_setup_true_lang-D-IWRjRD.js +34 -0
  9. package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-k1J8dWcK.js +211 -0
  10. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-M5pWGm8D.js → FmUnitInput.vue_vue_type_script_setup_true_lang-C5qp_p1A.js} +52 -52
  11. package/dist/IngredientBindedItem.vue_vue_type_script_setup_true_lang-DBYsiV9t.js +51 -0
  12. package/dist/{IngredientGroupView-D_1gJl4X.js → IngredientGroupView-CWEw3I3i.js} +14 -14
  13. package/dist/{IngredientsView-Xzt0_AP8.js → IngredientsView-B6EDjPTe.js} +577 -551
  14. package/dist/{IntegrationView-BcF7Qhvw.js → IntegrationView-DiSoM1K8.js} +660 -623
  15. package/dist/{InventoryBindingForm-Cm49VDtA.js → InventoryBindingForm-nKWx-EUW.js} +1 -1
  16. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-EJ0U2gdF.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-BMMD4hwX.js} +96 -96
  17. package/dist/{InventoryBindingSummary-D821YZ-3.js → InventoryBindingSummary-CQnCjIY4.js} +1 -1
  18. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-D6jGlkOx.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-Cr8DwdOC.js} +1 -1
  19. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-TMYgOcbh.js → PremiumBadge.vue_vue_type_script_setup_true_lang-DnZI3Gfj.js} +15 -15
  20. package/dist/PublishView-DvHW27pI.js +222 -0
  21. package/dist/{PurchaseOrderPrintPreview-DiCTMEY4.js → PurchaseOrderPrintPreview-DSTbRKyh.js} +1 -1
  22. package/dist/ReceiveRequestView-BKRHqSU-.js +2577 -0
  23. package/dist/{RecipeView-k5yiAPop.js → RecipeView-CFTrf0YF.js} +47 -46
  24. package/dist/{index-DhAsCP14.js → StockView-CAPLd29m.js} +3564 -1764
  25. package/dist/{SupplierView-De4_YCtR.js → SupplierView-C_CrS9FM.js} +446 -457
  26. package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-BWuWB95v.js +1564 -0
  27. package/dist/TransferTemplateView-BaJaiaO9.js +1526 -0
  28. package/dist/{UnitView-DouWNXFf.js → UnitView-DY9nZs1y.js} +14 -14
  29. package/dist/{WarehouseView-RQN-XBeO.js → WarehouseView-CAFxl8K4.js} +332 -314
  30. package/dist/api/closing-draft.d.ts +1 -0
  31. package/dist/api/inventory.d.ts +9 -6
  32. package/dist/api/netsuite.d.ts +21 -4
  33. package/dist/api/purchase-order.d.ts +6 -1
  34. package/dist/api/stock.d.ts +1 -0
  35. package/dist/{app-Bmmin1VX.js → app-Jh5wwLsF.js} +28968 -28906
  36. package/dist/app.js +1 -1
  37. package/dist/components/FmAutocompleteTextField.vue.d.ts +31 -0
  38. package/dist/components/FmCustomAttribute.vue.d.ts +3 -8
  39. package/dist/components/FmLockableField.vue.d.ts +3 -0
  40. package/dist/components/FmMultiselectDialog.d.ts +23 -0
  41. package/dist/components/FmMultiselectDialog.vue.d.ts +20 -3
  42. package/dist/components/FmMultiselectDialogProps.d.ts +2 -0
  43. package/dist/components/inventory-binding/InventoryBinding.vue.d.ts +1 -1
  44. package/dist/components/shell/inventory/binding-ui.vue.d.ts +1 -1
  45. package/dist/{decimal-CZhBTty7.js → decimal-0_acpDRy.js} +1 -1
  46. package/dist/feature-CqX_LtOl.js +1007 -0
  47. package/dist/{format-unit-display-CijRcRSo.js → format-unit-display-CYPC8_oX.js} +335 -328
  48. package/dist/helper/country.d.ts +1 -0
  49. package/dist/helper/fuzzy.d.ts +10 -0
  50. package/dist/index-QcOk4LDU.js +35546 -0
  51. package/dist/{stock-D5lxPBQG.js → stock-BpWEKDoQ.js} +29 -25
  52. package/dist/stores/feature.d.ts +4 -5
  53. package/dist/stores/helper/generate-backend-urls.d.ts +0 -1
  54. package/dist/stores/integration/netsuite.d.ts +21 -4
  55. package/dist/stores/inventory.d.ts +135 -8
  56. package/dist/stores/location.d.ts +100 -0
  57. package/dist/stores/warehouse.d.ts +1 -0
  58. package/dist/style.css +1 -1
  59. package/dist/{supplier-BU1WhNTR.js → supplier-By3gzRHW.js} +1 -1
  60. package/dist/tsconfig.app.tsbuildinfo +1 -1
  61. package/dist/use-ingredient-select-dialog-hkbfGnB9.js +51 -0
  62. package/dist/{use-inventory-binding-dialog-ZneYylve.js → use-inventory-binding-dialog-BFG04MUx.js} +1 -1
  63. package/dist/views/adjustment-template/wastage-template/actions.d.ts +24 -0
  64. package/dist/views/adjustment-template/wastage-template/table.d.ts +24 -0
  65. package/dist/views/closing-draft/components/closing-draft-dialog/ClosingDraftDialog.vue.d.ts +8 -4
  66. package/dist/views/closing-draft/composables/use-closing-draft-actions.d.ts +4 -1
  67. package/dist/views/closing-draft/composables/use-closing-draft-table.d.ts +48 -24
  68. package/dist/views/closing-draft/helpers/export-draft.helper.d.ts +1 -1
  69. package/dist/views/closing-template/components/closing-template-form/composables/use-closing-template-items.d.ts +1 -1
  70. package/dist/views/closing-template/composables/use-closing-template-actions.d.ts +36 -12
  71. package/dist/views/closing-template/composables/use-closing-template-table.d.ts +36 -12
  72. package/dist/views/dev/components/AutocompleteTextField.vue.d.ts +2 -0
  73. package/dist/views/ingredient-group/composables/use-ingredient-group-table.d.ts +3 -3
  74. package/dist/views/ingredients/components/ingredient-form/IngredientForm.vue.d.ts +2 -2
  75. package/dist/views/ingredients/composables/use-ingredient-select-dialog.d.ts +16 -0
  76. package/dist/views/ingredients/composables/use-ingredient-table.d.ts +1 -1
  77. package/dist/views/receive-request/components/netsuite/NetSuiteProps.d.ts +2 -0
  78. package/dist/views/receive-request/components/transfer-details/TransferDetailsProps.d.ts +4 -1
  79. package/dist/views/receive-request/components/transfer-form/TransferForm.vue.d.ts +411 -17
  80. package/dist/views/receive-request/components/transfer-form/components/ForecastStock.vue.d.ts +6 -2
  81. package/dist/views/receive-request/components/transfer-form/components/TransferItemTable.vue.d.ts +382 -2
  82. package/dist/views/receive-request/components/transfer-form/composables/use-transfer-items.d.ts +6 -3
  83. package/dist/views/receive-request/composables/use-receive-request-form.d.ts +822 -29
  84. package/dist/views/receive-request/composables/use-receive-request-table.d.ts +650 -48
  85. package/dist/views/receive-request/import/XilnexImportDialog.vue.d.ts +22 -0
  86. package/dist/views/receive-request/import/XilnexImportForm.vue.d.ts +17 -0
  87. package/dist/views/receive-request/import/XilnexResult.vue.d.ts +17 -0
  88. package/dist/views/receive-request/import/export.d.ts +12 -0
  89. package/dist/views/receive-request/import/props.d.ts +7 -0
  90. package/dist/views/stock/components/dialog/AdjustedItemForm.vue.d.ts +4 -2
  91. package/dist/views/transfer-template/components/transfer-template-form/components/TransferTemplateItemTable.vue.d.ts +220 -0
  92. package/dist/views/transfer-template/components/transfer-template-form/composables/use-template-enabled-locations-2.d.ts +8 -0
  93. package/dist/views/transfer-template/components/transfer-template-form/composables/use-template-enabled-locations.d.ts +1 -0
  94. package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-template-items.d.ts +9 -4
  95. package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +60 -12
  96. package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +60 -12
  97. package/dist/views/transfer-template/composables/useTransferTemplateHelper.d.ts +305 -0
  98. package/dist/views/warehouse/components/WarehouseForm.vue.d.ts +2 -0
  99. package/dist/{vue-i18n-BQNx5sCM.js → vue-i18n-D57Xfcpf.js} +226 -226
  100. package/package.json +3 -3
  101. package/dist/ApprovalView-DjDzZmVI.js +0 -138
  102. package/dist/ClosingDraftView-BwV3uiYC.js +0 -1225
  103. package/dist/ClosingTemplateView-vaAj0Y-0.js +0 -1819
  104. package/dist/FmCustomAttribute.vue_vue_type_script_setup_true_lang-Dy1BXu1R.js +0 -142
  105. package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DZ_Q-3lU.js +0 -286
  106. package/dist/PublishView-CYdu5jl4.js +0 -192
  107. package/dist/ReceiveRequestView-DGqs1rpr.js +0 -1876
  108. package/dist/StockView-DX0RjayP.js +0 -1817
  109. package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-DhdMwHAA.js +0 -1327
  110. package/dist/TransferTemplateView-DEwJaqYB.js +0 -1284
  111. package/dist/components/FmCustomAttribute2.vue.d.ts +0 -18
  112. package/dist/index-DbE8p73U.js +0 -29202
@@ -1,15 +1,16 @@
1
- import { defineComponent as q, ref as C, onMounted as re, resolveComponent as S, openBlock as x, createElementBlock as $, Fragment as ie, createElementVNode as R, toDisplayString as ce, createVNode as v, createCommentVNode as K, computed as F, watch as ue, createBlock as T, withCtx as P, unref as b, isRef as Z, normalizeClass as de, normalizeStyle as me, Teleport as pe, normalizeProps as fe, guardReactiveProps as ve } from "vue";
2
- import { a as A, e as V, f as O, S as ye, h as ge, D as ee, i as Y, j, F as te, m as be, U as _e, A as we, p as ne, q as Re, s as he, r as Ve, u as xe, z as Ee, _ as Ce, B as Se, E as Fe, G as oe } from "./app-Bmmin1VX.js";
1
+ import { defineComponent as H, ref as E, onMounted as re, resolveComponent as S, openBlock as x, createElementBlock as $, Fragment as ie, createElementVNode as R, toDisplayString as ce, createVNode as v, createCommentVNode as j, computed as F, watch as ue, createBlock as T, withCtx as P, unref as b, isRef as Z, normalizeClass as de, normalizeStyle as me, Teleport as pe, normalizeProps as fe, guardReactiveProps as ve } from "vue";
2
+ import { a as A, d as V, e as O, S as ye, f as ge, D as ee, h as Y, i as q, F as te, l as be, U as _e, A as we, p as ne, q as Re, s as he, r as Ve, u as xe, z as Ce, _ as Ee, B as Se, C as Fe, E as oe } from "./app-Jh5wwLsF.js";
3
3
  import { useDialog as ke, useSnackbar as se, useProxiedModel as ae, useBreakpoints as De } from "@feedmepos/ui-library";
4
4
  import { i as Ae, _ as Ie } from "./is-linked-ingredient-error-fJ2TJb3z.js";
5
- import { _ as le, a as $e } from "./FmCustomAttribute.vue_vue_type_script_setup_true_lang-Dy1BXu1R.js";
6
- import { defineStore as Pe, storeToRefs as Be } from "pinia";
7
- import { useI18n as H } from "@feedmepos/mf-common";
8
- import { _ as Te } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-EJ0U2gdF.js";
5
+ import { _ as le } from "./IngredientBindedItem.vue_vue_type_script_setup_true_lang-DBYsiV9t.js";
6
+ import { defineStore as $e, storeToRefs as Pe } from "pinia";
7
+ import { useI18n as K } from "@feedmepos/mf-common";
8
+ import { _ as Be } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-BMMD4hwX.js";
9
+ import { _ as Te } from "./FmCustomAttribute.vue_vue_type_script_setup_true_lang-D-IWRjRD.js";
9
10
  const Me = {
10
11
  key: 0,
11
12
  class: "flex flex-col items-center w-full h-full gap-24"
12
- }, Ue = { key: 1 }, Ne = { key: 0 }, ze = /* @__PURE__ */ q({
13
+ }, Ue = { key: 1 }, Ne = { key: 0 }, ze = /* @__PURE__ */ H({
13
14
  __name: "DeleteDialog",
14
15
  props: {
15
16
  type: {},
@@ -18,7 +19,7 @@ const Me = {
18
19
  bindedItems: {}
19
20
  },
20
21
  setup(h) {
21
- const p = h, y = C(p.bindedItems || []), a = C(!1);
22
+ const p = h, y = E(p.bindedItems || []), a = E(!1);
22
23
  re(() => {
23
24
  s();
24
25
  });
@@ -45,13 +46,13 @@ const Me = {
45
46
  name: "Menu",
46
47
  bindings: y.value
47
48
  }, null, 8, ["bindings"])
48
- ])) : K("", !0)
49
+ ])) : j("", !0)
49
50
  ]))
50
51
  ], 64);
51
52
  };
52
53
  }
53
- }), G = Pe("recipeForm", function() {
54
- const p = ke(), y = se(), a = A(), s = C(!1), c = C();
54
+ }), G = $e("recipeForm", function() {
55
+ const p = ke(), y = se(), a = A(), s = E(!1), c = E();
55
56
  function i() {
56
57
  const n = {
57
58
  recipe: {},
@@ -133,7 +134,7 @@ const Me = {
133
134
  };
134
135
  });
135
136
  function Le() {
136
- const { updateRecipe: h, deleteRecipe: p } = G(), y = A(), { t: a } = H();
137
+ const { updateRecipe: h, deleteRecipe: p } = G(), y = A(), { t: a } = K();
137
138
  async function s(u, d) {
138
139
  const n = O(d);
139
140
  if (u === Y.Edit) {
@@ -189,22 +190,22 @@ function Le() {
189
190
  return u.map((n) => ({
190
191
  recipe: n.name,
191
192
  ingredients: c(n.contains, /* @__PURE__ */ new Set([n._id])).map((l) => {
192
- var _, g, r, m, E;
193
+ var _, g, r, m, C;
193
194
  const t = d.skuById[l.id];
194
- return t ? l.recipeIds.slice(1).length ? `(linked recipe ${(_ = d.recipeById[l.recipeIds.at(-1) ?? ""]) == null ? void 0 : _.name}) ${t.name} (${j(l.amount)}${((g = l.measurement) == null ? void 0 : g.abbrev) ?? ((r = t == null ? void 0 : t.unit) == null ? void 0 : r.abbrev)})` : `${t.name} (${j(l.amount)}${((m = l.measurement) == null ? void 0 : m.abbrev) ?? ((E = t == null ? void 0 : t.unit) == null ? void 0 : E.abbrev)})` : null;
195
+ return t ? l.recipeIds.slice(1).length ? `(linked recipe ${(_ = d.recipeById[l.recipeIds.at(-1) ?? ""]) == null ? void 0 : _.name}) ${t.name} (${q(l.amount)}${((g = l.measurement) == null ? void 0 : g.abbrev) ?? ((r = t == null ? void 0 : t.unit) == null ? void 0 : r.abbrev)})` : `${t.name} (${q(l.amount)}${((m = l.measurement) == null ? void 0 : m.abbrev) ?? ((C = t == null ? void 0 : t.unit) == null ? void 0 : C.abbrev)})` : null;
195
196
  }).filter((l) => l).join(", "),
196
197
  original: n
197
198
  }));
198
199
  }
199
200
  return { columnDefs: i, formatRowData: f };
200
201
  }
201
- const Ye = { class: "flex flex-col gap-40" }, je = {
202
+ const Ye = { class: "flex flex-col gap-40" }, qe = {
202
203
  key: 0,
203
204
  class: "col-span-2 mt-16 border-1 border-fm-color-neutral-gray-200 fm-corner-radius-lg flex flex-col p-16 gap-16"
204
- }, qe = {
205
+ }, He = {
205
206
  key: 0,
206
207
  class: "flex flex-col items-center w-full h-full gap-24"
207
- }, He = { key: 1 }, Ke = { class: "mt-32" }, Ge = /* @__PURE__ */ q({
208
+ }, Ke = { key: 1 }, je = { class: "mt-32" }, Ge = /* @__PURE__ */ H({
208
209
  __name: "RecipeForm",
209
210
  props: {
210
211
  mode: {},
@@ -214,7 +215,7 @@ const Ye = { class: "flex flex-col gap-40" }, je = {
214
215
  emits: ["update:modelValue", "click:submit"],
215
216
  setup(h, { expose: p, emit: y }) {
216
217
  var k;
217
- const a = h, s = y, { t: c } = H(), i = F({
218
+ const a = h, s = y, { t: c } = K(), i = F({
218
219
  get() {
219
220
  var e;
220
221
  return ((e = a.modelValue) == null ? void 0 : e.name) ?? "";
@@ -247,7 +248,7 @@ const Ye = { class: "flex flex-col gap-40" }, je = {
247
248
  function d() {
248
249
  s("click:submit");
249
250
  }
250
- const n = C();
251
+ const n = E();
251
252
  p({
252
253
  validateInputs: () => {
253
254
  var e, o;
@@ -262,7 +263,7 @@ const Ye = { class: "flex flex-col gap-40" }, je = {
262
263
  (o = (e = n.value) == null ? void 0 : e.resetInputs) == null || o.call(e);
263
264
  }
264
265
  });
265
- const l = A(), t = C([]), _ = C(!1), g = C(!1);
266
+ const l = A(), t = E([]), _ = E(!1), g = E(!1);
266
267
  ue(_, async (e) => {
267
268
  r(e);
268
269
  });
@@ -272,7 +273,7 @@ const Ye = { class: "flex flex-col gap-40" }, je = {
272
273
  }
273
274
  const m = F(
274
275
  () => l.recipes.map((e) => ({ label: e.name, value: e.name }))
275
- ), E = C((k = a.modelValue) == null ? void 0 : k.name);
276
+ ), C = E((k = a.modelValue) == null ? void 0 : k.name);
276
277
  return (e, o) => {
277
278
  const B = S("FmTextField"), I = S("FmCard"), D = S("FmSwitch"), M = S("FmSpacer"), U = S("FmCircularProgress"), N = S("FmForm");
278
279
  return x(), T(N, {
@@ -289,7 +290,7 @@ const Ye = { class: "flex flex-col gap-40" }, je = {
289
290
  "onUpdate:modelValue": o[0] || (o[0] = (w) => i.value = w),
290
291
  rules: [
291
292
  b(be)(),
292
- b(_e)(m.value, E.value, (w) => `[${w.value}] already exists`)
293
+ b(_e)(m.value, C.value, (w) => `[${w.value}] already exists`)
293
294
  ],
294
295
  "label-mark": "required"
295
296
  }, null, 8, ["disabled", "label", "model-value", "rules"]),
@@ -300,7 +301,7 @@ const Ye = { class: "flex flex-col gap-40" }, je = {
300
301
  default: P(() => {
301
302
  var w;
302
303
  return [
303
- v(Te, {
304
+ v(Be, {
304
305
  id: (w = e.modelValue) == null ? void 0 : w._id,
305
306
  disabled: e.disabled,
306
307
  "model-value": f.value,
@@ -312,7 +313,7 @@ const Ye = { class: "flex flex-col gap-40" }, je = {
312
313
  _: 1
313
314
  })
314
315
  ]),
315
- e.mode !== b(V).CREATE ? (x(), $("div", je, [
316
+ e.mode !== b(V).CREATE ? (x(), $("div", qe, [
316
317
  R("div", null, [
317
318
  v(D, {
318
319
  label: "Show binded items",
@@ -322,23 +323,23 @@ const Ye = { class: "flex flex-col gap-40" }, je = {
322
323
  disabled: g.value
323
324
  }, null, 8, ["modelValue", "disabled"])
324
325
  ]),
325
- g.value ? (x(), $("div", qe, [
326
+ g.value ? (x(), $("div", He, [
326
327
  v(M),
327
328
  R("div", null, [
328
329
  v(U, { size: "xl" })
329
330
  ]),
330
331
  o[4] || (o[4] = R("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary pl-8" }, "Loading...", -1)),
331
332
  v(M)
332
- ])) : (x(), $("div", He, [
333
+ ])) : (x(), $("div", Ke, [
333
334
  _.value && t.value.length ? (x(), T(le, {
334
335
  key: 0,
335
336
  name: "Menu",
336
337
  bindings: t.value
337
- }, null, 8, ["bindings"])) : K("", !0)
338
+ }, null, 8, ["bindings"])) : j("", !0)
338
339
  ]))
339
- ])) : K("", !0),
340
- R("div", Ke, [
341
- v($e, {
340
+ ])) : j("", !0),
341
+ R("div", je, [
342
+ v(Te, {
342
343
  entity: "inventoryRecipe",
343
344
  modelValue: u.value,
344
345
  "onUpdate:modelValue": o[3] || (o[3] = (w) => u.value = w)
@@ -349,7 +350,7 @@ const Ye = { class: "flex flex-col gap-40" }, je = {
349
350
  }, 512);
350
351
  };
351
352
  }
352
- }), Oe = { class: "flex gap-4" }, Je = /* @__PURE__ */ q({
353
+ }), Oe = { class: "flex gap-4" }, Je = /* @__PURE__ */ H({
353
354
  __name: "RecipeDialog",
354
355
  props: {
355
356
  show: { type: Boolean },
@@ -358,7 +359,7 @@ const Ye = { class: "flex flex-col gap-40" }, je = {
358
359
  },
359
360
  emits: ["update:show"],
360
361
  setup(h) {
361
- const p = h, y = A(), a = se(), { t: s } = H(), c = ae(p, "show"), i = ae(p, "recipe"), f = F(() => {
362
+ const p = h, y = A(), a = se(), { t: s } = K(), c = ae(p, "show"), i = ae(p, "recipe"), f = F(() => {
362
363
  switch (p.mode) {
363
364
  case V.READ:
364
365
  return "";
@@ -378,7 +379,7 @@ const Ye = { class: "flex flex-col gap-40" }, je = {
378
379
  return s("common.add");
379
380
  }
380
381
  return "";
381
- }), d = C(), n = C(!1);
382
+ }), d = E(), n = E(!1);
382
383
  async function l() {
383
384
  n.value = !0;
384
385
  try {
@@ -431,7 +432,7 @@ const Ye = { class: "flex flex-col gap-40" }, je = {
431
432
  }
432
433
  }
433
434
  return (r, m) => {
434
- const E = S("FmButton"), k = S("FmSideSheet");
435
+ const C = S("FmButton"), k = S("FmSideSheet");
435
436
  return x(), T(k, {
436
437
  "model-value": b(c),
437
438
  "onUpdate:modelValue": m[3] || (m[3] = (e) => Z(c) ? c.value = e : null),
@@ -442,12 +443,12 @@ const Ye = { class: "flex flex-col gap-40" }, je = {
442
443
  }, {
443
444
  "side-sheet-footer": P(() => [
444
445
  R("div", Oe, [
445
- v(E, {
446
+ v(C, {
446
447
  loading: n.value,
447
448
  label: u.value,
448
449
  onClick: _
449
450
  }, null, 8, ["loading", "label"]),
450
- v(E, {
451
+ v(C, {
451
452
  disabled: n.value,
452
453
  label: b(s)("common.close"),
453
454
  variant: "tertiary",
@@ -487,21 +488,21 @@ function Qe() {
487
488
  "RECIPE",
488
489
  "",
489
490
  (g = y[t.id]) == null ? void 0 : g.name,
490
- j(t.amount),
491
+ q(t.amount),
491
492
  "UNIT"
492
493
  ];
493
494
  }
494
495
  ),
495
496
  ...l.map(
496
497
  (t, _) => {
497
- var g, r, m, E;
498
+ var g, r, m, C;
498
499
  return [
499
500
  !n.length && _ === 0 ? f.name : "",
500
501
  "INGREDIENT",
501
502
  (g = a[t.id]) == null ? void 0 : g.code,
502
503
  (r = a[t.id]) == null ? void 0 : r.name,
503
- j(t.amount),
504
- t.measurement ? t.measurement.abbrev : (E = (m = a[t.id]) == null ? void 0 : m.unit) == null ? void 0 : E.abbrev
504
+ q(t.amount),
505
+ t.measurement ? t.measurement.abbrev : (C = (m = a[t.id]) == null ? void 0 : m.unit) == null ? void 0 : C.abbrev
505
506
  ];
506
507
  }
507
508
  )
@@ -514,20 +515,20 @@ function Qe() {
514
515
  }), i = Re(s, ["Name", "Type", "Code", "Item", "Amount", "Unit"]);
515
516
  he(i, `RECIPE_${Ve(/* @__PURE__ */ new Date(), "-", "-")}.xlsx`);
516
517
  }
517
- const We = { class: "flex flex-col py-8" }, Xe = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, Ze = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, it = /* @__PURE__ */ q({
518
+ const We = { class: "flex flex-col py-8" }, Xe = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, Ze = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ct = /* @__PURE__ */ H({
518
519
  __name: "RecipeView",
519
520
  setup(h) {
520
- const p = A(), y = F(() => p.recipes), a = xe(), { createRecipe: s, updateRecipe: c } = G(), { recipeDialogProps: i, recipeViewLoading: f } = Be(G()), { columnDefs: u, formatRowData: d } = Le(), n = F(() => d(y.value));
521
+ const p = A(), y = F(() => p.recipes), a = xe(), { createRecipe: s, updateRecipe: c } = G(), { recipeDialogProps: i, recipeViewLoading: f } = Pe(G()), { columnDefs: u, formatRowData: d } = Le(), n = F(() => d(y.value));
521
522
  function l(e) {
522
523
  if (e === "add")
523
524
  return s();
524
525
  if (e === "export")
525
526
  return Qe();
526
527
  }
527
- const t = C(""), _ = F(() => f.value), { breakpoints: g } = De(), r = F(() => g.value.xs || g.value.sm), m = F(() => r.value ? 10 : 20), E = Ee(), { t: k } = H();
528
+ const t = E(""), _ = F(() => f.value), { breakpoints: g } = De(), r = F(() => g.value.xs || g.value.sm), m = F(() => r.value ? 10 : 20), C = Ce(), { t: k } = K();
528
529
  return (e, o) => {
529
530
  const B = S("FmTable");
530
- return x(), T(Ce, {
531
+ return x(), T(Ee, {
531
532
  title: b(k)("inventory.recipe.title"),
532
533
  actions: [
533
534
  {
@@ -556,7 +557,7 @@ const We = { class: "flex flex-col py-8" }, Xe = { class: "fm-typo-en-body-lg-60
556
557
  "onUpdate:search": o[0] || (o[0] = (I) => t.value = I)
557
558
  }, null, 8, ["search"]),
558
559
  (x(), T(B, {
559
- style: me(b(E).tableHeight),
560
+ style: me(b(C).tableHeight),
560
561
  "column-defs": b(u),
561
562
  "row-data": n.value,
562
563
  "search-value": t.value,
@@ -605,5 +606,5 @@ const We = { class: "flex flex-col py-8" }, Xe = { class: "fm-typo-en-body-lg-60
605
606
  }
606
607
  });
607
608
  export {
608
- it as default
609
+ ct as default
609
610
  };