@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.
- package/dist/{App-Cb0DKDZS.js → App-BREfwtck.js} +73 -85
- package/dist/{ApprovalView-Cifc-Y_m.js → ApprovalView-DCzLx24G.js} +27 -24
- package/dist/{BindingsDialog-huZq9ea8.js → BindingsDialog-CUcC8lue.js} +4 -4
- package/dist/{BindingsPicker-fFhc3-J_.js → BindingsPicker-3VOdZBWI.js} +9 -8
- package/dist/{BindingsTable-i3JEZnKw.js → BindingsTable-D5Lt6GOO.js} +22 -18
- package/dist/{ClosingTemplateView-CUfFxnXb.js → ClosingTemplateView-CukthwOo.js} +286 -272
- package/dist/FmDroppableField-8RzKjEdL.js +154 -0
- package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-Dwb3eBLo.js +267 -0
- package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CvtvzIt1.js +436 -0
- package/dist/FmMultiselectDialog-CKBcMDGC.js +415 -0
- 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
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-BtwkTwMB.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-DweLQVwq.js} +5 -5
- package/dist/{IngredientGroupView-DS1OeV_l.js → IngredientGroupView-CkD8x2CP.js} +69 -63
- package/dist/IngredientsView-DuK4YSD6.js +1613 -0
- package/dist/{IntegrationView-BCwOX1nf.js → IntegrationView-BfeV07OO.js} +95 -92
- package/dist/{InventoryBindingForm-BObD8RZu.js → InventoryBindingForm-BsSmth0U.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-YGmtVDLf.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-CMV5e99K.js} +27 -25
- package/dist/{InventoryBindingSummary-D1OHZ8H_.js → InventoryBindingSummary-BHloDawE.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CJSNaaWU.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BjddpTCS.js} +1 -1
- 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
- package/dist/{PurchaseOrderPrintPreview-s-lWuBrs.js → PurchaseOrderPrintPreview-CTdd-RuH.js} +14 -13
- package/dist/ReceiveRequestView-CgWNaYs1.js +4104 -0
- package/dist/{RecipeView-BdmH9QHY.js → RecipeView-CrmDQdc5.js} +85 -79
- package/dist/{StockView-CzIY1FD0.js → StockView-Xb3fQaiD.js} +1446 -1338
- package/dist/{SupplierView-CDdzeK4D.js → SupplierView-CrtIiaz0.js} +787 -2325
- package/dist/TableActionableRow.vue_vue_type_script_setup_true_lang-DlNJ6kRg.js +135 -0
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-C9H41eg7.js +1189 -0
- package/dist/TransferTemplateView-Cc7VRbZ7.js +1262 -0
- package/dist/{UnitView-CAKx1qNs.js → UnitView-C6BgrZ1G.js} +44 -40
- package/dist/{WarehouseView-DRveYDl1.js → WarehouseView-Hhd76ybU.js} +100 -94
- package/dist/_plugin-vue_export-helper-CHgC5LLL.js +9 -0
- package/dist/api/bill.d.ts +2 -2
- package/dist/api/closing.d.ts +0 -1
- package/dist/api/netsuite.d.ts +1 -1
- package/dist/app-CwUHqg7h.js +33462 -0
- package/dist/app.d.ts +0 -56
- package/dist/app.js +2 -2
- package/dist/components/FmMinMaxInputRules.d.ts +1 -4
- package/dist/components/FmMultiselectDialogProps.d.ts +0 -1
- package/dist/components/row-action.enum.d.ts +0 -1
- package/dist/composable/defineDeepModel.d.ts +1 -1
- package/dist/date2-CHNm4ELK.js +117 -0
- package/dist/dayjs.min-FE3dpxHU.js +282 -0
- package/dist/{decimal-Dv59Tc95.js → decimal-rPKr5T-H.js} +1 -1
- package/dist/defineDeepModel-Dc1zZzOi.js +13 -0
- package/dist/{feature-CcnwSkJs.js → feature-z95vJnA1.js} +9 -23
- package/dist/format-time-from-id-CaPj8EHN.js +15 -0
- package/dist/format-unit-display-Bkz5kW6p.js +1198 -0
- package/dist/fuzzy-DXqhGaFi.js +41 -0
- package/dist/index-BMJHz32O.js +22277 -0
- package/dist/index-Be5vGZdr.js +45 -0
- package/dist/index-D2juQPg6.js +10545 -0
- package/dist/netsuite-P0as0Moa.js +194 -0
- package/dist/normalizeArguments-DP7Hrren.js +1552 -0
- package/dist/router/name.d.ts +0 -2
- package/dist/row-action.enum-PMKMRrZR.js +50 -0
- package/dist/rules-BQz4NGht.js +198 -0
- package/dist/stores/feature.d.ts +0 -2
- package/dist/stores/integration/netsuite.d.ts +1 -69
- package/dist/stores/inventory.d.ts +4 -1
- package/dist/style.css +1 -1
- package/dist/{supplier-DElqqxGT.js → supplier-BixmjZyl.js} +15 -15
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-inventory-binding-dialog-CfHThiv9.js → use-inventory-binding-dialog-BRygbm1p.js} +11 -10
- package/dist/use-template-enabled-locations-2-Dd15d-ng.js +86 -0
- package/dist/views/closing-template/composables/use-closing-template-actions.d.ts +192 -24
- package/dist/views/closing-template/composables/use-closing-template-table.d.ts +193 -25
- package/dist/views/receive-request/components/transfer-form/TransferForm.vue.d.ts +34 -34
- package/dist/views/receive-request/components/transfer-form/composables/use-transfer-items.d.ts +0 -1
- package/dist/views/receive-request/composables/use-receive-request-form.d.ts +54 -54
- package/dist/views/receive-request/composables/use-receive-request-table.d.ts +54 -54
- package/dist/views/stock/components/StockRecordCard.vue.d.ts +1 -1
- package/dist/views/stock/components/dialog/AdjustedItemForm.vue.d.ts +2 -2
- package/dist/views/stock/helper/compute-summary-total.d.ts +2 -2
- package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-template-items.d.ts +8 -8
- package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +96 -96
- package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +96 -96
- package/dist/xlsx-k2Rf0NcF.js +24004 -0
- package/dist/xlsx.util-CJxPf7XZ.js +78 -0
- package/package.json +2 -2
- package/dist/ClosingDraftView-C8yh1aar.js +0 -1190
- package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-lcB61e9L.js +0 -282
- package/dist/IngredientsView-1ICj0ozR.js +0 -1657
- package/dist/ReceiveRequestView-BR1NkASK.js +0 -4188
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-9gBm-Qpw.js +0 -1227
- package/dist/TransferTemplateView-BYuUr8m6.js +0 -1264
- package/dist/api/adjustment-template.d.ts +0 -23
- package/dist/api/closing-draft.d.ts +0 -6
- package/dist/app-CutWLf0m.js +0 -84180
- package/dist/format-unit-display-mDGo4-C8.js +0 -1207
- package/dist/index-BRw5keOc.js +0 -12087
- package/dist/stock-Bqhch78I.js +0 -125
- package/dist/views/adjustment-template/import/AdjustmentTemplateImport.vue.d.ts +0 -2
- package/dist/views/adjustment-template/import/AdjustmentTemplateImportItem.vue.d.ts +0 -18
- package/dist/views/adjustment-template/import/export.d.ts +0 -60
- package/dist/views/adjustment-template/wastage-template/WastageTemplateDetails.vue.d.ts +0 -2
- package/dist/views/adjustment-template/wastage-template/WastageTemplateDialog.vue.d.ts +0 -22
- package/dist/views/adjustment-template/wastage-template/WastageTemplatePublish.vue.d.ts +0 -6
- package/dist/views/adjustment-template/wastage-template/WastageTemplateView.vue.d.ts +0 -2
- package/dist/views/adjustment-template/wastage-template/actions.d.ts +0 -1295
- package/dist/views/adjustment-template/wastage-template/form/WastageTemplateForm.vue.d.ts +0 -16
- package/dist/views/adjustment-template/wastage-template/form/WastageTemplateItemTable.vue.d.ts +0 -35
- package/dist/views/adjustment-template/wastage-template/form/useAdjustmentTemplateItems.d.ts +0 -20
- package/dist/views/adjustment-template/wastage-template/props.d.ts +0 -29
- package/dist/views/adjustment-template/wastage-template/table.d.ts +0 -1273
- package/dist/views/closing-draft/ClosingDraftView.vue.d.ts +0 -2
- package/dist/views/closing-draft/components/closing-draft-action/ClosingDraftAction.vue.d.ts +0 -22
- package/dist/views/closing-draft/components/closing-draft-dialog/ClosingDraftDialog.vue.d.ts +0 -621
- package/dist/views/closing-draft/composables/use-closing-draft-actions.d.ts +0 -25
- package/dist/views/closing-draft/composables/use-closing-draft-table.d.ts +0 -3621
- package/dist/views/closing-draft/helpers/draft-status-to-class-name.helper.d.ts +0 -1
- package/dist/views/closing-draft/helpers/export-draft.helper.d.ts +0 -19
- package/dist/views/closing-draft/helpers/get-calculated-total.helper.d.ts +0 -4
- 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
|
|
2
|
-
import {
|
|
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
|
|
15
|
-
return function(
|
|
16
|
-
return k()(
|
|
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
|
|
20
|
-
return function(
|
|
21
|
-
return k()(
|
|
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(
|
|
25
|
-
return function(
|
|
26
|
-
const
|
|
27
|
-
if (
|
|
28
|
-
return d ?
|
|
29
|
-
const F = typeof
|
|
30
|
-
return ce(+
|
|
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(
|
|
37
|
-
const d = de(
|
|
38
|
-
return function(
|
|
39
|
-
return d(
|
|
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
|
|
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" },
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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__ */
|
|
107
|
-
setup(
|
|
108
|
-
const
|
|
109
|
-
var
|
|
110
|
-
return
|
|
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
|
|
113
|
-
const e = ((
|
|
114
|
-
return
|
|
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
|
-
|
|
117
|
-
const
|
|
118
|
-
|
|
119
|
-
...
|
|
120
|
-
amount: pe(+e,
|
|
121
|
-
}),
|
|
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 =
|
|
124
|
-
var
|
|
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: (
|
|
128
|
+
label: (e = n.unit) == null ? void 0 : e.abbrev,
|
|
131
129
|
value: null
|
|
132
130
|
},
|
|
133
|
-
...
|
|
134
|
-
label:
|
|
135
|
-
value:
|
|
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,
|
|
141
|
-
return ((
|
|
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
|
-
|
|
146
|
-
...
|
|
143
|
+
o.value = {
|
|
144
|
+
...o.value ?? E(),
|
|
147
145
|
measurement: null
|
|
148
|
-
},
|
|
146
|
+
}, u("update:measurement", null);
|
|
149
147
|
else {
|
|
150
|
-
const
|
|
151
|
-
|
|
152
|
-
...
|
|
153
|
-
measurement:
|
|
154
|
-
},
|
|
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
|
-
|
|
156
|
+
T(C, (e, t) => {
|
|
159
157
|
var m;
|
|
160
|
-
if (!
|
|
158
|
+
if (!n.convertAmountOnChangeUnit)
|
|
161
159
|
return;
|
|
162
|
-
const
|
|
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 =
|
|
164
|
+
c.value = x(S);
|
|
167
165
|
});
|
|
168
166
|
const U = v(() => {
|
|
169
|
-
var e,
|
|
170
|
-
return ((
|
|
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 =
|
|
175
|
-
(
|
|
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(() => [...
|
|
176
|
+
), ee = v(() => [...n.applyDefaultRules ? [
|
|
179
177
|
H(),
|
|
180
|
-
typeof
|
|
178
|
+
typeof n.precision == "number" ? G(n.precision) : G(n.unit)
|
|
181
179
|
] : [], ...Y.value]);
|
|
182
180
|
function O(e) {
|
|
183
|
-
const
|
|
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 (!
|
|
185
|
+
if (!n.stepper)
|
|
188
186
|
return;
|
|
189
|
-
const e = +c.value + +
|
|
187
|
+
const e = +c.value + +x(n.stepper);
|
|
190
188
|
c.value = O(e);
|
|
191
189
|
}
|
|
192
190
|
function ne() {
|
|
193
|
-
if (!
|
|
191
|
+
if (!n.stepper)
|
|
194
192
|
return;
|
|
195
|
-
const e = +c.value - +
|
|
193
|
+
const e = +c.value - +x(n.stepper);
|
|
196
194
|
c.value = O(e);
|
|
197
195
|
}
|
|
198
|
-
return (e,
|
|
199
|
-
const
|
|
200
|
-
return f(), y("div",
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
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
|
-
|
|
211
|
-
default:
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
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
|
-
},
|
|
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:
|
|
229
|
-
onBlur:
|
|
230
|
-
"onUpdate:modelValue":
|
|
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,
|
|
241
|
-
|
|
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
|
-
|
|
245
|
-
content:
|
|
246
|
-
ue(
|
|
242
|
+
h(w, { "z-index": 51 }, {
|
|
243
|
+
content: M(() => [
|
|
244
|
+
ue(g(U.value), 1)
|
|
247
245
|
]),
|
|
248
|
-
default:
|
|
249
|
-
e.disableUnit ? (f(), y("div", Pe,
|
|
246
|
+
default: M(() => [
|
|
247
|
+
e.disableUnit ? (f(), y("div", Pe, g(U.value), 1)) : (f(), q(p, {
|
|
250
248
|
key: 1,
|
|
251
|
-
onMenuChanged:
|
|
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":
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
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:
|
|
263
|
-
|
|
264
|
-
(f(!0), y(re, null, me(X.value, (m) => (f(),
|
|
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
|
-
|
|
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
|
-
|
|
284
|
-
|
|
281
|
+
a("div", Be, [
|
|
282
|
+
h(r, {
|
|
285
283
|
name: "expand_less",
|
|
286
284
|
size: "md"
|
|
287
285
|
})
|
|
288
286
|
])
|
|
289
287
|
]),
|
|
290
|
-
|
|
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
|
-
|
|
295
|
-
|
|
292
|
+
a("div", Ce, [
|
|
293
|
+
h(r, {
|
|
296
294
|
name: "expand_more",
|
|
297
295
|
size: "md"
|
|
298
296
|
})
|
|
299
297
|
])
|
|
300
298
|
])
|
|
301
|
-
])) :
|
|
299
|
+
])) : W("", !0)
|
|
302
300
|
]),
|
|
303
|
-
|
|
301
|
+
$(e.$slots, "append")
|
|
304
302
|
])
|
|
305
303
|
]),
|
|
306
304
|
_: 3
|
|
307
305
|
}, 8, ["focused"])
|
|
308
306
|
]),
|
|
309
|
-
|
|
307
|
+
h(S, {
|
|
310
308
|
class: "flex-1",
|
|
311
|
-
"model-value": { modelValue:
|
|
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
|
-
|
|
323
|
-
|
|
324
|
-
|
|
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 {
|
|
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" },
|
|
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",
|
|
36
|
-
r("div",
|
|
37
|
-
r("div",
|
|
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,
|