@feedmepos/mf-inventory-portal 1.3.14-dev.2 → 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-CfF2FqsE.js → ApprovalView-BVszC4Cw.js} +12 -12
- package/dist/{BindingsDialog-H-juP-az.js → BindingsDialog-B3L_3xdo.js} +13 -13
- package/dist/{BindingsPicker-ClruHF7p.js → BindingsPicker-A4togB2v.js} +2 -2
- package/dist/{BindingsTable-Bx9pbFOO.js → BindingsTable-DacoMdY6.js} +3 -3
- package/dist/{ClosingDraftView-DN97Tao5.js → ClosingDraftView-C9tvMgLl.js} +16 -16
- package/dist/{ClosingHistoryView-DsRYUqa2.js → ClosingHistoryView-CqqzqSqU.js} +5 -5
- package/dist/{ClosingTemplateView-f9zfsxCu.js → ClosingTemplateView-CLi0XE8S.js} +15 -15
- package/dist/{DeliveryOrderPrintPreview-BMK4kBCQ.js → DeliveryOrderPrintPreview-DEHEfd80.js} +11 -11
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-Bqj_Ygmo.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BDZVaj3l.js} +16 -16
- package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CK1ha_AY.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-xxS4P6uo.js} +2 -2
- package/dist/{FmMultiselectDialog-BazT9oUX.js → FmMultiselectDialog-CR2peMEL.js} +1 -1
- package/dist/{FmMultiselectDialog-_gUuhudi.js → FmMultiselectDialog-FGR8t9rz.js} +16 -16
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-BBtAgdsA.js → FmUnitInput.vue_vue_type_script_setup_true_lang-DgXOsVLe.js} +4 -4
- package/dist/{ImportView-jpkwuCXO.js → ImportView-CEI0QqGz.js} +6 -6
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-DLJnF4do.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-cRgKjHY0.js} +1 -1
- package/dist/{IngredientGroupView-x3t1hyNn.js → IngredientGroupView-DEELNMpl.js} +6 -6
- package/dist/{IngredientsView-BzWTnlb4.js → IngredientsView-D3OcjZdT.js} +16 -16
- package/dist/{IntegrationExplorerView-Bca3owbx.js → IntegrationExplorerView-ByPpT3hC.js} +5 -5
- package/dist/{IntegrationView-Dh1c4Qyo.js → IntegrationView-BSqlJBp-.js} +81 -81
- package/dist/{InventoryBindingForm-B1sI1TGZ.js → InventoryBindingForm-SgmyJvCs.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-7NeE7Xos.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-GLipe2bO.js} +5 -5
- package/dist/{InventoryBindingSummary-R8zHPc52.js → InventoryBindingSummary-D6deGR6B.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DMJVh7Nt.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DGDL-t7m.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-ChC9sEIk.js → PremiumBadge.vue_vue_type_script_setup_true_lang-ff1rPUJW.js} +7 -7
- package/dist/{PublishView-Bqp8Ww4J.js → PublishView-7TAa2QQB.js} +15 -15
- package/dist/{PurchaseOrderPrintPreview-D7TCn8U-.js → PurchaseOrderPrintPreview-DhcnInSW.js} +11 -11
- package/dist/ReceiveRequestView-Z3JYH3gf.js +36203 -0
- package/dist/{RecipeView-D8Mvgji9.js → RecipeView--ALwYD-O.js} +16 -16
- package/dist/{SettingsView-BJScLK9z.js → SettingsView-F_BWUxoq.js} +4 -4
- package/dist/StockView-BLrquJf2.js +2406 -0
- package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-DUKv_LV6.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-CxNgi5uv.js} +1 -1
- package/dist/{SupplierView-DdBBIV8W.js → SupplierView-DklOXwHD.js} +13 -13
- package/dist/{SurchargeView-DisBUPIs.js → SurchargeView-DcImorUr.js} +17 -17
- package/dist/{SystemTrailDialog.vue_vue_type_script_setup_true_lang-CZ3Q3BAf.js → SystemTrailDialog.vue_vue_type_script_setup_true_lang-xdLxGAOM.js} +2 -2
- package/dist/{TemplatePublishDialog.vue_vue_type_script_setup_true_lang-CC7F5HVc.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-7ICJMF9z.js → TransferTemplateView-DTdlSI2b.js} +18 -18
- package/dist/{UnitCostHistoryView-BMRDBQ58.js → UnitCostHistoryView-CQ_DJE-t.js} +243 -246
- package/dist/{UnitDisplayControl.vue_vue_type_script_setup_true_lang-mNXHzLN3.js → UnitDisplayControl.vue_vue_type_script_setup_true_lang-QuejzcCL.js} +4 -4
- package/dist/{UnitView-uUUYOjYn.js → UnitView-DzcCdCGw.js} +8 -8
- package/dist/{WarehouseView-BfMf_iuj.js → WarehouseView-BYj9DD1N.js} +26 -26
- package/dist/{WastageTemplateView-BQYjJGZ-.js → WastageTemplateView--w6an2Ar.js} +15 -15
- package/dist/api/email.d.ts +54 -0
- package/dist/{app-B_zMegJc.js → app-CPlgHGkC.js} +22314 -23519
- package/dist/app.d.ts +14 -22
- package/dist/app.js +2 -2
- package/dist/{closing-template-9vhx5Ji1.js → closing-template-B9JOB9ah.js} +1 -1
- package/dist/components/row-action.enum.d.ts +2 -1
- package/dist/{date2-BMCS_Dsc.js → date2-Ci9tlLMJ.js} +1 -1
- package/dist/{dayjs.min-Dl26OaXo.js → dayjs.min-DTx2lmq6.js} +26 -26
- package/dist/{decimal-e6OK2jkR.js → decimal-iKhH_VJO.js} +2 -2
- package/dist/{defineDeepModel-BvLlwxnd.js → defineDeepModel-C25T8oyP.js} +1 -1
- package/dist/{duplicate-template-Cnhu8Rxw.js → duplicate-template-BptIBRQ3.js} +1 -1
- package/dist/{empty-placeholder-B0QU467o.js → empty-placeholder-wf6-BWE8.js} +1 -1
- package/dist/{export-CGvyGmeo.js → export-CKuVd5pP.js} +1 -1
- package/dist/{feature-Do41WWzx.js → feature-CXMSo4z7.js} +121 -116
- package/dist/{format-time-from-id-CqX_KaUG.js → format-time-from-id-Bk60g6lh.js} +1 -1
- package/dist/{format-unit-display-D8qWmRXP.js → format-unit-display-C4nf8hG8.js} +12 -12
- package/dist/{import-export.helper-85V8Ib5e.js → import-export.helper-BDzsQcYD.js} +6 -6
- package/dist/{index-C-CwnjUn.js → index-CUVlQagt.js} +3 -3
- package/dist/{index-CtUF9Nsv.js → index-DTszDSPO.js} +1 -1
- package/dist/{index-Cg3aLEhT.js → index-DiKOwY5C.js} +1 -1
- package/dist/{inventory-core-dart.default-B64FzAla.js → inventory-core-dart.default-Cn3sonot.js} +10 -10
- package/dist/{lodash-U9ycVPlv.js → lodash-DGOK6ZkA.js} +1 -1
- package/dist/{lz-string-0CgVsQoC.js → lz-string-QrWbdmw6.js} +21 -21
- package/dist/{netsuite-Du7-sXJt.js → netsuite-DglgyKcZ.js} +37 -37
- package/dist/{number-iJAzDfmj.js → number-Ut7u2ZEE.js} +11 -11
- package/dist/{predefined-templates-LlSrXOXm.js → predefined-templates-DZtFebPU.js} +1 -1
- package/dist/{purchase-order-template-DFuXb0rr.js → purchase-order-template-DhNVhXmD.js} +1 -1
- package/dist/{recalculationUtils-DWPnMW1G.js → recalculationUtils-CqJRd9B2.js} +1 -1
- package/dist/router/name.d.ts +0 -1
- package/dist/{row-action.enum-Co_O4qD9.js → row-action.enum-DQ9bJ_uv.js} +7 -1
- package/dist/{rules-DefSKiUN.js → rules-BIm67nl_.js} +2 -2
- package/dist/{stock-BfF6peMd.js → stock-CzdMn9n8.js} +3 -3
- package/dist/{stock-Cx1BwdWs.js → stock-Dc4_U69J.js} +27 -28
- package/dist/stores/feature.d.ts +2 -0
- package/dist/{supplier-CU3iqdGr.js → supplier-De5G6CeF.js} +2 -2
- package/dist/{surcharge-D77J5opH.js → surcharge-CN5FtDZq.js} +8 -8
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-ingredient-select-dialog-B-jxV-79.js → use-ingredient-select-dialog-Wy4CtYcZ.js} +2 -2
- package/dist/{use-inventory-binding-dialog-BdTd5qPl.js → use-inventory-binding-dialog-C1LCH0jV.js} +2 -2
- package/dist/{use-template-enabled-locations-vFvaCjlH.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-CvVV4Xof.js +2365 -0
- package/dist/{xlsx-o7n1whCa.js → xlsx-lawW6Hwh.js} +570 -570
- package/dist/{xlsx.util-D6nPboPW.js → xlsx.util-DSCqPt8v.js} +1 -1
- package/package.json +2 -2
- package/dist/App-D1_jkD6L.js +0 -309
- package/dist/DefaultView-COVVxOrF.js +0 -31
- package/dist/ReceiveRequestView-oNBVAMYu.js +0 -2817
- package/dist/StockView-CRRdVCcD.js +0 -2439
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-BLlg1Vka.js +0 -3837
- package/dist/components/HrmPermissionGuard.vue.d.ts +0 -54
- package/dist/composable/useHrmPermission.d.ts +0 -17
- package/dist/composable/useInventoryAccess.d.ts +0 -11
- package/dist/composable/useNavigationMenu.d.ts +0 -14
- package/dist/router/route-permission.d.ts +0 -10
- package/dist/useHrmPermission-CekUhyck.js +0 -16
- package/dist/useNavigationMenu-BiLWMIip.js +0 -162
- package/dist/views/DefaultView.vue.d.ts +0 -2
- package/dist/vue-i18n-C3_OsgSl.js +0 -2365
|
@@ -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,17 +1,17 @@
|
|
|
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,
|
|
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-
|
|
14
|
-
const ze = { class: "flex flex-col py-8" },
|
|
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
|
+
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"
|
|
17
17
|
}, je = { class: "pt-8" }, ot = /* @__PURE__ */ ce({
|
|
@@ -174,22 +174,22 @@ const ze = { class: "flex flex-col py-8" }, Ue = { class: "fm-typo-en-body-md-40
|
|
|
174
174
|
onRowClick: (o) => a(s).promptShowTransferDetails(o.purchaseOrder, o)
|
|
175
175
|
}, {
|
|
176
176
|
default: T((o) => {
|
|
177
|
-
var m, N, V, f, A, M, F, L, v, $, z, h,
|
|
177
|
+
var m, N, V, f, A, M, F, L, v, $, z, h, E, _, U, Y, H, j, J, D, G, K, Q, W, g, X;
|
|
178
178
|
return [
|
|
179
179
|
p("div", ze, [
|
|
180
|
-
p("div",
|
|
180
|
+
p("div", Ee, [
|
|
181
181
|
u(a(R), {
|
|
182
182
|
render: (V = (N = (m = o.purchaseOrder__id) == null ? void 0 : m.column) == null ? void 0 : N.columnDef) == null ? void 0 : V.cell,
|
|
183
183
|
props: (A = (f = o.purchaseOrder__id) == null ? void 0 : f.getContext) == null ? void 0 : A.call(f)
|
|
184
184
|
}, null, 8, ["render", "props"])
|
|
185
185
|
]),
|
|
186
|
-
p("div",
|
|
186
|
+
p("div", Ue, [
|
|
187
187
|
u(a(R), {
|
|
188
188
|
render: (L = (F = (M = o.to_name) == null ? void 0 : M.column) == null ? void 0 : F.columnDef) == null ? void 0 : L.cell,
|
|
189
189
|
props: ($ = (v = o.to_name) == null ? void 0 : v.getContext) == null ? void 0 : $.call(v)
|
|
190
190
|
}, null, 8, ["render", "props"])
|
|
191
191
|
]),
|
|
192
|
-
p("div", Ye, _e((
|
|
192
|
+
p("div", Ye, _e((U = (_ = (E = (h = (z = t.original.purchaseOrder) == null ? void 0 : z.items) == null ? void 0 : h.map) == null ? void 0 : E.call(h, (me) => `${me.name}`)) == null ? void 0 : _.join) == null ? void 0 : U.call(_, ", ")), 1),
|
|
193
193
|
(Y = t.original.purchaseOrder) != null && Y.ref ? (x(), De("div", He, [
|
|
194
194
|
u(a(R), {
|
|
195
195
|
render: (J = (j = (H = o.purchaseOrder_ref) == null ? void 0 : H.column) == null ? void 0 : j.columnDef) == null ? void 0 : J.cell,
|
|
@@ -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: {
|
|
@@ -2,25 +2,25 @@ import { defineComponent as je, ref as K, computed as U, onMounted as ct, resolv
|
|
|
2
2
|
import { u as Xt, _ as en } from "./SingleColumnLayout.vue_vue_type_script_setup_true_lang-sUxHOj47.js";
|
|
3
3
|
import { useCoreStore as It, useI18n as tt } from "@feedmepos/mf-common";
|
|
4
4
|
import { useSnackbar as nt, useDialog as tn, components as _e, useProxiedModel as Tt, useBreakpoints as nn } from "@feedmepos/ui-library";
|
|
5
|
-
import {
|
|
5
|
+
import { o as an, u as Oe, M as se, y as ee, s as jt, v as Ie, O as xe, D as Te, c as on, a as dt, k as sn } from "./app-CPlgHGkC.js";
|
|
6
6
|
import { defineStore as Pt, storeToRefs as rn } from "pinia";
|
|
7
|
-
import { b as Xe, e as Vt, f as ln, a as Ce } from "./date2-
|
|
8
|
-
import { R as cn } from "./rules-
|
|
9
|
-
import { e as mt, a as it, t as Mt, c as ze, l as Ut, m as Rt, j as Nt, k as Et, o as ne } from "./number-
|
|
10
|
-
import { b as un, d as dn } from "./xlsx.util-
|
|
11
|
-
import { u as mn } from "./stock-
|
|
12
|
-
import { u as at } from "./stock-
|
|
13
|
-
import { D as St, R as Re } from "./row-action.enum-
|
|
7
|
+
import { b as Xe, e as Vt, f as ln, a as Ce } from "./date2-Ci9tlLMJ.js";
|
|
8
|
+
import { R as cn } from "./rules-BIm67nl_.js";
|
|
9
|
+
import { e as mt, a as it, t as Mt, c as ze, l as Ut, m as Rt, j as Nt, k as Et, o as ne } from "./number-Ut7u2ZEE.js";
|
|
10
|
+
import { b as un, d as dn } from "./xlsx.util-DSCqPt8v.js";
|
|
11
|
+
import { u as mn } from "./stock-CzdMn9n8.js";
|
|
12
|
+
import { u as at } from "./stock-Dc4_U69J.js";
|
|
13
|
+
import { D as St, R as Re } from "./row-action.enum-DQ9bJ_uv.js";
|
|
14
14
|
import { c as fn } from "./component-kqxARxvM.js";
|
|
15
|
-
import { f as pn } from "./format-time-from-id-
|
|
16
|
-
import { f as vn } from "./recalculationUtils-
|
|
17
|
-
import { _ as yn } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-
|
|
18
|
-
import {
|
|
15
|
+
import { f as pn } from "./format-time-from-id-Bk60g6lh.js";
|
|
16
|
+
import { f as vn } from "./recalculationUtils-CqJRd9B2.js";
|
|
17
|
+
import { _ as yn } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-xxS4P6uo.js";
|
|
18
|
+
import { E as gn } from "./empty-placeholder-wf6-BWE8.js";
|
|
19
19
|
import { F as $t } from "./FmAdminBadge-DjnBAgyv.js";
|
|
20
|
-
import { u as bn } from "./vue-i18n-
|
|
21
|
-
import { F as hn } from "./decimal-
|
|
22
|
-
import { r as _n, u as Ze, w as kn } from "./xlsx-
|
|
23
|
-
import { d as wn } from "./dayjs.min-
|
|
20
|
+
import { u as bn } from "./vue-i18n-CvVV4Xof.js";
|
|
21
|
+
import { F as hn } from "./decimal-iKhH_VJO.js";
|
|
22
|
+
import { r as _n, u as Ze, w as kn } from "./xlsx-lawW6Hwh.js";
|
|
23
|
+
import { d as wn } from "./dayjs.min-DTx2lmq6.js";
|
|
24
24
|
import { F as xn } from "./FmDroppableField-J0xUsOTV.js";
|
|
25
25
|
import { _ as Dn } from "./FmConfirmationButton.vue_vue_type_script_setup_true_lang-DLrMEGFR.js";
|
|
26
26
|
import { _ as An, F as Qe } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-Ca_eYa8-.js";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { defineComponent as ne, ref as g, computed as D, watch as de, resolveComponent as w, openBlock as n, createElementBlock as p, createBlock as M, withModifiers as ue, createCommentVNode as b, createVNode as _, withCtx as T, createElementVNode as o, toDisplayString as l, unref as i, Fragment as z, createTextVNode as Z, renderList as le, normalizeClass as me, h as X, Teleport as pe } from "vue";
|
|
2
2
|
import { _ as ve } from "./SingleColumnLayout.vue_vue_type_script_setup_true_lang-sUxHOj47.js";
|
|
3
3
|
import { useI18n as se, useCoreStore as ge } from "@feedmepos/mf-common";
|
|
4
|
-
import {
|
|
4
|
+
import { H as ie, D as P, a as he, u as _e } from "./app-CPlgHGkC.js";
|
|
5
5
|
import { F as re } from "./FmAdminBadge-DjnBAgyv.js";
|
|
6
|
-
import { _ as be } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-
|
|
6
|
+
import { _ as be } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-xxS4P6uo.js";
|
|
7
7
|
import { useSnackbar as ce, useDialog as ke } from "@feedmepos/ui-library";
|
|
8
|
-
import { u as fe } from "./stock-
|
|
9
|
-
import { g as ye, f as xe } from "./recalculationUtils-
|
|
10
|
-
import { _ as De } from "./UnitDisplayControl.vue_vue_type_script_setup_true_lang-
|
|
8
|
+
import { u as fe } from "./stock-Dc4_U69J.js";
|
|
9
|
+
import { g as ye, f as xe } from "./recalculationUtils-CqJRd9B2.js";
|
|
10
|
+
import { _ as De } from "./UnitDisplayControl.vue_vue_type_script_setup_true_lang-QuejzcCL.js";
|
|
11
11
|
const we = { class: "fm-typo-en-heading-lg-600" }, Se = { class: "flex flex-col gap-16" }, Ce = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ve = { class: "flex flex-col gap-8" }, $e = { class: "fm-typo-en-body-md-600" }, Ae = { class: "flex flex-col gap-8" }, Fe = { class: "fm-typo-en-body-md-600" }, Re = { class: "flex items-center gap-8 mb-8" }, Ie = {
|
|
12
12
|
key: 2,
|
|
13
13
|
class: "text-red-500 text-sm mt-2"
|
|
@@ -4,24 +4,24 @@ import { useI18n as W, useCoreStore as de } from "@feedmepos/mf-common";
|
|
|
4
4
|
import { useDialog as pe, useDialogChild as Ze, useSnackbar as ce, FmButtonVariant as oe, components as Y, FmAdvancedSort as et, useProxiedModel as tt, useBreakpoints as nt } from "@feedmepos/ui-library";
|
|
5
5
|
import { defineStore as Ve, storeToRefs as Ne } from "pinia";
|
|
6
6
|
import { F as G } from "./form-mode.enum-BKiNVH6A.js";
|
|
7
|
-
import { a as me } from "./closing-template-
|
|
8
|
-
import { u as fe, c as Ue, a as ve,
|
|
9
|
-
import { t as re, a as ge, d as ye, s as Le, r as st } from "./xlsx.util-
|
|
7
|
+
import { a as me } from "./closing-template-B9JOB9ah.js";
|
|
8
|
+
import { u as fe, c as Ue, a as ve, n as ot } from "./app-CPlgHGkC.js";
|
|
9
|
+
import { t as re, a as ge, d as ye, s as Le, r as st } from "./xlsx.util-DSCqPt8v.js";
|
|
10
10
|
import { F as lt } from "./FmDroppableField-J0xUsOTV.js";
|
|
11
|
-
import { f as Be, a as le } from "./date2-
|
|
12
|
-
import { D as se, R as z } from "./row-action.enum-
|
|
11
|
+
import { f as Be, a as le } from "./date2-Ci9tlLMJ.js";
|
|
12
|
+
import { D as se, R as z } from "./row-action.enum-DQ9bJ_uv.js";
|
|
13
13
|
import { c as at } from "./component-kqxARxvM.js";
|
|
14
|
-
import { f as rt } from "./format-time-from-id-
|
|
15
|
-
import { _ as it } from "./TemplatePublishDialog.vue_vue_type_script_setup_true_lang-
|
|
16
|
-
import { u as ct } from "./netsuite-
|
|
17
|
-
import { u as mt } from "./duplicate-template-
|
|
18
|
-
import { _ as ut } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-
|
|
19
|
-
import { R as dt, A as pt } from "./rules-
|
|
20
|
-
import { u as ft } from "./use-ingredient-select-dialog-
|
|
21
|
-
import { d as vt } from "./defineDeepModel-
|
|
14
|
+
import { f as rt } from "./format-time-from-id-Bk60g6lh.js";
|
|
15
|
+
import { _ as it } from "./TemplatePublishDialog.vue_vue_type_script_setup_true_lang-Bu4XKhII.js";
|
|
16
|
+
import { u as ct } from "./netsuite-DglgyKcZ.js";
|
|
17
|
+
import { u as mt } from "./duplicate-template-BptIBRQ3.js";
|
|
18
|
+
import { _ as ut } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-xxS4P6uo.js";
|
|
19
|
+
import { R as dt, A as pt } from "./rules-BIm67nl_.js";
|
|
20
|
+
import { u as ft } from "./use-ingredient-select-dialog-Wy4CtYcZ.js";
|
|
21
|
+
import { d as vt } from "./defineDeepModel-C25T8oyP.js";
|
|
22
22
|
import { F as X, _ as ze } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-Ca_eYa8-.js";
|
|
23
|
-
import { u as gt } from "./use-template-enabled-locations-
|
|
24
|
-
import { _ as yt } from "./SystemTrailDialog.vue_vue_type_script_setup_true_lang-
|
|
23
|
+
import { u as gt } from "./use-template-enabled-locations-BfZFcXZ_.js";
|
|
24
|
+
import { _ as yt } from "./SystemTrailDialog.vue_vue_type_script_setup_true_lang-xdLxGAOM.js";
|
|
25
25
|
import { _ as ht } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
26
26
|
const ue = Ve(
|
|
27
27
|
"closingTemplateTable",
|