@feedmepos/mf-inventory-portal 1.3.14 → 1.3.16-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-BckRpjrE.js +309 -0
- package/dist/{ApprovalView-BVszC4Cw.js → ApprovalView-C5rVI_O7.js} +17 -17
- package/dist/{BindingsDialog-B3L_3xdo.js → BindingsDialog-Y530TN7D.js} +13 -13
- package/dist/{BindingsPicker-A4togB2v.js → BindingsPicker-BbQ9Ygep.js} +2 -2
- package/dist/{BindingsTable-DacoMdY6.js → BindingsTable-ClHmMFLP.js} +3 -3
- package/dist/{ClosingDraftView-C9tvMgLl.js → ClosingDraftView-Dn16j97_.js} +15 -15
- package/dist/{ClosingHistoryView-CqqzqSqU.js → ClosingHistoryView-BK7KJbbf.js} +5 -5
- package/dist/{ClosingTemplateView-CLi0XE8S.js → ClosingTemplateView-D2petgop.js} +14 -14
- package/dist/DefaultView-CdCpGT5n.js +31 -0
- package/dist/{DeliveryOrderPrintPreview-DEHEfd80.js → DeliveryOrderPrintPreview-C_S4SG8h.js} +11 -11
- package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-GT5YUrJz.js +76 -0
- package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-xxS4P6uo.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-q8fQfbEV.js} +2 -2
- package/dist/{FmMultiselectDialog-CR2peMEL.js → FmMultiselectDialog-6JADZ5xC.js} +1 -1
- package/dist/{FmMultiselectDialog-FGR8t9rz.js → FmMultiselectDialog-BEkAAZZp.js} +16 -16
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-DgXOsVLe.js → FmUnitInput.vue_vue_type_script_setup_true_lang-kaW8FwP5.js} +6 -5
- package/dist/{ImportView-CEI0QqGz.js → ImportView-D8i5_GO9.js} +6 -6
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-cRgKjHY0.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-baV8qK0P.js} +1 -1
- package/dist/{IngredientGroupView-DEELNMpl.js → IngredientGroupView-BiqFuJx0.js} +5 -5
- package/dist/{IngredientsView-D3OcjZdT.js → IngredientsView-CQHobUvF.js} +15 -15
- package/dist/{IntegrationExplorerView-ByPpT3hC.js → IntegrationExplorerView-BFbGH5-S.js} +5 -5
- package/dist/{IntegrationView-BSqlJBp-.js → IntegrationView-UF8UwPNk.js} +81 -81
- package/dist/{InventoryBindingForm-SgmyJvCs.js → InventoryBindingForm-DB4LwgzC.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-GLipe2bO.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-Dc0sxYMV.js} +5 -5
- package/dist/{InventoryBindingSummary-D6deGR6B.js → InventoryBindingSummary-Bwn4HZy5.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DGDL-t7m.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BvBOo5wi.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-ff1rPUJW.js → PremiumBadge.vue_vue_type_script_setup_true_lang-D2wiVygJ.js} +7 -7
- package/dist/{PublishView-7TAa2QQB.js → PublishView-BFac9M5C.js} +15 -15
- package/dist/{PurchaseOrderPrintPreview-DhcnInSW.js → PurchaseOrderPrintPreview-tree07u5.js} +11 -11
- package/dist/{ReceiveRequestView-Z3JYH3gf.js → ReceiveRequestView-DLERk28I.js} +30 -29
- package/dist/RecipeView-DDgN0DkI.js +2898 -0
- package/dist/{SettingsView-F_BWUxoq.js → SettingsView-BWw7AhqT.js} +4 -4
- package/dist/StockView-D0wW54eN.js +2439 -0
- package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-CxNgi5uv.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-Btor1W6X.js} +1 -1
- package/dist/{SupplierView-DklOXwHD.js → SupplierView-Bd_PLuYt.js} +12 -12
- package/dist/{SurchargeView-DcImorUr.js → SurchargeView-F1B_fcv-.js} +16 -16
- package/dist/{SystemTrailDialog.vue_vue_type_script_setup_true_lang-xdLxGAOM.js → SystemTrailDialog.vue_vue_type_script_setup_true_lang-95m2qnoM.js} +2 -2
- package/dist/{TemplatePublishDialog.vue_vue_type_script_setup_true_lang-Bu4XKhII.js → TemplatePublishDialog.vue_vue_type_script_setup_true_lang-DHKDRFgr.js} +1 -1
- package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-DMrRfwKD.js → TransferDetails.vue_vue_type_script_setup_true_lang-BC0PNCtM.js} +812 -828
- package/dist/{TransferTemplateView-DTdlSI2b.js → TransferTemplateView-DM8qOCpO.js} +20 -19
- package/dist/{UnitCostHistoryView-CQ_DJE-t.js → UnitCostHistoryView-Bzocbij3.js} +246 -243
- package/dist/{UnitDisplayControl.vue_vue_type_script_setup_true_lang-QuejzcCL.js → UnitDisplayControl.vue_vue_type_script_setup_true_lang-BDzz91rl.js} +4 -4
- package/dist/{UnitView-DzcCdCGw.js → UnitView-EndrhMnI.js} +7 -7
- package/dist/{WarehouseView-BYj9DD1N.js → WarehouseView-BJZELae1.js} +25 -25
- package/dist/{WastageTemplateView--w6an2Ar.js → WastageTemplateView-s6ZiQR8E.js} +14 -14
- package/dist/{app-CPlgHGkC.js → app-CaGW5ogt.js} +23768 -22367
- package/dist/app.d.ts +148 -6
- package/dist/app.js +5 -5
- package/dist/{closing-template-B9JOB9ah.js → closing-template-CUgXd6Na.js} +1 -1
- package/dist/components/HrmPermissionGuard.vue.d.ts +54 -0
- package/dist/composable/useHrmPermission.d.ts +17 -0
- package/dist/composable/useInventoryAccess.d.ts +11 -0
- package/dist/composable/useNavigationMenu.d.ts +14 -0
- package/dist/{date2-Ci9tlLMJ.js → date2-fQDP1Rtk.js} +1 -1
- package/dist/{dayjs.min-DTx2lmq6.js → dayjs.min-UwaUKDHA.js} +32 -32
- package/dist/{decimal-iKhH_VJO.js → decimal-CKysiOcn.js} +2 -2
- package/dist/{defineDeepModel-C25T8oyP.js → defineDeepModel-CwM7TJuT.js} +1 -1
- package/dist/{duplicate-template-BptIBRQ3.js → duplicate-template-Bb5b_40t.js} +1 -1
- package/dist/{empty-placeholder-wf6-BWE8.js → empty-placeholder-B0QU467o.js} +1 -1
- package/dist/{export-CKuVd5pP.js → export-nbyx5EYR.js} +1 -1
- package/dist/{feature-CXMSo4z7.js → feature-Dqme8-Xr.js} +22 -22
- package/dist/{format-time-from-id-Bk60g6lh.js → format-time-from-id-DsRN_JB-.js} +1 -1
- package/dist/{format-unit-display-C4nf8hG8.js → format-unit-display-Df1v6CMC.js} +11 -11
- package/dist/{import-export.helper-BDzsQcYD.js → import-export.helper-QInnTLhY.js} +6 -6
- package/dist/{index-CUVlQagt.js → index-BCwp1fKe.js} +3 -3
- package/dist/{index-DiKOwY5C.js → index-CbwjQK_M.js} +1 -1
- package/dist/{index-DTszDSPO.js → index-Cij7rBSm.js} +1 -1
- package/dist/{inventory-core-dart.default-Cn3sonot.js → inventory-core-dart.default-Bgq3Sd7C.js} +10 -10
- package/dist/{lodash-DGOK6ZkA.js → lodash-B15PREHg.js} +1 -1
- package/dist/{lz-string-QrWbdmw6.js → lz-string-DdnEcXDA.js} +21 -21
- package/dist/{netsuite-DglgyKcZ.js → netsuite-NcBlI9QO.js} +37 -37
- package/dist/{number-Ut7u2ZEE.js → number-DQ-rkxYN.js} +11 -11
- package/dist/{predefined-templates-DZtFebPU.js → predefined-templates-zYAuXO9-.js} +1 -1
- package/dist/{purchase-order-template-DhNVhXmD.js → purchase-order-template-DcoKKoiW.js} +1 -1
- package/dist/{recalculationUtils-CqJRd9B2.js → recalculationUtils-MW6hf5oz.js} +1 -1
- package/dist/router/name.d.ts +1 -0
- package/dist/router/route-permission.d.ts +10 -0
- package/dist/{rules-BIm67nl_.js → rules-CxC7ePEb.js} +2 -2
- package/dist/{stock-Dc4_U69J.js → stock-Bly2vXJq.js} +28 -27
- package/dist/{stock-CzdMn9n8.js → stock-Bqk5_C4b.js} +3 -3
- package/dist/{supplier-De5G6CeF.js → supplier-B0yIc028.js} +2 -2
- package/dist/{surcharge-CN5FtDZq.js → surcharge-BZa9y16I.js} +8 -8
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-ingredient-select-dialog-Wy4CtYcZ.js → use-ingredient-select-dialog-BGPPfGO-.js} +2 -2
- package/dist/{use-inventory-binding-dialog-C1LCH0jV.js → use-inventory-binding-dialog-DUsjKdNr.js} +2 -2
- package/dist/{use-template-enabled-locations-BfZFcXZ_.js → use-template-enabled-locations-D2EWKhWK.js} +2 -2
- package/dist/use-transfer-locations-BRQbfZYI.js +116 -0
- package/dist/useHrmPermission-BZSfcBwi.js +16 -0
- package/dist/useNavigationMenu-C7F5h-H5.js +162 -0
- package/dist/views/DefaultView.vue.d.ts +2 -0
- package/dist/views/receive-request/composables/use-order-draft-permission.d.ts +2 -5
- package/dist/views/recipe/components/recipe-bulk-editor/RecipeBulkEditorDialog.vue.d.ts +19 -0
- package/dist/views/recipe/components/recipe-bulk-editor/RecipeBulkEditorQueryStep.vue.d.ts +2 -0
- package/dist/views/recipe/components/recipe-bulk-editor/RecipeBulkEditorSummaryStep.vue.d.ts +2 -0
- package/dist/views/recipe/composables/use-recipe-bulk-editor.d.ts +634 -0
- package/dist/{vue-i18n-CvVV4Xof.js → vue-i18n-BuXEP0EQ.js} +348 -348
- package/dist/{xlsx-lawW6Hwh.js → xlsx-C0BSmeBh.js} +1 -1
- package/dist/{xlsx.util-DSCqPt8v.js → xlsx.util-CyLHh8k-.js} +1 -1
- package/package.json +4 -3
- package/dist/App-BQZQFNKG.js +0 -411
- package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BDZVaj3l.js +0 -188
- package/dist/RecipeView--ALwYD-O.js +0 -1692
- package/dist/StockView-BLrquJf2.js +0 -2406
|
@@ -1,188 +0,0 @@
|
|
|
1
|
-
import { u as B, t as h, T as E, W as R, B as V } from "./app-CPlgHGkC.js";
|
|
2
|
-
import { u as z } from "./supplier-De5G6CeF.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 W, withCtx as $, createBlock as I, createCommentVNode as C, Fragment as x, renderList as Y, unref as N } from "vue";
|
|
4
|
-
import { F as j } from "./FmMultiselectDialog-FGR8t9rz.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
|
-
}), w = 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: w,
|
|
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
|
-
W(L, {
|
|
148
|
-
modelValue: p.value,
|
|
149
|
-
"onUpdate:modelValue": v[1] || (v[1] = (l) => p.value = l),
|
|
150
|
-
placeholder: "Filter options"
|
|
151
|
-
}, {
|
|
152
|
-
append: $(() => [
|
|
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(x, null, Y(r.value, (l, w) => (y(), I(F, {
|
|
165
|
-
key: w,
|
|
166
|
-
label: l.label,
|
|
167
|
-
sublabel: l.sublabel,
|
|
168
|
-
"model-value": N(V)(d.modelValue, l.value),
|
|
169
|
-
onClick: () => d.handleItemChange(N(V)(d.modelValue, l.value), l),
|
|
170
|
-
onVnodeMounted: (T) => {
|
|
171
|
-
var s, e;
|
|
172
|
-
return N(V)(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
|
-
};
|