@feedmepos/mf-inventory-portal 1.0.36-dev.7 → 1.0.37-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.
- package/dist/{App-Cw7dAyRr.js → App-DomXC0uh.js} +46 -47
- package/dist/{ApprovalView-uzxVamAD.js → ApprovalView-DnINEwhh.js} +20 -20
- package/dist/{BindingsDialog-CjAyz7qd.js → BindingsDialog-MstJl2hJ.js} +10 -10
- package/dist/{BindingsPicker-VWQEClDc.js → BindingsPicker-BCgoeZK5.js} +1 -1
- package/dist/{BindingsTable-D_AidNg-.js → BindingsTable-knJs1DaE.js} +4 -4
- package/dist/{ClosingDraftView-DnPQE4xl.js → ClosingDraftView-Cg4siKrJ.js} +27 -27
- package/dist/{ClosingTemplateView-BzeUoP0S.js → ClosingTemplateView-D7nxxW1T.js} +2 -2
- package/dist/{DeliveryOrderPrintPreview-CQBfbvjK.js → DeliveryOrderPrintPreview-DUqWxzpS.js} +4 -4
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-C5iYx065.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DMeIIyKI.js} +11 -11
- package/dist/{FmMultiselectDialog-DLZju68a.js → FmMultiselectDialog-H6rOzolY.js} +1 -1
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-elcx6AO6.js → FmUnitInput.vue_vue_type_script_setup_true_lang-BAk4KHnz.js} +31 -31
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-DMmGsyfI.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-SxPkPzU1.js} +1 -1
- package/dist/{IngredientGroupView-bFYU22r_.js → IngredientGroupView-CAA69KE_.js} +21 -21
- package/dist/{IngredientsView-BrfeKO6V.js → IngredientsView-BYhDmhQb.js} +42 -43
- package/dist/IntegrationView-CGBFyLWN.js +3303 -0
- package/dist/{InventoryBindingForm-DrNO6vLb.js → InventoryBindingForm-X-CFcWEY.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-DU_Nt6VM.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-CwV5nKPo.js} +18 -18
- package/dist/{InventoryBindingSummary-BztWC0Gi.js → InventoryBindingSummary-Cch1pODC.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-OvRfk02N.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-Uc6h5Apn.js} +4 -4
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-BsbrYUky.js → PremiumBadge.vue_vue_type_script_setup_true_lang-BcWa_Dww.js} +10 -10
- package/dist/{PublishView-BwmvDibM.js → PublishView-DCAdzucX.js} +19 -19
- package/dist/{PurchaseOrderPrintPreview-DRo0ctOc.js → PurchaseOrderPrintPreview-IDiFQ15P.js} +12 -12
- package/dist/{ReceiveRequestView-yb4E_Dg6.js → ReceiveRequestView-7eslFHYc.js} +106 -107
- package/dist/{RecipeView-Dyf9kDoR.js → RecipeView-DOLJ5Gsx.js} +38 -39
- package/dist/{StockView-Cg-KD9qT.js → StockView-vCgmnyKT.js} +68 -69
- package/dist/{SupplierView-BtVTg_Ht.js → SupplierView-B6xdSB6T.js} +11 -12
- package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-lNmQ3zTi.js → TransferDetails.vue_vue_type_script_setup_true_lang-DrfHulTL.js} +105 -106
- package/dist/{TransferTemplateView-AUp2tI1x.js → TransferTemplateView-g1V3JX-5.js} +143 -144
- package/dist/{UnitView-BgbQjCfN.js → UnitView-BD28XnQL.js} +19 -19
- package/dist/{WarehouseView-BedfDS6s.js → WarehouseView-Cjgl43Xz.js} +14 -14
- package/dist/api/netsuite.d.ts +2 -0
- package/dist/app-dN4odAZ8.js +124833 -0
- package/dist/app.js +6 -6
- package/dist/{decimal-uKQOh7Qw.js → decimal-Blq-Ws2M.js} +1 -1
- package/dist/{format-unit-display-EMi6Weg0.js → format-unit-display-CzANmeBd.js} +13 -13
- package/dist/{index-B4jwhkHY.js → index-61_R9xfw.js} +3 -4
- package/dist/{index-BN_lVBL8.js → index-B8dsKHa4.js} +1 -1
- package/dist/{stock-SaEl13YM.js → stock-D7E6dj7b.js} +1 -1
- package/dist/stores/feature.d.ts +2 -0
- package/dist/stores/integration/netsuite.d.ts +1 -0
- package/dist/{supplier-hdrIxTLp.js → supplier-UeD3tjJh.js} +25 -26
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-ingredient-select-dialog-B7XYGX1J.js → use-ingredient-select-dialog-CydPG1Ol.js} +1 -1
- package/dist/{use-inventory-binding-dialog-t7XQb2UV.js → use-inventory-binding-dialog-DzRlrnI6.js} +1 -1
- package/dist/views/integration/components/netsuite/InventoryTransferOutTable.vue.d.ts +2 -0
- package/dist/{vue-i18n-DBsdCMy_.js → vue-i18n-D64xeCoR.js} +285 -285
- package/package.json +1 -1
- package/dist/IntegrationView-KlnDvvRE.js +0 -6531
- package/dist/app-nDgEuY-Q.js +0 -102338
- package/dist/feature-_ggdK-7_.js +0 -19100
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { u as z } from "./supplier-
|
|
3
|
-
import { P as L } from "./format-unit-display-
|
|
4
|
-
import { computed as f, defineComponent as j, mergeModels as q, useModel as x, ref as W, resolveComponent as
|
|
1
|
+
import { j as C, t as R, av as w, u as B, az as E, aL as D, aM as H, aN as U } from "./app-dN4odAZ8.js";
|
|
2
|
+
import { u as z } from "./supplier-UeD3tjJh.js";
|
|
3
|
+
import { P as L } from "./format-unit-display-CzANmeBd.js";
|
|
4
|
+
import { computed as f, defineComponent as j, mergeModels as q, useModel as x, ref as W, resolveComponent as M, openBlock as T, createElementBlock as O, normalizeStyle as $, createElementVNode as N, createVNode as J, withCtx as K, createBlock as V, createCommentVNode as A, Fragment as Q, renderList as X, unref as g } from "vue";
|
|
5
5
|
function Y(t, a, l) {
|
|
6
6
|
var s;
|
|
7
7
|
if (!!a.measurement === !!l && ((s = a.measurement) == null ? void 0 : s.id) === l)
|
|
@@ -169,7 +169,7 @@ const Z = { class: "overflow-y-auto h-full pb-8" }, le = /* @__PURE__ */ j({
|
|
|
169
169
|
() => new H(a.items, ["label", "sublabel"], a.options)
|
|
170
170
|
), i = f(() => u.value.search(l.value)), n = W();
|
|
171
171
|
return console.log({ stickyRef: n }), (s, p) => {
|
|
172
|
-
const v =
|
|
172
|
+
const v = M("FmButton"), b = M("FmTextField"), h = M("FmMenuItem");
|
|
173
173
|
return T(), O("div", {
|
|
174
174
|
class: "relative",
|
|
175
175
|
style: $({ width: s.width })
|
|
@@ -185,7 +185,7 @@ const Z = { class: "overflow-y-auto h-full pb-8" }, le = /* @__PURE__ */ j({
|
|
|
185
185
|
placeholder: "Filter options"
|
|
186
186
|
}, {
|
|
187
187
|
append: K(() => [
|
|
188
|
-
l.value ? (T(),
|
|
188
|
+
l.value ? (T(), V(v, {
|
|
189
189
|
key: 0,
|
|
190
190
|
variant: "tertiary",
|
|
191
191
|
"prepend-icon": "close",
|
|
@@ -196,18 +196,18 @@ const Z = { class: "overflow-y-auto h-full pb-8" }, le = /* @__PURE__ */ j({
|
|
|
196
196
|
}, 8, ["modelValue"])
|
|
197
197
|
], 512),
|
|
198
198
|
N("div", Z, [
|
|
199
|
-
(T(!0), O(Q, null, X(i.value, (c, P) => (T(),
|
|
199
|
+
(T(!0), O(Q, null, X(i.value, (c, P) => (T(), V(h, {
|
|
200
200
|
key: P,
|
|
201
201
|
label: c.label,
|
|
202
202
|
sublabel: c.sublabel,
|
|
203
|
-
"model-value":
|
|
204
|
-
onClick: () => s.handleItemChange(
|
|
203
|
+
"model-value": g(U)(s.modelValue, c.value),
|
|
204
|
+
onClick: () => s.handleItemChange(g(U)(s.modelValue, c.value), c),
|
|
205
205
|
onVnodeMounted: (_) => {
|
|
206
206
|
var o, e;
|
|
207
|
-
return
|
|
207
|
+
return g(U)(s.modelValue, c.value) && ((o = _.el) == null || o.scrollIntoView({ behavior: "instant", block: "end" }), (e = _.el) == null || e.scrollIntoView({ behavior: "smooth", block: "center" })), void 0;
|
|
208
208
|
}
|
|
209
209
|
}, null, 8, ["label", "sublabel", "model-value", "onClick", "onVnodeMounted"]))), 128)),
|
|
210
|
-
i.value.length ? A("", !0) : (T(),
|
|
210
|
+
i.value.length ? A("", !0) : (T(), V(h, {
|
|
211
211
|
key: 0,
|
|
212
212
|
disabled: "",
|
|
213
213
|
label: "No options available"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineStore as p } from "pinia";
|
|
2
2
|
import { useDialog as y } from "@feedmepos/ui-library";
|
|
3
3
|
import { useI18n as v } from "@feedmepos/mf-common";
|
|
4
|
-
import {
|
|
4
|
+
import { a2 as a } from "./app-dN4odAZ8.js";
|
|
5
5
|
import { h as S } from "vue";
|
|
6
6
|
const w = p("inventoryMultiSelectDialog", () => {
|
|
7
7
|
const l = y(), { t: n } = v();
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { defineComponent as ie, mergeModels as
|
|
2
|
-
import {
|
|
1
|
+
import { defineComponent as ie, mergeModels as W, useModel as ae, computed as v, ref as B, watch as E, onBeforeUnmount as le, inject as ue, resolveComponent as b, openBlock as d, createElementBlock as y, createElementVNode as u, createVNode as h, withCtx as F, renderSlot as G, normalizeClass as L, toDisplayString as _, withDirectives as re, vModelText as me, createCommentVNode as I, createTextVNode as ce, createBlock as U, Fragment as de, renderList as pe } from "vue";
|
|
2
|
+
import { Q as D, I as R, Y as O, T as fe, j as M, aJ as ve, t as be, b2 as ye, P as he, ap as Me, aH as ge, aG as xe } from "./app-dN4odAZ8.js";
|
|
3
3
|
import "@feedmepos/ui-library";
|
|
4
|
-
function
|
|
4
|
+
function H() {
|
|
5
5
|
return {
|
|
6
6
|
amount: D.reset()
|
|
7
7
|
};
|
|
8
8
|
}
|
|
9
|
-
function
|
|
9
|
+
function Q() {
|
|
10
10
|
return function(f) {
|
|
11
11
|
return R()(f.amountAsString);
|
|
12
12
|
};
|
|
@@ -21,12 +21,12 @@ function qe(l) {
|
|
|
21
21
|
return R()(t.amountAsString) !== !0 ? !0 : +t.amountAsString > l ? `Must be at most ${l}` : !0;
|
|
22
22
|
};
|
|
23
23
|
}
|
|
24
|
-
function
|
|
24
|
+
function J(l, f = !1) {
|
|
25
25
|
return function(c) {
|
|
26
|
-
const s =
|
|
26
|
+
const s = Q()(c);
|
|
27
27
|
if (s != !0)
|
|
28
28
|
return f ? s : !0;
|
|
29
|
-
const A = typeof l == "number" ? l :
|
|
29
|
+
const A = typeof l == "number" ? l : O(l, c.modelValue.measurement);
|
|
30
30
|
return fe(+c.amountAsString).precision > A ? `Cannot exceed precision more than ${M({
|
|
31
31
|
amount: 1,
|
|
32
32
|
precision: A
|
|
@@ -54,9 +54,9 @@ const Fe = { class: "flex flex-col" }, _e = { class: "flex flex-col" }, Ae = { c
|
|
|
54
54
|
}, Te = {
|
|
55
55
|
class: "flex items-center",
|
|
56
56
|
style: { "pointer-events": "none" }
|
|
57
|
-
},
|
|
57
|
+
}, We = /* @__PURE__ */ ie({
|
|
58
58
|
__name: "FmUnitInput",
|
|
59
|
-
props: /* @__PURE__ */
|
|
59
|
+
props: /* @__PURE__ */ W({
|
|
60
60
|
modelValue: {},
|
|
61
61
|
unit: {},
|
|
62
62
|
rules: {},
|
|
@@ -103,18 +103,18 @@ const Fe = { class: "flex flex-col" }, _e = { class: "flex flex-col" }, Ae = { c
|
|
|
103
103
|
modelValue: {},
|
|
104
104
|
modelModifiers: {}
|
|
105
105
|
}),
|
|
106
|
-
emits: /* @__PURE__ */
|
|
106
|
+
emits: /* @__PURE__ */ W(["update:amount", "update:measurement"], ["update:modelValue"]),
|
|
107
107
|
setup(l, { emit: f }) {
|
|
108
108
|
const t = l, c = f, s = ae(l, "modelValue"), A = R(), w = v(() => {
|
|
109
109
|
var n;
|
|
110
|
-
return
|
|
110
|
+
return O(t.unit, (n = s.value) == null ? void 0 : n.measurement);
|
|
111
111
|
}), p = B((() => {
|
|
112
112
|
var o;
|
|
113
113
|
const e = ((o = s.value) == null ? void 0 : o.amount) ?? D.reset(), n = ge(e), i = t.formatMinimumPrecision ?? n.precision, a = xe(n, i);
|
|
114
114
|
return M(a);
|
|
115
115
|
})());
|
|
116
116
|
let x = null;
|
|
117
|
-
|
|
117
|
+
E(p, (e) => {
|
|
118
118
|
x && clearTimeout(x), x = setTimeout(() => {
|
|
119
119
|
var r;
|
|
120
120
|
const n = A(e), i = t.precision ?? w.value, o = typeof t.formatMinimumPrecision == "number" && t.formatMinimumPrecision > i ? t.formatMinimumPrecision : i;
|
|
@@ -130,7 +130,7 @@ const Fe = { class: "flex flex-col" }, _e = { class: "flex flex-col" }, Ae = { c
|
|
|
130
130
|
}), le(() => {
|
|
131
131
|
x && clearTimeout(x);
|
|
132
132
|
});
|
|
133
|
-
const
|
|
133
|
+
const Z = Symbol.for("fm:form-state"), C = ue(Z, null), P = v(() => t.disabled ?? (C == null ? void 0 : C.getDisabled()) ?? !1), K = B(), S = B(!1), $ = B(!1), X = v(() => S.value || $.value), ee = v(() => {
|
|
134
134
|
var a;
|
|
135
135
|
const e = t.unit.measurements.filter((o) => !o.name.toLocaleLowerCase().includes("inactive")).filter((o) => o.abbrev !== t.unit.abbrev || +M(o.conversion) != 1), n = ye.groupBy(
|
|
136
136
|
e,
|
|
@@ -156,27 +156,27 @@ const Fe = { class: "flex flex-col" }, _e = { class: "flex flex-col" }, Ae = { c
|
|
|
156
156
|
set(e) {
|
|
157
157
|
if (e == null)
|
|
158
158
|
s.value = {
|
|
159
|
-
...s.value ??
|
|
159
|
+
...s.value ?? H(),
|
|
160
160
|
measurement: null
|
|
161
161
|
}, c("update:measurement", null);
|
|
162
162
|
else {
|
|
163
163
|
const n = t.unit.measurements.find((i) => i.id === e) ?? null;
|
|
164
164
|
s.value = {
|
|
165
|
-
...s.value ??
|
|
165
|
+
...s.value ?? H(),
|
|
166
166
|
measurement: n
|
|
167
167
|
}, c("update:measurement", n);
|
|
168
168
|
}
|
|
169
169
|
}
|
|
170
170
|
});
|
|
171
|
-
|
|
171
|
+
E(N, (e, n) => {
|
|
172
172
|
var m;
|
|
173
173
|
if (!t.convertAmountOnChangeUnit)
|
|
174
174
|
return;
|
|
175
|
-
const i = ((m = s.value) == null ? void 0 : m.amount) ?? D.reset(), a = t.unit.measurements.find((k) => k.id === n) ?? null, o = t.unit.measurements.find((k) => k.id === e) ?? null, r = a ? he(i, a.conversion) : i, g = o ? Me(r, o.conversion) : r, T =
|
|
175
|
+
const i = ((m = s.value) == null ? void 0 : m.amount) ?? D.reset(), a = t.unit.measurements.find((k) => k.id === n) ?? null, o = t.unit.measurements.find((k) => k.id === e) ?? null, r = a ? he(i, a.conversion) : i, g = o ? Me(r, o.conversion) : r, T = O(t.unit, o), j = D.convertPrecision({
|
|
176
176
|
value: g,
|
|
177
177
|
precision: T
|
|
178
178
|
});
|
|
179
|
-
p.value = M(
|
|
179
|
+
p.value = M(j);
|
|
180
180
|
});
|
|
181
181
|
const q = v(() => {
|
|
182
182
|
var e;
|
|
@@ -192,8 +192,8 @@ const Fe = { class: "flex flex-col" }, _e = { class: "flex flex-col" }, Ae = { c
|
|
|
192
192
|
)) ?? [];
|
|
193
193
|
}
|
|
194
194
|
), ne = v(() => [...t.applyDefaultRules ? [
|
|
195
|
-
|
|
196
|
-
typeof t.precision == "number" ?
|
|
195
|
+
Q(),
|
|
196
|
+
typeof t.precision == "number" ? J(t.precision) : J(t.unit)
|
|
197
197
|
] : [], ...te.value]);
|
|
198
198
|
function z(e) {
|
|
199
199
|
const n = t.precision ?? w.value, a = typeof t.formatMinimumPrecision == "number" && t.formatMinimumPrecision > n ? t.formatMinimumPrecision : n, o = e.toFixed(a), r = o.includes(".") ? o.replace(/0+$/, "") : o;
|
|
@@ -212,7 +212,7 @@ const Fe = { class: "flex flex-col" }, _e = { class: "flex flex-col" }, Ae = { c
|
|
|
212
212
|
p.value = z(e);
|
|
213
213
|
}
|
|
214
214
|
return (e, n) => {
|
|
215
|
-
const i = b("FmLabel"), a = b("FmIcon"), o = b("FmMenuItem"), r = b("FmMenu"), g = b("FmTooltip"), T = b("FmField"),
|
|
215
|
+
const i = b("FmLabel"), a = b("FmIcon"), o = b("FmMenuItem"), r = b("FmMenu"), g = b("FmTooltip"), T = b("FmField"), j = b("FmFormGroup");
|
|
216
216
|
return d(), y("div", Fe, [
|
|
217
217
|
u("div", _e, [
|
|
218
218
|
u("div", Ae, [
|
|
@@ -223,15 +223,15 @@ const Fe = { class: "flex flex-col" }, _e = { class: "flex flex-col" }, Ae = { c
|
|
|
223
223
|
optional: e.labelMark === "optional"
|
|
224
224
|
}, null, 8, ["label", "disabled", "required", "optional"])
|
|
225
225
|
]),
|
|
226
|
-
h(T, { focused:
|
|
226
|
+
h(T, { focused: X.value }, {
|
|
227
227
|
default: F(() => [
|
|
228
228
|
u("div", Pe, [
|
|
229
|
-
|
|
229
|
+
G(e.$slots, "prepend"),
|
|
230
230
|
u("div", ke, [
|
|
231
231
|
u("div", Be, [
|
|
232
232
|
e.stepperOnly ? (d(), y("span", {
|
|
233
233
|
key: 0,
|
|
234
|
-
class:
|
|
234
|
+
class: L({
|
|
235
235
|
"fm-text-field--input fm-typo-en-body-lg-400": !0,
|
|
236
236
|
"text-fm-color-typo-primary": !P.value,
|
|
237
237
|
"text-fm-color-typo-disabled": P.value
|
|
@@ -244,7 +244,7 @@ const Fe = { class: "flex flex-col" }, _e = { class: "flex flex-col" }, Ae = { c
|
|
|
244
244
|
onFocus: n[0] || (n[0] = () => S.value = !0),
|
|
245
245
|
onBlur: n[1] || (n[1] = () => S.value = !1),
|
|
246
246
|
"onUpdate:modelValue": n[2] || (n[2] = (m) => p.value = m),
|
|
247
|
-
class:
|
|
247
|
+
class: L({
|
|
248
248
|
"fm-text-field--input fm-typo-en-body-lg-400": !0,
|
|
249
249
|
"text-fm-color-typo-primary": !P.value,
|
|
250
250
|
"text-fm-color-typo-disabled": P.value
|
|
@@ -255,7 +255,7 @@ const Fe = { class: "flex flex-col" }, _e = { class: "flex flex-col" }, Ae = { c
|
|
|
255
255
|
]),
|
|
256
256
|
e.separator ? (d(), y("div", Ie, _(e.separator), 1)) : I("", !0),
|
|
257
257
|
u("div", {
|
|
258
|
-
class:
|
|
258
|
+
class: L([e.disabled ? "text-fm-color-typo-disabled" : "text-fm-color-typo-secondary"])
|
|
259
259
|
}, [
|
|
260
260
|
h(g, { "z-index": 51 }, {
|
|
261
261
|
content: F(() => [
|
|
@@ -329,13 +329,13 @@ const Fe = { class: "flex flex-col" }, _e = { class: "flex flex-col" }, Ae = { c
|
|
|
329
329
|
])
|
|
330
330
|
])) : I("", !0)
|
|
331
331
|
]),
|
|
332
|
-
|
|
332
|
+
G(e.$slots, "append")
|
|
333
333
|
])
|
|
334
334
|
]),
|
|
335
335
|
_: 3
|
|
336
336
|
}, 8, ["focused"])
|
|
337
337
|
]),
|
|
338
|
-
h(
|
|
338
|
+
h(j, {
|
|
339
339
|
class: "flex-1",
|
|
340
340
|
"model-value": { modelValue: s.value, amountAsString: String(p.value) },
|
|
341
341
|
info: e.labelInfo,
|
|
@@ -349,9 +349,9 @@ const Fe = { class: "flex flex-col" }, _e = { class: "flex flex-col" }, Ae = { c
|
|
|
349
349
|
});
|
|
350
350
|
export {
|
|
351
351
|
$e as F,
|
|
352
|
-
|
|
352
|
+
We as _,
|
|
353
353
|
qe as a,
|
|
354
354
|
ze as b,
|
|
355
|
-
|
|
356
|
-
|
|
355
|
+
Q as c,
|
|
356
|
+
J as d
|
|
357
357
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
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 { j as a, P as y } from "./app-dN4odAZ8.js";
|
|
3
3
|
import { useI18n as _ } from "@feedmepos/mf-common";
|
|
4
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 = {
|
|
5
5
|
class: "flex-0 py-8 px-16",
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { ref as A, computed as F, h as C, defineComponent as j, watch as re, resolveComponent as R, openBlock as G, createElementBlock as U, createVNode as b, unref as l, createElementVNode as c, toDisplayString as $, createBlock as M, withCtx as T, Fragment as pe, renderList as ve, createTextVNode as ye, createCommentVNode as se, isRef as ge, normalizeClass as _e, normalizeStyle as be, createSlots as ke, Teleport as xe, normalizeProps as he, guardReactiveProps as we } from "vue";
|
|
2
|
-
import { a as
|
|
3
|
-
import { useDialog as Me, useSnackbar as
|
|
4
|
-
import { useI18n as P, useCoreStore as
|
|
2
|
+
import { a as z, e as S, f as L, h as Re, D as oe, i as K, I as Ie, A as Se, U as Ge, K as ue, L as Fe, N as Ve, m as de, O as Ce, q as ae, u as De, B as Ae, _ as $e, C as Te, E as Ee, G as le } from "./app-dN4odAZ8.js";
|
|
3
|
+
import { useDialog as Me, useSnackbar as Y, components as B, useProxiedModel as Be, useBreakpoints as Ue } from "@feedmepos/ui-library";
|
|
4
|
+
import { useI18n as P, useCoreStore as Le } from "@feedmepos/mf-common";
|
|
5
5
|
import { defineStore as ce, storeToRefs as ie } from "pinia";
|
|
6
6
|
import "./array-Ca8T3f_G.js";
|
|
7
|
-
import { u as
|
|
7
|
+
import { u as ze } from "./FmMultiselectDialog-H6rOzolY.js";
|
|
8
8
|
import { r as me } from "./random-CSbEbElR.js";
|
|
9
9
|
import { u as Pe, R as Ne } from "./usePromise-CbVUCxhj.js";
|
|
10
10
|
const H = ce(
|
|
11
11
|
"ingredientGroupactions",
|
|
12
12
|
function() {
|
|
13
|
-
const _ = Me(), f =
|
|
13
|
+
const _ = Me(), f = Y(), k = z(), { t: i } = P(), v = A();
|
|
14
14
|
function e() {
|
|
15
15
|
const u = {
|
|
16
16
|
modelValue: {},
|
|
@@ -24,7 +24,7 @@ const H = ce(
|
|
|
24
24
|
}
|
|
25
25
|
async function a(u) {
|
|
26
26
|
const m = {
|
|
27
|
-
modelValue:
|
|
27
|
+
modelValue: L(u),
|
|
28
28
|
mode: S.UPDATE,
|
|
29
29
|
show: !0,
|
|
30
30
|
"onUpdate:show"(r) {
|
|
@@ -83,7 +83,7 @@ const H = ce(
|
|
|
83
83
|
), Oe = ce(
|
|
84
84
|
"ingredientGroupTable",
|
|
85
85
|
function() {
|
|
86
|
-
const _ = A(!1), f =
|
|
86
|
+
const _ = A(!1), f = Y(), k = z(), i = H();
|
|
87
87
|
async function v() {
|
|
88
88
|
_.value = !0;
|
|
89
89
|
try {
|
|
@@ -99,7 +99,7 @@ const H = ce(
|
|
|
99
99
|
}
|
|
100
100
|
}
|
|
101
101
|
function e(t, n) {
|
|
102
|
-
switch (n =
|
|
102
|
+
switch (n = L(n), t) {
|
|
103
103
|
case K.Edit:
|
|
104
104
|
return i.updateIngredientGroup(n);
|
|
105
105
|
case K.Delete:
|
|
@@ -166,7 +166,7 @@ function qe(o) {
|
|
|
166
166
|
};
|
|
167
167
|
}
|
|
168
168
|
function fe(o) {
|
|
169
|
-
const _ =
|
|
169
|
+
const _ = ze(), f = z(), k = F(() => [
|
|
170
170
|
{
|
|
171
171
|
id: "delete",
|
|
172
172
|
header: "",
|
|
@@ -397,14 +397,14 @@ function fe(o) {
|
|
|
397
397
|
}
|
|
398
398
|
};
|
|
399
399
|
}
|
|
400
|
-
const Ke = { class: "flex flex-col gap-16" }, je = { class: "flex flex-col" }, He = { class: "flex flex-col gap-4" },
|
|
400
|
+
const Ke = { class: "flex flex-col gap-16" }, je = { class: "flex flex-col" }, He = { class: "flex flex-col gap-4" }, Ye = { class: "flex flex-col gap-16" }, Je = { class: "flex flex-col" }, Qe = { class: "flex flex-col gap-4" }, We = { class: "flex-1 fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Xe = /* @__PURE__ */ j({
|
|
401
401
|
__name: "IngredientGroupRuleField",
|
|
402
402
|
props: {
|
|
403
403
|
disabled: { type: Boolean },
|
|
404
404
|
modelValue: {}
|
|
405
405
|
},
|
|
406
406
|
setup(o) {
|
|
407
|
-
const _ = o, { t: f } = P(), k =
|
|
407
|
+
const _ = o, { t: f } = P(), k = Le(), i = F(() => {
|
|
408
408
|
var g;
|
|
409
409
|
const n = /* @__PURE__ */ new Map(), s = k.restaurants.value.map((u) => u.customAttributes ?? {});
|
|
410
410
|
for (const u of s)
|
|
@@ -481,8 +481,8 @@ const Ke = { class: "flex flex-col gap-16" }, je = { class: "flex flex-col" }, H
|
|
|
481
481
|
]
|
|
482
482
|
}, null, 8, ["model-value", "rules"])
|
|
483
483
|
]),
|
|
484
|
-
c("div",
|
|
485
|
-
c("div",
|
|
484
|
+
c("div", Ye, [
|
|
485
|
+
c("div", Je, [
|
|
486
486
|
c("div", Qe, [
|
|
487
487
|
c("div", null, [
|
|
488
488
|
b(u, {
|
|
@@ -718,9 +718,9 @@ const Ke = { class: "flex flex-col gap-16" }, je = { class: "flex flex-col" }, H
|
|
|
718
718
|
},
|
|
719
719
|
emits: ["update:show"],
|
|
720
720
|
setup(o) {
|
|
721
|
-
const _ = o, f =
|
|
721
|
+
const _ = o, f = z(), k = Pe(() => f.readCachedMenu()), i = F(
|
|
722
722
|
() => k.result.value.state === Ne.success ? k.result.value.data : void 0
|
|
723
|
-
), v =
|
|
723
|
+
), v = Y(), { t: e } = P(), a = Be(_, "show");
|
|
724
724
|
function t() {
|
|
725
725
|
return {
|
|
726
726
|
_id: "",
|
|
@@ -733,7 +733,7 @@ const Ke = { class: "flex flex-col gap-16" }, je = { class: "flex flex-col" }, H
|
|
|
733
733
|
() => _.show,
|
|
734
734
|
(d) => {
|
|
735
735
|
if (!d) return;
|
|
736
|
-
let p =
|
|
736
|
+
let p = L(_.modelValue ?? t());
|
|
737
737
|
p.defaultSkuRefs && (p.defaultSkuRefs = p.defaultSkuRefs.map((h, V) => ({
|
|
738
738
|
...h,
|
|
739
739
|
priority: h.priority ?? V + 1
|
|
@@ -771,7 +771,7 @@ const Ke = { class: "flex flex-col gap-16" }, je = { class: "flex flex-col" }, H
|
|
|
771
771
|
}), m = A(), r = A(!1);
|
|
772
772
|
async function y() {
|
|
773
773
|
r.value = !0;
|
|
774
|
-
const d =
|
|
774
|
+
const d = L(n.value);
|
|
775
775
|
try {
|
|
776
776
|
await f.createSkuGroup(d), a.value = !1, v.open({
|
|
777
777
|
title: e("inventory.common.success"),
|
|
@@ -790,7 +790,7 @@ const Ke = { class: "flex flex-col gap-16" }, je = { class: "flex flex-col" }, H
|
|
|
790
790
|
}
|
|
791
791
|
async function w() {
|
|
792
792
|
r.value = !0;
|
|
793
|
-
const d =
|
|
793
|
+
const d = L(n.value);
|
|
794
794
|
try {
|
|
795
795
|
await f.updateSkuGroup(d), r.value = !1, a.value = !1, v.open({
|
|
796
796
|
title: e("inventory.common.success"),
|
|
@@ -867,7 +867,7 @@ const Ke = { class: "flex flex-col gap-16" }, je = { class: "flex flex-col" }, H
|
|
|
867
867
|
}), kt = { class: "flex flex-col py-8" }, xt = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ht = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, At = /* @__PURE__ */ j({
|
|
868
868
|
__name: "IngredientGroupView",
|
|
869
869
|
setup(o) {
|
|
870
|
-
const _ =
|
|
870
|
+
const _ = z(), f = F(() => _.skuGroups), k = De(), { t: i } = P(), {
|
|
871
871
|
createIngredientGroup: v,
|
|
872
872
|
updateIngredientGroup: e,
|
|
873
873
|
importIngredientGroups: a,
|
|
@@ -931,12 +931,12 @@ const Ke = { class: "flex flex-col gap-16" }, je = { class: "flex flex-col" }, H
|
|
|
931
931
|
onRowClick: l(e)
|
|
932
932
|
}, ke({
|
|
933
933
|
default: T((N) => {
|
|
934
|
-
var
|
|
934
|
+
var J, Q, W, O, X, Z, ee, te, q, ne;
|
|
935
935
|
return [
|
|
936
936
|
c("div", kt, [
|
|
937
937
|
c("div", xt, [
|
|
938
938
|
b(l(le), {
|
|
939
|
-
render: (W = (Q = (
|
|
939
|
+
render: (W = (Q = (J = N.code) == null ? void 0 : J.column) == null ? void 0 : Q.columnDef) == null ? void 0 : W.cell,
|
|
940
940
|
props: (X = (O = N.code) == null ? void 0 : O.getContext) == null ? void 0 : X.call(O)
|
|
941
941
|
}, null, 8, ["render", "props"])
|
|
942
942
|
]),
|