@feedmepos/mf-inventory-portal 1.2.51-dev.1 → 1.2.52
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-bY_YcLwH.js → App--VMK_Bqt.js} +70 -75
- package/dist/{ApprovalView-vzIiBqt2.js → ApprovalView-3g89b2Ya.js} +34 -34
- package/dist/{BindingsDialog-DCh2ORem.js → BindingsDialog-C_qcIKUI.js} +2 -2
- package/dist/{BindingsPicker-DcNG03p-.js → BindingsPicker-CPrS3J1t.js} +2 -2
- package/dist/{BindingsTable-B_Yaq-z3.js → BindingsTable-C5PCH5Vf.js} +4 -4
- package/dist/{ClosingDraftView-C0T8cWEB.js → ClosingDraftView-CiJV5d7M.js} +399 -413
- package/dist/{ClosingHistoryView-DkKAjh7T.js → ClosingHistoryView-CvOfQF2y.js} +27 -27
- package/dist/{ClosingTemplateView-DpH1EyW5.js → ClosingTemplateView-BWvaFiHB.js} +524 -512
- package/dist/{DeliveryOrderPrintPreview-B2ecLaLu.js → DeliveryOrderPrintPreview-C9ZI8EVy.js} +1 -1
- package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DVOt7pfR.js +231 -0
- package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-kVpsL4cx.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-DLdaN3XH.js} +12 -12
- package/dist/FmMultiselectDialog-CMGvzBur.js +598 -0
- package/dist/{FmMultiselectDialog-DGUwruxs.js → FmMultiselectDialog-M5xxjK0u.js} +1 -1
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-CRTG3VFo.js → FmUnitInput.vue_vue_type_script_setup_true_lang-CnHJwYtN.js} +3 -3
- package/dist/{ImportView-Bk4Z7nGh.js → ImportView-DeW2True.js} +7 -7
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-BEJ19Uej.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-BYSKI3Qs.js} +1 -1
- package/dist/{IngredientGroupView-8GHMMOux.js → IngredientGroupView-BjZqH3dV.js} +107 -108
- package/dist/{IngredientsView-DbmODx-v.js → IngredientsView-BU-dONim.js} +125 -126
- package/dist/{IntegrationView-DC0O_Lk4.js → IntegrationView-6m61Ipf9.js} +80 -80
- package/dist/{InventoryBindingForm-ln0q25n_.js → InventoryBindingForm-C-QzGErT.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-CFgk9rSe.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-B25u_7kJ.js} +21 -21
- package/dist/{InventoryBindingSummary-BlNXhS4v.js → InventoryBindingSummary-CJbJDI2o.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BY_mXqPr.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-RgGlAX33.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-BhNjwE3X.js → PremiumBadge.vue_vue_type_script_setup_true_lang-DhsCTTsf.js} +2 -2
- package/dist/{PublishView-5GkTzxbi.js → PublishView-BGIPKR3R.js} +3 -3
- package/dist/{PurchaseOrderPrintPreview-Dj5lJ5Ou.js → PurchaseOrderPrintPreview-DNYxm9VZ.js} +1 -1
- package/dist/ReceiveRequestView-BkwCM2gx.js +2913 -0
- package/dist/{RecipeView-OLPRwnVx.js → RecipeView-ImuvouoQ.js} +82 -83
- package/dist/{StockView-TcA5zJqr.js → StockView-DX-M79i4.js} +112 -113
- package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-DZ6TDkKR.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-BU9OphZT.js} +1 -1
- package/dist/{SupplierView-77qI9YCg.js → SupplierView-DwOXRHIm.js} +27 -28
- package/dist/{SystemTrailDialog.vue_vue_type_script_setup_true_lang-_8YeihNH.js → SystemTrailDialog.vue_vue_type_script_setup_true_lang-CFNAl2zj.js} +2 -2
- package/dist/TableActionableRow.vue_vue_type_script_setup_true_lang-cfFHDIwQ.js +162 -0
- package/dist/TemplatePublishDialog.vue_vue_type_script_setup_true_lang-C-fJgXX4.js +201 -0
- package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-7BoFD5wV.js → TransferDetails.vue_vue_type_script_setup_true_lang-vKznrul-.js} +659 -658
- package/dist/{TransferTemplateView-CI0U36Tr.js → TransferTemplateView-B6Lynxx7.js} +81 -82
- package/dist/{UnitView-fNFFUNlb.js → UnitView-CPl1rpkV.js} +19 -20
- package/dist/{WarehouseView-BAXgnZnO.js → WarehouseView-705pfGhw.js} +20 -21
- package/dist/WastageTemplateView-DAEt9fAW.js +2382 -0
- package/dist/api/adjustment-template.d.ts +1 -0
- package/dist/api/closing-template.d.ts +1 -0
- package/dist/api/netsuite.d.ts +0 -8
- package/dist/app-uBuHtW8m.js +8127 -0
- package/dist/{app-CddcvygU.js → app-yA2GcbOF.js} +4405 -4505
- package/dist/app.d.ts +1 -52
- package/dist/app.js +1 -1
- package/dist/closing-template-C_fOjY8b.js +125 -0
- package/dist/components/FmInventoryTableToolbar.vue.d.ts +0 -8
- package/dist/components/FmMultiselectDialogProps.d.ts +0 -5
- package/dist/components/TemplatePublishDialog.d.ts +2 -0
- package/dist/cypress/component/receive-request/KDI-15-total-price-currency.cy.d.ts +2 -0
- package/dist/{date2-CVZy20Q_.js → date2-CGBF6K5g.js} +1 -1
- package/dist/{dayjs.min-NrRtjg32.js → dayjs.min-CcXVb3N8.js} +26 -26
- package/dist/{decimal-Du3Grkk9.js → decimal-o3WVGEo3.js} +2 -2
- package/dist/{defineDeepModel-DgRoiQBp.js → defineDeepModel-DHrbJI5Q.js} +1 -1
- package/dist/{duplicate-template-DvnZ4BW6.js → duplicate-template-BpR6oQr0.js} +1 -1
- package/dist/{feature-CTA18HlL.js → feature-D8BhYTHO.js} +6178 -8906
- package/dist/{format-time-from-id-6kt1RMWs.js → format-time-from-id-0_5FFMRS.js} +1 -1
- package/dist/{format-unit-display-mVJ-nuJe.js → format-unit-display-Cgf9ziiC.js} +11 -11
- package/dist/{import-export.helper-DWwlJy7N.js → import-export.helper-zE76m0Lr.js} +5 -5
- package/dist/{index-BEcj1jGd.js → index-2ApGEdTo.js} +3 -3
- package/dist/{index-BfcdagSF.js → index-B23iGYnZ.js} +1 -1
- package/dist/{index-By-jyWOP.js → index-CbyU93I-.js} +1 -1
- package/dist/{lodash-D0COOw3m.js → lodash-6pJVv_NM.js} +1 -1
- package/dist/netsuite-CPg7U65w.js +5131 -0
- package/dist/{purchase-order-template-CJCmABzP.js → purchase-order-template-Dx0eXO5h.js} +1 -1
- package/dist/router/name.d.ts +0 -1
- package/dist/{rules-hQBVd1Mn.js → rules-BDCrcRdu.js} +9 -9
- package/dist/{stock-B6QW-S14.js → stock-0PfUUvpN.js} +1 -1
- package/dist/{stock-4xGaezEy.js → stock-DBheIzMc.js} +3 -3
- package/dist/stores/feature.d.ts +2 -4
- package/dist/stores/integration/netsuite.d.ts +0 -5
- package/dist/style.css +1 -1
- package/dist/{supplier-C-dmFnqw.js → supplier-BJv4rrs8.js} +2 -2
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-ingredient-select-dialog-DgYSZDN8.js → use-ingredient-select-dialog-CubGF9kW.js} +2 -2
- package/dist/{use-inventory-binding-dialog-CnYcA_Fo.js → use-inventory-binding-dialog-GiYf-Jn5.js} +2 -2
- package/dist/{use-template-enabled-locations-2-B_aZrMUU.js → use-template-enabled-locations-2-1-PoWVif.js} +2 -2
- package/dist/views/adjustment-template/wastage-template/actions.d.ts +4 -1
- package/dist/views/ingredients/helper/calculate-default-cost.d.ts +9 -0
- package/dist/views/receive-request/components/transfer-form/TransferForm2.vue.d.ts +22 -0
- package/dist/views/receive-request/components/transfer-form/TransferFormWithController.vue.d.ts +0 -714
- package/dist/views/receive-request/components/transfer-form/composables/use-transfer-items.d.ts +1 -8
- package/dist/views/stock/components/StockRecordCard.vue.d.ts +1 -1
- package/dist/{vue-i18n-BCEDBY4T.js → vue-i18n-Cb65g8p9.js} +524 -524
- package/dist/{xlsx-CJsXiiEq.js → xlsx-C7pOdYp2.js} +398 -398
- package/dist/{xlsx.util-CSudzOii.js → xlsx.util-Boe3rV7g.js} +1 -1
- package/package.json +5 -5
- package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CI4z5XYQ.js +0 -188
- package/dist/FmMultiselectDialog-BviFuAM5.js +0 -618
- package/dist/ReceiveRequestView-BAYczSpW.js +0 -2913
- package/dist/SurchargeView-CxW2ZZ8a.js +0 -460
- package/dist/TableActionableRow.vue_vue_type_script_setup_true_lang-Ca_eYa8-.js +0 -84
- package/dist/TemplatePublishDialog.vue_vue_type_script_setup_true_lang-ByPIjcED.js +0 -155
- package/dist/WastageTemplateView-C5qCXWqZ.js +0 -2328
- package/dist/api/surcharge.d.ts +0 -31
- package/dist/app-DiX-EfV6.js +0 -8167
- package/dist/closing-template-DxdLqlb1.js +0 -117
- package/dist/component-DpCUABT3.js +0 -82
- package/dist/netsuite-3LgQ5ztL.js +0 -5402
- package/dist/stores/surcharge.d.ts +0 -18
- package/dist/surcharge-Db4IiSEQ.js +0 -71
- package/dist/views/surcharge/SurchargeView.vue.d.ts +0 -2
package/dist/{DeliveryOrderPrintPreview-B2ecLaLu.js → DeliveryOrderPrintPreview-C9ZI8EVy.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as x, computed as f, ref as h, onMounted as _, openBlock as u, createElementBlock as i, createElementVNode as t, createTextVNode as n, toDisplayString as e, createCommentVNode as d, Fragment as o, renderList as p, normalizeClass as g } from "vue";
|
|
2
2
|
import { useRoute as k } from "vue-router";
|
|
3
|
-
import { M as y } from "./app-
|
|
3
|
+
import { M as y } from "./app-yA2GcbOF.js";
|
|
4
4
|
import { _ as w } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
5
|
const c = { class: "purchase-box" }, A = { valign: "bottom" }, N = { class: "sub-header" }, O = ["src"], P = { style: { "padding-left": "10px" } }, C = { class: "address" }, D = { class: "text-right" }, R = {
|
|
6
6
|
key: 0,
|
|
@@ -0,0 +1,231 @@
|
|
|
1
|
+
import { J as O, u as D, t as C, T as A, V as E, y as V } from "./app-yA2GcbOF.js";
|
|
2
|
+
import { a as L, t as R } from "./rules-BDCrcRdu.js";
|
|
3
|
+
import { u as z } from "./supplier-BJv4rrs8.js";
|
|
4
|
+
import { computed as f, defineComponent as H, mergeModels as j, useModel as q, ref as x, resolveComponent as w, openBlock as P, createElementBlock as U, normalizeStyle as W, createElementVNode as I, createVNode as $, withCtx as J, createBlock as g, createCommentVNode as N, Fragment as Y, renderList as K, unref as M } from "vue";
|
|
5
|
+
import { F as Q } from "./FmMultiselectDialog-CMGvzBur.js";
|
|
6
|
+
function X(e, r, a) {
|
|
7
|
+
var o;
|
|
8
|
+
if (!!r.measurement === !!a && ((o = r.measurement) == null ? void 0 : o.id) === a)
|
|
9
|
+
return r;
|
|
10
|
+
if (!a)
|
|
11
|
+
return {
|
|
12
|
+
costPerUnit: r.costPerUnit
|
|
13
|
+
};
|
|
14
|
+
const n = e.measurements.find((p) => p.id === a);
|
|
15
|
+
return n ? {
|
|
16
|
+
costPerUnit: r.costPerUnit,
|
|
17
|
+
measurement: n
|
|
18
|
+
} : {
|
|
19
|
+
costPerUnit: r.costPerUnit
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
function ne(e, r, a, u) {
|
|
23
|
+
var T, _, s;
|
|
24
|
+
const l = (s = (_ = (T = u == null ? void 0 : u.supplier) == null ? void 0 : T.supplyItems) == null ? void 0 : _.find(
|
|
25
|
+
(t) => t.skuId === e._id
|
|
26
|
+
)) == null ? void 0 : s.defaultCost;
|
|
27
|
+
if (u != null && u.manualTotalCost)
|
|
28
|
+
return {
|
|
29
|
+
cost: u.manualTotalCost,
|
|
30
|
+
skuDefaultCost: e.defaultCost ?? void 0,
|
|
31
|
+
supplierOverrideCost: l ?? void 0
|
|
32
|
+
};
|
|
33
|
+
const n = e.defaultCost ? X(e.unit, e.defaultCost, e.trackingMeasurement) : void 0, o = l ?? n, p = o == null ? void 0 : o.costPerUnit, v = p ? o != null && o.measurement ? +L(p) / +L(o == null ? void 0 : o.measurement.conversion) : +L(p) : void 0, b = v ? a ? v * +L(a.conversion) : v : void 0, h = b ? +L(r) * b : void 0;
|
|
34
|
+
return {
|
|
35
|
+
cost: h ? {
|
|
36
|
+
...R(h ?? 0, 2),
|
|
37
|
+
currency: O()
|
|
38
|
+
} : {
|
|
39
|
+
amount: 0,
|
|
40
|
+
precision: 0,
|
|
41
|
+
currency: O()
|
|
42
|
+
},
|
|
43
|
+
skuDefaultCost: e.defaultCost ?? void 0,
|
|
44
|
+
supplierOverrideCost: l ?? void 0
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
function k(e) {
|
|
48
|
+
const r = E.safeParse(e);
|
|
49
|
+
if (r.success) return r.data;
|
|
50
|
+
throw new Error("Invalid supplier data");
|
|
51
|
+
}
|
|
52
|
+
function S(e) {
|
|
53
|
+
return {
|
|
54
|
+
_id: e.doc._id,
|
|
55
|
+
internal: e.type,
|
|
56
|
+
contactName: e.doc.profile.name,
|
|
57
|
+
name: e.doc.profile.name ?? "",
|
|
58
|
+
email: e.doc.profile.email,
|
|
59
|
+
phoneNumber: e.doc.profile.phoneNo,
|
|
60
|
+
registrationNumber: e.doc.profile.regNo,
|
|
61
|
+
address: e.doc.profile.address ?? {
|
|
62
|
+
line1: "",
|
|
63
|
+
state: "",
|
|
64
|
+
city: "",
|
|
65
|
+
postcode: "",
|
|
66
|
+
country: ""
|
|
67
|
+
},
|
|
68
|
+
preparationTime: e.preparationTime
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
function re(e, r, a = !1, u = !1) {
|
|
72
|
+
const l = z(), n = D();
|
|
73
|
+
n.watchLocation(async () => {
|
|
74
|
+
var y;
|
|
75
|
+
await l.readSuppliers();
|
|
76
|
+
const s = e();
|
|
77
|
+
if ((y = s.supplier) != null && y._id) return;
|
|
78
|
+
const t = u ? l.suppliers[0] : l.businessSuppliers[0], i = (a ? n.locations.filter((d) => d.doc._id !== n.currentLocation.doc._id) : n.locations)[0];
|
|
79
|
+
r({
|
|
80
|
+
...s,
|
|
81
|
+
supplier: t ? k(t) : i ? S(i) : s.supplier
|
|
82
|
+
});
|
|
83
|
+
});
|
|
84
|
+
const o = f(
|
|
85
|
+
() => {
|
|
86
|
+
var s, t;
|
|
87
|
+
return typeof ((t = (s = e()) == null ? void 0 : s.supplier) == null ? void 0 : t.internal) == "string" ? C.enum.transfer : C.enum.purchase;
|
|
88
|
+
}
|
|
89
|
+
), p = f({
|
|
90
|
+
get() {
|
|
91
|
+
var s, t;
|
|
92
|
+
return (t = (s = e()) == null ? void 0 : s.supplier) == null ? void 0 : t._id;
|
|
93
|
+
},
|
|
94
|
+
set(s) {
|
|
95
|
+
const t = e() ?? {};
|
|
96
|
+
if (o.value === C.enum.purchase) {
|
|
97
|
+
const F = (u ? l.suppliers : l.businessSuppliers).find((B) => B._id === s);
|
|
98
|
+
r({
|
|
99
|
+
...t,
|
|
100
|
+
supplier: F ? k(F) : t.supplier
|
|
101
|
+
});
|
|
102
|
+
return;
|
|
103
|
+
}
|
|
104
|
+
const y = (a ? n.allLocations.filter(
|
|
105
|
+
(d) => d.doc._id !== n.currentLocation.doc._id
|
|
106
|
+
) : n.allLocations).find((d) => d.doc._id === s);
|
|
107
|
+
r({
|
|
108
|
+
...t,
|
|
109
|
+
supplier: y ? S(y) : t.supplier
|
|
110
|
+
});
|
|
111
|
+
}
|
|
112
|
+
}), v = f(() => l.locationSuppliers.map(k)), b = f(() => l.businessSuppliers.map(k)), h = f(() => {
|
|
113
|
+
const s = [...v.value], t = [...b.value];
|
|
114
|
+
return u ? [...t, ...s] : t;
|
|
115
|
+
}), c = f(() => {
|
|
116
|
+
var m;
|
|
117
|
+
const s = ((m = n._currentLocation) == null ? void 0 : m.type) === A.warehouse;
|
|
118
|
+
return (a ? n.allLocations.filter(
|
|
119
|
+
(i) => i.doc._id !== n.currentLocation.doc._id
|
|
120
|
+
) : n.allLocations).filter((i) => s || i.acceptRequest).map(S);
|
|
121
|
+
}), T = f(() => {
|
|
122
|
+
if (o.value === C.enum.purchase) {
|
|
123
|
+
const t = v.value.map((i) => ({
|
|
124
|
+
label: i.name,
|
|
125
|
+
value: i._id
|
|
126
|
+
})), m = b.value.map((i) => ({
|
|
127
|
+
label: i.name,
|
|
128
|
+
sublabel: "Business supplier",
|
|
129
|
+
value: i._id
|
|
130
|
+
}));
|
|
131
|
+
return u ? [...t, ...m] : m;
|
|
132
|
+
}
|
|
133
|
+
return c.value.map((t) => ({
|
|
134
|
+
label: t.name,
|
|
135
|
+
sublabel: t.internal ? `${t.internal}` : void 0,
|
|
136
|
+
value: t._id
|
|
137
|
+
}));
|
|
138
|
+
}), _ = f(() => {
|
|
139
|
+
var i, y;
|
|
140
|
+
const s = (y = (i = e()) == null ? void 0 : i.supplier) == null ? void 0 : y._id;
|
|
141
|
+
if (o.value === C.enum.purchase) {
|
|
142
|
+
const d = l.suppliers.find((F) => F._id === s);
|
|
143
|
+
return d ? k(d) : null;
|
|
144
|
+
}
|
|
145
|
+
const m = n.allLocations.find((d) => d.doc._id);
|
|
146
|
+
return m ? S(m) : null;
|
|
147
|
+
});
|
|
148
|
+
return {
|
|
149
|
+
transferLocationModel: p,
|
|
150
|
+
transferLocationOptions: T,
|
|
151
|
+
locationOptionsTypePurchase: h,
|
|
152
|
+
locationOptionsTypePurchaseLocationLevel: v,
|
|
153
|
+
locationOptionsTypeTransfer: c,
|
|
154
|
+
selectedLocation: _
|
|
155
|
+
};
|
|
156
|
+
}
|
|
157
|
+
const Z = { class: "overflow-y-auto h-full pb-8" }, ae = /* @__PURE__ */ H({
|
|
158
|
+
__name: "FmFilterableMenuOptions",
|
|
159
|
+
props: /* @__PURE__ */ j({
|
|
160
|
+
modelValue: {},
|
|
161
|
+
maxHeight: {},
|
|
162
|
+
width: {},
|
|
163
|
+
handleItemChange: { type: Function },
|
|
164
|
+
items: {},
|
|
165
|
+
options: {}
|
|
166
|
+
}, {
|
|
167
|
+
search: {},
|
|
168
|
+
searchModifiers: {}
|
|
169
|
+
}),
|
|
170
|
+
emits: ["update:search"],
|
|
171
|
+
setup(e) {
|
|
172
|
+
const r = e, a = q(e, "search"), u = f(
|
|
173
|
+
() => new Q(r.items, ["label", "sublabel"], {
|
|
174
|
+
caseSensitive: !1,
|
|
175
|
+
sort: !0
|
|
176
|
+
})
|
|
177
|
+
), l = f(() => u.value.search(a.value)), n = x();
|
|
178
|
+
return console.log({ stickyRef: n }), (o, p) => {
|
|
179
|
+
const v = w("FmButton"), b = w("FmTextField"), h = w("FmMenuItem");
|
|
180
|
+
return P(), U("div", {
|
|
181
|
+
class: "relative",
|
|
182
|
+
style: W({ width: o.width })
|
|
183
|
+
}, [
|
|
184
|
+
I("div", {
|
|
185
|
+
class: "sticky top-0 bg-white mb-8",
|
|
186
|
+
ref_key: "stickyRef",
|
|
187
|
+
ref: n
|
|
188
|
+
}, [
|
|
189
|
+
$(b, {
|
|
190
|
+
modelValue: a.value,
|
|
191
|
+
"onUpdate:modelValue": p[1] || (p[1] = (c) => a.value = c),
|
|
192
|
+
placeholder: "Filter options"
|
|
193
|
+
}, {
|
|
194
|
+
append: J(() => [
|
|
195
|
+
a.value ? (P(), g(v, {
|
|
196
|
+
key: 0,
|
|
197
|
+
variant: "tertiary",
|
|
198
|
+
"prepend-icon": "close",
|
|
199
|
+
onClick: p[0] || (p[0] = (c) => a.value = "")
|
|
200
|
+
})) : N("", !0)
|
|
201
|
+
]),
|
|
202
|
+
_: 1
|
|
203
|
+
}, 8, ["modelValue"])
|
|
204
|
+
], 512),
|
|
205
|
+
I("div", Z, [
|
|
206
|
+
(P(!0), U(Y, null, K(l.value, (c, T) => (P(), g(h, {
|
|
207
|
+
key: T,
|
|
208
|
+
label: c.label,
|
|
209
|
+
sublabel: c.sublabel,
|
|
210
|
+
"model-value": M(V)(o.modelValue, c.value),
|
|
211
|
+
onClick: () => o.handleItemChange(M(V)(o.modelValue, c.value), c),
|
|
212
|
+
onVnodeMounted: (_) => {
|
|
213
|
+
var s, t;
|
|
214
|
+
return M(V)(o.modelValue, c.value) && ((s = _.el) == null || s.scrollIntoView({ behavior: "instant", block: "end" }), (t = _.el) == null || t.scrollIntoView({ behavior: "smooth", block: "center" })), void 0;
|
|
215
|
+
}
|
|
216
|
+
}, null, 8, ["label", "sublabel", "model-value", "onClick", "onVnodeMounted"]))), 128)),
|
|
217
|
+
l.value.length ? N("", !0) : (P(), g(h, {
|
|
218
|
+
key: 0,
|
|
219
|
+
disabled: "",
|
|
220
|
+
label: "No options available"
|
|
221
|
+
}))
|
|
222
|
+
])
|
|
223
|
+
], 4);
|
|
224
|
+
};
|
|
225
|
+
}
|
|
226
|
+
});
|
|
227
|
+
export {
|
|
228
|
+
ae as _,
|
|
229
|
+
ne as c,
|
|
230
|
+
re as u
|
|
231
|
+
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { defineComponent as I, computed as g, ref as z, resolveComponent as h, openBlock as n, createElementBlock as y, createVNode as _, withCtx as L, createElementVNode as f, toDisplayString as Y, unref as u, createBlock as p, createCommentVNode as w, Fragment as $, renderList as R, watch as E, mergeModels as O, useModel as C, renderSlot as H, normalizeClass as S } from "vue";
|
|
2
2
|
import { useCoreStore as W, useI18n as P } from "@feedmepos/mf-common";
|
|
3
|
-
import { u as q } from "./app-
|
|
4
|
-
import { d as U } from "./date2-
|
|
3
|
+
import { u as q } from "./app-yA2GcbOF.js";
|
|
4
|
+
import { d as U } from "./date2-CGBF6K5g.js";
|
|
5
5
|
import { useBreakpoints as G } from "@feedmepos/ui-library";
|
|
6
6
|
import { u as J, F as K } from "./SingleColumnLayout.vue_vue_type_script_setup_true_lang-CWZkVCAj.js";
|
|
7
|
-
import {
|
|
7
|
+
import { b as A } from "./app-uBuHtW8m.js";
|
|
8
8
|
const X = { class: "inline-flex" }, Z = { class: "inline-flex rounded-md items-center gap-4 justify-center h-[30px] px-8 py-4 bg-fm-color-neutral-gray-100 cursor-pointer text-fm-color-neutral-gray-400" }, ee = { class: "fm-typo-en-body-md-600 select-none text-ellipsis overflow-hidden whitespace-nowrap" }, te = { class: "relative" }, oe = { class: "sticky top-0 py-8 bg-white translate-y-[-12px]" }, ne = /* @__PURE__ */ I({
|
|
9
9
|
__name: "ChangeLocationComponent",
|
|
10
10
|
props: {
|
|
@@ -34,19 +34,19 @@ const X = { class: "inline-flex" }, Z = { class: "inline-flex rounded-md items-c
|
|
|
34
34
|
a.value = !1, o.selectLocation(o.locations.find((t) => t.dbName === e));
|
|
35
35
|
}
|
|
36
36
|
return (e, t) => {
|
|
37
|
-
const
|
|
37
|
+
const M = h("FmIcon"), Q = h("FmSearch"), D = h("FmMenuItem"), j = h("FmMenu");
|
|
38
38
|
return n(), y("div", X, [
|
|
39
39
|
_(j, { "close-on-click": !0 }, {
|
|
40
40
|
"menu-button": L(() => {
|
|
41
41
|
var r;
|
|
42
42
|
return [
|
|
43
43
|
f("div", Z, [
|
|
44
|
-
_(
|
|
44
|
+
_(M, {
|
|
45
45
|
name: e.showBusiness && a.value ? "store" : "storefront",
|
|
46
46
|
size: "sm"
|
|
47
47
|
}, null, 8, ["name"]),
|
|
48
48
|
f("div", ee, Y(e.showBusiness && a.value ? c.value : ((r = u(o)._currentLocation) == null ? void 0 : r.name) ?? u(v)("inventory.common.noLocationSelected")), 1),
|
|
49
|
-
_(
|
|
49
|
+
_(M, {
|
|
50
50
|
name: "expand_more",
|
|
51
51
|
size: "sm"
|
|
52
52
|
})
|
|
@@ -63,7 +63,7 @@ const X = { class: "inline-flex" }, Z = { class: "inline-flex rounded-md items-c
|
|
|
63
63
|
}, null, 8, ["model-value", "placeholder"])
|
|
64
64
|
]),
|
|
65
65
|
f("div", null, [
|
|
66
|
-
e.showBusiness ? (n(), p(
|
|
66
|
+
e.showBusiness ? (n(), p(D, {
|
|
67
67
|
key: 0,
|
|
68
68
|
"model-value": a.value,
|
|
69
69
|
label: c.value,
|
|
@@ -72,7 +72,7 @@ const X = { class: "inline-flex" }, Z = { class: "inline-flex rounded-md items-c
|
|
|
72
72
|
}, null, 8, ["model-value", "label"])) : w("", !0),
|
|
73
73
|
(n(!0), y($, null, R(l.value, (r) => {
|
|
74
74
|
var V;
|
|
75
|
-
return n(), p(
|
|
75
|
+
return n(), p(D, {
|
|
76
76
|
key: r.value,
|
|
77
77
|
"model-value": !a.value && ((V = u(o)._currentLocation) == null ? void 0 : V.dbName) === r.value,
|
|
78
78
|
label: r.label,
|
|
@@ -86,7 +86,7 @@ const X = { class: "inline-flex" }, Z = { class: "inline-flex rounded-md items-c
|
|
|
86
86
|
}), 128)),
|
|
87
87
|
(n(!0), y($, null, R(s.value, (r) => {
|
|
88
88
|
var V;
|
|
89
|
-
return n(), p(
|
|
89
|
+
return n(), p(D, {
|
|
90
90
|
key: r.value,
|
|
91
91
|
"model-value": !a.value && ((V = u(o)._currentLocation) == null ? void 0 : V.dbName) === r.value,
|
|
92
92
|
label: r.label,
|
|
@@ -98,7 +98,7 @@ const X = { class: "inline-flex" }, Z = { class: "inline-flex rounded-md items-c
|
|
|
98
98
|
}
|
|
99
99
|
}, null, 8, ["model-value", "label", "onClick", "onVnodeMounted"]);
|
|
100
100
|
}), 128)),
|
|
101
|
-
!e.showBusiness && !l.value.length && !s.value.length ? (n(), p(
|
|
101
|
+
!e.showBusiness && !l.value.length && !s.value.length ? (n(), p(D, {
|
|
102
102
|
key: 1,
|
|
103
103
|
disabled: "",
|
|
104
104
|
label: u(v)("inventory.common.noResultFound")
|
|
@@ -260,8 +260,8 @@ const le = { class: "inline-flex rounded-md items-center gap-4 justify-center h-
|
|
|
260
260
|
class: "w-full"
|
|
261
261
|
}, null, 8, ["model-value", "placeholder"])) : w("", !0)
|
|
262
262
|
]),
|
|
263
|
-
(n(!0), y($, null, R(l.actions, (t,
|
|
264
|
-
key:
|
|
263
|
+
(n(!0), y($, null, R(l.actions, (t, M) => (n(), p(e, {
|
|
264
|
+
key: M,
|
|
265
265
|
variant: "tertiary",
|
|
266
266
|
"prepend-icon": t.icon,
|
|
267
267
|
onClick: t.onClick
|