@feedmepos/mf-inventory-portal 1.3.14-dev.1 → 1.3.14
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-BQZQFNKG.js +411 -0
- package/dist/{ApprovalView-BxioAXpO.js → ApprovalView-BVszC4Cw.js} +7 -7
- package/dist/{BindingsDialog-Dn_hP7Ji.js → BindingsDialog-B3L_3xdo.js} +13 -13
- package/dist/{BindingsPicker-BEXOUaoI.js → BindingsPicker-A4togB2v.js} +2 -2
- package/dist/{BindingsTable-CsRLA5J_.js → BindingsTable-DacoMdY6.js} +3 -3
- package/dist/{ClosingDraftView-DoH9ZcGA.js → ClosingDraftView-C9tvMgLl.js} +137 -137
- package/dist/{ClosingHistoryView-BWf_gIrc.js → ClosingHistoryView-CqqzqSqU.js} +32 -32
- package/dist/{ClosingTemplateView-BKRxzvQX.js → ClosingTemplateView-CLi0XE8S.js} +15 -15
- package/dist/{DeliveryOrderPrintPreview-HzspgQXj.js → DeliveryOrderPrintPreview-DEHEfd80.js} +11 -11
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DstxeP1q.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BDZVaj3l.js} +16 -16
- package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-E9FFFhwx.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-xxS4P6uo.js} +2 -2
- package/dist/{FmMultiselectDialog-3uKA-o0f.js → FmMultiselectDialog-CR2peMEL.js} +1 -1
- package/dist/{FmMultiselectDialog-uFZKKIiO.js → FmMultiselectDialog-FGR8t9rz.js} +2 -2
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-C1KGaqi7.js → FmUnitInput.vue_vue_type_script_setup_true_lang-DgXOsVLe.js} +18 -18
- package/dist/{ImportView-zrNDzp3k.js → ImportView-CEI0QqGz.js} +6 -6
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-B2vMgXVZ.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-cRgKjHY0.js} +1 -1
- package/dist/{IngredientGroupView-HcAKvPur.js → IngredientGroupView-DEELNMpl.js} +6 -6
- package/dist/{IngredientsView-CRB5UN-e.js → IngredientsView-D3OcjZdT.js} +16 -16
- package/dist/{IntegrationExplorerView-k3IHeiOU.js → IntegrationExplorerView-ByPpT3hC.js} +5 -5
- package/dist/{IntegrationView-B3WeQTDB.js → IntegrationView-BSqlJBp-.js} +13 -13
- package/dist/{InventoryBindingForm-B-7SQKl2.js → InventoryBindingForm-SgmyJvCs.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-DhPu_GyE.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-GLipe2bO.js} +15 -15
- package/dist/{InventoryBindingSummary-Swi6A3W2.js → InventoryBindingSummary-D6deGR6B.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-Duv0At06.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DGDL-t7m.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang--gt60IlU.js → PremiumBadge.vue_vue_type_script_setup_true_lang-ff1rPUJW.js} +9 -9
- package/dist/{PublishView-B9HJT61I.js → PublishView-7TAa2QQB.js} +11 -11
- package/dist/{PurchaseOrderPrintPreview-sClUXkgt.js → PurchaseOrderPrintPreview-DhcnInSW.js} +9 -9
- package/dist/ReceiveRequestView-Z3JYH3gf.js +36203 -0
- package/dist/{RecipeView-BH3asOD4.js → RecipeView--ALwYD-O.js} +51 -51
- package/dist/{SettingsView-BJAMNNhr.js → SettingsView-F_BWUxoq.js} +30 -30
- package/dist/StockView-BLrquJf2.js +2406 -0
- package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-DeiLMVin.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-CxNgi5uv.js} +1 -1
- package/dist/{SupplierView-C3uBrEcc.js → SupplierView-DklOXwHD.js} +13 -13
- package/dist/{SurchargeView-S9ByD9Nd.js → SurchargeView-DcImorUr.js} +7 -7
- package/dist/{SystemTrailDialog.vue_vue_type_script_setup_true_lang-ha60Wy7z.js → SystemTrailDialog.vue_vue_type_script_setup_true_lang-xdLxGAOM.js} +2 -2
- package/dist/{TemplatePublishDialog.vue_vue_type_script_setup_true_lang-CfyCEElN.js → TemplatePublishDialog.vue_vue_type_script_setup_true_lang-Bu4XKhII.js} +1 -1
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-DMrRfwKD.js +3890 -0
- package/dist/{TransferTemplateView-zbn5CGiZ.js → TransferTemplateView-DTdlSI2b.js} +18 -18
- package/dist/{UnitCostHistoryView-LhvAybS8.js → UnitCostHistoryView-CQ_DJE-t.js} +243 -246
- package/dist/{UnitDisplayControl.vue_vue_type_script_setup_true_lang-E2QCl521.js → UnitDisplayControl.vue_vue_type_script_setup_true_lang-QuejzcCL.js} +4 -4
- package/dist/{UnitView-6oUdlUVo.js → UnitView-DzcCdCGw.js} +25 -25
- package/dist/{WarehouseView-DQFe99KT.js → WarehouseView-BYj9DD1N.js} +6 -6
- package/dist/{WastageTemplateView-BiYZqiT2.js → WastageTemplateView--w6an2Ar.js} +15 -15
- package/dist/api/email.d.ts +54 -0
- package/dist/{app-SnX9gL_k.js → app-CPlgHGkC.js} +22314 -23512
- package/dist/app.d.ts +14 -6
- package/dist/app.js +2 -2
- package/dist/{closing-template-Ch--jBk-.js → closing-template-B9JOB9ah.js} +1 -1
- package/dist/components/row-action.enum.d.ts +2 -1
- package/dist/{date2-CGqqJOqr.js → date2-Ci9tlLMJ.js} +1 -1
- package/dist/{dayjs.min-JnfBpNSN.js → dayjs.min-DTx2lmq6.js} +12 -12
- package/dist/{decimal-C-2MQYNP.js → decimal-iKhH_VJO.js} +2 -2
- package/dist/{defineDeepModel-CUJCBuvw.js → defineDeepModel-C25T8oyP.js} +1 -1
- package/dist/{duplicate-template-BXg5EQRC.js → duplicate-template-BptIBRQ3.js} +1 -1
- package/dist/{export-DUsFBcmf.js → export-CKuVd5pP.js} +1 -1
- package/dist/{feature-gkhmly57.js → feature-CXMSo4z7.js} +109 -104
- package/dist/{format-time-from-id-D1RhcKfL.js → format-time-from-id-Bk60g6lh.js} +1 -1
- package/dist/{format-unit-display-DXs_-yEW.js → format-unit-display-C4nf8hG8.js} +12 -12
- package/dist/{import-export.helper-B84wW0eo.js → import-export.helper-BDzsQcYD.js} +6 -6
- package/dist/{index-Dp1GAjHf.js → index-CUVlQagt.js} +3 -3
- package/dist/{index-D3XgyMwL.js → index-DTszDSPO.js} +1 -1
- package/dist/{index-artVJVqL.js → index-DiKOwY5C.js} +1 -1
- package/dist/{inventory-core-dart.default-Bu1oVkLC.js → inventory-core-dart.default-Cn3sonot.js} +10 -10
- package/dist/{lodash-DZbYS5Vn.js → lodash-DGOK6ZkA.js} +1 -1
- package/dist/{lz-string-nX96TtT6.js → lz-string-QrWbdmw6.js} +17 -17
- package/dist/{netsuite-DQkJKCH9.js → netsuite-DglgyKcZ.js} +109 -109
- package/dist/{number-gRrApZRj.js → number-Ut7u2ZEE.js} +7 -7
- package/dist/{predefined-templates-D9bzSOz_.js → predefined-templates-DZtFebPU.js} +1 -1
- package/dist/{purchase-order-template-BiE_We2X.js → purchase-order-template-DhNVhXmD.js} +1 -1
- package/dist/{recalculationUtils-zNt-EW5S.js → recalculationUtils-CqJRd9B2.js} +1 -1
- package/dist/{row-action.enum-Co_O4qD9.js → row-action.enum-DQ9bJ_uv.js} +7 -1
- package/dist/{rules-CWFFr_mA.js → rules-BIm67nl_.js} +2 -2
- package/dist/{stock-C-34Vuxz.js → stock-CzdMn9n8.js} +3 -3
- package/dist/{stock-V4Oy4QHQ.js → stock-Dc4_U69J.js} +27 -28
- package/dist/stores/feature.d.ts +2 -0
- package/dist/{supplier-DbYagMhS.js → supplier-De5G6CeF.js} +16 -16
- package/dist/{surcharge-CcvvfLHB.js → surcharge-CN5FtDZq.js} +5 -5
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-ingredient-select-dialog-B4jFgJ5b.js → use-ingredient-select-dialog-Wy4CtYcZ.js} +2 -2
- package/dist/{use-inventory-binding-dialog-20flYyGE.js → use-inventory-binding-dialog-C1LCH0jV.js} +2 -2
- package/dist/{use-template-enabled-locations-CpDMbAGF.js → use-template-enabled-locations-BfZFcXZ_.js} +2 -2
- package/dist/views/receive-request/components/email-dialog/EmailDialog.vue.d.ts +20 -0
- package/dist/views/receive-request/components/email-dialog/EmailDialogProps.d.ts +13 -0
- package/dist/views/receive-request/composables/use-order-draft-permission.d.ts +5 -2
- package/dist/views/receive-request/composables/use-receive-request-form.d.ts +3 -0
- package/dist/{vue-i18n-CUrz9OVK.js → vue-i18n-CvVV4Xof.js} +305 -305
- package/dist/{xlsx-DBsOBE1z.js → xlsx-lawW6Hwh.js} +184 -184
- package/dist/{xlsx.util-xziohm10.js → xlsx.util-DSCqPt8v.js} +1 -1
- package/package.json +4 -4
- package/dist/App-Cb6qfRCz.js +0 -445
- package/dist/ReceiveRequestView-BbS55juS.js +0 -2817
- package/dist/StockView-DMLFY7d1.js +0 -2439
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-CKfs-ns0.js +0 -3837
- package/dist/components/HrmPermissionGuard.vue.d.ts +0 -54
- package/dist/composable/useHrmPermission.d.ts +0 -17
- package/dist/router/route-permission.d.ts +0 -10
- package/dist/useHrmPermission-CZW6u2TS.js +0 -16
|
@@ -0,0 +1,411 @@
|
|
|
1
|
+
import { ref as A, onUnmounted as j, defineComponent as U, watch as L, onMounted as H, computed as S, resolveComponent as h, openBlock as v, createElementBlock as y, unref as w, createVNode as E, createElementVNode as r, toDisplayString as I, createBlock as k, createCommentVNode as M, withCtx as F, withDirectives as K, vModelText as Y, Fragment as z, renderList as Q, createTextVNode as O } from "vue";
|
|
2
|
+
import { u as q, a as J, R as t, m as x, g as s, b as D } from "./app-CPlgHGkC.js";
|
|
3
|
+
import { useCoreStore as B, useI18n as $ } from "@feedmepos/mf-common";
|
|
4
|
+
import { useRouter as V, useRoute as X } from "vue-router";
|
|
5
|
+
import { u as W, a as Z, I as ee } from "./feature-CXMSo4z7.js";
|
|
6
|
+
import { u as te } from "./netsuite-DglgyKcZ.js";
|
|
7
|
+
import { u as ne } from "./useTabStorage-BkIVScW_.js";
|
|
8
|
+
import { F as oe } from "./FmAdminBadge-DjnBAgyv.js";
|
|
9
|
+
import { u as le } from "./googlemap-BGi_aKUA.js";
|
|
10
|
+
function ae() {
|
|
11
|
+
return {
|
|
12
|
+
loadingHookInstalled: !1,
|
|
13
|
+
isLoading: !1
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
const C = A(ae());
|
|
17
|
+
function se() {
|
|
18
|
+
const _ = V();
|
|
19
|
+
if (!C.value.loadingHookInstalled) {
|
|
20
|
+
C.value.loadingHookInstalled = !0;
|
|
21
|
+
const l = _.beforeEach(() => {
|
|
22
|
+
C.value.isLoading = !0;
|
|
23
|
+
}), c = _.afterEach(() => {
|
|
24
|
+
C.value.isLoading = !1;
|
|
25
|
+
});
|
|
26
|
+
j(() => {
|
|
27
|
+
C.value.loadingHookInstalled = !1, l(), c();
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
return {
|
|
31
|
+
get isLoading() {
|
|
32
|
+
return C.value.isLoading;
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
const re = {
|
|
37
|
+
key: 0,
|
|
38
|
+
class: "flex flex-col items-center w-full h-full gap-24"
|
|
39
|
+
}, ie = {
|
|
40
|
+
key: 1,
|
|
41
|
+
class: "flex flex-col pt-[200px] gap-32 items-center"
|
|
42
|
+
}, ue = { class: "flex flex-col gap-12 items-center text-center px-24 max-w-[1000px]" }, ce = { class: "fm-typo-en-title-lg-600" }, de = { class: "text-fm-color-typo-secondary fm-typo-en-body-md-400" }, me = { class: "flex gap-16" }, pe = { href: "https://feedme.ai/product/inventory/features?tab=plans_%26_prices" }, fe = { href: "https://feedme.ai/form" }, ve = /* @__PURE__ */ U({
|
|
43
|
+
__name: "InventoryView",
|
|
44
|
+
setup(_) {
|
|
45
|
+
const l = q(), c = J(), d = te(), i = B(), a = V(), u = se(), e = W(), { t: p } = $();
|
|
46
|
+
L(
|
|
47
|
+
[() => i.sessionUser.value, () => i.currentBusiness.value],
|
|
48
|
+
([b, g]) => {
|
|
49
|
+
m(b, g);
|
|
50
|
+
}
|
|
51
|
+
), H(async () => {
|
|
52
|
+
await e.init(), await i.readBusinesses();
|
|
53
|
+
const b = i.sessionUser.value, g = i.currentBusiness.value;
|
|
54
|
+
m(b, g);
|
|
55
|
+
});
|
|
56
|
+
function m(b, g) {
|
|
57
|
+
!b || !g || R();
|
|
58
|
+
}
|
|
59
|
+
async function R() {
|
|
60
|
+
return await l.init(), await d.readSetting().catch((b) => {
|
|
61
|
+
console.error("[all] error on reading netsuite store", b);
|
|
62
|
+
}), await c.init();
|
|
63
|
+
}
|
|
64
|
+
const f = S(() => a.currentRoute.value.name === t.TRANSFER_TEMPLATE ? e.enablePoTemplate : a.currentRoute.value.name === t.INGREDIENT_GROUP ? e.enableIngredientGroup : !0);
|
|
65
|
+
return (b, g) => {
|
|
66
|
+
const N = h("FmSpacer"), G = h("FmCircularProgress"), n = h("FmButton"), o = h("RouterView");
|
|
67
|
+
return v(), y("div", null, [
|
|
68
|
+
w(u).isLoading ? (v(), y("div", re, [
|
|
69
|
+
E(N),
|
|
70
|
+
r("div", null, [
|
|
71
|
+
E(G, { size: "xl" })
|
|
72
|
+
]),
|
|
73
|
+
g[0] || (g[0] = r("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary pl-8" }, "Loading page...", -1)),
|
|
74
|
+
E(N)
|
|
75
|
+
])) : f.value ? w(i).sessionUser.value ? (v(), k(o, { key: 2 })) : M("", !0) : (v(), y("div", ie, [
|
|
76
|
+
r("div", ue, [
|
|
77
|
+
r("div", ce, I(w(p)("inventory.common.proPlan.title")), 1),
|
|
78
|
+
r("div", de, I(w(p)("inventory.common.proPlan.subtitle")), 1)
|
|
79
|
+
]),
|
|
80
|
+
r("div", me, [
|
|
81
|
+
r("a", pe, [
|
|
82
|
+
E(n, {
|
|
83
|
+
label: w(p)("inventory.common.proPlan.comparePlans"),
|
|
84
|
+
variant: "secondary"
|
|
85
|
+
}, null, 8, ["label"])
|
|
86
|
+
]),
|
|
87
|
+
r("a", fe, [
|
|
88
|
+
E(n, {
|
|
89
|
+
label: w(p)("inventory.common.proPlan.callUs"),
|
|
90
|
+
"prepend-icon": "call"
|
|
91
|
+
}, null, 8, ["label"])
|
|
92
|
+
])
|
|
93
|
+
])
|
|
94
|
+
]))
|
|
95
|
+
]);
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
}), ge = { class: "flex items-center gap-2" }, _e = { class: "text-xs text-gray-400 font-normal" }, be = { class: "flex flex-col gap-3" }, Ee = { class: "max-h-[480px] flex flex-col gap-1" }, ye = { class: "font-mono text-xs text-gray-700 break-all min-w-0" }, Se = {
|
|
99
|
+
key: 0,
|
|
100
|
+
class: "inline-flex items-center gap-1 text-xs font-medium text-green-700 bg-green-50 px-2 py-0.5 rounded-full"
|
|
101
|
+
}, he = {
|
|
102
|
+
key: 1,
|
|
103
|
+
class: "inline-flex items-center gap-1 text-xs font-medium text-red-700 bg-red-50 px-2 py-0.5 rounded-full"
|
|
104
|
+
}, Te = {
|
|
105
|
+
key: 2,
|
|
106
|
+
class: "inline-flex items-center gap-1 text-xs font-medium text-gray-500 bg-gray-100 px-2 py-0.5 rounded-full"
|
|
107
|
+
}, xe = {
|
|
108
|
+
key: 0,
|
|
109
|
+
class: "text-center text-sm text-gray-400 py-4"
|
|
110
|
+
}, Ie = /* @__PURE__ */ U({
|
|
111
|
+
__name: "FmFeatureFlagDialog",
|
|
112
|
+
setup(_) {
|
|
113
|
+
const l = A(!1), c = A(""), d = S(() => {
|
|
114
|
+
const { getFlagValue: u } = Z();
|
|
115
|
+
return Object.values(ee).map((e) => {
|
|
116
|
+
const p = u(e, (m) => m === "true");
|
|
117
|
+
return {
|
|
118
|
+
name: e,
|
|
119
|
+
enabled: p
|
|
120
|
+
};
|
|
121
|
+
});
|
|
122
|
+
}), i = S(() => {
|
|
123
|
+
const u = c.value.toLowerCase();
|
|
124
|
+
return u ? d.value.filter((e) => e.name.toLowerCase().includes(u)) : d.value;
|
|
125
|
+
}), a = S(() => {
|
|
126
|
+
const u = d.value.filter((m) => m.enabled === !0).length, e = d.value.filter((m) => m.enabled === !1).length, p = d.value.filter((m) => m.enabled === null).length;
|
|
127
|
+
return { enabled: u, disabled: e, unknown: p, total: d.value.length };
|
|
128
|
+
});
|
|
129
|
+
return (u, e) => {
|
|
130
|
+
const p = h("FmButton"), m = h("FmSpacer"), R = h("FmDialog");
|
|
131
|
+
return v(), k(R, {
|
|
132
|
+
modelValue: l.value,
|
|
133
|
+
"onUpdate:modelValue": e[2] || (e[2] = (f) => l.value = f),
|
|
134
|
+
overlay: !0
|
|
135
|
+
}, {
|
|
136
|
+
"dialog-button": F(() => [
|
|
137
|
+
E(oe, null, {
|
|
138
|
+
default: F(() => [
|
|
139
|
+
E(p, {
|
|
140
|
+
variant: "secondary",
|
|
141
|
+
label: "Feature flags"
|
|
142
|
+
})
|
|
143
|
+
]),
|
|
144
|
+
_: 1
|
|
145
|
+
})
|
|
146
|
+
]),
|
|
147
|
+
"dialog-header": F(() => [
|
|
148
|
+
r("div", ge, [
|
|
149
|
+
e[3] || (e[3] = r("span", null, "Feature Flags", -1)),
|
|
150
|
+
r("span", _e, I(a.value.enabled) + " enabled · " + I(a.value.disabled) + " disabled · " + I(a.value.unknown) + " unknown ", 1)
|
|
151
|
+
])
|
|
152
|
+
]),
|
|
153
|
+
"dialog-footer": F(() => [
|
|
154
|
+
E(m, { class: "sm:hidden xs:hidden" }),
|
|
155
|
+
E(p, {
|
|
156
|
+
class: "sm:w-full xs:w-full",
|
|
157
|
+
label: "Close",
|
|
158
|
+
size: "md",
|
|
159
|
+
variant: "primary",
|
|
160
|
+
onClick: e[1] || (e[1] = (f) => l.value = !1)
|
|
161
|
+
})
|
|
162
|
+
]),
|
|
163
|
+
default: F(() => [
|
|
164
|
+
r("div", be, [
|
|
165
|
+
K(r("input", {
|
|
166
|
+
"onUpdate:modelValue": e[0] || (e[0] = (f) => c.value = f),
|
|
167
|
+
type: "text",
|
|
168
|
+
placeholder: "Search flags...",
|
|
169
|
+
class: "w-full px-3 py-2 text-sm border border-gray-300 rounded-md focus:outline-none focus:ring-1 focus:ring-blue-500"
|
|
170
|
+
}, null, 512), [
|
|
171
|
+
[Y, c.value]
|
|
172
|
+
]),
|
|
173
|
+
r("div", Ee, [
|
|
174
|
+
(v(!0), y(z, null, Q(i.value, (f) => (v(), y("div", {
|
|
175
|
+
key: f.name,
|
|
176
|
+
class: "flex items-start justify-between gap-2 px-3 py-2 rounded-md hover:bg-gray-50 text-sm"
|
|
177
|
+
}, [
|
|
178
|
+
r("span", ye, I(f.name), 1),
|
|
179
|
+
f.enabled === !0 ? (v(), y("span", Se, e[4] || (e[4] = [
|
|
180
|
+
r("span", { class: "w-1.5 h-1.5 rounded-full bg-green-500" }, null, -1),
|
|
181
|
+
O(" Enabled ")
|
|
182
|
+
]))) : f.enabled === !1 ? (v(), y("span", he, e[5] || (e[5] = [
|
|
183
|
+
r("span", { class: "w-1.5 h-1.5 rounded-full bg-red-500" }, null, -1),
|
|
184
|
+
O(" Disabled ")
|
|
185
|
+
]))) : (v(), y("span", Te, e[6] || (e[6] = [
|
|
186
|
+
r("span", { class: "w-1.5 h-1.5 rounded-full bg-gray-400" }, null, -1),
|
|
187
|
+
O(" Unknown ")
|
|
188
|
+
])))
|
|
189
|
+
]))), 128)),
|
|
190
|
+
i.value.length === 0 ? (v(), y("div", xe, ' No flags matching "' + I(c.value) + '" ', 1)) : M("", !0)
|
|
191
|
+
])
|
|
192
|
+
])
|
|
193
|
+
]),
|
|
194
|
+
_: 1
|
|
195
|
+
}, 8, ["modelValue"]);
|
|
196
|
+
};
|
|
197
|
+
}
|
|
198
|
+
}), Re = { class: "h-full flex flex-col overflow-auto py-16 gap-2" }, Ne = /* @__PURE__ */ U({
|
|
199
|
+
__name: "NavigationTab",
|
|
200
|
+
setup(_) {
|
|
201
|
+
const l = x.object({
|
|
202
|
+
label: x.string(),
|
|
203
|
+
value: x.string().optional(),
|
|
204
|
+
icon: x.string().optional(),
|
|
205
|
+
hide: x.boolean().optional(),
|
|
206
|
+
children: x.array(x.lazy(() => l)).optional()
|
|
207
|
+
}), c = X(), d = V(), i = B(), a = W(), u = ne(), { t: e } = $(), { isDev: p } = D();
|
|
208
|
+
L([() => i.currentBusiness.value, () => c.name], ([n, o]) => {
|
|
209
|
+
(n == null ? void 0 : n.menuVersion) === "v3" && (o === t.INGREDIENTS || o === t.RECIPE || o === t.UNIT) && d.push({ name: t.STOCK });
|
|
210
|
+
});
|
|
211
|
+
const m = (n) => n.filter((o) => !o.hide).map((o) => o.children ? { ...o, children: m(o.children) } : o), R = (n) => n.map((o) => {
|
|
212
|
+
delete o.hide;
|
|
213
|
+
const T = o;
|
|
214
|
+
return o.children && (T.children = R(o.children)), T;
|
|
215
|
+
}), f = S(() => {
|
|
216
|
+
var T;
|
|
217
|
+
const n = [
|
|
218
|
+
{
|
|
219
|
+
label: "Non-Production Environment",
|
|
220
|
+
icon: "logo_dev",
|
|
221
|
+
disabled: !0,
|
|
222
|
+
hide: !p
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
label: s(t.STOCK, e),
|
|
226
|
+
// icon: 'inventory_2',
|
|
227
|
+
children: [
|
|
228
|
+
{
|
|
229
|
+
label: e("inventory.stock.stock_balance.title"),
|
|
230
|
+
value: t.STOCK
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
label: s(t.UNIT_COST_HISTORY, e),
|
|
234
|
+
value: t.UNIT_COST_HISTORY,
|
|
235
|
+
hide: !a.enableTotalCost
|
|
236
|
+
},
|
|
237
|
+
{
|
|
238
|
+
label: s(t.WASTAGE_TEMPLATE, e),
|
|
239
|
+
value: t.WASTAGE_TEMPLATE,
|
|
240
|
+
hide: !a.enableWastageTemplate
|
|
241
|
+
}
|
|
242
|
+
]
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
label: e("inventory.closing.title"),
|
|
246
|
+
children: [
|
|
247
|
+
{
|
|
248
|
+
label: s(t.CLOSING_HISTORY, e),
|
|
249
|
+
value: t.CLOSING_HISTORY
|
|
250
|
+
},
|
|
251
|
+
{
|
|
252
|
+
label: s(t.CLOSING_TEMPLATE, e),
|
|
253
|
+
value: t.CLOSING_TEMPLATE,
|
|
254
|
+
hide: !a.enableClosingTemplate
|
|
255
|
+
},
|
|
256
|
+
{
|
|
257
|
+
label: s(t.CLOSING_DRAFT, e),
|
|
258
|
+
value: t.CLOSING_DRAFT,
|
|
259
|
+
hide: !a.enableClosingTemplate
|
|
260
|
+
}
|
|
261
|
+
]
|
|
262
|
+
},
|
|
263
|
+
{
|
|
264
|
+
label: s(t.INGREDIENTS, e),
|
|
265
|
+
// icon: 'grocery',
|
|
266
|
+
value: t.INGREDIENTS
|
|
267
|
+
},
|
|
268
|
+
{
|
|
269
|
+
label: s(t.INGREDIENT_GROUP, e),
|
|
270
|
+
// icon: 'grocery',
|
|
271
|
+
value: t.INGREDIENT_GROUP,
|
|
272
|
+
hide: !a.enableIngredientGroup
|
|
273
|
+
},
|
|
274
|
+
{
|
|
275
|
+
label: s(t.RECIPE, e),
|
|
276
|
+
// icon: 'weight',
|
|
277
|
+
value: t.RECIPE
|
|
278
|
+
},
|
|
279
|
+
{
|
|
280
|
+
label: s(t.UNIT, e),
|
|
281
|
+
// icon: 'fastfood',
|
|
282
|
+
value: t.UNIT
|
|
283
|
+
},
|
|
284
|
+
{
|
|
285
|
+
label: e("inventory.transfer.title"),
|
|
286
|
+
// icon: 'swap_horiz',
|
|
287
|
+
children: [
|
|
288
|
+
{
|
|
289
|
+
label: s(t.RECEIVE_REQUEST, e),
|
|
290
|
+
value: t.RECEIVE_REQUEST
|
|
291
|
+
},
|
|
292
|
+
{
|
|
293
|
+
label: s(t.APPROVAL, e),
|
|
294
|
+
value: t.APPROVAL
|
|
295
|
+
},
|
|
296
|
+
{
|
|
297
|
+
label: s(t.SURCHARGE, e),
|
|
298
|
+
value: t.SURCHARGE,
|
|
299
|
+
hide: !a.enableSurcharge
|
|
300
|
+
},
|
|
301
|
+
{
|
|
302
|
+
label: s(t.TRANSFER_TEMPLATE, e),
|
|
303
|
+
value: t.TRANSFER_TEMPLATE,
|
|
304
|
+
hide: !a.enablePoTemplate
|
|
305
|
+
}
|
|
306
|
+
]
|
|
307
|
+
},
|
|
308
|
+
{
|
|
309
|
+
label: s(t.SUPPLIER, e),
|
|
310
|
+
// icon: 'group',
|
|
311
|
+
value: t.SUPPLIER
|
|
312
|
+
},
|
|
313
|
+
{
|
|
314
|
+
label: s(t.WAREHOUSE, e),
|
|
315
|
+
// icon: 'warehouse',
|
|
316
|
+
value: t.WAREHOUSE
|
|
317
|
+
},
|
|
318
|
+
{
|
|
319
|
+
label: s(t.PUBLISH, e),
|
|
320
|
+
value: t.PUBLISH
|
|
321
|
+
},
|
|
322
|
+
{
|
|
323
|
+
label: s(t.IMPORT, e),
|
|
324
|
+
value: t.IMPORT,
|
|
325
|
+
hide: !a.enableBulkImport
|
|
326
|
+
},
|
|
327
|
+
{
|
|
328
|
+
label: s(t.INTEGRATION, e),
|
|
329
|
+
// icon: 'integration_instructions',
|
|
330
|
+
value: t.INTEGRATION
|
|
331
|
+
}
|
|
332
|
+
], o = R(m(n));
|
|
333
|
+
return ((T = i.currentBusiness.value) == null ? void 0 : T.menuVersion) === "v3" ? o.filter(
|
|
334
|
+
(P) => P.value !== t.INGREDIENTS && P.value !== t.RECIPE && P.value !== t.UNIT && P.value !== t.PUBLISH
|
|
335
|
+
) : o;
|
|
336
|
+
}), b = S({
|
|
337
|
+
get() {
|
|
338
|
+
if (c.name)
|
|
339
|
+
return String(c.name);
|
|
340
|
+
},
|
|
341
|
+
set(n) {
|
|
342
|
+
n && d.push({ name: n });
|
|
343
|
+
}
|
|
344
|
+
}), g = S(
|
|
345
|
+
() => {
|
|
346
|
+
var n;
|
|
347
|
+
return `NavigationTab.${(n = i.currentBusiness.value) == null ? void 0 : n._id}`;
|
|
348
|
+
}
|
|
349
|
+
), N = A(!1), G = S({
|
|
350
|
+
get() {
|
|
351
|
+
return N.value;
|
|
352
|
+
},
|
|
353
|
+
set(n) {
|
|
354
|
+
N.value = n, n || u.setItem(g.value, "true");
|
|
355
|
+
}
|
|
356
|
+
});
|
|
357
|
+
return L([() => g.value], () => {
|
|
358
|
+
N.value = !1, setTimeout(() => {
|
|
359
|
+
G.value = !u.getItem(g.value);
|
|
360
|
+
}, 2e3);
|
|
361
|
+
}), (n, o) => {
|
|
362
|
+
const T = h("FmCollapsibleTabs");
|
|
363
|
+
return v(), y("div", Re, [
|
|
364
|
+
E(Ie),
|
|
365
|
+
E(T, {
|
|
366
|
+
modelValue: b.value,
|
|
367
|
+
"onUpdate:modelValue": o[0] || (o[0] = (P) => b.value = P),
|
|
368
|
+
items: f.value
|
|
369
|
+
}, null, 8, ["modelValue", "items"])
|
|
370
|
+
]);
|
|
371
|
+
};
|
|
372
|
+
}
|
|
373
|
+
});
|
|
374
|
+
typeof Promise.withResolvers > "u" && (Promise.withResolvers = () => {
|
|
375
|
+
let _, l;
|
|
376
|
+
return { promise: new Promise((d, i) => {
|
|
377
|
+
_ = d, l = i;
|
|
378
|
+
}), resolve: _, reject: l };
|
|
379
|
+
});
|
|
380
|
+
typeof Promise.prototype.delayed > "u" && (Promise.prototype.delayed = async function(_) {
|
|
381
|
+
return await new Promise((l) => setTimeout(l, _)), Promise.resolve(this);
|
|
382
|
+
});
|
|
383
|
+
const ke = /* @__PURE__ */ U({
|
|
384
|
+
__name: "App",
|
|
385
|
+
setup(_) {
|
|
386
|
+
const l = B(), c = le(), d = D();
|
|
387
|
+
H(() => {
|
|
388
|
+
if (window.location.href.includes("print-preview")) {
|
|
389
|
+
l.setEmbedded(!0), document.body.classList.add("print-mode");
|
|
390
|
+
return;
|
|
391
|
+
}
|
|
392
|
+
l.registerSidebarComponent(Ne), c.initGoogleMap(d.appApi.googleMap).catch(() => {
|
|
393
|
+
console.error("Google map cannot be loaded");
|
|
394
|
+
});
|
|
395
|
+
}), L([() => l.currentCountry.value], () => {
|
|
396
|
+
i();
|
|
397
|
+
});
|
|
398
|
+
async function i() {
|
|
399
|
+
var a;
|
|
400
|
+
try {
|
|
401
|
+
await l.readBusinesses(), l.currentBusiness.value = (a = l.businesses.value) == null ? void 0 : a.find((u) => u);
|
|
402
|
+
} catch (u) {
|
|
403
|
+
console.error("error when trying to reset businesses:", u);
|
|
404
|
+
}
|
|
405
|
+
}
|
|
406
|
+
return (a, u) => (v(), k(ve));
|
|
407
|
+
}
|
|
408
|
+
});
|
|
409
|
+
export {
|
|
410
|
+
ke as default
|
|
411
|
+
};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { defineComponent as ce, ref as y, watch as de, computed as c, resolveComponent as fe, openBlock as x, createBlock as Z, unref as a, withCtx as T, createElementVNode as p, normalizeClass as ve, createVNode as u, normalizeStyle as he, toDisplayString as _e, createElementBlock as De, createCommentVNode as ge, Teleport as ye, mergeProps as be, isRef as Re } from "vue";
|
|
2
|
-
import { u as Oe, m as b } from "./app-
|
|
3
|
-
import { a as Se, _ as Pe } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-
|
|
4
|
-
import { a as xe, P as w, b as Te, _ as we, c as ke } from "./TransferDetails.vue_vue_type_script_setup_true_lang-
|
|
5
|
-
import { b as I } from "./date2-
|
|
2
|
+
import { u as Oe, m as b } from "./app-CPlgHGkC.js";
|
|
3
|
+
import { a as Se, _ as Pe } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-xxS4P6uo.js";
|
|
4
|
+
import { a as xe, P as w, b as Te, _ as we, c as ke } from "./TransferDetails.vue_vue_type_script_setup_true_lang-DMrRfwKD.js";
|
|
5
|
+
import { b as I } from "./date2-Ci9tlLMJ.js";
|
|
6
6
|
import { u as qe, _ as Ce } from "./SingleColumnLayout.vue_vue_type_script_setup_true_lang-sUxHOj47.js";
|
|
7
7
|
import { _ as Ne, F as R } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-Ca_eYa8-.js";
|
|
8
8
|
import { useBreakpoints as Ve } from "@feedmepos/ui-library";
|
|
9
9
|
import { useI18n as Ae } from "@feedmepos/mf-common";
|
|
10
10
|
import { P as Me, J as Fe } from "./app-DiX-EfV6.js";
|
|
11
|
-
import { u as Le } from "./netsuite-
|
|
12
|
-
import { f as $e } from "./predefined-templates-
|
|
13
|
-
import "./inventory-core-dart.default-
|
|
11
|
+
import { u as Le } from "./netsuite-DglgyKcZ.js";
|
|
12
|
+
import { f as $e } from "./predefined-templates-DZtFebPU.js";
|
|
13
|
+
import "./inventory-core-dart.default-Cn3sonot.js";
|
|
14
14
|
const ze = { class: "flex flex-col py-8" }, Ee = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ue = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary line-clamp-1" }, Ye = { class: "fm-typo-en-body-md-400 text-fm-color-typo-primary line-clamp-1" }, He = {
|
|
15
15
|
key: 0,
|
|
16
16
|
class: "fm-typo-en-body-md-400 text-fm-color-typo-primary line-clamp-1"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as C, ref as
|
|
2
|
-
import { _ as V } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-
|
|
3
|
-
import { a as L,
|
|
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 { _ as V } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-GLipe2bO.js";
|
|
3
|
+
import { a as L, al as S } from "./app-CPlgHGkC.js";
|
|
4
4
|
const U = {
|
|
5
5
|
key: 0,
|
|
6
6
|
class: "flex justify-end gap-8 items-center"
|
|
@@ -10,42 +10,42 @@ const U = {
|
|
|
10
10
|
}, D = /* @__PURE__ */ C({
|
|
11
11
|
__name: "BindingsDialog",
|
|
12
12
|
setup(N) {
|
|
13
|
-
const p = L(), d =
|
|
13
|
+
const p = L(), d = o(!0), s = o(new Array()), u = o(), t = S(y);
|
|
14
14
|
async function y() {
|
|
15
|
-
await p.readInventory(), u.value =
|
|
15
|
+
await p.readInventory(), u.value = t.onMessage("props:inventory-bindings", (e) => {
|
|
16
16
|
d.value = !1, s.value = e;
|
|
17
17
|
}).onMessage("props:inventory-bindings:validate", () => {
|
|
18
18
|
var e;
|
|
19
19
|
(e = f.value) == null || e.validateInputs();
|
|
20
|
-
}),
|
|
20
|
+
}), t.sendMessage("props:inventory-bindings");
|
|
21
21
|
}
|
|
22
22
|
function b() {
|
|
23
|
-
|
|
23
|
+
t.sendMessage("@submit:inventory-bindings", s.value);
|
|
24
24
|
}
|
|
25
25
|
function _() {
|
|
26
|
-
|
|
26
|
+
t.sendMessage("@close:inventory-bindings");
|
|
27
27
|
}
|
|
28
28
|
function k(e) {
|
|
29
|
-
|
|
29
|
+
t.sendMessage("@click:pick-inventory-bindings", e);
|
|
30
30
|
}
|
|
31
|
-
const m =
|
|
31
|
+
const m = o(), r = o(!0);
|
|
32
32
|
M(() => {
|
|
33
33
|
v();
|
|
34
34
|
const e = m.value;
|
|
35
35
|
e && new ResizeObserver(() => {
|
|
36
|
-
|
|
36
|
+
t.sendMessage("resize", e.scrollHeight);
|
|
37
37
|
}).observe(e);
|
|
38
38
|
}), F(() => {
|
|
39
39
|
var e, n;
|
|
40
40
|
(n = (e = u.value) == null ? void 0 : e.removeEventListener) == null || n.call(e);
|
|
41
41
|
}), x([() => s.value], ([e]) => {
|
|
42
|
-
|
|
42
|
+
t.sendMessage("@update:inventory-bindings", e);
|
|
43
43
|
});
|
|
44
44
|
function v() {
|
|
45
45
|
const e = new URLSearchParams(window.location.href.split("?")[1] || "");
|
|
46
46
|
console.log(v.name, e, e.has("hideButton")), r.value = e.has("hideButton");
|
|
47
47
|
}
|
|
48
|
-
const f =
|
|
48
|
+
const f = o();
|
|
49
49
|
return (e, n) => {
|
|
50
50
|
const g = l("FmButton"), B = l("FmForm"), h = l("FmCircularProgress");
|
|
51
51
|
return i(), c("div", {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as S, computed as r, ref as l, onMounted as U, onUnmounted as V, resolveComponent as E, openBlock as p, createElementBlock as f, createVNode as u, createElementVNode as k } from "vue";
|
|
2
|
-
import { a as M } from "./FmMultiselectDialog-
|
|
3
|
-
import { a as x,
|
|
2
|
+
import { a as M } from "./FmMultiselectDialog-FGR8t9rz.js";
|
|
3
|
+
import { a as x, al as z } from "./app-CPlgHGkC.js";
|
|
4
4
|
const F = {
|
|
5
5
|
key: 0,
|
|
6
6
|
class: "flex flex-col gap-16"
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { defineComponent as x, ref as r, provide as C, computed as g, resolveComponent as h, openBlock as l, createElementBlock as u, createStaticVNode as F, Fragment as L, renderList as I, createElementVNode as p, toDisplayString as v, createVNode as w, withModifiers as N, onMounted as E, onUnmounted as z, createBlock as M } from "vue";
|
|
2
|
-
import { F as b, a as P,
|
|
3
|
-
import "./dayjs.min-
|
|
2
|
+
import { F as b, a as P, al as R } from "./app-CPlgHGkC.js";
|
|
3
|
+
import "./dayjs.min-DTx2lmq6.js";
|
|
4
4
|
import "@feedmepos/ui-library";
|
|
5
5
|
/* empty css */
|
|
6
6
|
import "@feedmepos/mf-common";
|
|
7
7
|
import "./app-DiX-EfV6.js";
|
|
8
|
-
import "./lodash-
|
|
8
|
+
import "./lodash-DGOK6ZkA.js";
|
|
9
9
|
const U = { class: "" }, D = ["onClick"], O = { class: "flex-grow-0 flex-shrink-0 basis-5/12 py-8 pl-8" }, V = { class: "flex-grow-0 flex-shrink-0 basis-3/12 py-8" }, S = { class: "flex-grow-0 flex-shrink-0 basis-3/12 py-8" }, $ = { class: "flex-grow-0 flex-shrink-0 basis-1/12 py-4" }, T = /* @__PURE__ */ x({
|
|
10
10
|
__name: "binding-ui",
|
|
11
11
|
props: {
|