@feedmepos/mf-inventory-portal 0.0.23-dev.29 → 0.0.23-dev.3

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 (114) hide show
  1. package/dist/{App-Cb0DKDZS.js → App-BREfwtck.js} +73 -85
  2. package/dist/{ApprovalView-Cifc-Y_m.js → ApprovalView-DCzLx24G.js} +27 -24
  3. package/dist/{BindingsDialog-huZq9ea8.js → BindingsDialog-CUcC8lue.js} +4 -4
  4. package/dist/{BindingsPicker-fFhc3-J_.js → BindingsPicker-3VOdZBWI.js} +9 -8
  5. package/dist/{BindingsTable-i3JEZnKw.js → BindingsTable-D5Lt6GOO.js} +22 -18
  6. package/dist/{ClosingTemplateView-CUfFxnXb.js → ClosingTemplateView-CukthwOo.js} +286 -272
  7. package/dist/FmDroppableField-8RzKjEdL.js +154 -0
  8. package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-Dwb3eBLo.js +267 -0
  9. package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CvtvzIt1.js +436 -0
  10. package/dist/FmMultiselectDialog-CKBcMDGC.js +415 -0
  11. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-FrCm7O_S.js → FmUnitInput.vue_vue_type_script_setup_true_lang-DigsIOB0.js} +114 -116
  12. package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-BtwkTwMB.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-DweLQVwq.js} +5 -5
  13. package/dist/{IngredientGroupView-DS1OeV_l.js → IngredientGroupView-CkD8x2CP.js} +69 -63
  14. package/dist/IngredientsView-DuK4YSD6.js +1613 -0
  15. package/dist/{IntegrationView-BCwOX1nf.js → IntegrationView-BfeV07OO.js} +95 -92
  16. package/dist/{InventoryBindingForm-BObD8RZu.js → InventoryBindingForm-BsSmth0U.js} +1 -1
  17. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-YGmtVDLf.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-CMV5e99K.js} +27 -25
  18. package/dist/{InventoryBindingSummary-D1OHZ8H_.js → InventoryBindingSummary-BHloDawE.js} +1 -1
  19. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CJSNaaWU.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BjddpTCS.js} +1 -1
  20. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-C-oLUbzX.js → PremiumBadge.vue_vue_type_script_setup_true_lang-BZBa_99i.js} +24 -23
  21. package/dist/{PurchaseOrderPrintPreview-s-lWuBrs.js → PurchaseOrderPrintPreview-CTdd-RuH.js} +14 -13
  22. package/dist/ReceiveRequestView-CgWNaYs1.js +4104 -0
  23. package/dist/{RecipeView-BdmH9QHY.js → RecipeView-CrmDQdc5.js} +85 -79
  24. package/dist/{StockView-CzIY1FD0.js → StockView-Xb3fQaiD.js} +1446 -1338
  25. package/dist/{SupplierView-CDdzeK4D.js → SupplierView-CrtIiaz0.js} +787 -2325
  26. package/dist/TableActionableRow.vue_vue_type_script_setup_true_lang-DlNJ6kRg.js +135 -0
  27. package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-C9H41eg7.js +1189 -0
  28. package/dist/TransferTemplateView-Cc7VRbZ7.js +1262 -0
  29. package/dist/{UnitView-CAKx1qNs.js → UnitView-C6BgrZ1G.js} +44 -40
  30. package/dist/{WarehouseView-DRveYDl1.js → WarehouseView-Hhd76ybU.js} +100 -94
  31. package/dist/_plugin-vue_export-helper-CHgC5LLL.js +9 -0
  32. package/dist/api/bill.d.ts +2 -2
  33. package/dist/api/closing.d.ts +0 -1
  34. package/dist/api/netsuite.d.ts +1 -1
  35. package/dist/app-CwUHqg7h.js +33462 -0
  36. package/dist/app.d.ts +0 -56
  37. package/dist/app.js +2 -2
  38. package/dist/components/FmMinMaxInputRules.d.ts +1 -4
  39. package/dist/components/FmMultiselectDialogProps.d.ts +0 -1
  40. package/dist/components/row-action.enum.d.ts +0 -1
  41. package/dist/composable/defineDeepModel.d.ts +1 -1
  42. package/dist/date2-CHNm4ELK.js +117 -0
  43. package/dist/dayjs.min-FE3dpxHU.js +282 -0
  44. package/dist/{decimal-Dv59Tc95.js → decimal-rPKr5T-H.js} +1 -1
  45. package/dist/defineDeepModel-Dc1zZzOi.js +13 -0
  46. package/dist/{feature-CcnwSkJs.js → feature-z95vJnA1.js} +9 -23
  47. package/dist/format-time-from-id-CaPj8EHN.js +15 -0
  48. package/dist/format-unit-display-Bkz5kW6p.js +1198 -0
  49. package/dist/fuzzy-DXqhGaFi.js +41 -0
  50. package/dist/index-BMJHz32O.js +22277 -0
  51. package/dist/index-Be5vGZdr.js +45 -0
  52. package/dist/index-D2juQPg6.js +10545 -0
  53. package/dist/netsuite-P0as0Moa.js +194 -0
  54. package/dist/normalizeArguments-DP7Hrren.js +1552 -0
  55. package/dist/router/name.d.ts +0 -2
  56. package/dist/row-action.enum-PMKMRrZR.js +50 -0
  57. package/dist/rules-BQz4NGht.js +198 -0
  58. package/dist/stores/feature.d.ts +0 -2
  59. package/dist/stores/integration/netsuite.d.ts +1 -69
  60. package/dist/stores/inventory.d.ts +4 -1
  61. package/dist/style.css +1 -1
  62. package/dist/{supplier-DElqqxGT.js → supplier-BixmjZyl.js} +15 -15
  63. package/dist/tsconfig.app.tsbuildinfo +1 -1
  64. package/dist/{use-inventory-binding-dialog-CfHThiv9.js → use-inventory-binding-dialog-BRygbm1p.js} +11 -10
  65. package/dist/use-template-enabled-locations-2-Dd15d-ng.js +86 -0
  66. package/dist/views/closing-template/composables/use-closing-template-actions.d.ts +192 -24
  67. package/dist/views/closing-template/composables/use-closing-template-table.d.ts +193 -25
  68. package/dist/views/receive-request/components/transfer-form/TransferForm.vue.d.ts +34 -34
  69. package/dist/views/receive-request/components/transfer-form/composables/use-transfer-items.d.ts +0 -1
  70. package/dist/views/receive-request/composables/use-receive-request-form.d.ts +54 -54
  71. package/dist/views/receive-request/composables/use-receive-request-table.d.ts +54 -54
  72. package/dist/views/stock/components/StockRecordCard.vue.d.ts +1 -1
  73. package/dist/views/stock/components/dialog/AdjustedItemForm.vue.d.ts +2 -2
  74. package/dist/views/stock/helper/compute-summary-total.d.ts +2 -2
  75. package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-template-items.d.ts +8 -8
  76. package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +96 -96
  77. package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +96 -96
  78. package/dist/xlsx-k2Rf0NcF.js +24004 -0
  79. package/dist/xlsx.util-CJxPf7XZ.js +78 -0
  80. package/package.json +2 -2
  81. package/dist/ClosingDraftView-C8yh1aar.js +0 -1190
  82. package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-lcB61e9L.js +0 -282
  83. package/dist/IngredientsView-1ICj0ozR.js +0 -1657
  84. package/dist/ReceiveRequestView-BR1NkASK.js +0 -4188
  85. package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-9gBm-Qpw.js +0 -1227
  86. package/dist/TransferTemplateView-BYuUr8m6.js +0 -1264
  87. package/dist/api/adjustment-template.d.ts +0 -23
  88. package/dist/api/closing-draft.d.ts +0 -6
  89. package/dist/app-CutWLf0m.js +0 -84180
  90. package/dist/format-unit-display-mDGo4-C8.js +0 -1207
  91. package/dist/index-BRw5keOc.js +0 -12087
  92. package/dist/stock-Bqhch78I.js +0 -125
  93. package/dist/views/adjustment-template/import/AdjustmentTemplateImport.vue.d.ts +0 -2
  94. package/dist/views/adjustment-template/import/AdjustmentTemplateImportItem.vue.d.ts +0 -18
  95. package/dist/views/adjustment-template/import/export.d.ts +0 -60
  96. package/dist/views/adjustment-template/wastage-template/WastageTemplateDetails.vue.d.ts +0 -2
  97. package/dist/views/adjustment-template/wastage-template/WastageTemplateDialog.vue.d.ts +0 -22
  98. package/dist/views/adjustment-template/wastage-template/WastageTemplatePublish.vue.d.ts +0 -6
  99. package/dist/views/adjustment-template/wastage-template/WastageTemplateView.vue.d.ts +0 -2
  100. package/dist/views/adjustment-template/wastage-template/actions.d.ts +0 -1295
  101. package/dist/views/adjustment-template/wastage-template/form/WastageTemplateForm.vue.d.ts +0 -16
  102. package/dist/views/adjustment-template/wastage-template/form/WastageTemplateItemTable.vue.d.ts +0 -35
  103. package/dist/views/adjustment-template/wastage-template/form/useAdjustmentTemplateItems.d.ts +0 -20
  104. package/dist/views/adjustment-template/wastage-template/props.d.ts +0 -29
  105. package/dist/views/adjustment-template/wastage-template/table.d.ts +0 -1273
  106. package/dist/views/closing-draft/ClosingDraftView.vue.d.ts +0 -2
  107. package/dist/views/closing-draft/components/closing-draft-action/ClosingDraftAction.vue.d.ts +0 -22
  108. package/dist/views/closing-draft/components/closing-draft-dialog/ClosingDraftDialog.vue.d.ts +0 -621
  109. package/dist/views/closing-draft/composables/use-closing-draft-actions.d.ts +0 -25
  110. package/dist/views/closing-draft/composables/use-closing-draft-table.d.ts +0 -3621
  111. package/dist/views/closing-draft/helpers/draft-status-to-class-name.helper.d.ts +0 -1
  112. package/dist/views/closing-draft/helpers/export-draft.helper.d.ts +0 -19
  113. package/dist/views/closing-draft/helpers/get-calculated-total.helper.d.ts +0 -4
  114. package/dist/views/receive-request/helper/check-netsuite-subsidiary.helper.d.ts +0 -1
@@ -1,5 +1,6 @@
1
- import { defineComponent as oe, mergeModels as $, 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 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 { Z as I, I as k, O as L, K as ce, i as h, aE as de, t as pe, J as fe, aj as ve, aC as be, aB as ye } from "./app-CutWLf0m.js";
1
+ import { defineComponent as oe, mergeModels as z, useModel as se, computed as v, ref as P, watch as T, inject as le, resolveComponent as b, openBlock as f, createElementBlock as y, createElementVNode as a, createVNode as h, withCtx as M, renderSlot as $, normalizeClass as V, toDisplayString as g, withDirectives as ie, vModelText as ae, createCommentVNode as W, createTextVNode as ue, createBlock as q, Fragment as re, renderList as me } from "vue";
2
+ import { F as I } from "./index-BMJHz32O.js";
3
+ import { I as k, g as j, c as ce, a as x, m as de, t as pe, b as fe, p as ve, l as be, u as ye } from "./rules-BQz4NGht.js";
3
4
  import "@feedmepos/ui-library";
4
5
  function E() {
5
6
  return {
@@ -11,52 +12,52 @@ function H() {
11
12
  return k()(d.amountAsString);
12
13
  };
13
14
  }
14
- function Se(l) {
15
- return function(t) {
16
- return k()(t.amountAsString) !== !0 ? !0 : +t.amountAsString < l ? `Must be at least ${l}` : !0;
15
+ function Ve(s) {
16
+ return function(n) {
17
+ return k()(n.amountAsString) !== !0 ? !0 : +n.amountAsString < s ? `Must be at least ${s}` : !0;
17
18
  };
18
19
  }
19
- function Ve(l) {
20
- return function(t) {
21
- return k()(t.amountAsString) !== !0 ? !0 : +t.amountAsString > l ? `Must be at most ${l}` : !0;
20
+ function je(s) {
21
+ return function(n) {
22
+ return k()(n.amountAsString) !== !0 ? !0 : +n.amountAsString > s ? `Must be at most ${s}` : !0;
22
23
  };
23
24
  }
24
- function G(l, d = !1) {
25
- return function(r) {
26
- const s = H()(r);
27
- if (s != !0)
28
- return d ? s : !0;
29
- const F = typeof l == "number" ? l : L(l, r.modelValue.measurement);
30
- return ce(+r.amountAsString).precision > F ? `Cannot exceed precision more than ${h({
25
+ function G(s, d = !1) {
26
+ return function(u) {
27
+ const o = H()(u);
28
+ if (o != !0)
29
+ return d ? o : !0;
30
+ const F = typeof s == "number" ? s : j(s, u.modelValue.measurement);
31
+ return ce(+u.amountAsString).precision > F ? `Cannot exceed precision more than ${x({
31
32
  amount: 1,
32
33
  precision: F
33
34
  })}` : !0;
34
35
  };
35
36
  }
36
- function Le(l) {
37
- const d = de(l);
38
- return function(r) {
39
- return d(r.modelValue.amount);
37
+ function Le(s) {
38
+ const d = de(s);
39
+ return function(u) {
40
+ return d(u.modelValue.amount);
40
41
  };
41
42
  }
42
- const Me = { class: "flex flex-col" }, he = { 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 = {
43
+ 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 = {
43
44
  key: 0,
44
45
  class: "text-fm-color-typo-secondary"
45
46
  }, Pe = {
46
47
  key: 0,
47
48
  class: "line-clamp-1 text-ellipsis break-all"
48
- }, Ie = { class: "flex items-center gap-4" }, ke = { class: "line-clamp-1 text-ellipsis break-all" }, Be = { class: "max-w-[200px] flex flex-col gap-[1px]" }, De = {
49
+ }, Ie = { class: "flex items-center gap-4" }, ke = { class: "line-clamp-1 text-ellipsis break-all" }, Re = { class: "max-w-[200px] flex flex-col gap-[1px]" }, De = {
49
50
  key: 1,
50
51
  class: "flex flex-col gap-4 pl-8 shrink-0"
51
- }, Re = {
52
+ }, Be = {
52
53
  class: "flex items-center",
53
54
  style: { "pointer-events": "none" }
54
55
  }, Ce = {
55
56
  class: "flex items-center",
56
57
  style: { "pointer-events": "none" }
57
- }, je = /* @__PURE__ */ oe({
58
+ }, Oe = /* @__PURE__ */ oe({
58
59
  __name: "FmUnitInput",
59
- props: /* @__PURE__ */ $({
60
+ props: /* @__PURE__ */ z({
60
61
  modelValue: {},
61
62
  unit: {},
62
63
  rules: {},
@@ -103,116 +104,113 @@ const Me = { class: "flex flex-col" }, he = { class: "flex flex-col" }, ge = { c
103
104
  modelValue: {},
104
105
  modelModifiers: {}
105
106
  }),
106
- emits: /* @__PURE__ */ $(["update:amount", "update:measurement"], ["update:modelValue"]),
107
- setup(l, { emit: d }) {
108
- const t = l, r = d, s = se(l, "modelValue"), F = k(), B = v(() => {
109
- var n;
110
- return L(t.unit, (n = s.value) == null ? void 0 : n.measurement);
107
+ emits: /* @__PURE__ */ z(["update:amount", "update:measurement"], ["update:modelValue"]),
108
+ setup(s, { emit: d }) {
109
+ const n = s, u = d, o = se(s, "modelValue"), F = k(), R = v(() => {
110
+ var t;
111
+ return j(n.unit, (t = o.value) == null ? void 0 : t.measurement);
111
112
  }), c = P((() => {
112
- var o;
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);
114
- return h(a);
113
+ var i;
114
+ const e = ((i = o.value) == null ? void 0 : i.amount) ?? I.reset(), t = be(e), l = n.formatMinimumPrecision ?? t.precision, r = ye(t, l);
115
+ return x(r);
115
116
  })());
116
- z(c, (e) => {
117
- const n = F(e), i = t.precision ?? B.value, o = typeof t.formatMinimumPrecision == "number" && t.formatMinimumPrecision > i ? t.formatMinimumPrecision : i;
118
- n == !0 && (s.value = {
119
- ...s.value,
120
- amount: pe(+e, o)
121
- }), r("update:amount", e);
117
+ T(c, (e) => {
118
+ const t = F(e), l = n.precision ?? R.value, i = typeof n.formatMinimumPrecision == "number" && n.formatMinimumPrecision > l ? n.formatMinimumPrecision : l;
119
+ t == !0 && (o.value = {
120
+ ...o.value,
121
+ amount: pe(+e, i)
122
+ }), u("update:amount", e);
122
123
  });
123
- 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), j = P(!1), Q = v(() => R.value || j.value), X = v(() => {
124
- var a;
125
- const i = [...t.unit.measurements.filter((o) => !o.name.toLocaleLowerCase().includes("inactive")).filter((o) => o.abbrev !== t.unit.abbrev || +h(o.conversion) != 1).groupBy(
126
- (o) => `${o.abbrev}${h(o.conversion)}`
127
- ).values()].map((o) => o[0]).flat();
124
+ const J = Symbol.for("fm:form-state"), D = le(J, null), A = v(() => n.disabled ?? (D == null ? void 0 : D.getDisabled()) ?? !1), K = P(), B = P(!1), L = P(!1), Q = v(() => B.value || L.value), X = v(() => {
125
+ var e;
128
126
  return [
129
127
  {
130
- label: (a = t.unit) == null ? void 0 : a.abbrev,
128
+ label: (e = n.unit) == null ? void 0 : e.abbrev,
131
129
  value: null
132
130
  },
133
- ...i.map((o) => ({
134
- label: o.abbrev,
135
- value: o.id
131
+ ...n.unit.measurements.map((t) => ({
132
+ label: t.abbrev,
133
+ value: t.id
136
134
  }))
137
135
  ];
138
136
  }), C = v({
139
137
  get() {
140
- var e, n;
141
- return ((n = (e = s.value) == null ? void 0 : e.measurement) == null ? void 0 : n.id) ?? null;
138
+ var e, t;
139
+ return ((t = (e = o.value) == null ? void 0 : e.measurement) == null ? void 0 : t.id) ?? null;
142
140
  },
143
141
  set(e) {
144
142
  if (e == null)
145
- s.value = {
146
- ...s.value ?? E(),
143
+ o.value = {
144
+ ...o.value ?? E(),
147
145
  measurement: null
148
- }, r("update:measurement", null);
146
+ }, u("update:measurement", null);
149
147
  else {
150
- const n = t.unit.measurements.find((i) => i.id === e) ?? null;
151
- s.value = {
152
- ...s.value ?? E(),
153
- measurement: n
154
- }, r("update:measurement", n);
148
+ const t = n.unit.measurements.find((l) => l.id === e) ?? null;
149
+ o.value = {
150
+ ...o.value ?? E(),
151
+ measurement: t
152
+ }, u("update:measurement", t);
155
153
  }
156
154
  }
157
155
  });
158
- z(C, (e, n) => {
156
+ T(C, (e, t) => {
159
157
  var m;
160
- if (!t.convertAmountOnChangeUnit)
158
+ if (!n.convertAmountOnChangeUnit)
161
159
  return;
162
- const i = ((m = s.value) == null ? void 0 : m.amount) ?? I.reset(), a = t.unit.measurements.find((_) => _.id === n) ?? null, o = t.unit.measurements.find((_) => _.id === e) ?? null, p = a ? fe(i, a.conversion) : i, w = o ? ve(p, o.conversion) : p, N = L(t.unit, o), S = I.convertPrecision({
160
+ const l = ((m = o.value) == null ? void 0 : m.amount) ?? I.reset(), r = n.unit.measurements.find((_) => _.id === t) ?? null, i = n.unit.measurements.find((_) => _.id === e) ?? null, p = r ? fe(l, r.conversion) : l, w = i ? ve(p, i.conversion) : p, N = j(n.unit, i), S = I.convertPrecision({
163
161
  value: w,
164
162
  precision: N
165
163
  });
166
- c.value = h(S);
164
+ c.value = x(S);
167
165
  });
168
166
  const U = v(() => {
169
- var e, n;
170
- return ((n = (e = s.value) == null ? void 0 : e.measurement) == null ? void 0 : n.abbrev) ?? t.unit.abbrev;
167
+ var e, t;
168
+ return ((t = (e = o.value) == null ? void 0 : e.measurement) == null ? void 0 : t.abbrev) ?? n.unit.abbrev;
171
169
  }), Y = v(
172
170
  () => {
173
171
  var e;
174
- return ((e = t.rules) == null ? void 0 : e.map(
175
- (n) => (i) => typeof n == "function" ? n(i) : n
172
+ return ((e = n.rules) == null ? void 0 : e.map(
173
+ (t) => (l) => typeof t == "function" ? t(l) : t
176
174
  )) ?? [];
177
175
  }
178
- ), ee = v(() => [...t.applyDefaultRules ? [
176
+ ), ee = v(() => [...n.applyDefaultRules ? [
179
177
  H(),
180
- typeof t.precision == "number" ? G(t.precision) : G(t.unit)
178
+ typeof n.precision == "number" ? G(n.precision) : G(n.unit)
181
179
  ] : [], ...Y.value]);
182
180
  function O(e) {
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;
181
+ const t = n.precision ?? R.value, r = typeof n.formatMinimumPrecision == "number" && n.formatMinimumPrecision > t ? n.formatMinimumPrecision : t, i = e.toFixed(r), p = i.includes(".") ? i.replace(/0+$/, "") : i;
184
182
  return p.endsWith(".") ? p.slice(0, p.length - 1) : p;
185
183
  }
186
184
  function te() {
187
- if (!t.stepper)
185
+ if (!n.stepper)
188
186
  return;
189
- const e = +c.value + +h(t.stepper);
187
+ const e = +c.value + +x(n.stepper);
190
188
  c.value = O(e);
191
189
  }
192
190
  function ne() {
193
- if (!t.stepper)
191
+ if (!n.stepper)
194
192
  return;
195
- const e = +c.value - +h(t.stepper);
193
+ const e = +c.value - +x(n.stepper);
196
194
  c.value = O(e);
197
195
  }
198
- return (e, n) => {
199
- const i = b("FmLabel"), a = b("FmIcon"), o = b("FmMenuItem"), p = b("FmMenu"), w = b("FmTooltip"), N = b("FmField"), S = b("FmFormGroup");
200
- return f(), y("div", Me, [
201
- u("div", he, [
202
- u("div", ge, [
203
- M(i, {
196
+ return (e, t) => {
197
+ const l = b("FmLabel"), r = b("FmIcon"), i = b("FmMenuItem"), p = b("FmMenu"), w = b("FmTooltip"), N = b("FmField"), S = b("FmFormGroup");
198
+ return f(), y("div", he, [
199
+ a("div", Me, [
200
+ a("div", ge, [
201
+ h(l, {
204
202
  label: e.label,
205
203
  disabled: e.disabled,
206
204
  required: e.labelMark === "required",
207
205
  optional: e.labelMark === "optional"
208
206
  }, null, 8, ["label", "disabled", "required", "optional"])
209
207
  ]),
210
- M(N, { focused: Q.value }, {
211
- default: g(() => [
212
- u("div", xe, [
213
- T(e.$slots, "prepend"),
214
- u("div", Fe, [
215
- u("div", Ae, [
208
+ h(N, { focused: Q.value }, {
209
+ default: M(() => [
210
+ a("div", xe, [
211
+ $(e.$slots, "prepend"),
212
+ a("div", Fe, [
213
+ a("div", Ae, [
216
214
  e.stepperOnly ? (f(), y("span", {
217
215
  key: 0,
218
216
  class: V({
@@ -220,14 +218,14 @@ const Me = { class: "flex flex-col" }, he = { class: "flex flex-col" }, ge = { c
220
218
  "text-fm-color-typo-primary": !A.value,
221
219
  "text-fm-color-typo-disabled": A.value
222
220
  })
223
- }, x(c.value), 3)) : le((f(), y("input", {
221
+ }, g(c.value), 3)) : ie((f(), y("input", {
224
222
  key: 1,
225
223
  type: "text",
226
224
  ref_key: "inputRef",
227
225
  ref: K,
228
- onFocus: n[0] || (n[0] = () => R.value = !0),
229
- onBlur: n[1] || (n[1] = () => R.value = !1),
230
- "onUpdate:modelValue": n[2] || (n[2] = (m) => c.value = m),
226
+ onFocus: t[0] || (t[0] = () => B.value = !0),
227
+ onBlur: t[1] || (t[1] = () => B.value = !1),
228
+ "onUpdate:modelValue": t[2] || (t[2] = (m) => c.value = m),
231
229
  class: V({
232
230
  "fm-text-field--input fm-typo-en-body-lg-400": !0,
233
231
  "text-fm-color-typo-primary": !A.value,
@@ -237,31 +235,31 @@ const Me = { class: "flex flex-col" }, he = { class: "flex flex-col" }, ge = { c
237
235
  [ae, c.value]
238
236
  ])
239
237
  ]),
240
- e.separator ? (f(), y("div", _e, x(e.separator), 1)) : q("", !0),
241
- u("div", {
238
+ e.separator ? (f(), y("div", _e, g(e.separator), 1)) : W("", !0),
239
+ a("div", {
242
240
  class: V([e.disabled ? "text-fm-color-typo-disabled" : "text-fm-color-typo-secondary"])
243
241
  }, [
244
- M(w, { "z-index": 51 }, {
245
- content: g(() => [
246
- ue(x(U.value), 1)
242
+ h(w, { "z-index": 51 }, {
243
+ content: M(() => [
244
+ ue(g(U.value), 1)
247
245
  ]),
248
- default: g(() => [
249
- e.disableUnit ? (f(), y("div", Pe, x(U.value), 1)) : (f(), W(p, {
246
+ default: M(() => [
247
+ e.disableUnit ? (f(), y("div", Pe, g(U.value), 1)) : (f(), q(p, {
250
248
  key: 1,
251
- onMenuChanged: n[3] || (n[3] = (m) => j.value = m),
249
+ onMenuChanged: t[3] || (t[3] = (m) => L.value = m),
252
250
  "z-index": 500,
253
251
  placement: e.placement,
254
252
  disabled: e.disabled
255
253
  }, {
256
- "menu-button": g(() => [
257
- u("div", Ie, [
258
- u("div", ke, x(U.value), 1),
259
- M(a, { name: "keyboard_arrow_down" })
254
+ "menu-button": M(() => [
255
+ a("div", Ie, [
256
+ a("div", ke, g(U.value), 1),
257
+ h(r, { name: "keyboard_arrow_down" })
260
258
  ])
261
259
  ]),
262
- default: g(() => [
263
- u("div", Be, [
264
- (f(!0), y(re, null, me(X.value, (m) => (f(), W(o, {
260
+ default: M(() => [
261
+ a("div", Re, [
262
+ (f(!0), y(re, null, me(X.value, (m) => (f(), q(i, {
265
263
  key: m.value ?? void 0,
266
264
  label: m.label,
267
265
  "model-value": m.value == C.value,
@@ -276,39 +274,39 @@ const Me = { class: "flex flex-col" }, he = { class: "flex flex-col" }, ge = { c
276
274
  })
277
275
  ], 2),
278
276
  e.stepper ? (f(), y("div", De, [
279
- u("div", {
277
+ a("div", {
280
278
  class: "w-24 h-12 flex items-center justify-center fm-corner-radius-sm bg-fm-color-neutral-gray-100 hover:bg-fm-color-neutral-gray-200",
281
279
  onClick: te
282
280
  }, [
283
- u("div", Re, [
284
- M(a, {
281
+ a("div", Be, [
282
+ h(r, {
285
283
  name: "expand_less",
286
284
  size: "md"
287
285
  })
288
286
  ])
289
287
  ]),
290
- u("div", {
288
+ a("div", {
291
289
  class: "w-24 h-12 flex items-center justify-center fm-corner-radius-sm bg-fm-color-neutral-gray-100 hover:bg-fm-color-neutral-gray-200",
292
290
  onClick: ne
293
291
  }, [
294
- u("div", Ce, [
295
- M(a, {
292
+ a("div", Ce, [
293
+ h(r, {
296
294
  name: "expand_more",
297
295
  size: "md"
298
296
  })
299
297
  ])
300
298
  ])
301
- ])) : q("", !0)
299
+ ])) : W("", !0)
302
300
  ]),
303
- T(e.$slots, "append")
301
+ $(e.$slots, "append")
304
302
  ])
305
303
  ]),
306
304
  _: 3
307
305
  }, 8, ["focused"])
308
306
  ]),
309
- M(S, {
307
+ h(S, {
310
308
  class: "flex-1",
311
- "model-value": { modelValue: s.value, amountAsString: String(c.value) },
309
+ "model-value": { modelValue: o.value, amountAsString: String(c.value) },
312
310
  info: e.labelInfo,
313
311
  rules: ee.value,
314
312
  "helper-text": e.helperText,
@@ -319,9 +317,9 @@ const Me = { class: "flex flex-col" }, he = { class: "flex flex-col" }, ge = { c
319
317
  }
320
318
  });
321
319
  export {
322
- Se as F,
323
- je as _,
324
- Ve as a,
320
+ Ve as F,
321
+ Oe as _,
322
+ je as a,
325
323
  Le as b,
326
324
  H as c,
327
325
  G as d
@@ -1,7 +1,7 @@
1
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 { i as a, J as y } from "./app-CutWLf0m.js";
2
+ import { a, b as y } from "./rules-BQz4NGht.js";
3
3
  import { useI18n as _ } from "@feedmepos/mf-common";
4
- const v = { class: "flex flex-col" }, g = { 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" }, h = { class: "flex-1 py-8 px-16" }, b = {
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 = {
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 = {
@@ -32,9 +32,9 @@ const v = { class: "flex flex-col" }, g = { 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", g, [
36
- r("div", h, o(e.name), 1),
37
- r("div", b, o(l(m)("inventory.ingredient.bindedItems.amount")), 1)
35
+ r("div", b, [
36
+ r("div", g, o(e.name), 1),
37
+ r("div", h, o(l(m)("inventory.ingredient.bindedItems.amount")), 1)
38
38
  ]),
39
39
  (s(!0), n(d, null, x(e.bindings, (t) => (s(), n("div", {
40
40
  key: t.id,