@feedmepos/mf-inventory-portal 0.0.22-dev.9 → 0.0.23-dev.1

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 (163) hide show
  1. package/dist/App-Y3Ez8Rjf.js +255 -0
  2. package/dist/ApprovalView-BUU1G4Q2.js +141 -0
  3. package/dist/{BindingsDialog-GzX9Bo2g.js → BindingsDialog-8wc4Q0JQ.js} +13 -12
  4. package/dist/{BindingsPicker-SbOetc0-.js → BindingsPicker-DGWN1LQc.js} +19 -18
  5. package/dist/{BindingsTable-CAcE5y8U.js → BindingsTable-7NJP2jT6.js} +20 -16
  6. package/dist/ClosingTemplateView-9s7vmwaT.js +1833 -0
  7. package/dist/FmDroppableField-8RzKjEdL.js +154 -0
  8. package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-B4DDh9-a.js +267 -0
  9. package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-5DINn0ZB.js +436 -0
  10. package/dist/FmMultiselectDialog-7hok9sJP.js +411 -0
  11. package/dist/FmUnitInput.vue_vue_type_script_setup_true_lang-CxR1FCft.js +326 -0
  12. package/dist/IngredientBindedItem.vue_vue_type_script_setup_true_lang-FQ0HjuL3.js +51 -0
  13. package/dist/IngredientGroupView-C3maHTCg.js +610 -0
  14. package/dist/IngredientsView-DCR3IBkR.js +1613 -0
  15. package/dist/IntegrationView-gO4h89Wj.js +1227 -0
  16. package/dist/InventoryBindingForm-dh3GeyG-.js +4 -0
  17. package/dist/InventoryBindingForm.vue_vue_type_script_setup_true_lang-CJuo3i7W.js +278 -0
  18. package/dist/InventoryBindingSummary-BPoPcEoe.js +75 -0
  19. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-1FCwvO8A.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-olm8sZKt.js} +1 -1
  20. package/dist/PremiumBadge.vue_vue_type_script_setup_true_lang-BezTV43V.js +116 -0
  21. package/dist/{PurchaseOrderPrintPreview-5HIWHR_f.js → PurchaseOrderPrintPreview-Dix_fIoo.js} +14 -13
  22. package/dist/ReceiveRequestView-DdPiYb2P.js +4082 -0
  23. package/dist/RecipeView-C4-a4IEW.js +597 -0
  24. package/dist/Standalone.vue.d.ts +2 -0
  25. package/dist/StockView-Du2txrIP.js +7778 -0
  26. package/dist/SupplierView-D_09FbQh.js +1474 -0
  27. package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-C9MOos--.js +1144 -0
  28. package/dist/TransferTemplateView-j3CRy6Lc.js +1262 -0
  29. package/dist/{UnitView-BpU0Yk7X.js → UnitView-BXw2Vwq1.js} +30 -29
  30. package/dist/{WarehouseView-DqxWgogc.js → WarehouseView-CKamiETC.js} +205 -202
  31. package/dist/_plugin-vue_export-helper-CHgC5LLL.js +9 -0
  32. package/dist/api/bill.d.ts +86 -240
  33. package/dist/api/closing-template.d.ts +6 -4
  34. package/dist/api/inventory.d.ts +281 -88
  35. package/dist/api/netsuite.d.ts +32 -1
  36. package/dist/api/purchase-order-template.d.ts +4 -2
  37. package/dist/api/supplier.d.ts +1 -0
  38. package/dist/app-GUbzqEtW.js +33456 -0
  39. package/dist/app.d.ts +259 -6
  40. package/dist/app.js +8 -7
  41. package/dist/array-hChJVZLE.js +43 -0
  42. package/dist/components/FmFilterableMenuOptions.vue.d.ts +54 -0
  43. package/dist/components/FmMinMaxInputRules.d.ts +2 -0
  44. package/dist/components/FmMultiselectDialog.vue.d.ts +3 -9
  45. package/dist/components/FmMultiselectDialogProps.d.ts +0 -2
  46. package/dist/components/FmUnitInputRules.d.ts +2 -0
  47. package/dist/components/inventory-binding/InventoryBinding.vue.d.ts +5 -5
  48. package/dist/components/map/GoogleMap.vue.d.ts +4 -4
  49. package/dist/components/shell/inventory/binding-dialog.vue.d.ts +2 -2
  50. package/dist/components/shell/inventory/binding-ui.vue.d.ts +2 -2
  51. package/dist/date2-CLE9fB2R.js +117 -0
  52. package/dist/dayjs.min-CY1d38w7.js +282 -0
  53. package/dist/{decimal-DWbwRn_v.js → decimal-SIjO6Mjw.js} +1 -1
  54. package/dist/defineDeepModel-l40rX7kr.js +13 -0
  55. package/dist/extensions/array.d.ts +1 -0
  56. package/dist/feature-BXruKUhX.js +78 -0
  57. package/dist/{format-time-from-id-BnmaRuab.js → format-time-from-id-CcFsBXmk.js} +1 -1
  58. package/dist/format-unit-display-DEKg8cJm.js +1198 -0
  59. package/dist/fuzzy-CVOV9zJc.js +41 -0
  60. package/dist/googlemap-Dm8ERVai.js +97 -0
  61. package/dist/helper/rules.d.ts +7 -0
  62. package/dist/helper/rules.spec.d.ts +1 -0
  63. package/dist/helper/xlsx.util.d.ts +7 -0
  64. package/dist/index-BX5KZXhI.js +22279 -0
  65. package/dist/index-CVsyOEb1.js +10545 -0
  66. package/dist/index-m9e9nYfl.js +45 -0
  67. package/dist/netsuite-DAKRv7zr.js +146 -0
  68. package/dist/normalizeArguments-DP7Hrren.js +1552 -0
  69. package/dist/router/name.d.ts +1 -0
  70. package/dist/rules-DlnN8IP3.js +198 -0
  71. package/dist/stores/integration/foodmarkethub.d.ts +391 -0
  72. package/dist/stores/integration/index.d.ts +7 -0
  73. package/dist/stores/integration/netsuite.d.ts +102 -0
  74. package/dist/stores/inventory.d.ts +295 -9
  75. package/dist/stores/location.d.ts +508 -485
  76. package/dist/stores/supplier.d.ts +124 -4
  77. package/dist/stores/warehouse.d.ts +7 -4
  78. package/dist/style.css +1 -1
  79. package/dist/supplier-B21WlSAM.js +77 -0
  80. package/dist/tsconfig.app.tsbuildinfo +1 -1
  81. package/dist/use-inventory-binding-dialog-D3x6xj2O.js +95 -0
  82. package/dist/{use-template-enabled-locations-2-ClBq9FjN.js → use-template-enabled-locations-2-z-b-UXef.js} +9 -8
  83. package/dist/useTabStorage-BkIVScW_.js +25 -0
  84. package/dist/views/closing-template/closing-template-import/ClosingTemplateImport.vue.d.ts +2 -0
  85. package/dist/views/closing-template/closing-template-import/ClosingTemplateImportItem.vue.d.ts +12 -0
  86. package/dist/views/closing-template/closing-template-import/ClosingTemplateImportItemProps.d.ts +7 -0
  87. package/dist/views/closing-template/components/closing-template-form/composables/use-closing-template-items.d.ts +1 -1
  88. package/dist/views/closing-template/composables/use-closing-template-actions.d.ts +877 -1002
  89. package/dist/views/closing-template/composables/use-closing-template-table.d.ts +882 -1013
  90. package/dist/views/closing-template/helpers/import-export.helper.d.ts +58 -0
  91. package/dist/views/ingredient-group/IngredientGroupView.vue.d.ts +3 -0
  92. package/dist/views/ingredient-group/components/ingredient-group-dialog/IngredientGroupDialog.vue.d.ts +31 -0
  93. package/dist/views/ingredient-group/components/ingredient-group-dialog/IngredientGroupDialogProps.d.ts +12 -0
  94. package/dist/views/ingredient-group/components/ingredient-group-form/IngredientGroupForm.vue.d.ts +20 -0
  95. package/dist/views/ingredient-group/components/ingredient-group-form/IngredientGroupFormProps.d.ts +12 -0
  96. package/dist/views/ingredient-group/composables/use-ingredient-group-actions.d.ts +24 -0
  97. package/dist/views/ingredient-group/composables/use-ingredient-group-table.d.ts +215 -0
  98. package/dist/views/ingredients/components/convert/ConvertForm.vue.d.ts +2 -2
  99. package/dist/views/ingredients/components/ingredient-form/IngredientForm.vue.d.ts +2 -2
  100. package/dist/views/ingredients/components/inventory-binding/InventoryBindingForm.vue.d.ts +5 -5
  101. package/dist/views/ingredients/composables/use-ingredient-form.d.ts +2 -2
  102. package/dist/views/ingredients/composables/use-ingredient-table.d.ts +1 -1
  103. package/dist/views/integration/FoodMarketHub.vue.d.ts +2 -0
  104. package/dist/views/integration/NetSuite.vue.d.ts +2 -0
  105. package/dist/views/integration/components/ApplyProductDialog.vue.d.ts +7 -7
  106. package/dist/views/integration/components/ApplyProductDialogV4.vue.d.ts +7 -7
  107. package/dist/views/receive-request/components/transfer-details/TransferDetailsProps.d.ts +1 -0
  108. package/dist/views/receive-request/components/transfer-form/NetSuiteField.vue.d.ts +49 -0
  109. package/dist/views/receive-request/components/transfer-form/TransferForm.vue.d.ts +1913 -53
  110. package/dist/views/receive-request/components/transfer-form/TransferFormProps.d.ts +1 -0
  111. package/dist/views/receive-request/components/transfer-form/components/ForecastStock.vue.d.ts +2 -2
  112. package/dist/views/receive-request/components/transfer-form/composables/use-transfer-items.d.ts +1 -1
  113. package/dist/views/receive-request/composables/use-receive-request-form.d.ts +2370 -327
  114. package/dist/views/receive-request/composables/use-receive-request-table.d.ts +2304 -261
  115. package/dist/views/recipe/components/recipe-form/RecipeForm.vue.d.ts +2 -2
  116. package/dist/views/recipe/composables/use-recipe-form.d.ts +2 -2
  117. package/dist/views/stock/components/StockRecordCard.vue.d.ts +43 -120
  118. package/dist/views/stock/components/dialog/AdjustedItemForm.vue.d.ts +34 -4
  119. package/dist/views/stock/composables/use-stock-action.d.ts +2 -2
  120. package/dist/views/stock/helper/compute-summary-total.d.ts +2 -2
  121. package/dist/views/supplier/components/supplier-import/SupplierImport.vue.d.ts +2 -0
  122. package/dist/views/supplier/components/supplier-import/SupplierImportItem.vue.d.ts +12 -0
  123. package/dist/views/supplier/components/supplier-import/SupplierImportItemProps.d.ts +6 -0
  124. package/dist/views/supplier/composables/use-supplier-actions.d.ts +10 -0
  125. package/dist/views/supplier/helpers/import-export.helper.d.ts +50 -0
  126. package/dist/views/transfer-template/components/transfer-template-details/TransferTemplateDetails.vue.d.ts +0 -2
  127. package/dist/views/transfer-template/components/transfer-template-details/TransferTemplateDetailsProps.d.ts +0 -1
  128. package/dist/views/transfer-template/components/transfer-template-form/composables/use-template-enabled-locations.d.ts +71 -82
  129. package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-locations.d.ts +38 -1
  130. package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-template-items.d.ts +1 -1
  131. package/dist/views/transfer-template/components/transfer-template-import/TransferTemplateImport.vue.d.ts +2 -0
  132. package/dist/views/transfer-template/components/transfer-template-import/TransferTemplateImportItem.vue.d.ts +12 -0
  133. package/dist/views/transfer-template/components/transfer-template-import/TransferTemplateImportItemProps.d.ts +9 -0
  134. package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +1279 -1528
  135. package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +2207 -446
  136. package/dist/views/transfer-template/helpers/import-export.helper.d.ts +76 -0
  137. package/dist/views/transfer-template/helpers/remove-deleted-skus.helper.d.ts +1 -251
  138. package/dist/views/transfer-template/helpers/template-item.error.helper.d.ts +1 -0
  139. package/dist/views/unit/composables/use-unit-form.d.ts +2 -2
  140. package/dist/views/warehouse/components/WarehouseForm.vue.d.ts +14 -8
  141. package/dist/{xlsx-DiOKvJ6l.js → xlsx-6mM1eNiL.js} +1525 -1525
  142. package/dist/xlsx.util-BLftcF4q.js +78 -0
  143. package/package.json +7 -4
  144. package/dist/ApprovalView-BPsScR5_.js +0 -129
  145. package/dist/ClosingTemplateView-DECwEnlK.js +0 -1066
  146. package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-DnogYrRE.js +0 -372
  147. package/dist/IngredientsView-8fT1Ljd5.js +0 -1758
  148. package/dist/IntegrationView-CjGLRM78.js +0 -1141
  149. package/dist/PremiumBadge.vue_vue_type_script_setup_true_lang-DlhNc8Vk.js +0 -88
  150. package/dist/ReceiveRequestView-CXZv8g5U.js +0 -215
  151. package/dist/RecipeView-sB0Lgmob.js +0 -581
  152. package/dist/StockView-CY2kNohB.js +0 -1892
  153. package/dist/SupplierView-DTqeZPts.js +0 -827
  154. package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-BBby29tW.js +0 -762
  155. package/dist/TransferDialog.vue_vue_type_script_setup_true_lang-ByNQap9n.js +0 -1498
  156. package/dist/TransferTemplateView-DkRVfAox.js +0 -1277
  157. package/dist/app-BuyAj4kw.js +0 -69068
  158. package/dist/defineDeepModel-DuVmbMwq.js +0 -13
  159. package/dist/id-to-date-CI5Vv0Ji.js +0 -30
  160. package/dist/purchase-order-transaction-type-DrFJFvtK.js +0 -676
  161. package/dist/stores/netsuite.d.ts +0 -49
  162. package/dist/supplier-BQyK2eSZ.js +0 -69
  163. package/dist/xlsx.util-CZ7zYxdP.js +0 -109
@@ -0,0 +1,326 @@
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-BX5KZXhI.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-DlnN8IP3.js";
4
+ import "@feedmepos/ui-library";
5
+ function E() {
6
+ return {
7
+ amount: I.reset()
8
+ };
9
+ }
10
+ function H() {
11
+ return function(d) {
12
+ return k()(d.amountAsString);
13
+ };
14
+ }
15
+ function Ve(s) {
16
+ return function(n) {
17
+ return k()(n.amountAsString) !== !0 ? !0 : +n.amountAsString < s ? `Must be at least ${s}` : !0;
18
+ };
19
+ }
20
+ function je(s) {
21
+ return function(n) {
22
+ return k()(n.amountAsString) !== !0 ? !0 : +n.amountAsString > s ? `Must be at most ${s}` : !0;
23
+ };
24
+ }
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({
32
+ amount: 1,
33
+ precision: F
34
+ })}` : !0;
35
+ };
36
+ }
37
+ function Le(s) {
38
+ const d = de(s);
39
+ return function(u) {
40
+ return d(u.modelValue.amount);
41
+ };
42
+ }
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 = {
44
+ key: 0,
45
+ class: "text-fm-color-typo-secondary"
46
+ }, Pe = {
47
+ key: 0,
48
+ class: "line-clamp-1 text-ellipsis break-all"
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 = {
50
+ key: 1,
51
+ class: "flex flex-col gap-4 pl-8 shrink-0"
52
+ }, Be = {
53
+ class: "flex items-center",
54
+ style: { "pointer-events": "none" }
55
+ }, Ce = {
56
+ class: "flex items-center",
57
+ style: { "pointer-events": "none" }
58
+ }, Oe = /* @__PURE__ */ oe({
59
+ __name: "FmUnitInput",
60
+ props: /* @__PURE__ */ z({
61
+ modelValue: {},
62
+ unit: {},
63
+ rules: {},
64
+ zIndex: {},
65
+ applyDefaultRules: { type: Boolean },
66
+ placement: {},
67
+ separator: {},
68
+ precision: {},
69
+ convertAmountOnChangeUnit: { type: Boolean },
70
+ formatMinimumPrecision: {},
71
+ disableUnit: { type: Boolean },
72
+ stepperOnly: { type: Boolean },
73
+ stepper: {},
74
+ placeholder: {},
75
+ minLength: {},
76
+ maxLength: {},
77
+ inputmode: {},
78
+ type: {},
79
+ readonly: { type: Boolean },
80
+ labelMark: {},
81
+ prependIcon: {},
82
+ appendIcon: {},
83
+ showValidBorder: { type: Boolean },
84
+ labelInfo: {},
85
+ showWordCount: { type: Boolean },
86
+ invalid: { type: Boolean },
87
+ autofocus: { type: Boolean },
88
+ formatter: { type: Function },
89
+ decimal: {},
90
+ datalist: {},
91
+ shiftDatalist: { type: Boolean },
92
+ datalistMaxHeight: {},
93
+ datalistMinHeight: {},
94
+ offsetDatalist: {},
95
+ datalistPlacement: {},
96
+ datalistZIndex: {},
97
+ datalistWidth: {},
98
+ label: {},
99
+ disabled: { type: Boolean },
100
+ focused: { type: Boolean },
101
+ helperText: {},
102
+ helperState: {}
103
+ }, {
104
+ modelValue: {},
105
+ modelModifiers: {}
106
+ }),
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);
112
+ }), c = P((() => {
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);
116
+ })());
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);
123
+ });
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;
126
+ return [
127
+ {
128
+ label: (e = n.unit) == null ? void 0 : e.abbrev,
129
+ value: null
130
+ },
131
+ ...n.unit.measurements.map((t) => ({
132
+ label: t.abbrev,
133
+ value: t.id
134
+ }))
135
+ ];
136
+ }), C = v({
137
+ get() {
138
+ var e, t;
139
+ return ((t = (e = o.value) == null ? void 0 : e.measurement) == null ? void 0 : t.id) ?? null;
140
+ },
141
+ set(e) {
142
+ if (e == null)
143
+ o.value = {
144
+ ...o.value ?? E(),
145
+ measurement: null
146
+ }, u("update:measurement", null);
147
+ else {
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);
153
+ }
154
+ }
155
+ });
156
+ T(C, (e, t) => {
157
+ var m;
158
+ if (!n.convertAmountOnChangeUnit)
159
+ return;
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({
161
+ value: w,
162
+ precision: N
163
+ });
164
+ c.value = x(S);
165
+ });
166
+ const U = v(() => {
167
+ var e, t;
168
+ return ((t = (e = o.value) == null ? void 0 : e.measurement) == null ? void 0 : t.abbrev) ?? n.unit.abbrev;
169
+ }), Y = v(
170
+ () => {
171
+ var e;
172
+ return ((e = n.rules) == null ? void 0 : e.map(
173
+ (t) => (l) => typeof t == "function" ? t(l) : t
174
+ )) ?? [];
175
+ }
176
+ ), ee = v(() => [...n.applyDefaultRules ? [
177
+ H(),
178
+ typeof n.precision == "number" ? G(n.precision) : G(n.unit)
179
+ ] : [], ...Y.value]);
180
+ function O(e) {
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;
182
+ return p.endsWith(".") ? p.slice(0, p.length - 1) : p;
183
+ }
184
+ function te() {
185
+ if (!n.stepper)
186
+ return;
187
+ const e = +c.value + +x(n.stepper);
188
+ c.value = O(e);
189
+ }
190
+ function ne() {
191
+ if (!n.stepper)
192
+ return;
193
+ const e = +c.value - +x(n.stepper);
194
+ c.value = O(e);
195
+ }
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, {
202
+ label: e.label,
203
+ disabled: e.disabled,
204
+ required: e.labelMark === "required",
205
+ optional: e.labelMark === "optional"
206
+ }, null, 8, ["label", "disabled", "required", "optional"])
207
+ ]),
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, [
214
+ e.stepperOnly ? (f(), y("span", {
215
+ key: 0,
216
+ class: V({
217
+ "fm-text-field--input fm-typo-en-body-lg-400": !0,
218
+ "text-fm-color-typo-primary": !A.value,
219
+ "text-fm-color-typo-disabled": A.value
220
+ })
221
+ }, g(c.value), 3)) : ie((f(), y("input", {
222
+ key: 1,
223
+ type: "text",
224
+ ref_key: "inputRef",
225
+ ref: K,
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),
229
+ class: V({
230
+ "fm-text-field--input fm-typo-en-body-lg-400": !0,
231
+ "text-fm-color-typo-primary": !A.value,
232
+ "text-fm-color-typo-disabled": A.value
233
+ })
234
+ }, null, 34)), [
235
+ [ae, c.value]
236
+ ])
237
+ ]),
238
+ e.separator ? (f(), y("div", _e, g(e.separator), 1)) : W("", !0),
239
+ a("div", {
240
+ class: V([e.disabled ? "text-fm-color-typo-disabled" : "text-fm-color-typo-secondary"])
241
+ }, [
242
+ h(w, { "z-index": 51 }, {
243
+ content: M(() => [
244
+ ue(g(U.value), 1)
245
+ ]),
246
+ default: M(() => [
247
+ e.disableUnit ? (f(), y("div", Pe, g(U.value), 1)) : (f(), q(p, {
248
+ key: 1,
249
+ onMenuChanged: t[3] || (t[3] = (m) => L.value = m),
250
+ "z-index": 500,
251
+ placement: e.placement,
252
+ disabled: e.disabled
253
+ }, {
254
+ "menu-button": M(() => [
255
+ a("div", Ie, [
256
+ a("div", ke, g(U.value), 1),
257
+ h(r, { name: "keyboard_arrow_down" })
258
+ ])
259
+ ]),
260
+ default: M(() => [
261
+ a("div", Re, [
262
+ (f(!0), y(re, null, me(X.value, (m) => (f(), q(i, {
263
+ key: m.value ?? void 0,
264
+ label: m.label,
265
+ "model-value": m.value == C.value,
266
+ onClick: (_) => C.value = m.value
267
+ }, null, 8, ["label", "model-value", "onClick"]))), 128))
268
+ ])
269
+ ]),
270
+ _: 1
271
+ }, 8, ["placement", "disabled"]))
272
+ ]),
273
+ _: 1
274
+ })
275
+ ], 2),
276
+ e.stepper ? (f(), y("div", De, [
277
+ a("div", {
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",
279
+ onClick: te
280
+ }, [
281
+ a("div", Be, [
282
+ h(r, {
283
+ name: "expand_less",
284
+ size: "md"
285
+ })
286
+ ])
287
+ ]),
288
+ a("div", {
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",
290
+ onClick: ne
291
+ }, [
292
+ a("div", Ce, [
293
+ h(r, {
294
+ name: "expand_more",
295
+ size: "md"
296
+ })
297
+ ])
298
+ ])
299
+ ])) : W("", !0)
300
+ ]),
301
+ $(e.$slots, "append")
302
+ ])
303
+ ]),
304
+ _: 3
305
+ }, 8, ["focused"])
306
+ ]),
307
+ h(S, {
308
+ class: "flex-1",
309
+ "model-value": { modelValue: o.value, amountAsString: String(c.value) },
310
+ info: e.labelInfo,
311
+ rules: ee.value,
312
+ "helper-text": e.helperText,
313
+ "helper-state": e.helperState
314
+ }, null, 8, ["model-value", "info", "rules", "helper-text", "helper-state"])
315
+ ]);
316
+ };
317
+ }
318
+ });
319
+ export {
320
+ Ve as F,
321
+ Oe as _,
322
+ je as a,
323
+ Le as b,
324
+ H as c,
325
+ G as d
326
+ };
@@ -0,0 +1,51 @@
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-DlnN8IP3.js";
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 = {
5
+ class: "flex-0 py-8 px-16",
6
+ style: { "flex-basis": "120px" }
7
+ }, k = { class: "flex-1 py-8 px-16" }, B = {
8
+ key: 0,
9
+ class: "flex-0 py-8 px-16",
10
+ style: { "flex-basis": "120px" }
11
+ }, I = {
12
+ key: 1,
13
+ class: "flex-0 py-8 px-16",
14
+ style: { "flex-basis": "120px" }
15
+ }, A = /* @__PURE__ */ p({
16
+ __name: "IngredientBindedItem",
17
+ props: {
18
+ name: {},
19
+ bindings: {}
20
+ },
21
+ setup($) {
22
+ const { t: m } = _();
23
+ function c(e, i) {
24
+ var t;
25
+ if (e.measurement) {
26
+ const u = y(e.amount, e.measurement.conversion);
27
+ return `${a(u, !1)} ${(t = e.measurement) == null ? void 0 : t.abbrev}`;
28
+ }
29
+ return `${a(e.amount, !1)} ${i.abbrev}`;
30
+ }
31
+ function f(e) {
32
+ return e.unit !== void 0;
33
+ }
34
+ return (e, i) => (s(), n("div", v, [
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
+ ]),
39
+ (s(!0), n(d, null, x(e.bindings, (t) => (s(), n("div", {
40
+ key: t.id,
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
+ }, [
43
+ r("div", k, o(t.name), 1),
44
+ f(t) ? (s(), n("div", B, o(c(t, t.unit)), 1)) : (s(), n("div", I, o(l(a)(t.amount, !1)), 1))
45
+ ]))), 128))
46
+ ]));
47
+ }
48
+ });
49
+ export {
50
+ A as _
51
+ };