@feedmepos/mf-inventory-portal 0.0.22-dev.4 → 0.0.22-dev.40
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/{ApprovalView-xF73Z1jN.js → ApprovalView-JOsQBu1z.js} +25 -26
- package/dist/{BindingsDialog-CCSAxGT4.js → BindingsDialog-DG2ZolH1.js} +9 -9
- package/dist/{BindingsPicker-ErFH0uEQ.js → BindingsPicker-B7h_iST8.js} +22 -22
- package/dist/{BindingsTable-D8ffJgIJ.js → BindingsTable-BToh6gcG.js} +1 -1
- package/dist/ClosingTemplateView-BwMJAxuz.js +1688 -0
- package/dist/FmDroppableField-CJNAT3h2.js +152 -0
- package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-4NHQdjz7.js +266 -0
- package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-Cc_P0kss.js +364 -0
- package/dist/IngredientBindedItem.vue_vue_type_script_setup_true_lang-DMOalXUS.js +51 -0
- package/dist/IngredientsView-ChnCqdWi.js +1611 -0
- package/dist/{IntegrationView-54yz2EqS.js → IntegrationView-NWkc9PLW.js} +71 -71
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CKvKlCk-.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BQW6HYyD.js} +1 -1
- package/dist/PremiumBadge.vue_vue_type_script_setup_true_lang-BQqcpZIJ.js +116 -0
- package/dist/{PurchaseOrderPrintPreview-pcpWSfl4.js → PurchaseOrderPrintPreview-BvED8ZbQ.js} +7 -7
- package/dist/ReceiveRequestView-DdxBaqmU.js +4069 -0
- package/dist/RecipeView-YdSRy_yP.js +591 -0
- package/dist/Standalone.vue.d.ts +2 -0
- package/dist/StockView-WF5z4dTF.js +7762 -0
- package/dist/{SupplierView-TYCkPXan.js → SupplierView-H2Vi5lSs.js} +111 -111
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-D48gSqHW.js +1137 -0
- package/dist/TransferTemplateView-DeT32cat.js +2054 -0
- package/dist/{UnitView-B9yE4-rc.js → UnitView-qD9JSdHT.js} +18 -18
- package/dist/{WarehouseView-DUtVLTjb.js → WarehouseView-C19Dd53y.js} +176 -177
- package/dist/api/bill.d.ts +84 -238
- package/dist/api/closing-template.d.ts +6 -4
- package/dist/api/inventory.d.ts +72 -85
- package/dist/api/netsuite.d.ts +47 -0
- package/dist/api/purchase-order-template.d.ts +4 -6
- package/dist/{app-w8TOQVZc.js → app-DKE_n9Mo.js} +24520 -23671
- package/dist/app.d.ts +7 -0
- package/dist/app.js +3 -3
- package/dist/components/FmFilterableMenuOptions.vue.d.ts +54 -0
- package/dist/components/FmMinMaxInputRules.d.ts +2 -0
- package/dist/components/FmUnitInputRules.d.ts +2 -0
- package/dist/components/map/GoogleMap.vue.d.ts +4 -4
- package/dist/{decimal-C4q7UMfr.js → decimal-veoPLYim.js} +1 -1
- package/dist/defineDeepModel-u6t3hXU9.js +13 -0
- package/dist/format-time-from-id-8gjg5B98.js +15 -0
- package/dist/helper/rules.d.ts +7 -0
- package/dist/helper/rules.spec.d.ts +1 -0
- package/dist/helper/xlsx.util.d.ts +7 -0
- package/dist/purchase-order-transaction-type-CIDEpjJB.js +348 -0
- package/dist/stores/api.d.ts +1 -0
- package/dist/stores/feature.d.ts +0 -1
- package/dist/stores/helper/core-store-proxy.d.ts +3 -0
- package/dist/stores/helper/generate-backend-urls.d.ts +1 -0
- package/dist/stores/inventory.d.ts +85 -0
- package/dist/stores/location.d.ts +508 -503
- package/dist/stores/netsuite.d.ts +69 -0
- package/dist/stores/route.d.ts +0 -5
- package/dist/stores/supplier.d.ts +120 -3
- package/dist/style.css +1 -1
- package/dist/supplier-DLcmVScz.js +70 -0
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/use-template-enabled-locations-2-CdJVJikY.js +85 -0
- package/dist/views/closing-template/closing-template-import/ClosingTemplateImportItem.vue.d.ts +12 -0
- package/dist/views/closing-template/closing-template-import/ClosingTemplateImportItemProps.d.ts +7 -0
- package/dist/views/closing-template/composables/use-closing-template-actions.d.ts +1093 -1026
- package/dist/views/closing-template/composables/use-closing-template-table.d.ts +1098 -1037
- package/dist/views/closing-template/helpers/import-export.helper.d.ts +58 -0
- package/dist/views/ingredients/composables/use-ingredient-form.d.ts +2 -2
- package/dist/views/receive-request/components/transfer-details/TransferDetailsProps.d.ts +1 -0
- package/dist/views/receive-request/components/transfer-form/NetSuiteField.vue.d.ts +45 -0
- package/dist/views/receive-request/components/transfer-form/TransferForm.vue.d.ts +1944 -82
- package/dist/views/receive-request/components/transfer-form/TransferFormProps.d.ts +1 -0
- package/dist/views/receive-request/composables/use-receive-request-form.d.ts +2351 -284
- package/dist/views/receive-request/composables/use-receive-request-table.d.ts +2300 -233
- package/dist/views/recipe/composables/use-recipe-form.d.ts +2 -2
- package/dist/views/stock/components/StockRecordCard.vue.d.ts +42 -119
- package/dist/views/stock/composables/use-stock-action.d.ts +2 -2
- package/dist/views/transfer-template/components/transfer-template-details/TransferTemplateDetails.vue.d.ts +0 -2
- package/dist/views/transfer-template/components/transfer-template-details/TransferTemplateDetailsProps.d.ts +0 -1
- package/dist/views/transfer-template/components/transfer-template-form/composables/use-template-enabled-locations-2.d.ts +13 -0
- package/dist/views/transfer-template/components/transfer-template-form/composables/use-template-enabled-locations.d.ts +71 -85
- package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-locations.d.ts +39 -2
- package/dist/views/transfer-template/components/transfer-template-import/TransferTemplateImport.vue.d.ts +2 -0
- package/dist/views/transfer-template/components/transfer-template-import/TransferTemplateImportItem.vue.d.ts +12 -0
- package/dist/views/transfer-template/components/transfer-template-import/TransferTemplateImportItemProps.d.ts +9 -0
- package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +1263 -1466
- package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +1688 -897
- package/dist/views/transfer-template/helpers/import-export.helper.d.ts +76 -0
- package/dist/views/transfer-template/helpers/remove-deleted-skus.helper.d.ts +1 -0
- package/dist/views/transfer-template/helpers/template-item.error.helper.d.ts +1 -0
- package/dist/views/unit/composables/use-unit-form.d.ts +2 -2
- package/dist/{xlsx-BggStaH1.js → xlsx-CrKrCGZz.js} +1525 -1525
- package/dist/xlsx.util-Bcpkvw1Z.js +78 -0
- package/package.json +5 -5
- package/dist/ClosingTemplateView-DdZlX1ug.js +0 -1030
- package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-ZYtBNoaE.js +0 -372
- package/dist/IngredientsView-DnwwQJTN.js +0 -1758
- package/dist/PremiumBadge.vue_vue_type_script_setup_true_lang-Bom_KvXW.js +0 -88
- package/dist/ReceiveRequestView-D5HXMY4Z.js +0 -215
- package/dist/RecipeView-BHkTgm5H.js +0 -581
- package/dist/StockView-iczCFYxn.js +0 -1892
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-EN3JgHKF.js +0 -740
- package/dist/TransferDialog.vue_vue_type_script_setup_true_lang-DC0Ss5hi.js +0 -1409
- package/dist/TransferTemplateView-Bbvpuys7.js +0 -1230
- package/dist/defineDeepModel-BOApqV24.js +0 -13
- package/dist/format-time-from-id-Cafjo8fn.js +0 -15
- package/dist/id-to-date-CtSHSVJF.js +0 -30
- package/dist/layout/layout-routes.d.ts +0 -6
- package/dist/purchase-order-transaction-type-CIC5h-6x.js +0 -712
- package/dist/supplier-CM-vZ4bQ.js +0 -69
- package/dist/use-template-enabled-locations-Bm00vEzC.js +0 -57
- package/dist/xlsx.util-CqlYZLKW.js +0 -109
- /package/dist/{layout/InventoryLayout.vue.d.ts → views/closing-template/closing-template-import/ClosingTemplateImport.vue.d.ts} +0 -0
|
@@ -1,18 +1,17 @@
|
|
|
1
|
-
import { defineComponent as ee, ref as h, watch as te, computed as U, resolveComponent as ae, openBlock as g, createBlock as
|
|
2
|
-
import {
|
|
3
|
-
import { b as ue, u as me, _ as de, a as fe } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-
|
|
4
|
-
import {
|
|
5
|
-
import { u as ve, _ as De } from "./TransferDetails.vue_vue_type_script_setup_true_lang-EN3JgHKF.js";
|
|
1
|
+
import { defineComponent as ee, ref as h, watch as te, computed as U, resolveComponent as ae, openBlock as g, createBlock as G, unref as e, withCtx as b, createElementVNode as s, normalizeClass as oe, createVNode as n, normalizeStyle as re, toDisplayString as ne, createElementBlock as se, createCommentVNode as le, Teleport as ie, mergeProps as ce } from "vue";
|
|
2
|
+
import { i as pe, ag as f, V as J } from "./app-DKE_n9Mo.js";
|
|
3
|
+
import { b as ue, u as me, _ as de, a as fe } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-Cc_P0kss.js";
|
|
4
|
+
import { a as _e, b as ve, _ as De } from "./TransferDetails.vue_vue_type_script_setup_true_lang-D48gSqHW.js";
|
|
6
5
|
import { _ as he, F as _ } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-DlNJ6kRg.js";
|
|
7
6
|
import { useBreakpoints as ge } from "@feedmepos/ui-library";
|
|
8
7
|
import { useI18n as be } from "@feedmepos/mf-common";
|
|
9
|
-
const xe = { class: "flex flex-col py-8" }, ye = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, we = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary line-clamp-1" },
|
|
8
|
+
const xe = { class: "flex flex-col py-8" }, ye = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, we = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary line-clamp-1" }, Re = { class: "fm-typo-en-body-md-400 text-fm-color-typo-primary line-clamp-1" }, ke = {
|
|
10
9
|
key: 0,
|
|
11
10
|
class: "fm-typo-en-body-md-400 text-fm-color-typo-primary line-clamp-1"
|
|
12
|
-
},
|
|
11
|
+
}, Oe = { class: "pt-8" }, Ye = /* @__PURE__ */ ee({
|
|
13
12
|
__name: "ApprovalView",
|
|
14
13
|
setup(Se) {
|
|
15
|
-
const o = _e("approval"), { columnDefs:
|
|
14
|
+
const o = _e("approval"), { columnDefs: K } = ve("approval", o), Q = pe();
|
|
16
15
|
f.object({
|
|
17
16
|
name: f.string().optional().nullable(),
|
|
18
17
|
start: f.date().optional().nullable(),
|
|
@@ -22,8 +21,8 @@ const xe = { class: "flex flex-col py-8" }, ye = { class: "fm-typo-en-body-md-40
|
|
|
22
21
|
name: "",
|
|
23
22
|
...ue()
|
|
24
23
|
}), a = h({
|
|
25
|
-
startDate:
|
|
26
|
-
endDate:
|
|
24
|
+
startDate: J(x.value.start ?? /* @__PURE__ */ new Date()),
|
|
25
|
+
endDate: J(x.value.end ?? /* @__PURE__ */ new Date())
|
|
27
26
|
});
|
|
28
27
|
te([() => a.value.startDate], () => {
|
|
29
28
|
if (!a.value.startDate)
|
|
@@ -38,11 +37,11 @@ const xe = { class: "flex flex-col py-8" }, ye = { class: "fm-typo-en-body-md-40
|
|
|
38
37
|
return;
|
|
39
38
|
}
|
|
40
39
|
});
|
|
41
|
-
const v = h(""), { breakpoints: y } = ge(), D = U(() => y.value.xs || y.value.sm),
|
|
40
|
+
const v = h(""), { breakpoints: y } = ge(), D = U(() => y.value.xs || y.value.sm), W = U(() => D.value ? 10 : 20), X = me(), { t: Z } = be();
|
|
42
41
|
return (w, l) => {
|
|
43
42
|
const B = ae("FmTable");
|
|
44
|
-
return g(),
|
|
45
|
-
title: e(
|
|
43
|
+
return g(), G(de, {
|
|
44
|
+
title: e(Z)("inventory.transfer.approval.title")
|
|
46
45
|
}, {
|
|
47
46
|
default: b(() => [
|
|
48
47
|
s("div", {
|
|
@@ -62,13 +61,13 @@ const xe = { class: "flex flex-col py-8" }, ye = { class: "fm-typo-en-body-md-40
|
|
|
62
61
|
actions: [{ icon: "refresh", onClick: e(o).fetchData }]
|
|
63
62
|
}, null, 8, ["search", "actions"]),
|
|
64
63
|
n(B, {
|
|
65
|
-
style: re(e(
|
|
66
|
-
"column-defs": e(
|
|
64
|
+
style: re(e(X).tableHeight),
|
|
65
|
+
"column-defs": e(K),
|
|
67
66
|
"row-data": e(o).purchaseRequests.value,
|
|
68
67
|
"search-value": v.value,
|
|
69
|
-
loading: !e(
|
|
68
|
+
loading: !e(Q)._currentLocation || e(o).loading.value,
|
|
70
69
|
onRowClick: l[1] || (l[1] = (r) => e(o).promptShowTransferDetails(r.original.purchaseOrder, r.original)),
|
|
71
|
-
"page-size":
|
|
70
|
+
"page-size": W.value
|
|
72
71
|
}, {
|
|
73
72
|
"list-row": b((r) => [
|
|
74
73
|
n(he, {
|
|
@@ -76,12 +75,12 @@ const xe = { class: "flex flex-col py-8" }, ye = { class: "fm-typo-en-body-md-40
|
|
|
76
75
|
onRowClick: (t) => e(o).promptShowTransferDetails(t.purchaseOrder, t)
|
|
77
76
|
}, {
|
|
78
77
|
default: b((t) => {
|
|
79
|
-
var
|
|
78
|
+
var R, k, O, i, S, T, C, z, c, F, M, p, V, u, $, Y, q, L, N, m, j, E, P, A, d, H;
|
|
80
79
|
return [
|
|
81
80
|
s("div", xe, [
|
|
82
81
|
s("div", ye, [
|
|
83
82
|
n(e(_), {
|
|
84
|
-
render: (
|
|
83
|
+
render: (O = (k = (R = t.purchaseOrder__id) == null ? void 0 : R.column) == null ? void 0 : k.columnDef) == null ? void 0 : O.cell,
|
|
85
84
|
props: (S = (i = t.purchaseOrder__id) == null ? void 0 : i.getContext) == null ? void 0 : S.call(i)
|
|
86
85
|
}, null, 8, ["render", "props"])
|
|
87
86
|
]),
|
|
@@ -91,14 +90,14 @@ const xe = { class: "flex flex-col py-8" }, ye = { class: "fm-typo-en-body-md-40
|
|
|
91
90
|
props: (F = (c = t.to_name) == null ? void 0 : c.getContext) == null ? void 0 : F.call(c)
|
|
92
91
|
}, null, 8, ["render", "props"])
|
|
93
92
|
]),
|
|
94
|
-
s("div",
|
|
95
|
-
(Y = r.original.purchaseOrder) != null && Y.ref ? (g(), se("div",
|
|
93
|
+
s("div", Re, ne(($ = (u = (V = (p = (M = r.original.purchaseOrder) == null ? void 0 : M.items) == null ? void 0 : p.map) == null ? void 0 : V.call(p, (I) => `${I.name}`)) == null ? void 0 : u.join) == null ? void 0 : $.call(u, ", ")), 1),
|
|
94
|
+
(Y = r.original.purchaseOrder) != null && Y.ref ? (g(), se("div", ke, [
|
|
96
95
|
n(e(_), {
|
|
97
|
-
render: (
|
|
98
|
-
props: (
|
|
96
|
+
render: (N = (L = (q = t.purchaseOrder_ref) == null ? void 0 : q.column) == null ? void 0 : L.columnDef) == null ? void 0 : N.cell,
|
|
97
|
+
props: (j = (m = t.purchaseOrder_ref) == null ? void 0 : m.getContext) == null ? void 0 : j.call(m)
|
|
99
98
|
}, null, 8, ["render", "props"])
|
|
100
99
|
])) : le("", !0),
|
|
101
|
-
s("div",
|
|
100
|
+
s("div", Oe, [
|
|
102
101
|
n(e(_), {
|
|
103
102
|
render: (A = (P = (E = t.purchaseOrder_status) == null ? void 0 : E.column) == null ? void 0 : P.columnDef) == null ? void 0 : A.cell,
|
|
104
103
|
props: (H = (d = t.purchaseOrder_status) == null ? void 0 : d.getContext) == null ? void 0 : H.call(d)
|
|
@@ -113,7 +112,7 @@ const xe = { class: "flex flex-col py-8" }, ye = { class: "fm-typo-en-body-md-40
|
|
|
113
112
|
_: 1
|
|
114
113
|
}, 8, ["style", "column-defs", "row-data", "search-value", "loading", "page-size"])
|
|
115
114
|
], 2),
|
|
116
|
-
(g(),
|
|
115
|
+
(g(), G(ie, { to: "body" }, [
|
|
117
116
|
n(De, ce(e(o).transferDetailsProps.value, {
|
|
118
117
|
onSubmitted: e(o).fetchData
|
|
119
118
|
}), null, 16, ["onSubmitted"])
|
|
@@ -125,5 +124,5 @@ const xe = { class: "flex flex-col py-8" }, ye = { class: "fm-typo-en-body-md-40
|
|
|
125
124
|
}
|
|
126
125
|
});
|
|
127
126
|
export {
|
|
128
|
-
|
|
127
|
+
Ye as default
|
|
129
128
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as C, ref as o, onMounted as M, onUnmounted as F, watch as x, resolveComponent as l, openBlock as i, createElementBlock as
|
|
2
|
-
import { u as V,
|
|
1
|
+
import { defineComponent as C, ref as o, onMounted as M, onUnmounted as F, watch as x, resolveComponent as l, openBlock as i, createElementBlock as c, createBlock as I, withCtx as R, createVNode as a, createCommentVNode as z, createElementVNode as P } from "vue";
|
|
2
|
+
import { u as V, av as L, _ as S } from "./app-DKE_n9Mo.js";
|
|
3
3
|
const U = {
|
|
4
4
|
key: 0,
|
|
5
5
|
class: "flex justify-end gap-8 items-center"
|
|
@@ -9,10 +9,10 @@ const U = {
|
|
|
9
9
|
}, A = /* @__PURE__ */ C({
|
|
10
10
|
__name: "BindingsDialog",
|
|
11
11
|
setup(N) {
|
|
12
|
-
const p = V(),
|
|
12
|
+
const p = V(), d = o(!0), s = o(new Array()), u = o(), t = L(y);
|
|
13
13
|
async function y() {
|
|
14
|
-
await p.readInventory(),
|
|
15
|
-
|
|
14
|
+
await p.readInventory(), u.value = t.onMessage("props:inventory-bindings", (e) => {
|
|
15
|
+
d.value = !1, s.value = e;
|
|
16
16
|
}).onMessage("props:inventory-bindings:validate", () => {
|
|
17
17
|
var e;
|
|
18
18
|
(e = f.value) == null || e.validateInputs();
|
|
@@ -36,7 +36,7 @@ const U = {
|
|
|
36
36
|
}).observe(e);
|
|
37
37
|
}), F(() => {
|
|
38
38
|
var e, n;
|
|
39
|
-
(n = (e =
|
|
39
|
+
(n = (e = u.value) == null ? void 0 : e.removeEventListener) == null || n.call(e);
|
|
40
40
|
}), x([() => s.value], ([e]) => {
|
|
41
41
|
t.sendMessage("@update:inventory-bindings", e);
|
|
42
42
|
});
|
|
@@ -47,12 +47,12 @@ const U = {
|
|
|
47
47
|
const f = o();
|
|
48
48
|
return (e, n) => {
|
|
49
49
|
const g = l("FmButton"), B = l("FmForm"), h = l("FmCircularProgress");
|
|
50
|
-
return i(),
|
|
50
|
+
return i(), c("div", {
|
|
51
51
|
class: "bg-white",
|
|
52
52
|
ref_key: "resizeableRef",
|
|
53
53
|
ref: m
|
|
54
54
|
}, [
|
|
55
|
-
|
|
55
|
+
d.value ? (i(), c("div", E, [
|
|
56
56
|
a(h, { size: "md" }),
|
|
57
57
|
n[2] || (n[2] = P("div", null, "Loading bindings dialog...", -1))
|
|
58
58
|
])) : (i(), I(B, {
|
|
@@ -69,7 +69,7 @@ const U = {
|
|
|
69
69
|
"iframe-mode": "",
|
|
70
70
|
"onClick:pickInventoryBindings": k
|
|
71
71
|
}, null, 8, ["model-value"]),
|
|
72
|
-
r.value ? z("", !0) : (i(),
|
|
72
|
+
r.value ? z("", !0) : (i(), c("div", U, [
|
|
73
73
|
a(g, {
|
|
74
74
|
type: "button",
|
|
75
75
|
variant: "tertiary",
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { defineComponent as S, computed as
|
|
2
|
-
import { u as
|
|
3
|
-
const
|
|
1
|
+
import { defineComponent as S, computed as u, ref as l, onMounted as U, onUnmounted as V, resolveComponent as E, openBlock as p, createElementBlock as f, createVNode as r, createElementVNode as k } from "vue";
|
|
2
|
+
import { u as M, av as x, y as z } from "./app-DKE_n9Mo.js";
|
|
3
|
+
const F = {
|
|
4
4
|
key: 0,
|
|
5
5
|
class: "flex flex-col gap-16"
|
|
6
|
-
},
|
|
6
|
+
}, K = { class: "flex justify-end gap-8 items-center" }, w = {
|
|
7
7
|
key: 1,
|
|
8
8
|
class: "p-24 flex items-center justify-center gap-16"
|
|
9
9
|
}, N = /* @__PURE__ */ S({
|
|
10
10
|
__name: "BindingsPicker",
|
|
11
11
|
setup(L) {
|
|
12
|
-
const d =
|
|
12
|
+
const d = M(), C = u(() => d.recipes), I = u(() => d.skus), g = l(!0), i = l(new Array()), a = l("RECIPE"), c = u(() => a.value === "SKU" ? I.value.map((s) => ({
|
|
13
13
|
label: s.name,
|
|
14
14
|
sublabel: s.code,
|
|
15
15
|
value: s
|
|
16
16
|
})) : C.value.map((s) => ({
|
|
17
17
|
label: s.name,
|
|
18
18
|
value: s
|
|
19
|
-
}))), b =
|
|
19
|
+
}))), b = u({
|
|
20
20
|
get() {
|
|
21
21
|
if (a.value === "SKU") {
|
|
22
22
|
const e = i.value.filter((n) => n.type === "SKU");
|
|
@@ -31,7 +31,7 @@ const K = {
|
|
|
31
31
|
const s = i.value.filter((n) => n.type === "SKU");
|
|
32
32
|
e = e, i.value = [
|
|
33
33
|
...e.map((n) => {
|
|
34
|
-
const t = i.value.find((
|
|
34
|
+
const t = i.value.find((m) => m.id === n._id);
|
|
35
35
|
return t || {
|
|
36
36
|
type: "RECIPE",
|
|
37
37
|
id: n._id,
|
|
@@ -49,7 +49,7 @@ const K = {
|
|
|
49
49
|
i.value = [
|
|
50
50
|
...s,
|
|
51
51
|
...e.map((n) => {
|
|
52
|
-
const t = i.value.find((
|
|
52
|
+
const t = i.value.find((m) => m.id === n._id);
|
|
53
53
|
return t || {
|
|
54
54
|
type: "SKU",
|
|
55
55
|
id: n._id,
|
|
@@ -62,9 +62,9 @@ const K = {
|
|
|
62
62
|
];
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
|
-
}),
|
|
65
|
+
}), y = l(), o = x(B);
|
|
66
66
|
async function B() {
|
|
67
|
-
await d.readInventory(),
|
|
67
|
+
await d.readInventory(), y.value = o.onMessage(
|
|
68
68
|
"props:binding-items",
|
|
69
69
|
(e) => {
|
|
70
70
|
g.value = !1, a.value = e.type, i.value = e.bindings;
|
|
@@ -77,38 +77,38 @@ const K = {
|
|
|
77
77
|
function R() {
|
|
78
78
|
o.sendMessage("@submit:items", i.value);
|
|
79
79
|
}
|
|
80
|
-
const
|
|
80
|
+
const _ = l();
|
|
81
81
|
return U(() => {
|
|
82
|
-
const e =
|
|
82
|
+
const e = _.value;
|
|
83
83
|
e && new ResizeObserver(() => {
|
|
84
84
|
o.sendMessage("resize", e.scrollHeight);
|
|
85
85
|
}).observe(e);
|
|
86
86
|
}), V(() => {
|
|
87
87
|
var e, s;
|
|
88
|
-
(s = (e =
|
|
88
|
+
(s = (e = y.value) == null ? void 0 : e.removeEventListener) == null || s.call(e);
|
|
89
89
|
}), (e, s) => {
|
|
90
90
|
const n = E("FmButton"), t = E("FmCircularProgress");
|
|
91
91
|
return p(), f("div", {
|
|
92
92
|
class: "bg-white",
|
|
93
93
|
ref_key: "resizeableRef",
|
|
94
|
-
ref:
|
|
94
|
+
ref: _
|
|
95
95
|
}, [
|
|
96
|
-
g.value ? (p(), f("div",
|
|
97
|
-
|
|
96
|
+
g.value ? (p(), f("div", w, [
|
|
97
|
+
r(t, { size: "md" }),
|
|
98
98
|
s[1] || (s[1] = k("div", null, "Loading bindings dialog...", -1))
|
|
99
|
-
])) : (p(), f("div",
|
|
100
|
-
|
|
99
|
+
])) : (p(), f("div", F, [
|
|
100
|
+
r(z, {
|
|
101
101
|
"model-value": b.value,
|
|
102
|
-
"onUpdate:modelValue": s[0] || (s[0] = (
|
|
102
|
+
"onUpdate:modelValue": s[0] || (s[0] = (v) => b.value = v),
|
|
103
103
|
items: c.value
|
|
104
104
|
}, null, 8, ["model-value", "items"]),
|
|
105
|
-
k("div",
|
|
106
|
-
|
|
105
|
+
k("div", K, [
|
|
106
|
+
r(n, {
|
|
107
107
|
variant: "tertiary",
|
|
108
108
|
label: "Close",
|
|
109
109
|
onClick: P
|
|
110
110
|
}),
|
|
111
|
-
|
|
111
|
+
r(n, {
|
|
112
112
|
label: "Submit",
|
|
113
113
|
onClick: R
|
|
114
114
|
})
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as _, ref as c, provide as C, computed as f, resolveComponent as b, openBlock as p, createBlock as h, h as z, onMounted as B, onUnmounted as I, createElementBlock as y, createVNode as N, createElementVNode as x } from "vue";
|
|
2
|
-
import {
|
|
2
|
+
import { j as v, u as E, av as L } from "./app-DKE_n9Mo.js";
|
|
3
3
|
import { components as F } from "@feedmepos/ui-library";
|
|
4
4
|
import "@feedmepos/mf-common";
|
|
5
5
|
const P = /* @__PURE__ */ _({
|