@feedmepos/mf-inventory-portal 0.0.23-dev.19 → 0.0.23-dev.20

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 (77) hide show
  1. package/dist/{App-DY01VbHo.js → App-N2myASr3.js} +44 -41
  2. package/dist/{ApprovalView-DtwXb5T7.js → ApprovalView-B87DpnNq.js} +20 -23
  3. package/dist/{BindingsDialog-ClnnwUTV.js → BindingsDialog-DehCgt1T.js} +7 -7
  4. package/dist/{BindingsPicker-DbdkXiHx.js → BindingsPicker-BBtJ3rBB.js} +7 -8
  5. package/dist/{BindingsTable-Cqh3Ku0d.js → BindingsTable-CfHuy-K1.js} +16 -20
  6. package/dist/{ClosingDraftView-CzuMTeC1.js → ClosingDraftView-BYZ1mZrG.js} +190 -196
  7. package/dist/{ClosingTemplateView-CVQlOya4.js → ClosingTemplateView-CAL9jYaf.js} +49 -60
  8. package/dist/{FmDroppableField-8RzKjEdL.js → FmDroppableField-CC7RiBoR.js} +1 -1
  9. package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BO1wCa9i.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-C4G9LaXv.js} +24 -25
  10. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-sgvBxxkn.js → FmUnitInput.vue_vue_type_script_setup_true_lang-BBf7jmJz.js} +56 -57
  11. package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-D7uvrzFU.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-DjTvrLPs.js} +7 -7
  12. package/dist/{IngredientGroupView-DgDZnggI.js → IngredientGroupView-X0ST4tW9.js} +30 -37
  13. package/dist/{IngredientsView-SuCckJrj.js → IngredientsView-BUJXzpVr.js} +106 -112
  14. package/dist/{IntegrationView-CZQoHCkX.js → IntegrationView-QbuIwjec.js} +63 -65
  15. package/dist/{InventoryBindingForm-C-E3EINv.js → InventoryBindingForm-C1BR_h_3.js} +1 -1
  16. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-B3nsmCuj.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-CRwcFskQ.js} +18 -20
  17. package/dist/{InventoryBindingSummary-DNiOKfO8.js → InventoryBindingSummary-gn3Gq1ok.js} +1 -1
  18. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CdYa8Pv2.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-GY3FFm5_.js} +1 -1
  19. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-BwxgZ-vM.js → PremiumBadge.vue_vue_type_script_setup_true_lang-DVwtuUg9.js} +8 -8
  20. package/dist/{PurchaseOrderPrintPreview-C6i2S9L-.js → PurchaseOrderPrintPreview-FuOYaO56.js} +13 -14
  21. package/dist/{ReceiveRequestView-BABjGvIn.js → ReceiveRequestView-BNz1brve.js} +66 -75
  22. package/dist/{RecipeView-CoMcIuHu.js → RecipeView-DRKTODfC.js} +58 -64
  23. package/dist/{StockView-DhJshtaj.js → StockView-DnMcfkGG.js} +80 -87
  24. package/dist/{SupplierView-hQtDIQzE.js → SupplierView-DAnnWZUN.js} +45 -52
  25. package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-DsJUSZsm.js → TransferDetails.vue_vue_type_script_setup_true_lang-BBARPa0S.js} +103 -110
  26. package/dist/{TransferTemplateView-GzwT4hp-.js → TransferTemplateView-2qlKwwKg.js} +217 -227
  27. package/dist/{UnitView-CRMF6RWu.js → UnitView-u5wZGetF.js} +103 -108
  28. package/dist/{WarehouseView-AVEDff0v.js → WarehouseView-Z80N7FJV.js} +77 -84
  29. package/dist/api/adjustment-template.d.ts +23 -0
  30. package/dist/app-Fc2FPGhO.js +58871 -0
  31. package/dist/app.d.ts +51 -0
  32. package/dist/app.js +2 -2
  33. package/dist/components/FmMultiselectDialogProps.d.ts +1 -0
  34. package/dist/composable/defineDeepModel.d.ts +1 -1
  35. package/dist/{decimal-N5ymnwhP.js → decimal-BDD-e5Lb.js} +1 -1
  36. package/dist/{feature-Bfq8yWgS.js → feature-BMEyYowI.js} +1 -1
  37. package/dist/{format-unit-display-CXawcmvj.js → format-unit-display-DvlR_z--.js} +205 -212
  38. package/dist/{index-CcCqc9jx.js → index-CR22QBdu.js} +1 -1
  39. package/dist/{netsuite-DX6L1oLu.js → netsuite-CqMWgzKo.js} +9 -9
  40. package/dist/router/name.d.ts +1 -0
  41. package/dist/{stock-Btlxmf8R.js → stock-sIy40ix1.js} +7 -8
  42. package/dist/style.css +1 -1
  43. package/dist/supplier-Cf24JqTH.js +77 -0
  44. package/dist/tsconfig.app.tsbuildinfo +1 -1
  45. package/dist/{use-inventory-binding-dialog-BFqxWNzX.js → use-inventory-binding-dialog-Br9Uv9o8.js} +10 -11
  46. package/dist/views/adjustment-template/wastage-template/WastageTemplateDetails.vue.d.ts +2 -0
  47. package/dist/views/adjustment-template/wastage-template/WastageTemplateDialog.vue.d.ts +22 -0
  48. package/dist/views/adjustment-template/wastage-template/WastageTemplatePublish.vue.d.ts +6 -0
  49. package/dist/views/adjustment-template/wastage-template/WastageTemplateView.vue.d.ts +2 -0
  50. package/dist/views/adjustment-template/wastage-template/actions.d.ts +1295 -0
  51. package/dist/views/adjustment-template/wastage-template/form/WastageTemplateForm.vue.d.ts +16 -0
  52. package/dist/views/adjustment-template/wastage-template/form/WastageTemplateItemTable.vue.d.ts +35 -0
  53. package/dist/views/adjustment-template/wastage-template/form/useAdjustmentTemplateItems.d.ts +20 -0
  54. package/dist/views/adjustment-template/wastage-template/props.d.ts +29 -0
  55. package/dist/views/adjustment-template/wastage-template/table.d.ts +1273 -0
  56. package/dist/views/stock/components/dialog/AdjustedItemForm.vue.d.ts +2 -2
  57. package/dist/views/stock/helper/compute-summary-total.d.ts +2 -2
  58. package/dist/{xlsx-C3L2eW52.js → xlsx-sL0sD2HQ.js} +1 -1
  59. package/dist/{xlsx.util-CJKLCuWK.js → xlsx.util-D2Tdwf8J.js} +1 -1
  60. package/package.json +3 -3
  61. package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-m92y5x0G.js +0 -436
  62. package/dist/FmMultiselectDialog-Jr9uL_z_.js +0 -415
  63. package/dist/TableActionableRow.vue_vue_type_script_setup_true_lang-DlNJ6kRg.js +0 -135
  64. package/dist/_plugin-vue_export-helper-CHgC5LLL.js +0 -9
  65. package/dist/app-ww5ibHkL.js +0 -33540
  66. package/dist/date2-D5MTVjlP.js +0 -117
  67. package/dist/dayjs.min-7pwGJ2aW.js +0 -282
  68. package/dist/defineDeepModel-DJODEpcR.js +0 -13
  69. package/dist/form-mode.enum-BKiNVH6A.js +0 -4
  70. package/dist/format-time-from-id-0UkRUr39.js +0 -15
  71. package/dist/fuzzy-DdOiOd-q.js +0 -41
  72. package/dist/index-Cin_fxtb.js +0 -45
  73. package/dist/index-gvJJ-xRY.js +0 -22283
  74. package/dist/row-action.enum-7rGLGZ5v.js +0 -55
  75. package/dist/rules-C83wiSGb.js +0 -203
  76. package/dist/supplier-CSzla-9I.js +0 -77
  77. package/dist/use-template-enabled-locations-2-CUkqC-cd.js +0 -86
@@ -1,18 +1,12 @@
1
- import { defineComponent as Y, ref as E, onMounted as re, resolveComponent as S, openBlock as C, createElementBlock as A, Fragment as ie, createElementVNode as w, toDisplayString as ce, createVNode as g, createCommentVNode as j, computed as V, watch as ue, createBlock as T, withCtx as P, unref as y, isRef as Z, normalizeClass as de, normalizeStyle as me, Teleport as pe, normalizeProps as fe, guardReactiveProps as ve } from "vue";
2
- import { a as I, c as G, S as ye, F as ee, h as te, u as ge } from "./app-ww5ibHkL.js";
3
- import { useDialog as be, useSnackbar as se, useProxiedModel as ne, useBreakpoints as _e } from "@feedmepos/ui-library";
4
- import { i as we, _ as Re } from "./is-linked-ingredient-error-fJ2TJb3z.js";
5
- import { F as x } from "./form-mode.enum-BKiNVH6A.js";
6
- import { _ as le } from "./IngredientBindedItem.vue_vue_type_script_setup_true_lang-D7uvrzFU.js";
7
- import { defineStore as he, storeToRefs as xe } from "pinia";
8
- import { D as oe, R as L } from "./row-action.enum-7rGLGZ5v.js";
9
- import { c as Ce, _ as Ee, F as ae } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-DlNJ6kRg.js";
10
- import { a as z, R as Fe, U as Se, A as Ve } from "./rules-C83wiSGb.js";
11
- import { useI18n as H } from "@feedmepos/mf-common";
12
- import { u as ke, _ as De, a as Ie } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-m92y5x0G.js";
13
- import { _ as $e } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-B3nsmCuj.js";
14
- import { t as Ae, d as Pe } from "./xlsx.util-CJKLCuWK.js";
15
- import { f as Be } from "./date2-D5MTVjlP.js";
1
+ import { defineComponent as Y, ref as E, onMounted as re, resolveComponent as F, openBlock as C, createElementBlock as A, Fragment as ie, createElementVNode as w, toDisplayString as ce, createVNode as g, createCommentVNode as K, computed as V, watch as ue, createBlock as T, withCtx as P, unref as y, isRef as Z, normalizeClass as de, normalizeStyle as me, Teleport as pe, normalizeProps as fe, guardReactiveProps as ve } from "vue";
2
+ import { a as I, c as x, d as G, S as ye, e as ge, D as ee, f as L, h as z, F as te, k as be, U as _e, A as we, m as ne, n as Re, u as he, p as xe, q as Ce, r as Ee, s as Se, v as oe } from "./app-Fc2FPGhO.js";
3
+ import { useDialog as Fe, useSnackbar as se, useProxiedModel as ae, useBreakpoints as Ve } from "@feedmepos/ui-library";
4
+ import { i as ke, _ as De } from "./is-linked-ingredient-error-fJ2TJb3z.js";
5
+ import { _ as le } from "./IngredientBindedItem.vue_vue_type_script_setup_true_lang-DjTvrLPs.js";
6
+ import { defineStore as Ie, storeToRefs as $e } from "pinia";
7
+ import { useI18n as q } from "@feedmepos/mf-common";
8
+ import { _ as Ae } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-CRwcFskQ.js";
9
+ import { t as Pe, d as Be } from "./xlsx.util-D2Tdwf8J.js";
16
10
  const Te = {
17
11
  key: 0,
18
12
  class: "flex flex-col items-center w-full h-full gap-24"
@@ -34,7 +28,7 @@ const Te = {
34
28
  !r.value && ((c = p.data) != null && c._id) && (r.value = !0, v.value = await I().getAffectedMenu((i = p.data) == null ? void 0 : i._id), r.value = !1);
35
29
  }
36
30
  return (c, i) => {
37
- const f = S("FmSpacer"), d = S("FmCircularProgress");
31
+ const f = F("FmSpacer"), d = F("FmCircularProgress");
38
32
  return C(), A(ie, null, [
39
33
  w("p", null, ce(c.message), 1),
40
34
  r.value ? (C(), A("div", Te, [
@@ -52,13 +46,13 @@ const Te = {
52
46
  name: "Menu",
53
47
  bindings: v.value
54
48
  }, null, 8, ["bindings"])
55
- ])) : j("", !0)
49
+ ])) : K("", !0)
56
50
  ]))
57
51
  ], 64);
58
52
  };
59
53
  }
60
- }), q = he("recipeForm", function() {
61
- const p = be(), v = se(), r = I(), l = E(!1), c = E();
54
+ }), j = Ie("recipeForm", function() {
55
+ const p = Fe(), v = se(), r = I(), l = E(!1), c = E();
62
56
  function i() {
63
57
  const t = {
64
58
  recipe: {},
@@ -90,9 +84,9 @@ const Te = {
90
84
  type: "success"
91
85
  });
92
86
  } catch (a) {
93
- a instanceof ye && we(a) ? p.open({
87
+ a instanceof ye && ke(a) ? p.open({
94
88
  title: "Cannot delete recipe",
95
- contentComponent: Re,
89
+ contentComponent: De,
96
90
  contentComponentProps: {
97
91
  subject: (t == null ? void 0 : t.name) ?? "",
98
92
  items: a.errorResponse.message
@@ -140,7 +134,7 @@ const Te = {
140
134
  };
141
135
  });
142
136
  function Le() {
143
- const { updateRecipe: R, deleteRecipe: p } = q(), v = I(), { t: r } = H();
137
+ const { updateRecipe: R, deleteRecipe: p } = j(), v = I(), { t: r } = q();
144
138
  async function l(d, u) {
145
139
  const t = G(u);
146
140
  if (d === L.Edit) {
@@ -153,7 +147,7 @@ function Le() {
153
147
  }
154
148
  }
155
149
  function c(d, u) {
156
- const t = d.filter((e) => e.type === ee.enum.SKU), a = d.filter((e) => e.type === ee.enum.RECIPE);
150
+ const t = d.filter((e) => e.type === te.enum.SKU), a = d.filter((e) => e.type === te.enum.RECIPE);
157
151
  return [
158
152
  ...t.map((e) => ({ ...e, recipeIds: [...u] })),
159
153
  ...a.filter((e) => v.recipeById[e.id] && !u.has(e.id)).flatMap(
@@ -176,8 +170,8 @@ function Le() {
176
170
  id: "action",
177
171
  header: "",
178
172
  cell(d) {
179
- return Ce(
180
- [oe[L.Edit], oe[L.Delete]],
173
+ return ge(
174
+ [ee[L.Edit], ee[L.Delete]],
181
175
  (u) => {
182
176
  l(u, d.row.original.original);
183
177
  }
@@ -208,10 +202,10 @@ function Le() {
208
202
  const ze = { class: "flex flex-col gap-40" }, Ye = {
209
203
  key: 0,
210
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"
211
- }, He = {
205
+ }, qe = {
212
206
  key: 0,
213
207
  class: "flex flex-col items-center w-full h-full gap-24"
214
- }, Ke = { key: 1 }, je = /* @__PURE__ */ Y({
208
+ }, He = { key: 1 }, Ke = /* @__PURE__ */ Y({
215
209
  __name: "RecipeForm",
216
210
  props: {
217
211
  mode: {},
@@ -221,7 +215,7 @@ const ze = { class: "flex flex-col gap-40" }, Ye = {
221
215
  emits: ["update:modelValue", "click:submit"],
222
216
  setup(R, { expose: p, emit: v }) {
223
217
  var h;
224
- const r = R, l = v, { t: c } = H(), i = V({
218
+ const r = R, l = v, { t: c } = q(), i = V({
225
219
  get() {
226
220
  var n;
227
221
  return ((n = r.modelValue) == null ? void 0 : n.name) ?? "";
@@ -270,7 +264,7 @@ const ze = { class: "flex flex-col gap-40" }, Ye = {
270
264
  () => t.recipes.map((n) => ({ label: n.name, value: n.name }))
271
265
  ), m = E((h = r.modelValue) == null ? void 0 : h.name);
272
266
  return (n, o) => {
273
- const k = S("FmTextField"), K = S("FmCard"), $ = S("FmSwitch"), D = S("FmSpacer"), M = S("FmCircularProgress"), U = S("FmForm");
267
+ const k = F("FmTextField"), H = F("FmCard"), $ = F("FmSwitch"), D = F("FmSpacer"), M = F("FmCircularProgress"), U = F("FmForm");
274
268
  return C(), T(U, {
275
269
  ref_key: "formRef",
276
270
  ref: u,
@@ -282,26 +276,26 @@ const ze = { class: "flex flex-col gap-40" }, Ye = {
282
276
  disabled: n.disabled,
283
277
  label: y(c)("inventory.recipe.name"),
284
278
  "model-value": i.value,
285
- "onUpdate:modelValue": o[0] || (o[0] = (F) => i.value = F),
279
+ "onUpdate:modelValue": o[0] || (o[0] = (S) => i.value = S),
286
280
  rules: [
287
- y(Fe)(),
288
- y(Se)(s.value, m.value, (F) => `[${F.value}] already exists`)
281
+ y(be)(),
282
+ y(_e)(s.value, m.value, (S) => `[${S.value}] already exists`)
289
283
  ],
290
284
  "label-mark": "required"
291
285
  }, null, 8, ["disabled", "label", "model-value", "rules"]),
292
- g(K, {
286
+ g(H, {
293
287
  variant: "outlined",
294
288
  class: "p-16"
295
289
  }, {
296
290
  default: P(() => {
297
- var F;
291
+ var S;
298
292
  return [
299
- g($e, {
300
- id: (F = n.modelValue) == null ? void 0 : F._id,
293
+ g(Ae, {
294
+ id: (S = n.modelValue) == null ? void 0 : S._id,
301
295
  disabled: n.disabled,
302
296
  "model-value": f.value,
303
297
  "onUpdate:modelValue": o[1] || (o[1] = (B) => f.value = B),
304
- rules: [y(Ve)(1)]
298
+ rules: [y(we)(1)]
305
299
  }, null, 8, ["id", "disabled", "model-value", "rules"])
306
300
  ];
307
301
  }),
@@ -313,32 +307,32 @@ const ze = { class: "flex flex-col gap-40" }, Ye = {
313
307
  g($, {
314
308
  label: "Show binded items",
315
309
  modelValue: e.value,
316
- "onUpdate:modelValue": o[2] || (o[2] = (F) => e.value = F),
310
+ "onUpdate:modelValue": o[2] || (o[2] = (S) => e.value = S),
317
311
  "label-placement": "right",
318
312
  disabled: b.value
319
313
  }, null, 8, ["modelValue", "disabled"])
320
314
  ]),
321
- b.value ? (C(), A("div", He, [
315
+ b.value ? (C(), A("div", qe, [
322
316
  g(D),
323
317
  w("div", null, [
324
318
  g(M, { size: "xl" })
325
319
  ]),
326
320
  o[3] || (o[3] = w("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary pl-8" }, "Loading...", -1)),
327
321
  g(D)
328
- ])) : (C(), A("div", Ke, [
322
+ ])) : (C(), A("div", He, [
329
323
  e.value && a.value.length ? (C(), T(le, {
330
324
  key: 0,
331
325
  name: "Menu",
332
326
  bindings: a.value
333
- }, null, 8, ["bindings"])) : j("", !0)
327
+ }, null, 8, ["bindings"])) : K("", !0)
334
328
  ]))
335
- ])) : j("", !0)
329
+ ])) : K("", !0)
336
330
  ]),
337
331
  _: 1
338
332
  }, 512);
339
333
  };
340
334
  }
341
- }), qe = { class: "flex gap-4" }, Ge = /* @__PURE__ */ Y({
335
+ }), je = { class: "flex gap-4" }, Ge = /* @__PURE__ */ Y({
342
336
  __name: "RecipeDialog",
343
337
  props: {
344
338
  show: { type: Boolean },
@@ -347,7 +341,7 @@ const ze = { class: "flex flex-col gap-40" }, Ye = {
347
341
  },
348
342
  emits: ["update:show"],
349
343
  setup(R) {
350
- const p = R, v = I(), r = se(), { t: l } = H(), c = ne(p, "show"), i = ne(p, "recipe"), f = V(() => {
344
+ const p = R, v = I(), r = se(), { t: l } = q(), c = ae(p, "show"), i = ae(p, "recipe"), f = V(() => {
351
345
  switch (p.mode) {
352
346
  case x.READ:
353
347
  return "";
@@ -378,7 +372,7 @@ const ze = { class: "flex flex-col gap-40" }, Ye = {
378
372
  type: "success"
379
373
  });
380
374
  } catch (s) {
381
- s instanceof te || r.open({
375
+ s instanceof ne || r.open({
382
376
  title: l("inventory.recipe.create.error.title"),
383
377
  message: l("inventory.recipe.create.error.message"),
384
378
  type: "error"
@@ -396,7 +390,7 @@ const ze = { class: "flex flex-col gap-40" }, Ye = {
396
390
  type: "success"
397
391
  });
398
392
  } catch (s) {
399
- s instanceof te || r.open({
393
+ s instanceof ne || r.open({
400
394
  title: l("inventory.recipe.update.error.title"),
401
395
  message: l("inventory.recipe.update.error.message"),
402
396
  type: "error"
@@ -420,7 +414,7 @@ const ze = { class: "flex flex-col gap-40" }, Ye = {
420
414
  }
421
415
  }
422
416
  return (s, m) => {
423
- const h = S("FmButton"), n = S("FmSideSheet");
417
+ const h = F("FmButton"), n = F("FmSideSheet");
424
418
  return C(), T(n, {
425
419
  "model-value": y(c),
426
420
  "onUpdate:modelValue": m[3] || (m[3] = (o) => Z(c) ? c.value = o : null),
@@ -430,7 +424,7 @@ const ze = { class: "flex flex-col gap-40" }, Ye = {
430
424
  "max-width": 500
431
425
  }, {
432
426
  "side-sheet-footer": P(() => [
433
- w("div", qe, [
427
+ w("div", je, [
434
428
  g(h, {
435
429
  loading: t.value,
436
430
  label: d.value,
@@ -445,7 +439,7 @@ const ze = { class: "flex flex-col gap-40" }, Ye = {
445
439
  ])
446
440
  ]),
447
441
  default: P(() => [
448
- g(je, {
442
+ g(Ke, {
449
443
  class: "w-full",
450
444
  ref_key: "hasValidationExpose",
451
445
  ref: u,
@@ -500,23 +494,23 @@ function Oe() {
500
494
  ...d === 0 ? [] : [["", "", "", "", "", ""]],
501
495
  [f.name, "No bindings", "", "", "", ""]
502
496
  ];
503
- }), i = Ae(l, ["Name", "Type", "Code", "Item", "Amount", "Unit"]);
504
- Pe(i, `RECIPE_${Be(/* @__PURE__ */ new Date(), "-", "-")}.xlsx`);
497
+ }), i = Pe(l, ["Name", "Type", "Code", "Item", "Amount", "Unit"]);
498
+ Be(i, `RECIPE_${Re(/* @__PURE__ */ new Date(), "-", "-")}.xlsx`);
505
499
  }
506
- const Je = { class: "flex flex-col py-8" }, Qe = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, We = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, pt = /* @__PURE__ */ Y({
500
+ const Je = { class: "flex flex-col py-8" }, Qe = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, We = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, rt = /* @__PURE__ */ Y({
507
501
  __name: "RecipeView",
508
502
  setup(R) {
509
- const p = I(), v = V(() => p.recipes), r = ge(), { createRecipe: l, updateRecipe: c } = q(), { recipeDialogProps: i, recipeViewLoading: f } = xe(q()), { columnDefs: d, formatRowData: u } = Le(), t = V(() => u(v.value));
503
+ const p = I(), v = V(() => p.recipes), r = he(), { createRecipe: l, updateRecipe: c } = j(), { recipeDialogProps: i, recipeViewLoading: f } = $e(j()), { columnDefs: d, formatRowData: u } = Le(), t = V(() => u(v.value));
510
504
  function a(o) {
511
505
  if (o === "add")
512
506
  return l();
513
507
  if (o === "export")
514
508
  return Oe();
515
509
  }
516
- const e = E(""), b = V(() => f.value), { breakpoints: _ } = _e(), s = V(() => _.value.xs || _.value.sm), m = V(() => s.value ? 10 : 20), h = ke(), { t: n } = H();
510
+ const e = E(""), b = V(() => f.value), { breakpoints: _ } = Ve(), s = V(() => _.value.xs || _.value.sm), m = V(() => s.value ? 10 : 20), h = xe(), { t: n } = q();
517
511
  return (o, k) => {
518
- const K = S("FmTable");
519
- return C(), T(De, {
512
+ const H = F("FmTable");
513
+ return C(), T(Ce, {
520
514
  title: y(n)("inventory.recipe.title"),
521
515
  actions: [
522
516
  {
@@ -539,12 +533,12 @@ const Je = { class: "flex flex-col py-8" }, Qe = { class: "fm-typo-en-body-lg-60
539
533
  }
540
534
  ])
541
535
  }, [
542
- g(Ie, {
536
+ g(Ee, {
543
537
  searchable: "",
544
538
  search: e.value,
545
539
  "onUpdate:search": k[0] || (k[0] = ($) => e.value = $)
546
540
  }, null, 8, ["search"]),
547
- (C(), T(K, {
541
+ (C(), T(H, {
548
542
  style: me(y(h).tableHeight),
549
543
  "column-defs": y(d),
550
544
  "row-data": t.value,
@@ -555,22 +549,22 @@ const Je = { class: "flex flex-col py-8" }, Qe = { class: "fm-typo-en-body-lg-60
555
549
  "page-size": m.value
556
550
  }, {
557
551
  "list-row": P(($) => [
558
- g(Ee, {
552
+ g(Se, {
559
553
  row: $,
560
554
  onRowClick: (D) => y(c)(D.original)
561
555
  }, {
562
556
  default: P((D) => {
563
- var M, U, F, B, O, J, Q, W, N, X;
557
+ var M, U, S, B, O, J, Q, W, N, X;
564
558
  return [
565
559
  w("div", Je, [
566
560
  w("div", Qe, [
567
- g(y(ae), {
568
- render: (F = (U = (M = D.recipe) == null ? void 0 : M.column) == null ? void 0 : U.columnDef) == null ? void 0 : F.cell,
561
+ g(y(oe), {
562
+ render: (S = (U = (M = D.recipe) == null ? void 0 : M.column) == null ? void 0 : U.columnDef) == null ? void 0 : S.cell,
569
563
  props: (O = (B = D.recipe) == null ? void 0 : B.getContext) == null ? void 0 : O.call(B)
570
564
  }, null, 8, ["render", "props"])
571
565
  ]),
572
566
  w("div", We, [
573
- g(y(ae), {
567
+ g(y(oe), {
574
568
  render: (W = (Q = (J = D.ingredients) == null ? void 0 : J.column) == null ? void 0 : Q.columnDef) == null ? void 0 : W.cell,
575
569
  props: (X = (N = D.ingredients) == null ? void 0 : N.getContext) == null ? void 0 : X.call(N)
576
570
  }, null, 8, ["render", "props"])
@@ -594,5 +588,5 @@ const Je = { class: "flex flex-col py-8" }, Qe = { class: "fm-typo-en-body-lg-60
594
588
  }
595
589
  });
596
590
  export {
597
- pt as default
591
+ rt as default
598
592
  };