@feedmepos/mf-inventory-portal 0.0.23-dev.31 → 0.0.23-dev.4
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-CEmWJ9lp.js → App-DReDvY0M.js} +73 -85
- package/dist/{ApprovalView-jDll4AVe.js → ApprovalView-BMZlYmRk.js} +27 -24
- package/dist/{BindingsDialog-BC_gRSif.js → BindingsDialog-Y2K4I7H7.js} +4 -4
- package/dist/{BindingsPicker-BJsGoBzM.js → BindingsPicker-DKBq9c37.js} +9 -8
- package/dist/{BindingsTable-DSdwNK_q.js → BindingsTable-45v4SDfp.js} +22 -18
- package/dist/{ClosingTemplateView-BzG16gl5.js → ClosingTemplateView-CKJVYSbj.js} +286 -272
- package/dist/FmDroppableField-8RzKjEdL.js +154 -0
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DW2IOPST.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CMEOp-0r.js} +23 -22
- package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-BhdcqRh-.js +436 -0
- package/dist/FmMultiselectDialog-D7YtdoyJ.js +415 -0
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-DDuZEf_v.js → FmUnitInput.vue_vue_type_script_setup_true_lang-C1DjyjyH.js} +49 -48
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-CiNvnaaE.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-zjvFEF5C.js} +5 -5
- package/dist/{IngredientGroupView-DL8eBhkk.js → IngredientGroupView-BuP-HGeg.js} +69 -63
- package/dist/IngredientsView-DMRN-odY.js +1613 -0
- package/dist/{IntegrationView-BeFT5S24.js → IntegrationView-kYCaKG0o.js} +95 -92
- package/dist/{InventoryBindingForm-DJ3uwq_X.js → InventoryBindingForm-BXHq4h-n.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-DIviTipZ.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-CVxJ_bV3.js} +27 -25
- package/dist/{InventoryBindingSummary-CvB5j9xq.js → InventoryBindingSummary-Bjasfc_v.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CQPdnXEF.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DM0C4raP.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-BdscwUGn.js → PremiumBadge.vue_vue_type_script_setup_true_lang-C3O3JebE.js} +24 -23
- package/dist/{PurchaseOrderPrintPreview-3_6nBajH.js → PurchaseOrderPrintPreview-CmjkfTTS.js} +14 -13
- package/dist/{ReceiveRequestView-B_0UldQ7.js → ReceiveRequestView-aQZJO8sq.js} +1302 -1325
- package/dist/{RecipeView-D9p0Ou_I.js → RecipeView-DXO43tFi.js} +85 -79
- package/dist/{StockView-TIdUgG3O.js → StockView-D9no-mrA.js} +1446 -1338
- package/dist/{SupplierView-B1b9Otcr.js → SupplierView-DAx7E7sR.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-DCA0RUfu.js +1209 -0
- package/dist/TransferTemplateView-CfxdQF1t.js +1261 -0
- package/dist/{UnitView-BrpzJ7D3.js → UnitView-CQPGZ8-r.js} +44 -40
- package/dist/{WarehouseView-CjbdEy8o.js → WarehouseView-jy-RNCgy.js} +100 -94
- package/dist/_plugin-vue_export-helper-CHgC5LLL.js +9 -0
- package/dist/api/closing.d.ts +0 -1
- package/dist/api/netsuite.d.ts +3 -3
- package/dist/app-KnSMkJBV.js +33496 -0
- package/dist/app.d.ts +0 -56
- package/dist/app.js +2 -2
- 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-CIeUqUIc.js +117 -0
- package/dist/dayjs.min-Df5jSnDJ.js +282 -0
- package/dist/{decimal-DHYZglKx.js → decimal-BAc9M88Q.js} +1 -1
- package/dist/defineDeepModel-BfuQAIoM.js +13 -0
- package/dist/{feature-G-NnqKcY.js → feature-dwB4OxRQ.js} +6 -12
- package/dist/format-time-from-id-BbvzyIN6.js +15 -0
- package/dist/{format-unit-display-BWqJsV_R.js → format-unit-display-BBWblJEt.js} +171 -162
- package/dist/fuzzy-B9ryZ9VZ.js +41 -0
- package/dist/index-BN0CY3sZ.js +22277 -0
- package/dist/index-Bj1fJum-.js +45 -0
- package/dist/index-C4yL_7rR.js +10545 -0
- package/dist/netsuite-ByWOS6tI.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-C12nWDD1.js +198 -0
- package/dist/stores/feature.d.ts +0 -1
- package/dist/stores/integration/netsuite.d.ts +2 -70
- package/dist/stores/inventory.d.ts +4 -1
- package/dist/style.css +1 -1
- package/dist/{supplier-DTUUR48O.js → supplier-DJC0UZWv.js} +15 -15
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-inventory-binding-dialog-DvC_i-Ih.js → use-inventory-binding-dialog-PEQbFRvO.js} +11 -10
- package/dist/use-template-enabled-locations-2-k9g5t8tt.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/NetSuiteField.vue.d.ts +0 -2
- package/dist/views/receive-request/components/transfer-form/TransferForm.vue.d.ts +0 -6
- package/dist/views/receive-request/composables/use-receive-request-form.d.ts +0 -9
- package/dist/views/receive-request/composables/use-receive-request-table.d.ts +0 -9
- 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/xlsx-B4XHad7S.js +24004 -0
- package/dist/xlsx.util-BSO4SHJi.js +78 -0
- package/package.json +3 -3
- package/dist/ClosingDraftView-UfWdRXb-.js +0 -1190
- package/dist/IngredientsView-B_HC9fgq.js +0 -1657
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-jUYB4L8Y.js +0 -1275
- package/dist/TransferTemplateView-Dxk5b-2j.js +0 -1264
- package/dist/api/adjustment-template.d.ts +0 -23
- package/dist/api/closing-draft.d.ts +0 -6
- package/dist/app-AcMtTQ07.js +0 -84202
- package/dist/index-Bt8vaUdT.js +0 -12087
- package/dist/stock-VZXyPw2C.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/components/netsuite/NetSuiteInfo.vue.d.ts +0 -12
- package/dist/views/receive-request/components/netsuite/NetSuiteProps.d.ts +0 -13
- package/dist/views/receive-request/components/netsuite/NetSuiteSync.vue.d.ts +0 -12
|
@@ -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-C12nWDD1.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,
|
|
@@ -1,9 +1,15 @@
|
|
|
1
|
-
import { ref as C, computed as
|
|
2
|
-
import { a as J,
|
|
3
|
-
import { useDialog as le, useSnackbar as Z, useProxiedModel as
|
|
1
|
+
import { ref as C, computed as I, defineComponent as Y, resolveComponent as S, openBlock as M, createBlock as O, withCtx as R, createElementVNode as x, createVNode as g, unref as l, createElementBlock as ee, toDisplayString as H, createTextVNode as te, watch as ue, isRef as ce, normalizeClass as de, normalizeStyle as me, createSlots as pe, Teleport as fe, normalizeProps as ve, guardReactiveProps as ge } from "vue";
|
|
2
|
+
import { a as J, c as B, h as oe, u as ye } from "./app-KnSMkJBV.js";
|
|
3
|
+
import { useDialog as le, useSnackbar as Z, useProxiedModel as be, useBreakpoints as _e } from "@feedmepos/ui-library";
|
|
4
|
+
import { F as h, D as ne, R as Q } from "./row-action.enum-PMKMRrZR.js";
|
|
4
5
|
import { useI18n as W } from "@feedmepos/mf-common";
|
|
5
|
-
import { defineStore as ie, storeToRefs as
|
|
6
|
+
import { defineStore as ie, storeToRefs as se } from "pinia";
|
|
7
|
+
import { c as xe, _ as ke, F as ae } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-DlNJ6kRg.js";
|
|
8
|
+
import { u as he, _ as we, a as Se } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-BhdcqRh-.js";
|
|
6
9
|
import "./array-hChJVZLE.js";
|
|
10
|
+
import { d as Fe } from "./defineDeepModel-BfuQAIoM.js";
|
|
11
|
+
import { R as Ie, A as Ce } from "./rules-C12nWDD1.js";
|
|
12
|
+
import { F as re } from "./FmMultiselectDialog-D7YtdoyJ.js";
|
|
7
13
|
const X = ie(
|
|
8
14
|
"ingredientGroupactions",
|
|
9
15
|
function() {
|
|
@@ -64,7 +70,7 @@ const X = ie(
|
|
|
64
70
|
}
|
|
65
71
|
}).onPrimary(() => f(d, a, s));
|
|
66
72
|
}
|
|
67
|
-
function
|
|
73
|
+
function A() {
|
|
68
74
|
}
|
|
69
75
|
function b() {
|
|
70
76
|
}
|
|
@@ -72,12 +78,12 @@ const X = ie(
|
|
|
72
78
|
createIngredientGroup: p,
|
|
73
79
|
updateIngredientGroup: v,
|
|
74
80
|
deleteIngredientGroup: y,
|
|
75
|
-
importIngredientGroups:
|
|
81
|
+
importIngredientGroups: A,
|
|
76
82
|
exportIngredientGroups: b,
|
|
77
83
|
ingredientGroupDialogProps: i
|
|
78
84
|
};
|
|
79
85
|
}
|
|
80
|
-
),
|
|
86
|
+
), Ae = ie(
|
|
81
87
|
"ingredientGroupTable",
|
|
82
88
|
function() {
|
|
83
89
|
const c = C(!1), w = Z(), o = J(), r = X();
|
|
@@ -107,7 +113,7 @@ const X = ie(
|
|
|
107
113
|
);
|
|
108
114
|
}
|
|
109
115
|
}
|
|
110
|
-
const v =
|
|
116
|
+
const v = I(() => [
|
|
111
117
|
{
|
|
112
118
|
accessorKey: "name",
|
|
113
119
|
header: () => "Name"
|
|
@@ -124,8 +130,8 @@ const X = ie(
|
|
|
124
130
|
id: "action",
|
|
125
131
|
header: "",
|
|
126
132
|
cell(f) {
|
|
127
|
-
return
|
|
128
|
-
[
|
|
133
|
+
return xe(
|
|
134
|
+
[ne[Q.Edit], ne[Q.Delete]],
|
|
129
135
|
(y) => {
|
|
130
136
|
p(y, f.row.original);
|
|
131
137
|
}
|
|
@@ -145,7 +151,7 @@ const X = ie(
|
|
|
145
151
|
columnDefs: v
|
|
146
152
|
};
|
|
147
153
|
}
|
|
148
|
-
),
|
|
154
|
+
), De = { class: "flex flex-col gap-16" }, Ge = { class: "flex flex-col gap-8 cursor-pointer" }, Ve = {
|
|
149
155
|
key: 0,
|
|
150
156
|
class: "text-fm-color-typo-primary fm-typo-en-body-lg-400 line-clamp-1 break-all"
|
|
151
157
|
}, Ee = { class: "text-fm-color-typo-secondary" }, Re = {
|
|
@@ -160,7 +166,7 @@ const X = ie(
|
|
|
160
166
|
},
|
|
161
167
|
emits: ["validation-success"],
|
|
162
168
|
setup(U, { expose: c, emit: w }) {
|
|
163
|
-
const o =
|
|
169
|
+
const o = Fe("modelValue"), r = w, i = J(), p = le(), { t: v } = W(), f = C();
|
|
164
170
|
c({
|
|
165
171
|
validateInputs: () => {
|
|
166
172
|
var a;
|
|
@@ -175,8 +181,8 @@ const X = ie(
|
|
|
175
181
|
return (a = f.value) == null ? void 0 : a.resetInputs();
|
|
176
182
|
}
|
|
177
183
|
});
|
|
178
|
-
const y =
|
|
179
|
-
function
|
|
184
|
+
const y = I(() => i.skus.groupBy((a) => a.unit._id));
|
|
185
|
+
function A() {
|
|
180
186
|
var s;
|
|
181
187
|
const a = i.skus.filter((n) => {
|
|
182
188
|
var t;
|
|
@@ -192,7 +198,7 @@ const X = ie(
|
|
|
192
198
|
p.open({
|
|
193
199
|
title: v("inventory.closing.form.items.selectItem"),
|
|
194
200
|
closeButton: !0,
|
|
195
|
-
contentComponent:
|
|
201
|
+
contentComponent: re,
|
|
196
202
|
contentComponentProps: {
|
|
197
203
|
modelValue: [(s = o.skus) == null ? void 0 : s[0]],
|
|
198
204
|
items: a,
|
|
@@ -231,7 +237,7 @@ const X = ie(
|
|
|
231
237
|
p.open({
|
|
232
238
|
title: v("inventory.closing.form.items.selectItem"),
|
|
233
239
|
closeButton: !0,
|
|
234
|
-
contentComponent:
|
|
240
|
+
contentComponent: re,
|
|
235
241
|
contentComponentProps: {
|
|
236
242
|
modelValue: s,
|
|
237
243
|
items: a,
|
|
@@ -249,8 +255,8 @@ const X = ie(
|
|
|
249
255
|
}).onPrimary((n) => {
|
|
250
256
|
var u, _;
|
|
251
257
|
const t = ((u = o.skus) == null ? void 0 : u.slice(1)) ?? [], e = n.map((m) => {
|
|
252
|
-
const
|
|
253
|
-
return
|
|
258
|
+
const D = t.find((G) => (G == null ? void 0 : G._id) === m._id);
|
|
259
|
+
return D || B(m, ["unit"]);
|
|
254
260
|
});
|
|
255
261
|
o.skus = [(_ = o.skus) == null ? void 0 : _[0], ...e];
|
|
256
262
|
});
|
|
@@ -268,21 +274,21 @@ const X = ie(
|
|
|
268
274
|
}
|
|
269
275
|
];
|
|
270
276
|
return (a, s) => {
|
|
271
|
-
const n = S("FmTextField"), t = S("FmLabel"), e = S("FmField"), u = S("FmFormGroup"), _ = S("FmButton"), m = S("FmTable"),
|
|
272
|
-
return M(), O(
|
|
273
|
-
onValidationSuccess: s[5] || (s[5] = (
|
|
277
|
+
const n = S("FmTextField"), t = S("FmLabel"), e = S("FmField"), u = S("FmFormGroup"), _ = S("FmButton"), m = S("FmTable"), D = S("FmForm");
|
|
278
|
+
return M(), O(D, {
|
|
279
|
+
onValidationSuccess: s[5] || (s[5] = (F) => r("validation-success")),
|
|
274
280
|
ref_key: "formRef",
|
|
275
281
|
ref: f,
|
|
276
282
|
class: "flex flex-col gap-32"
|
|
277
283
|
}, {
|
|
278
284
|
default: R(() => {
|
|
279
|
-
var
|
|
285
|
+
var F, G, V, T, L;
|
|
280
286
|
return [
|
|
281
|
-
x("div",
|
|
287
|
+
x("div", De, [
|
|
282
288
|
g(n, {
|
|
283
289
|
label: "Name",
|
|
284
290
|
"label-mark": "required",
|
|
285
|
-
rules: [l(
|
|
291
|
+
rules: [l(Ie)()],
|
|
286
292
|
modelValue: l(o).name,
|
|
287
293
|
"onUpdate:modelValue": s[0] || (s[0] = (k) => l(o).name = k)
|
|
288
294
|
}, null, 8, ["rules", "modelValue"]),
|
|
@@ -292,30 +298,30 @@ const X = ie(
|
|
|
292
298
|
modelValue: l(o).ref,
|
|
293
299
|
"onUpdate:modelValue": s[1] || (s[1] = (k) => l(o).ref = k)
|
|
294
300
|
}, null, 8, ["modelValue"]),
|
|
295
|
-
x("div",
|
|
301
|
+
x("div", Ge, [
|
|
296
302
|
g(t, {
|
|
297
303
|
label: "Main ingredient",
|
|
298
304
|
required: ""
|
|
299
305
|
}),
|
|
300
306
|
g(e, {
|
|
301
|
-
onClick: s[2] || (s[2] = (k) =>
|
|
307
|
+
onClick: s[2] || (s[2] = (k) => A())
|
|
302
308
|
}, {
|
|
303
309
|
default: R(() => {
|
|
304
|
-
var k, E, $,
|
|
310
|
+
var k, E, $, z, N, K, q, P, j;
|
|
305
311
|
return [
|
|
306
312
|
($ = (E = (k = l(o)) == null ? void 0 : k.skus) == null ? void 0 : E[0]) != null && $.name ? (M(), ee("span", Ve, [
|
|
307
|
-
x("span", Ee, "[" +
|
|
308
|
-
te(" " +
|
|
309
|
-
])) : (M(), ee("span", Re,
|
|
313
|
+
x("span", Ee, "[" + H((K = (N = (z = l(o)) == null ? void 0 : z.skus) == null ? void 0 : N[0]) == null ? void 0 : K.code) + "]", 1),
|
|
314
|
+
te(" " + H((j = (P = (q = l(o)) == null ? void 0 : q.skus) == null ? void 0 : P[0]) == null ? void 0 : j.name), 1)
|
|
315
|
+
])) : (M(), ee("span", Re, H("Click to select main item")))
|
|
310
316
|
];
|
|
311
317
|
}),
|
|
312
318
|
_: 1
|
|
313
319
|
}),
|
|
314
320
|
x("div", Te, [
|
|
315
|
-
s[6] || (s[6] = te(
|
|
321
|
+
s[6] || (s[6] = te(H("Select a main item to filter out substitutable items with same unit.") + " ")),
|
|
316
322
|
g(u, {
|
|
317
|
-
"model-value": ((
|
|
318
|
-
rules: [l(
|
|
323
|
+
"model-value": ((F = l(o)) == null ? void 0 : F.skus) ?? [],
|
|
324
|
+
rules: [l(Ce)(1, "Required")]
|
|
319
325
|
}, null, 8, ["model-value", "rules"])
|
|
320
326
|
])
|
|
321
327
|
])
|
|
@@ -326,7 +332,7 @@ const X = ie(
|
|
|
326
332
|
x("div", null, [
|
|
327
333
|
g(_, {
|
|
328
334
|
label: "Add items",
|
|
329
|
-
disabled: (((V = (
|
|
335
|
+
disabled: (((V = (G = l(o)) == null ? void 0 : G.skus) == null ? void 0 : V.length) ?? 0) < 1,
|
|
330
336
|
onClick: s[3] || (s[3] = (k) => b()),
|
|
331
337
|
"prepend-icon": "add",
|
|
332
338
|
variant: "secondary",
|
|
@@ -346,7 +352,7 @@ const X = ie(
|
|
|
346
352
|
}),
|
|
347
353
|
draggable: "",
|
|
348
354
|
"hide-footer": "",
|
|
349
|
-
"page-size": ((
|
|
355
|
+
"page-size": ((L = l(o).skus) == null ? void 0 : L.length) ?? 0
|
|
350
356
|
}, null, 8, ["row-data", "page-size"])
|
|
351
357
|
])
|
|
352
358
|
];
|
|
@@ -364,7 +370,7 @@ const X = ie(
|
|
|
364
370
|
},
|
|
365
371
|
emits: ["update:show"],
|
|
366
372
|
setup(U) {
|
|
367
|
-
const c = U, w = J(), o = Z(), { t: r } = W(), i =
|
|
373
|
+
const c = U, w = J(), o = Z(), { t: r } = W(), i = be(c, "show"), p = C({}), v = C(`${Math.random()}`);
|
|
368
374
|
ue(
|
|
369
375
|
() => c.show,
|
|
370
376
|
(t) => {
|
|
@@ -376,7 +382,7 @@ const X = ie(
|
|
|
376
382
|
}), v.value = `${Math.random()}`);
|
|
377
383
|
}
|
|
378
384
|
);
|
|
379
|
-
const f =
|
|
385
|
+
const f = I(() => {
|
|
380
386
|
switch (c.mode) {
|
|
381
387
|
case h.READ:
|
|
382
388
|
return "";
|
|
@@ -386,7 +392,7 @@ const X = ie(
|
|
|
386
392
|
return r("inventory.ingredient.create.title");
|
|
387
393
|
}
|
|
388
394
|
return "";
|
|
389
|
-
}), y =
|
|
395
|
+
}), y = I(() => {
|
|
390
396
|
switch (c.mode) {
|
|
391
397
|
case h.READ:
|
|
392
398
|
return "";
|
|
@@ -396,7 +402,7 @@ const X = ie(
|
|
|
396
402
|
return r("common.add");
|
|
397
403
|
}
|
|
398
404
|
return "";
|
|
399
|
-
}),
|
|
405
|
+
}), A = C(), b = C(!1);
|
|
400
406
|
async function d() {
|
|
401
407
|
b.value = !0;
|
|
402
408
|
const t = B(p.value);
|
|
@@ -407,7 +413,7 @@ const X = ie(
|
|
|
407
413
|
type: "success"
|
|
408
414
|
});
|
|
409
415
|
} catch (e) {
|
|
410
|
-
e instanceof
|
|
416
|
+
e instanceof oe || o.open({
|
|
411
417
|
title: r("inventory.ingredient.create.error.title"),
|
|
412
418
|
message: r("inventory.ingredient.create.error.message"),
|
|
413
419
|
type: "error"
|
|
@@ -426,7 +432,7 @@ const X = ie(
|
|
|
426
432
|
type: "success"
|
|
427
433
|
});
|
|
428
434
|
} catch (e) {
|
|
429
|
-
e instanceof
|
|
435
|
+
e instanceof oe || o.open({
|
|
430
436
|
title: r("inventory.ingredient.update.error.title"),
|
|
431
437
|
message: r("inventory.ingredient.update.error.message"),
|
|
432
438
|
type: "error"
|
|
@@ -437,7 +443,7 @@ const X = ie(
|
|
|
437
443
|
}
|
|
438
444
|
function s() {
|
|
439
445
|
var t, e;
|
|
440
|
-
(e = (t =
|
|
446
|
+
(e = (t = A.value) == null ? void 0 : t.validateInputs) == null || e.call(t);
|
|
441
447
|
}
|
|
442
448
|
function n() {
|
|
443
449
|
switch (c.mode) {
|
|
@@ -478,7 +484,7 @@ const X = ie(
|
|
|
478
484
|
(M(), O(Me, {
|
|
479
485
|
class: "w-full",
|
|
480
486
|
ref_key: "hasValidationExpose",
|
|
481
|
-
ref:
|
|
487
|
+
ref: A,
|
|
482
488
|
key: v.value,
|
|
483
489
|
"model-value": p.value,
|
|
484
490
|
"onUpdate:modelValue": e[0] || (e[0] = (m) => p.value = m),
|
|
@@ -491,17 +497,17 @@ const X = ie(
|
|
|
491
497
|
}, 8, ["model-value", "header"]);
|
|
492
498
|
};
|
|
493
499
|
}
|
|
494
|
-
}),
|
|
500
|
+
}), Le = { class: "flex flex-col py-8" }, ze = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ne = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, tt = /* @__PURE__ */ Y({
|
|
495
501
|
__name: "IngredientGroupView",
|
|
496
502
|
setup(U) {
|
|
497
|
-
const c = J(), w =
|
|
503
|
+
const c = J(), w = I(() => c.skuGroups), o = ye(), { t: r } = W(), {
|
|
498
504
|
createIngredientGroup: i,
|
|
499
505
|
updateIngredientGroup: p,
|
|
500
506
|
importIngredientGroups: v,
|
|
501
507
|
exportIngredientGroups: f
|
|
502
|
-
} = X(), { columnDefs: y, loading:
|
|
503
|
-
function d(
|
|
504
|
-
switch (
|
|
508
|
+
} = X(), { columnDefs: y, loading: A } = se(Ae()), { ingredientGroupDialogProps: b } = se(X());
|
|
509
|
+
function d(D) {
|
|
510
|
+
switch (D) {
|
|
505
511
|
case "add":
|
|
506
512
|
return i();
|
|
507
513
|
case "import":
|
|
@@ -510,7 +516,7 @@ const X = ie(
|
|
|
510
516
|
return f();
|
|
511
517
|
}
|
|
512
518
|
}
|
|
513
|
-
const a = C(""), s = C(!1), n =
|
|
519
|
+
const a = C(""), s = C(!1), n = I(() => s.value || A.value), { breakpoints: t } = _e(), e = I(() => t.value.xs || t.value.sm), u = I(() => e.value ? 10 : 20), _ = he(), m = I(() => [
|
|
514
520
|
{
|
|
515
521
|
label: r("inventory.ingredient.create.title"),
|
|
516
522
|
value: "add",
|
|
@@ -520,8 +526,8 @@ const X = ie(
|
|
|
520
526
|
{ label: r("common.import"), value: "import" },
|
|
521
527
|
{ label: r("common.export"), value: "export" }
|
|
522
528
|
]);
|
|
523
|
-
return (
|
|
524
|
-
const
|
|
529
|
+
return (D, F) => {
|
|
530
|
+
const G = S("FmTable");
|
|
525
531
|
return M(), O(we, {
|
|
526
532
|
title: l(r)("inventory.ingredientGroup.title"),
|
|
527
533
|
actions: m.value,
|
|
@@ -540,37 +546,37 @@ const X = ie(
|
|
|
540
546
|
g(Se, {
|
|
541
547
|
searchable: "",
|
|
542
548
|
search: a.value,
|
|
543
|
-
"onUpdate:search":
|
|
549
|
+
"onUpdate:search": F[0] || (F[0] = (V) => a.value = V)
|
|
544
550
|
}, null, 8, ["search"]),
|
|
545
|
-
g(
|
|
551
|
+
g(G, {
|
|
546
552
|
style: me(l(_).tableHeight),
|
|
547
553
|
"column-defs": l(y),
|
|
548
554
|
"row-data": w.value,
|
|
549
555
|
"search-value": a.value,
|
|
550
556
|
loading: !l(o)._currentLocation || n.value,
|
|
551
557
|
"loading-text": "Loading",
|
|
552
|
-
onRowClick:
|
|
558
|
+
onRowClick: F[1] || (F[1] = (V) => l(p)(V.original)),
|
|
553
559
|
"page-size": u.value
|
|
554
560
|
}, {
|
|
555
561
|
"list-row": R((V) => [
|
|
556
|
-
g(
|
|
562
|
+
g(ke, {
|
|
557
563
|
row: V,
|
|
558
564
|
onRowClick: l(p)
|
|
559
565
|
}, pe({
|
|
560
566
|
default: R((T) => {
|
|
561
|
-
var
|
|
567
|
+
var L, k, E, $, z, N, K, q, P, j;
|
|
562
568
|
return [
|
|
563
|
-
x("div",
|
|
564
|
-
x("div",
|
|
569
|
+
x("div", Le, [
|
|
570
|
+
x("div", ze, [
|
|
565
571
|
g(l(ae), {
|
|
566
|
-
render: (E = (k = (
|
|
567
|
-
props: (
|
|
572
|
+
render: (E = (k = (L = T.code) == null ? void 0 : L.column) == null ? void 0 : k.columnDef) == null ? void 0 : E.cell,
|
|
573
|
+
props: (z = ($ = T.code) == null ? void 0 : $.getContext) == null ? void 0 : z.call($)
|
|
568
574
|
}, null, 8, ["render", "props"])
|
|
569
575
|
]),
|
|
570
576
|
x("div", Ne, [
|
|
571
577
|
g(l(ae), {
|
|
572
578
|
render: (q = (K = (N = T.name) == null ? void 0 : N.column) == null ? void 0 : K.columnDef) == null ? void 0 : q.cell,
|
|
573
|
-
props: (
|
|
579
|
+
props: (j = (P = T.name) == null ? void 0 : P.getContext) == null ? void 0 : j.call(P)
|
|
574
580
|
}, null, 8, ["render", "props"])
|
|
575
581
|
])
|
|
576
582
|
])
|
|
@@ -581,7 +587,7 @@ const X = ie(
|
|
|
581
587
|
s.value ? {
|
|
582
588
|
name: "loading-text",
|
|
583
589
|
fn: R(() => [
|
|
584
|
-
x("div", null,
|
|
590
|
+
x("div", null, H(l(r)("inventory.ingredient.table.importing")), 1)
|
|
585
591
|
]),
|
|
586
592
|
key: "0"
|
|
587
593
|
} : void 0
|
|
@@ -600,5 +606,5 @@ const X = ie(
|
|
|
600
606
|
}
|
|
601
607
|
});
|
|
602
608
|
export {
|
|
603
|
-
|
|
609
|
+
tt as default
|
|
604
610
|
};
|