@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,8 +1,7 @@
1
- import { defineComponent as oe, mergeModels as O, useModel as se, computed as v, ref as P, watch as z, inject as ie, resolveComponent as b, openBlock as f, createElementBlock as y, createElementVNode as u, createVNode as M, withCtx as h, renderSlot as T, normalizeClass as V, toDisplayString as F, withDirectives as le, vModelText as ae, createCommentVNode as q, createTextVNode as ue, createBlock as W, Fragment as re, renderList as me } from "vue";
2
- import { F as I } from "./index-gvJJ-xRY.js";
3
- import { I as k, g as L, c as ce, a as g, p as de, t as pe, b as fe, m as ve, n as be, u as ye } from "./rules-C83wiSGb.js";
1
+ import { defineComponent as oe, mergeModels as z, useModel as se, computed as v, ref as P, watch as O, inject as ie, resolveComponent as b, openBlock as f, createElementBlock as y, createElementVNode as u, createVNode as h, withCtx as g, renderSlot as T, normalizeClass as V, toDisplayString as x, withDirectives as le, vModelText as ae, createCommentVNode as q, createTextVNode as ue, createBlock as W, Fragment as re, renderList as me } from "vue";
2
+ import { Q as I, I as k, G as L, z as ce, h as M, au as de, t as pe, y as fe, ab as ve, as as be, ar as ye } from "./app-Fc2FPGhO.js";
4
3
  import "@feedmepos/ui-library";
5
- function E() {
4
+ function G() {
6
5
  return {
7
6
  amount: I.reset()
8
7
  };
@@ -12,35 +11,35 @@ function H() {
12
11
  return k()(d.amountAsString);
13
12
  };
14
13
  }
15
- function Ve(l) {
14
+ function Se(l) {
16
15
  return function(t) {
17
16
  return k()(t.amountAsString) !== !0 ? !0 : +t.amountAsString < l ? `Must be at least ${l}` : !0;
18
17
  };
19
18
  }
20
- function Le(l) {
19
+ function Ve(l) {
21
20
  return function(t) {
22
21
  return k()(t.amountAsString) !== !0 ? !0 : +t.amountAsString > l ? `Must be at most ${l}` : !0;
23
22
  };
24
23
  }
25
- function G(l, d = !1) {
24
+ function E(l, d = !1) {
26
25
  return function(r) {
27
26
  const s = H()(r);
28
27
  if (s != !0)
29
28
  return d ? s : !0;
30
- const x = typeof l == "number" ? l : L(l, r.modelValue.measurement);
31
- return ce(+r.amountAsString).precision > x ? `Cannot exceed precision more than ${g({
29
+ const F = typeof l == "number" ? l : L(l, r.modelValue.measurement);
30
+ return ce(+r.amountAsString).precision > F ? `Cannot exceed precision more than ${M({
32
31
  amount: 1,
33
- precision: x
32
+ precision: F
34
33
  })}` : !0;
35
34
  };
36
35
  }
37
- function $e(l) {
36
+ function Le(l) {
38
37
  const d = de(l);
39
38
  return function(r) {
40
39
  return d(r.modelValue.amount);
41
40
  };
42
41
  }
43
- const Me = { class: "flex flex-col" }, ge = { class: "flex flex-col" }, he = { class: "flex-1" }, Fe = { class: "flex items-center gap-4" }, xe = { class: "flex-1 flex gap-4" }, Ae = { class: "shrink-0 grow basis-2/5" }, _e = {
42
+ const he = { class: "flex flex-col" }, Me = { class: "flex flex-col" }, ge = { class: "flex-1" }, xe = { class: "flex items-center gap-4" }, Fe = { class: "flex-1 flex gap-4" }, Ae = { class: "shrink-0 grow basis-2/5" }, _e = {
44
43
  key: 0,
45
44
  class: "text-fm-color-typo-secondary"
46
45
  }, Pe = {
@@ -55,9 +54,9 @@ const Me = { class: "flex flex-col" }, ge = { class: "flex flex-col" }, he = { c
55
54
  }, Ue = {
56
55
  class: "flex items-center",
57
56
  style: { "pointer-events": "none" }
58
- }, je = /* @__PURE__ */ oe({
57
+ }, $e = /* @__PURE__ */ oe({
59
58
  __name: "FmUnitInput",
60
- props: /* @__PURE__ */ O({
59
+ props: /* @__PURE__ */ z({
61
60
  modelValue: {},
62
61
  unit: {},
63
62
  rules: {},
@@ -104,27 +103,27 @@ const Me = { class: "flex flex-col" }, ge = { class: "flex flex-col" }, he = { c
104
103
  modelValue: {},
105
104
  modelModifiers: {}
106
105
  }),
107
- emits: /* @__PURE__ */ O(["update:amount", "update:measurement"], ["update:modelValue"]),
106
+ emits: /* @__PURE__ */ z(["update:amount", "update:measurement"], ["update:modelValue"]),
108
107
  setup(l, { emit: d }) {
109
- const t = l, r = d, s = se(l, "modelValue"), x = k(), B = v(() => {
108
+ const t = l, r = d, s = se(l, "modelValue"), F = k(), B = v(() => {
110
109
  var n;
111
110
  return L(t.unit, (n = s.value) == null ? void 0 : n.measurement);
112
111
  }), c = P((() => {
113
112
  var o;
114
113
  const e = ((o = s.value) == null ? void 0 : o.amount) ?? I.reset(), n = be(e), i = t.formatMinimumPrecision ?? n.precision, a = ye(n, i);
115
- return g(a);
114
+ return M(a);
116
115
  })());
117
- z(c, (e) => {
118
- const n = x(e), i = t.precision ?? B.value, o = typeof t.formatMinimumPrecision == "number" && t.formatMinimumPrecision > i ? t.formatMinimumPrecision : i;
116
+ O(c, (e) => {
117
+ const n = F(e), i = t.precision ?? B.value, o = typeof t.formatMinimumPrecision == "number" && t.formatMinimumPrecision > i ? t.formatMinimumPrecision : i;
119
118
  n == !0 && (s.value = {
120
119
  ...s.value,
121
120
  amount: pe(+e, o)
122
121
  }), r("update:amount", e);
123
122
  });
124
- const J = Symbol.for("fm:form-state"), D = ie(J, null), A = v(() => t.disabled ?? (D == null ? void 0 : D.getDisabled()) ?? !1), K = P(), R = P(!1), $ = P(!1), Q = v(() => R.value || $.value), X = v(() => {
123
+ const Z = Symbol.for("fm:form-state"), D = ie(Z, null), A = v(() => t.disabled ?? (D == null ? void 0 : D.getDisabled()) ?? !1), J = P(), R = P(!1), $ = P(!1), K = v(() => R.value || $.value), X = v(() => {
125
124
  var a;
126
- const i = [...t.unit.measurements.filter((o) => !o.name.toLocaleLowerCase().includes("inactive")).filter((o) => o.abbrev !== t.unit.abbrev || +g(o.conversion) != 1).groupBy(
127
- (o) => `${o.abbrev}${g(o.conversion)}`
125
+ const i = [...t.unit.measurements.filter((o) => !o.name.toLocaleLowerCase().includes("inactive")).filter((o) => o.abbrev !== t.unit.abbrev || +M(o.conversion) != 1).groupBy(
126
+ (o) => `${o.abbrev}${M(o.conversion)}`
128
127
  ).values()].map((o) => o[0]).flat();
129
128
  return [
130
129
  {
@@ -144,19 +143,19 @@ const Me = { class: "flex flex-col" }, ge = { class: "flex flex-col" }, he = { c
144
143
  set(e) {
145
144
  if (e == null)
146
145
  s.value = {
147
- ...s.value ?? E(),
146
+ ...s.value ?? G(),
148
147
  measurement: null
149
148
  }, r("update:measurement", null);
150
149
  else {
151
150
  const n = t.unit.measurements.find((i) => i.id === e) ?? null;
152
151
  s.value = {
153
- ...s.value ?? E(),
152
+ ...s.value ?? G(),
154
153
  measurement: n
155
154
  }, r("update:measurement", n);
156
155
  }
157
156
  }
158
157
  });
159
- z(U, (e, n) => {
158
+ O(U, (e, n) => {
160
159
  var m;
161
160
  if (!t.convertAmountOnChangeUnit)
162
161
  return;
@@ -164,7 +163,7 @@ const Me = { class: "flex flex-col" }, ge = { class: "flex flex-col" }, he = { c
164
163
  value: w,
165
164
  precision: N
166
165
  });
167
- c.value = g(S);
166
+ c.value = M(S);
168
167
  });
169
168
  const C = v(() => {
170
169
  var e, n;
@@ -178,7 +177,7 @@ const Me = { class: "flex flex-col" }, ge = { class: "flex flex-col" }, he = { c
178
177
  }
179
178
  ), ee = v(() => [...t.applyDefaultRules ? [
180
179
  H(),
181
- typeof t.precision == "number" ? G(t.precision) : G(t.unit)
180
+ typeof t.precision == "number" ? E(t.precision) : E(t.unit)
182
181
  ] : [], ...Y.value]);
183
182
  function j(e) {
184
183
  const n = t.precision ?? B.value, a = typeof t.formatMinimumPrecision == "number" && t.formatMinimumPrecision > n ? t.formatMinimumPrecision : n, o = e.toFixed(a), p = o.includes(".") ? o.replace(/0+$/, "") : o;
@@ -187,32 +186,32 @@ const Me = { class: "flex flex-col" }, ge = { class: "flex flex-col" }, he = { c
187
186
  function te() {
188
187
  if (!t.stepper)
189
188
  return;
190
- const e = +c.value + +g(t.stepper);
189
+ const e = +c.value + +M(t.stepper);
191
190
  c.value = j(e);
192
191
  }
193
192
  function ne() {
194
193
  if (!t.stepper)
195
194
  return;
196
- const e = +c.value - +g(t.stepper);
195
+ const e = +c.value - +M(t.stepper);
197
196
  c.value = j(e);
198
197
  }
199
198
  return (e, n) => {
200
199
  const i = b("FmLabel"), a = b("FmIcon"), o = b("FmMenuItem"), p = b("FmMenu"), w = b("FmTooltip"), N = b("FmField"), S = b("FmFormGroup");
201
- return f(), y("div", Me, [
202
- u("div", ge, [
203
- u("div", he, [
204
- M(i, {
200
+ return f(), y("div", he, [
201
+ u("div", Me, [
202
+ u("div", ge, [
203
+ h(i, {
205
204
  label: e.label,
206
205
  disabled: e.disabled,
207
206
  required: e.labelMark === "required",
208
207
  optional: e.labelMark === "optional"
209
208
  }, null, 8, ["label", "disabled", "required", "optional"])
210
209
  ]),
211
- M(N, { focused: Q.value }, {
212
- default: h(() => [
213
- u("div", Fe, [
210
+ h(N, { focused: K.value }, {
211
+ default: g(() => [
212
+ u("div", xe, [
214
213
  T(e.$slots, "prepend"),
215
- u("div", xe, [
214
+ u("div", Fe, [
216
215
  u("div", Ae, [
217
216
  e.stepperOnly ? (f(), y("span", {
218
217
  key: 0,
@@ -221,11 +220,11 @@ const Me = { class: "flex flex-col" }, ge = { class: "flex flex-col" }, he = { c
221
220
  "text-fm-color-typo-primary": !A.value,
222
221
  "text-fm-color-typo-disabled": A.value
223
222
  })
224
- }, F(c.value), 3)) : le((f(), y("input", {
223
+ }, x(c.value), 3)) : le((f(), y("input", {
225
224
  key: 1,
226
225
  type: "text",
227
226
  ref_key: "inputRef",
228
- ref: K,
227
+ ref: J,
229
228
  onFocus: n[0] || (n[0] = () => R.value = !0),
230
229
  onBlur: n[1] || (n[1] = () => R.value = !1),
231
230
  "onUpdate:modelValue": n[2] || (n[2] = (m) => c.value = m),
@@ -238,29 +237,29 @@ const Me = { class: "flex flex-col" }, ge = { class: "flex flex-col" }, he = { c
238
237
  [ae, c.value]
239
238
  ])
240
239
  ]),
241
- e.separator ? (f(), y("div", _e, F(e.separator), 1)) : q("", !0),
240
+ e.separator ? (f(), y("div", _e, x(e.separator), 1)) : q("", !0),
242
241
  u("div", {
243
242
  class: V([e.disabled ? "text-fm-color-typo-disabled" : "text-fm-color-typo-secondary"])
244
243
  }, [
245
- M(w, { "z-index": 51 }, {
246
- content: h(() => [
247
- ue(F(C.value), 1)
244
+ h(w, { "z-index": 51 }, {
245
+ content: g(() => [
246
+ ue(x(C.value), 1)
248
247
  ]),
249
- default: h(() => [
250
- e.disableUnit ? (f(), y("div", Pe, F(C.value), 1)) : (f(), W(p, {
248
+ default: g(() => [
249
+ e.disableUnit ? (f(), y("div", Pe, x(C.value), 1)) : (f(), W(p, {
251
250
  key: 1,
252
251
  onMenuChanged: n[3] || (n[3] = (m) => $.value = m),
253
252
  "z-index": 500,
254
253
  placement: e.placement,
255
254
  disabled: e.disabled
256
255
  }, {
257
- "menu-button": h(() => [
256
+ "menu-button": g(() => [
258
257
  u("div", Ie, [
259
- u("div", ke, F(C.value), 1),
260
- M(a, { name: "keyboard_arrow_down" })
258
+ u("div", ke, x(C.value), 1),
259
+ h(a, { name: "keyboard_arrow_down" })
261
260
  ])
262
261
  ]),
263
- default: h(() => [
262
+ default: g(() => [
264
263
  u("div", Be, [
265
264
  (f(!0), y(re, null, me(X.value, (m) => (f(), W(o, {
266
265
  key: m.value ?? void 0,
@@ -282,7 +281,7 @@ const Me = { class: "flex flex-col" }, ge = { class: "flex flex-col" }, he = { c
282
281
  onClick: te
283
282
  }, [
284
283
  u("div", Re, [
285
- M(a, {
284
+ h(a, {
286
285
  name: "expand_less",
287
286
  size: "md"
288
287
  })
@@ -293,7 +292,7 @@ const Me = { class: "flex flex-col" }, ge = { class: "flex flex-col" }, he = { c
293
292
  onClick: ne
294
293
  }, [
295
294
  u("div", Ue, [
296
- M(a, {
295
+ h(a, {
297
296
  name: "expand_more",
298
297
  size: "md"
299
298
  })
@@ -307,7 +306,7 @@ const Me = { class: "flex flex-col" }, ge = { class: "flex flex-col" }, he = { c
307
306
  _: 3
308
307
  }, 8, ["focused"])
309
308
  ]),
310
- M(S, {
309
+ h(S, {
311
310
  class: "flex-1",
312
311
  "model-value": { modelValue: s.value, amountAsString: String(c.value) },
313
312
  info: e.labelInfo,
@@ -320,10 +319,10 @@ const Me = { class: "flex flex-col" }, ge = { class: "flex flex-col" }, he = { c
320
319
  }
321
320
  });
322
321
  export {
323
- Ve as F,
324
- je as _,
325
- Le as a,
326
- $e as b,
322
+ Se as F,
323
+ $e as _,
324
+ Ve as a,
325
+ Le as b,
327
326
  H as c,
328
- G as d
327
+ E as d
329
328
  };
@@ -1,7 +1,7 @@
1
- import { defineComponent as p, openBlock as s, createElementBlock as n, createElementVNode as r, toDisplayString as o, unref as l, Fragment as d, renderList as x } from "vue";
2
- import { a, b as y } from "./rules-C83wiSGb.js";
1
+ import { defineComponent as p, openBlock as s, createElementBlock as n, createElementVNode as r, toDisplayString as o, unref as l, Fragment as d, renderList as y } from "vue";
2
+ import { h as a, y as x } from "./app-Fc2FPGhO.js";
3
3
  import { useI18n as _ } from "@feedmepos/mf-common";
4
- const v = { class: "flex flex-col" }, b = { class: "flex flex-row fm-typo-en-body-md-600 bg-fm-color-neutral-gray-100 text-fm-color-typo-secondary h-48 items-center" }, g = { class: "flex-1 py-8 px-16" }, h = {
4
+ const v = { class: "flex flex-col" }, h = { class: "flex flex-row fm-typo-en-body-md-600 bg-fm-color-neutral-gray-100 text-fm-color-typo-secondary h-48 items-center" }, g = { class: "flex-1 py-8 px-16" }, b = {
5
5
  class: "flex-0 py-8 px-16",
6
6
  style: { "flex-basis": "120px" }
7
7
  }, k = { class: "flex-1 py-8 px-16" }, B = {
@@ -23,7 +23,7 @@ const v = { class: "flex flex-col" }, b = { class: "flex flex-row fm-typo-en-bod
23
23
  function c(e, i) {
24
24
  var t;
25
25
  if (e.measurement) {
26
- const u = y(e.amount, e.measurement.conversion);
26
+ const u = x(e.amount, e.measurement.conversion);
27
27
  return `${a(u, !1)} ${(t = e.measurement) == null ? void 0 : t.abbrev}`;
28
28
  }
29
29
  return `${a(e.amount, !1)} ${i.abbrev}`;
@@ -32,11 +32,11 @@ const v = { class: "flex flex-col" }, b = { class: "flex flex-row fm-typo-en-bod
32
32
  return e.unit !== void 0;
33
33
  }
34
34
  return (e, i) => (s(), n("div", v, [
35
- r("div", b, [
35
+ r("div", h, [
36
36
  r("div", g, o(e.name), 1),
37
- r("div", h, o(l(m)("inventory.ingredient.bindedItems.amount")), 1)
37
+ r("div", b, o(l(m)("inventory.ingredient.bindedItems.amount")), 1)
38
38
  ]),
39
- (s(!0), n(d, null, x(e.bindings, (t) => (s(), n("div", {
39
+ (s(!0), n(d, null, y(e.bindings, (t) => (s(), n("div", {
40
40
  key: t.id,
41
41
  class: "flex flex-row fm-typo-en-body-md-400 h-48 items-center border-b border-b-fm-color-neutral-gray-100"
42
42
  }, [
@@ -1,16 +1,9 @@
1
- import { ref as C, computed as I, defineComponent as Y, resolveComponent as S, openBlock as M, createBlock as O, withCtx as R, createElementVNode as x, createVNode as g, unref as l, createElementBlock as ee, toDisplayString as H, createTextVNode as te, watch as ue, isRef as ce, normalizeClass as de, normalizeStyle as me, createSlots as pe, Teleport as fe, normalizeProps as ve, guardReactiveProps as ge } from "vue";
2
- import { a as J, c as B, h as oe, u as ye } from "./app-ww5ibHkL.js";
3
- import { useDialog as le, useSnackbar as Z, useProxiedModel as be, useBreakpoints as _e } from "@feedmepos/ui-library";
4
- import { F as h } from "./form-mode.enum-BKiNVH6A.js";
1
+ import { ref as C, computed as F, defineComponent as Y, resolveComponent as S, openBlock as M, createBlock as O, withCtx as R, createElementVNode as x, createVNode as g, unref as l, createElementBlock as ee, toDisplayString as H, createTextVNode as te, watch as ue, isRef as ce, normalizeClass as de, normalizeStyle as me, createSlots as pe, Teleport as fe, normalizeProps as ve, guardReactiveProps as ge } from "vue";
2
+ import { a as J, c as h, d as B, e as ye, D as oe, f as Q, w as be, k as _e, A as xe, x as ne, m as se, u as ke, p as he, q as we, r as Se, s as Ie, v as ae } from "./app-Fc2FPGhO.js";
3
+ import { useDialog as le, useSnackbar as Z, useProxiedModel as Fe, useBreakpoints as Ce } from "@feedmepos/ui-library";
5
4
  import { useI18n as W } from "@feedmepos/mf-common";
6
- import { defineStore as ie, storeToRefs as ne } from "pinia";
7
- import { D as se, R as Q } from "./row-action.enum-7rGLGZ5v.js";
8
- import { c as xe, _ as ke, F as ae } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-DlNJ6kRg.js";
9
- import { u as he, _ as we, a as Se } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-m92y5x0G.js";
5
+ import { defineStore as ie, storeToRefs as re } from "pinia";
10
6
  import "./array-hChJVZLE.js";
11
- import { d as Fe } from "./defineDeepModel-DJODEpcR.js";
12
- import { R as Ie, A as Ce } from "./rules-C83wiSGb.js";
13
- import { F as re } from "./FmMultiselectDialog-Jr9uL_z_.js";
14
7
  const X = ie(
15
8
  "ingredientGroupactions",
16
9
  function() {
@@ -114,7 +107,7 @@ const X = ie(
114
107
  );
115
108
  }
116
109
  }
117
- const v = I(() => [
110
+ const v = F(() => [
118
111
  {
119
112
  accessorKey: "name",
120
113
  header: () => "Name"
@@ -131,8 +124,8 @@ const X = ie(
131
124
  id: "action",
132
125
  header: "",
133
126
  cell(f) {
134
- return xe(
135
- [se[Q.Edit], se[Q.Delete]],
127
+ return ye(
128
+ [oe[Q.Edit], oe[Q.Delete]],
136
129
  (y) => {
137
130
  p(y, f.row.original);
138
131
  }
@@ -167,7 +160,7 @@ const X = ie(
167
160
  },
168
161
  emits: ["validation-success"],
169
162
  setup(U, { expose: c, emit: w }) {
170
- const o = Fe("modelValue"), r = w, i = J(), p = le(), { t: v } = W(), f = C();
163
+ const o = be("modelValue"), r = w, i = J(), p = le(), { t: v } = W(), f = C();
171
164
  c({
172
165
  validateInputs: () => {
173
166
  var a;
@@ -182,7 +175,7 @@ const X = ie(
182
175
  return (a = f.value) == null ? void 0 : a.resetInputs();
183
176
  }
184
177
  });
185
- const y = I(() => i.skus.groupBy((a) => a.unit._id));
178
+ const y = F(() => i.skus.groupBy((a) => a.unit._id));
186
179
  function A() {
187
180
  var s;
188
181
  const a = i.skus.filter((n) => {
@@ -199,7 +192,7 @@ const X = ie(
199
192
  p.open({
200
193
  title: v("inventory.closing.form.items.selectItem"),
201
194
  closeButton: !0,
202
- contentComponent: re,
195
+ contentComponent: ne,
203
196
  contentComponentProps: {
204
197
  modelValue: [(s = o.skus) == null ? void 0 : s[0]],
205
198
  items: a,
@@ -238,7 +231,7 @@ const X = ie(
238
231
  p.open({
239
232
  title: v("inventory.closing.form.items.selectItem"),
240
233
  closeButton: !0,
241
- contentComponent: re,
234
+ contentComponent: ne,
242
235
  contentComponentProps: {
243
236
  modelValue: s,
244
237
  items: a,
@@ -277,19 +270,19 @@ const X = ie(
277
270
  return (a, s) => {
278
271
  const n = S("FmTextField"), t = S("FmLabel"), e = S("FmField"), u = S("FmFormGroup"), _ = S("FmButton"), m = S("FmTable"), D = S("FmForm");
279
272
  return M(), O(D, {
280
- onValidationSuccess: s[5] || (s[5] = (F) => r("validation-success")),
273
+ onValidationSuccess: s[5] || (s[5] = (I) => r("validation-success")),
281
274
  ref_key: "formRef",
282
275
  ref: f,
283
276
  class: "flex flex-col gap-32"
284
277
  }, {
285
278
  default: R(() => {
286
- var F, G, V, T, L;
279
+ var I, G, V, T, L;
287
280
  return [
288
281
  x("div", De, [
289
282
  g(n, {
290
283
  label: "Name",
291
284
  "label-mark": "required",
292
- rules: [l(Ie)()],
285
+ rules: [l(_e)()],
293
286
  modelValue: l(o).name,
294
287
  "onUpdate:modelValue": s[0] || (s[0] = (k) => l(o).name = k)
295
288
  }, null, 8, ["rules", "modelValue"]),
@@ -321,8 +314,8 @@ const X = ie(
321
314
  x("div", Te, [
322
315
  s[6] || (s[6] = te(H("Select a main item to filter out substitutable items with same unit.") + " ")),
323
316
  g(u, {
324
- "model-value": ((F = l(o)) == null ? void 0 : F.skus) ?? [],
325
- rules: [l(Ce)(1, "Required")]
317
+ "model-value": ((I = l(o)) == null ? void 0 : I.skus) ?? [],
318
+ rules: [l(xe)(1, "Required")]
326
319
  }, null, 8, ["model-value", "rules"])
327
320
  ])
328
321
  ])
@@ -371,7 +364,7 @@ const X = ie(
371
364
  },
372
365
  emits: ["update:show"],
373
366
  setup(U) {
374
- const c = U, w = J(), o = Z(), { t: r } = W(), i = be(c, "show"), p = C({}), v = C(`${Math.random()}`);
367
+ const c = U, w = J(), o = Z(), { t: r } = W(), i = Fe(c, "show"), p = C({}), v = C(`${Math.random()}`);
375
368
  ue(
376
369
  () => c.show,
377
370
  (t) => {
@@ -383,7 +376,7 @@ const X = ie(
383
376
  }), v.value = `${Math.random()}`);
384
377
  }
385
378
  );
386
- const f = I(() => {
379
+ const f = F(() => {
387
380
  switch (c.mode) {
388
381
  case h.READ:
389
382
  return "";
@@ -393,7 +386,7 @@ const X = ie(
393
386
  return r("inventory.ingredient.create.title");
394
387
  }
395
388
  return "";
396
- }), y = I(() => {
389
+ }), y = F(() => {
397
390
  switch (c.mode) {
398
391
  case h.READ:
399
392
  return "";
@@ -414,7 +407,7 @@ const X = ie(
414
407
  type: "success"
415
408
  });
416
409
  } catch (e) {
417
- e instanceof oe || o.open({
410
+ e instanceof se || o.open({
418
411
  title: r("inventory.ingredient.create.error.title"),
419
412
  message: r("inventory.ingredient.create.error.message"),
420
413
  type: "error"
@@ -433,7 +426,7 @@ const X = ie(
433
426
  type: "success"
434
427
  });
435
428
  } catch (e) {
436
- e instanceof oe || o.open({
429
+ e instanceof se || o.open({
437
430
  title: r("inventory.ingredient.update.error.title"),
438
431
  message: r("inventory.ingredient.update.error.message"),
439
432
  type: "error"
@@ -498,15 +491,15 @@ const X = ie(
498
491
  }, 8, ["model-value", "header"]);
499
492
  };
500
493
  }
501
- }), Le = { class: "flex flex-col py-8" }, ze = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ne = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, ot = /* @__PURE__ */ Y({
494
+ }), Le = { class: "flex flex-col py-8" }, ze = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ne = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, Qe = /* @__PURE__ */ Y({
502
495
  __name: "IngredientGroupView",
503
496
  setup(U) {
504
- const c = J(), w = I(() => c.skuGroups), o = ye(), { t: r } = W(), {
497
+ const c = J(), w = F(() => c.skuGroups), o = ke(), { t: r } = W(), {
505
498
  createIngredientGroup: i,
506
499
  updateIngredientGroup: p,
507
500
  importIngredientGroups: v,
508
501
  exportIngredientGroups: f
509
- } = X(), { columnDefs: y, loading: A } = ne(Ae()), { ingredientGroupDialogProps: b } = ne(X());
502
+ } = X(), { columnDefs: y, loading: A } = re(Ae()), { ingredientGroupDialogProps: b } = re(X());
510
503
  function d(D) {
511
504
  switch (D) {
512
505
  case "add":
@@ -517,7 +510,7 @@ const X = ie(
517
510
  return f();
518
511
  }
519
512
  }
520
- const a = C(""), s = C(!1), n = I(() => s.value || A.value), { breakpoints: t } = _e(), e = I(() => t.value.xs || t.value.sm), u = I(() => e.value ? 10 : 20), _ = he(), m = I(() => [
513
+ const a = C(""), s = C(!1), n = F(() => s.value || A.value), { breakpoints: t } = Ce(), e = F(() => t.value.xs || t.value.sm), u = F(() => e.value ? 10 : 20), _ = he(), m = F(() => [
521
514
  {
522
515
  label: r("inventory.ingredient.create.title"),
523
516
  value: "add",
@@ -527,7 +520,7 @@ const X = ie(
527
520
  { label: r("common.import"), value: "import" },
528
521
  { label: r("common.export"), value: "export" }
529
522
  ]);
530
- return (D, F) => {
523
+ return (D, I) => {
531
524
  const G = S("FmTable");
532
525
  return M(), O(we, {
533
526
  title: l(r)("inventory.ingredientGroup.title"),
@@ -547,7 +540,7 @@ const X = ie(
547
540
  g(Se, {
548
541
  searchable: "",
549
542
  search: a.value,
550
- "onUpdate:search": F[0] || (F[0] = (V) => a.value = V)
543
+ "onUpdate:search": I[0] || (I[0] = (V) => a.value = V)
551
544
  }, null, 8, ["search"]),
552
545
  g(G, {
553
546
  style: me(l(_).tableHeight),
@@ -556,11 +549,11 @@ const X = ie(
556
549
  "search-value": a.value,
557
550
  loading: !l(o)._currentLocation || n.value,
558
551
  "loading-text": "Loading",
559
- onRowClick: F[1] || (F[1] = (V) => l(p)(V.original)),
552
+ onRowClick: I[1] || (I[1] = (V) => l(p)(V.original)),
560
553
  "page-size": u.value
561
554
  }, {
562
555
  "list-row": R((V) => [
563
- g(ke, {
556
+ g(Ie, {
564
557
  row: V,
565
558
  onRowClick: l(p)
566
559
  }, pe({
@@ -607,5 +600,5 @@ const X = ie(
607
600
  }
608
601
  });
609
602
  export {
610
- ot as default
603
+ Qe as default
611
604
  };