@feedmepos/mf-inventory-portal 1.2.51 → 1.2.53-dev.2
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-BJ_vKOR1.js → App-C8X881gs.js} +75 -70
- package/dist/{ApprovalView-B_prTTtl.js → ApprovalView-CnwwVO46.js} +34 -34
- package/dist/{BindingsDialog-BPuKgJIk.js → BindingsDialog-MM6wv-je.js} +2 -2
- package/dist/{BindingsPicker-Dv_cmEil.js → BindingsPicker-C_VV8t8e.js} +2 -2
- package/dist/{BindingsTable-BNSfYRfq.js → BindingsTable-CabKT98b.js} +4 -4
- package/dist/{ClosingDraftView-C78tcaJ3.js → ClosingDraftView-D3dwGHdG.js} +19 -18
- package/dist/{ClosingHistoryView-DY8liEk3.js → ClosingHistoryView-CBMIWL-O.js} +27 -27
- package/dist/{ClosingTemplateView-pJXEcrjO.js → ClosingTemplateView-FHCJY1Y1.js} +525 -511
- package/dist/{DeliveryOrderPrintPreview-Bu_l-kxu.js → DeliveryOrderPrintPreview-BB4HVWaM.js} +1 -1
- package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-Dq2vcIMB.js +188 -0
- package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-DHe5G3kX.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-BSrjl8Vc.js} +12 -12
- package/dist/FmMultiselectDialog-D8E2bGwL.js +618 -0
- package/dist/{FmMultiselectDialog-C3iCMK5I.js → FmMultiselectDialog-HP5xQpLC.js} +1 -1
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-CefvebOx.js → FmUnitInput.vue_vue_type_script_setup_true_lang--yzPFTUH.js} +3 -3
- package/dist/{ImportView-JrenRgiI.js → ImportView-DQPKyc1T.js} +7 -7
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-CSdxodp6.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-DZAOa26T.js} +1 -1
- package/dist/{IngredientGroupView-aDFq_ZDh.js → IngredientGroupView-CiR31jQz.js} +108 -107
- package/dist/{IngredientsView-DSh3UqDg.js → IngredientsView-Csa1Lifk.js} +126 -125
- package/dist/{IntegrationView-KhZ78uxM.js → IntegrationView-DqGXjNPx.js} +80 -80
- package/dist/{InventoryBindingForm-DZu0CZYh.js → InventoryBindingForm-kZ6JIgK4.js} +1 -1
- package/dist/InventoryBindingForm.vue_vue_type_script_setup_true_lang-D-qjPLHS.js +403 -0
- package/dist/{InventoryBindingSummary-DZxLhZ_-.js → InventoryBindingSummary-Cn3y7cXX.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DAwpZY3n.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-5cpvf_ze.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-CPDxwz-V.js → PremiumBadge.vue_vue_type_script_setup_true_lang-DW_3XEAx.js} +2 -2
- package/dist/{PublishView-CLnQ7NBN.js → PublishView-tvxBQLp2.js} +3 -3
- package/dist/{PurchaseOrderPrintPreview-DiBztBma.js → PurchaseOrderPrintPreview-CqSijErx.js} +1 -1
- package/dist/ReceiveRequestView-Oq87gJ1d.js +2913 -0
- package/dist/{RecipeView-BPIMvoTw.js → RecipeView-c7SNUwhq.js} +83 -82
- package/dist/{StockView-CI8MUJay.js → StockView-B3ocNf5D.js} +113 -112
- package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-DEBHEMkh.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-Br3p4H5X.js} +1 -1
- package/dist/{SupplierView-COihDMNY.js → SupplierView-7UHgW64q.js} +28 -27
- package/dist/SurchargeView-CkBBz_W1.js +460 -0
- package/dist/{SystemTrailDialog.vue_vue_type_script_setup_true_lang-D-c0Ayis.js → SystemTrailDialog.vue_vue_type_script_setup_true_lang-BxqwBD1A.js} +2 -2
- package/dist/TableActionableRow.vue_vue_type_script_setup_true_lang-Ca_eYa8-.js +84 -0
- package/dist/TemplatePublishDialog.vue_vue_type_script_setup_true_lang-DZxJDrcN.js +201 -0
- package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-BVuuw11z.js → TransferDetails.vue_vue_type_script_setup_true_lang-BP7PC5FE.js} +15 -15
- package/dist/{TransferTemplateView-B2NNfrEq.js → TransferTemplateView-gnib1NSD.js} +82 -81
- package/dist/{UnitView-ZsbM07hw.js → UnitView-gccTcBDm.js} +20 -19
- package/dist/{WarehouseView-Cd5RFu5v.js → WarehouseView-9Tzk2HFV.js} +21 -20
- package/dist/WastageTemplateView-bxDDb0it.js +2383 -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 +8 -0
- package/dist/api/surcharge.d.ts +31 -0
- package/dist/app-DiX-EfV6.js +8167 -0
- package/dist/{app-CySQTQxj.js → app-S9HQBEDL.js} +4514 -4410
- package/dist/app.d.ts +53 -0
- package/dist/app.js +1 -1
- package/dist/closing-template-DSppbNBU.js +125 -0
- package/dist/component-DpCUABT3.js +82 -0
- package/dist/components/FmInventoryTableToolbar.vue.d.ts +8 -0
- package/dist/components/FmMultiselectDialogProps.d.ts +5 -0
- package/dist/components/TemplatePublishDialog.d.ts +2 -0
- package/dist/{date2-BWoUn1K_.js → date2-a0EDY-8z.js} +1 -1
- package/dist/{dayjs.min-cMW8olEu.js → dayjs.min-D3uqC-FM.js} +26 -26
- package/dist/{decimal-8BRzZQU6.js → decimal-iC0dKSbY.js} +2 -2
- package/dist/{defineDeepModel-AsUZ-DyW.js → defineDeepModel-sBbNFqqR.js} +1 -1
- package/dist/{duplicate-template-CyHfZR3S.js → duplicate-template-Dwe_h80w.js} +1 -1
- package/dist/{feature-Dm0FnWf9.js → feature-12j10xt_.js} +8956 -6221
- package/dist/{format-time-from-id-C9lmv5BP.js → format-time-from-id-Dyyvx-ha.js} +1 -1
- package/dist/{format-unit-display-BV8pJisO.js → format-unit-display-DstE3kKS.js} +11 -11
- package/dist/{import-export.helper-Djxw_H5S.js → import-export.helper-CR8rEBJV.js} +5 -5
- package/dist/{index-D6u3kywf.js → index-BbpxRM23.js} +1 -1
- package/dist/{index-8hCa5_Gb.js → index-Ca8nKTEy.js} +1 -1
- package/dist/{index-DidYtgNc.js → index-CvRrsISb.js} +3 -3
- package/dist/{lodash-CW_Ea6mA.js → lodash-BiCqhRt2.js} +1 -1
- package/dist/netsuite-B84CfGmT.js +5454 -0
- package/dist/{purchase-order-template-BTzjcgrO.js → purchase-order-template-ogVLqXnM.js} +1 -1
- package/dist/router/name.d.ts +1 -0
- package/dist/{rules-DkVWS5mF.js → rules-C0W8tBAK.js} +9 -9
- package/dist/{stock-CHw8pI8V.js → stock-BfY956rP.js} +3 -3
- package/dist/{stock-D8hLHgeN.js → stock-Dy08ISna.js} +1 -1
- package/dist/stores/feature.d.ts +4 -0
- package/dist/stores/integration/netsuite.d.ts +5 -0
- package/dist/stores/surcharge.d.ts +18 -0
- package/dist/style.css +1 -1
- package/dist/{supplier-Dv83IfQr.js → supplier-BGfg_Uzv.js} +2 -2
- package/dist/surcharge-DZkc9Zxa.js +71 -0
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-ingredient-select-dialog-CJjd4g-6.js → use-ingredient-select-dialog-fOf-xHgn.js} +2 -2
- package/dist/{use-inventory-binding-dialog-D4g79p5S.js → use-inventory-binding-dialog-CF6dmCop.js} +2 -2
- package/dist/{use-template-enabled-locations-2-Cg2iqQdq.js → use-template-enabled-locations-2-C9YTP8tP.js} +2 -2
- package/dist/views/adjustment-template/wastage-template/actions.d.ts +4 -1
- package/dist/views/receive-request/components/transfer-form/TransferFormWithController.vue.d.ts +714 -0
- package/dist/views/receive-request/components/transfer-form/composables/use-transfer-items.d.ts +8 -1
- package/dist/views/stock/components/StockRecordCard.vue.d.ts +1 -1
- package/dist/views/surcharge/SurchargeView.vue.d.ts +2 -0
- package/dist/{vue-i18n-kUcLfpvT.js → vue-i18n-CVvQI1xZ.js} +571 -571
- package/dist/{xlsx-BjeMbhDF.js → xlsx-C46Afq2T.js} +1 -1
- package/dist/{xlsx.util-9eMlJfd9.js → xlsx.util-iJmlHY2V.js} +1 -1
- package/package.json +2 -2
- package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-Dgibb-Fh.js +0 -231
- package/dist/FmMultiselectDialog-CDONDKxE.js +0 -598
- package/dist/InventoryBindingForm.vue_vue_type_script_setup_true_lang-YuCn0irA.js +0 -375
- package/dist/ReceiveRequestView-_TOSnDGJ.js +0 -2913
- package/dist/TableActionableRow.vue_vue_type_script_setup_true_lang-cfFHDIwQ.js +0 -162
- package/dist/TemplatePublishDialog.vue_vue_type_script_setup_true_lang-D8vbPlie.js +0 -155
- package/dist/WastageTemplateView-DpikyyZW.js +0 -2327
- package/dist/app-uBuHtW8m.js +0 -8127
- package/dist/closing-template-DXGjC5AG.js +0 -117
- package/dist/cypress/component/receive-request/KDI-15-total-price-currency.cy.d.ts +0 -2
- package/dist/netsuite-BEto-z0v.js +0 -5131
- package/dist/views/ingredients/helper/calculate-default-cost.d.ts +0 -9
- package/dist/views/receive-request/components/transfer-form/TransferForm2.vue.d.ts +0 -22
package/dist/{DeliveryOrderPrintPreview-Bu_l-kxu.js → DeliveryOrderPrintPreview-BB4HVWaM.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-S9HQBEDL.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,188 @@
|
|
|
1
|
+
import { u as B, t as h, T as E, V as R, z as w } from "./app-S9HQBEDL.js";
|
|
2
|
+
import { u as z } from "./supplier-BGfg_Uzv.js";
|
|
3
|
+
import { computed as u, defineComponent as A, mergeModels as q, useModel as D, ref as H, resolveComponent as g, openBlock as y, createElementBlock as O, normalizeStyle as U, createElementVNode as M, createVNode as $, withCtx as x, createBlock as I, createCommentVNode as C, Fragment as W, renderList as Y, unref as N } from "vue";
|
|
4
|
+
import { F as j } from "./FmMultiselectDialog-D8E2bGwL.js";
|
|
5
|
+
function _(o) {
|
|
6
|
+
const c = R.safeParse(o);
|
|
7
|
+
if (c.success) return c.data;
|
|
8
|
+
throw new Error("Invalid supplier data");
|
|
9
|
+
}
|
|
10
|
+
function S(o) {
|
|
11
|
+
return {
|
|
12
|
+
_id: o.doc._id,
|
|
13
|
+
internal: o.type,
|
|
14
|
+
contactName: o.doc.profile.name,
|
|
15
|
+
name: o.doc.profile.name ?? "",
|
|
16
|
+
email: o.doc.profile.email,
|
|
17
|
+
phoneNumber: o.doc.profile.phoneNo,
|
|
18
|
+
registrationNumber: o.doc.profile.regNo,
|
|
19
|
+
address: o.doc.profile.address ?? {
|
|
20
|
+
line1: "",
|
|
21
|
+
state: "",
|
|
22
|
+
city: "",
|
|
23
|
+
postcode: "",
|
|
24
|
+
country: ""
|
|
25
|
+
},
|
|
26
|
+
preparationTime: o.preparationTime
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
function G(o, c, p = !1, f = !1) {
|
|
30
|
+
const r = z(), n = B();
|
|
31
|
+
n.watchLocation(async () => {
|
|
32
|
+
var m;
|
|
33
|
+
await r.readSuppliers();
|
|
34
|
+
const s = o();
|
|
35
|
+
if ((m = s.supplier) != null && m._id) return;
|
|
36
|
+
const e = f ? r.suppliers[0] : r.businessSuppliers[0], t = (p ? n.locations.filter((a) => a.doc._id !== n.currentLocation.doc._id) : n.locations)[0];
|
|
37
|
+
c({
|
|
38
|
+
...s,
|
|
39
|
+
supplier: e ? _(e) : t ? S(t) : s.supplier
|
|
40
|
+
});
|
|
41
|
+
});
|
|
42
|
+
const d = u(
|
|
43
|
+
() => {
|
|
44
|
+
var s, e;
|
|
45
|
+
return typeof ((e = (s = o()) == null ? void 0 : s.supplier) == null ? void 0 : e.internal) == "string" ? h.enum.transfer : h.enum.purchase;
|
|
46
|
+
}
|
|
47
|
+
), v = u({
|
|
48
|
+
get() {
|
|
49
|
+
var s, e;
|
|
50
|
+
return (e = (s = o()) == null ? void 0 : s.supplier) == null ? void 0 : e._id;
|
|
51
|
+
},
|
|
52
|
+
set(s) {
|
|
53
|
+
const e = o() ?? {};
|
|
54
|
+
if (d.value === h.enum.purchase) {
|
|
55
|
+
const k = (f ? r.suppliers : r.businessSuppliers).find((P) => P._id === s);
|
|
56
|
+
c({
|
|
57
|
+
...e,
|
|
58
|
+
supplier: k ? _(k) : e.supplier
|
|
59
|
+
});
|
|
60
|
+
return;
|
|
61
|
+
}
|
|
62
|
+
const m = (p ? n.allLocations.filter(
|
|
63
|
+
(a) => a.doc._id !== n.currentLocation.doc._id
|
|
64
|
+
) : n.allLocations).find((a) => a.doc._id === s);
|
|
65
|
+
c({
|
|
66
|
+
...e,
|
|
67
|
+
supplier: m ? S(m) : e.supplier
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
}), b = u(() => r.locationSuppliers.map(_)), L = u(() => r.businessSuppliers.map(_)), F = u(() => {
|
|
71
|
+
const s = [...b.value], e = [...L.value];
|
|
72
|
+
return f ? [...e, ...s] : e;
|
|
73
|
+
}), l = u(() => {
|
|
74
|
+
var i;
|
|
75
|
+
const s = ((i = n._currentLocation) == null ? void 0 : i.type) === E.warehouse;
|
|
76
|
+
return (p ? n.allLocations.filter(
|
|
77
|
+
(t) => t.doc._id !== n.currentLocation.doc._id
|
|
78
|
+
) : n.allLocations).filter((t) => s || t.acceptRequest).map(S);
|
|
79
|
+
}), V = u(() => {
|
|
80
|
+
if (d.value === h.enum.purchase) {
|
|
81
|
+
const e = b.value.map((t) => ({
|
|
82
|
+
label: t.name,
|
|
83
|
+
value: t._id
|
|
84
|
+
})), i = L.value.map((t) => ({
|
|
85
|
+
label: t.name,
|
|
86
|
+
sublabel: "Business supplier",
|
|
87
|
+
value: t._id
|
|
88
|
+
}));
|
|
89
|
+
return f ? [...e, ...i] : i;
|
|
90
|
+
}
|
|
91
|
+
return l.value.map((e) => ({
|
|
92
|
+
label: e.name,
|
|
93
|
+
sublabel: e.internal ? `${e.internal}` : void 0,
|
|
94
|
+
value: e._id
|
|
95
|
+
}));
|
|
96
|
+
}), T = u(() => {
|
|
97
|
+
var t, m;
|
|
98
|
+
const s = (m = (t = o()) == null ? void 0 : t.supplier) == null ? void 0 : m._id;
|
|
99
|
+
if (d.value === h.enum.purchase) {
|
|
100
|
+
const a = r.suppliers.find((k) => k._id === s);
|
|
101
|
+
return a ? _(a) : null;
|
|
102
|
+
}
|
|
103
|
+
const i = n.allLocations.find((a) => a.doc._id);
|
|
104
|
+
return i ? S(i) : null;
|
|
105
|
+
});
|
|
106
|
+
return {
|
|
107
|
+
transferLocationModel: v,
|
|
108
|
+
transferLocationOptions: V,
|
|
109
|
+
locationOptionsTypePurchase: F,
|
|
110
|
+
locationOptionsTypePurchaseLocationLevel: b,
|
|
111
|
+
locationOptionsTypeTransfer: l,
|
|
112
|
+
selectedLocation: T
|
|
113
|
+
};
|
|
114
|
+
}
|
|
115
|
+
const J = { class: "overflow-y-auto h-full pb-8" }, ee = /* @__PURE__ */ A({
|
|
116
|
+
__name: "FmFilterableMenuOptions",
|
|
117
|
+
props: /* @__PURE__ */ q({
|
|
118
|
+
modelValue: {},
|
|
119
|
+
maxHeight: {},
|
|
120
|
+
width: {},
|
|
121
|
+
handleItemChange: { type: Function },
|
|
122
|
+
items: {},
|
|
123
|
+
options: {}
|
|
124
|
+
}, {
|
|
125
|
+
search: {},
|
|
126
|
+
searchModifiers: {}
|
|
127
|
+
}),
|
|
128
|
+
emits: ["update:search"],
|
|
129
|
+
setup(o) {
|
|
130
|
+
const c = o, p = D(o, "search"), f = u(
|
|
131
|
+
() => new j(c.items, ["label", "sublabel"], {
|
|
132
|
+
caseSensitive: !1,
|
|
133
|
+
sort: !0
|
|
134
|
+
})
|
|
135
|
+
), r = u(() => f.value.search(p.value)), n = H();
|
|
136
|
+
return console.log({ stickyRef: n }), (d, v) => {
|
|
137
|
+
const b = g("FmButton"), L = g("FmTextField"), F = g("FmMenuItem");
|
|
138
|
+
return y(), O("div", {
|
|
139
|
+
class: "relative",
|
|
140
|
+
style: U({ width: d.width })
|
|
141
|
+
}, [
|
|
142
|
+
M("div", {
|
|
143
|
+
class: "sticky top-0 bg-white mb-8",
|
|
144
|
+
ref_key: "stickyRef",
|
|
145
|
+
ref: n
|
|
146
|
+
}, [
|
|
147
|
+
$(L, {
|
|
148
|
+
modelValue: p.value,
|
|
149
|
+
"onUpdate:modelValue": v[1] || (v[1] = (l) => p.value = l),
|
|
150
|
+
placeholder: "Filter options"
|
|
151
|
+
}, {
|
|
152
|
+
append: x(() => [
|
|
153
|
+
p.value ? (y(), I(b, {
|
|
154
|
+
key: 0,
|
|
155
|
+
variant: "tertiary",
|
|
156
|
+
"prepend-icon": "close",
|
|
157
|
+
onClick: v[0] || (v[0] = (l) => p.value = "")
|
|
158
|
+
})) : C("", !0)
|
|
159
|
+
]),
|
|
160
|
+
_: 1
|
|
161
|
+
}, 8, ["modelValue"])
|
|
162
|
+
], 512),
|
|
163
|
+
M("div", J, [
|
|
164
|
+
(y(!0), O(W, null, Y(r.value, (l, V) => (y(), I(F, {
|
|
165
|
+
key: V,
|
|
166
|
+
label: l.label,
|
|
167
|
+
sublabel: l.sublabel,
|
|
168
|
+
"model-value": N(w)(d.modelValue, l.value),
|
|
169
|
+
onClick: () => d.handleItemChange(N(w)(d.modelValue, l.value), l),
|
|
170
|
+
onVnodeMounted: (T) => {
|
|
171
|
+
var s, e;
|
|
172
|
+
return N(w)(d.modelValue, l.value) && ((s = T.el) == null || s.scrollIntoView({ behavior: "instant", block: "end" }), (e = T.el) == null || e.scrollIntoView({ behavior: "smooth", block: "center" })), void 0;
|
|
173
|
+
}
|
|
174
|
+
}, null, 8, ["label", "sublabel", "model-value", "onClick", "onVnodeMounted"]))), 128)),
|
|
175
|
+
r.value.length ? C("", !0) : (y(), I(F, {
|
|
176
|
+
key: 0,
|
|
177
|
+
disabled: "",
|
|
178
|
+
label: "No options available"
|
|
179
|
+
}))
|
|
180
|
+
])
|
|
181
|
+
], 4);
|
|
182
|
+
};
|
|
183
|
+
}
|
|
184
|
+
});
|
|
185
|
+
export {
|
|
186
|
+
ee as _,
|
|
187
|
+
G as u
|
|
188
|
+
};
|
|
@@ -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-S9HQBEDL.js";
|
|
4
|
+
import { d as U } from "./date2-a0EDY-8z.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 { D as A } from "./app-DiX-EfV6.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 D = h("FmIcon"), Q = h("FmSearch"), M = 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
|
+
_(D, {
|
|
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
|
+
_(D, {
|
|
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(M, {
|
|
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(M, {
|
|
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(M, {
|
|
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(M, {
|
|
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, D) => (n(), p(e, {
|
|
264
|
+
key: D,
|
|
265
265
|
variant: "tertiary",
|
|
266
266
|
"prepend-icon": t.icon,
|
|
267
267
|
onClick: t.onClick
|