@feedmepos/mf-inventory-portal 1.3.13 → 1.3.14-dev.1
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-Cb6qfRCz.js +445 -0
- package/dist/{ApprovalView-ClQU6bq0.js → ApprovalView-BxioAXpO.js} +7 -7
- package/dist/{BindingsDialog--w8amPhB.js → BindingsDialog-Dn_hP7Ji.js} +13 -13
- package/dist/{BindingsPicker-CLZ2cy95.js → BindingsPicker-BEXOUaoI.js} +2 -2
- package/dist/{BindingsTable-DMKnwFJt.js → BindingsTable-CsRLA5J_.js} +3 -3
- package/dist/{ClosingDraftView-DOSvb2cx.js → ClosingDraftView-DoH9ZcGA.js} +136 -136
- package/dist/{ClosingHistoryView-Dbysx1Ca.js → ClosingHistoryView-BWf_gIrc.js} +32 -32
- package/dist/{ClosingTemplateView-kOWpFBhr.js → ClosingTemplateView-BKRxzvQX.js} +14 -14
- package/dist/{DeliveryOrderPrintPreview-CTrf0b97.js → DeliveryOrderPrintPreview-HzspgQXj.js} +11 -11
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-HLHu23Ly.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DstxeP1q.js} +20 -20
- package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-BTwfJTx3.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-E9FFFhwx.js} +2 -2
- package/dist/{FmMultiselectDialog-D8AXgAuO.js → FmMultiselectDialog-3uKA-o0f.js} +1 -1
- package/dist/{FmMultiselectDialog-ByvnmkuF.js → FmMultiselectDialog-uFZKKIiO.js} +2 -2
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-B8Jp-237.js → FmUnitInput.vue_vue_type_script_setup_true_lang-C1KGaqi7.js} +18 -18
- package/dist/{ImportView-B8jTVkI3.js → ImportView-zrNDzp3k.js} +6 -6
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-D3bMh_iG.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-B2vMgXVZ.js} +1 -1
- package/dist/{IngredientGroupView-DEZHQArP.js → IngredientGroupView-HcAKvPur.js} +5 -5
- package/dist/{IngredientsView-D_0aKc2P.js → IngredientsView-CRB5UN-e.js} +15 -15
- package/dist/{IntegrationExplorerView-RNQ89fRN.js → IntegrationExplorerView-k3IHeiOU.js} +5 -5
- package/dist/{IntegrationView-HyqeX65i.js → IntegrationView-B3WeQTDB.js} +13 -13
- package/dist/{InventoryBindingForm-GXWU6jVC.js → InventoryBindingForm-B-7SQKl2.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-BSWEOGs7.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-DhPu_GyE.js} +15 -15
- package/dist/{InventoryBindingSummary-Dcsun-ae.js → InventoryBindingSummary-Swi6A3W2.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BPHzJFkv.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-Duv0At06.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-eaX2F6rA.js → PremiumBadge.vue_vue_type_script_setup_true_lang--gt60IlU.js} +9 -9
- package/dist/{PublishView-BzaSX1CF.js → PublishView-B9HJT61I.js} +11 -11
- package/dist/{PurchaseOrderPrintPreview-Dq9RVILX.js → PurchaseOrderPrintPreview-sClUXkgt.js} +9 -9
- package/dist/{ReceiveRequestView-CUR65B8h.js → ReceiveRequestView-BbS55juS.js} +23 -23
- package/dist/{RecipeView-DA1exNa3.js → RecipeView-BH3asOD4.js} +50 -50
- package/dist/{SettingsView-G9VVMREu.js → SettingsView-BJAMNNhr.js} +30 -30
- package/dist/StockView-DMLFY7d1.js +2439 -0
- package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-DflfaS_i.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-DeiLMVin.js} +1 -1
- package/dist/{SupplierView-Br3PxWl6.js → SupplierView-C3uBrEcc.js} +12 -12
- package/dist/{SurchargeView-DnC875ic.js → SurchargeView-S9ByD9Nd.js} +6 -6
- package/dist/{SystemTrailDialog.vue_vue_type_script_setup_true_lang-DxElZDE3.js → SystemTrailDialog.vue_vue_type_script_setup_true_lang-ha60Wy7z.js} +2 -2
- package/dist/{TemplatePublishDialog.vue_vue_type_script_setup_true_lang-DncbuAH1.js → TemplatePublishDialog.vue_vue_type_script_setup_true_lang-CfyCEElN.js} +1 -1
- package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-R0DRQHII.js → TransferDetails.vue_vue_type_script_setup_true_lang-CKfs-ns0.js} +790 -806
- package/dist/{TransferTemplateView-CN-1iASP.js → TransferTemplateView-zbn5CGiZ.js} +17 -17
- package/dist/{UnitCostHistoryView-HMfTl2Rl.js → UnitCostHistoryView-LhvAybS8.js} +246 -243
- package/dist/{UnitDisplayControl.vue_vue_type_script_setup_true_lang-BQSRm_uN.js → UnitDisplayControl.vue_vue_type_script_setup_true_lang-E2QCl521.js} +4 -4
- package/dist/{UnitView-2J7SxbnX.js → UnitView-6oUdlUVo.js} +24 -24
- package/dist/{WarehouseView-EIXt8wd0.js → WarehouseView-DQFe99KT.js} +5 -5
- package/dist/{WastageTemplateView-B8yQevPX.js → WastageTemplateView-BiYZqiT2.js} +14 -14
- package/dist/{app-DZ_O5S5y.js → app-SnX9gL_k.js} +23514 -22309
- package/dist/app.d.ts +6 -6
- package/dist/app.js +2 -2
- package/dist/{closing-template-C3F4uA55.js → closing-template-Ch--jBk-.js} +1 -1
- package/dist/components/HrmPermissionGuard.vue.d.ts +54 -0
- package/dist/composable/useHrmPermission.d.ts +17 -0
- package/dist/{date2-DoKx3vEH.js → date2-CGqqJOqr.js} +1 -1
- package/dist/{dayjs.min-BzKmIVU5.js → dayjs.min-JnfBpNSN.js} +1 -1
- package/dist/{decimal-CHryhQrv.js → decimal-C-2MQYNP.js} +2 -2
- package/dist/{defineDeepModel-Dt72PPYN.js → defineDeepModel-CUJCBuvw.js} +1 -1
- package/dist/{duplicate-template-k0PYkiot.js → duplicate-template-BXg5EQRC.js} +1 -1
- package/dist/{export-D0nU9NCc.js → export-DUsFBcmf.js} +1 -1
- package/dist/{feature-DTXvUM9q.js → feature-gkhmly57.js} +28 -28
- package/dist/{format-time-from-id-CjML4YH3.js → format-time-from-id-D1RhcKfL.js} +1 -1
- package/dist/{format-unit-display-BASnDwRJ.js → format-unit-display-DXs_-yEW.js} +11 -11
- package/dist/{import-export.helper-BGRAKGXv.js → import-export.helper-B84wW0eo.js} +6 -6
- package/dist/{index-FhahM2dg.js → index-D3XgyMwL.js} +1 -1
- package/dist/{index-Db7jD-CU.js → index-Dp1GAjHf.js} +3 -3
- package/dist/{index-D5qTaOFp.js → index-artVJVqL.js} +1 -1
- package/dist/{inventory-core-dart.default-Cvvr8rpN.js → inventory-core-dart.default-Bu1oVkLC.js} +10 -10
- package/dist/{lodash-B4Uj749H.js → lodash-DZbYS5Vn.js} +1 -1
- package/dist/{lz-string-Ckbaw1Bu.js → lz-string-nX96TtT6.js} +17 -17
- package/dist/{netsuite-B4O7LRpC.js → netsuite-DQkJKCH9.js} +109 -109
- package/dist/{number-9PlMlR2G.js → number-gRrApZRj.js} +7 -7
- package/dist/{predefined-templates-BqAy88Rp.js → predefined-templates-D9bzSOz_.js} +1 -1
- package/dist/{purchase-order-template-KkhC0FCL.js → purchase-order-template-BiE_We2X.js} +1 -1
- package/dist/{recalculationUtils-Rj0SZQO3.js → recalculationUtils-zNt-EW5S.js} +1 -1
- package/dist/router/route-permission.d.ts +10 -0
- package/dist/{rules-BvLBkdfK.js → rules-CWFFr_mA.js} +2 -2
- package/dist/{stock-CoG3l91v.js → stock-C-34Vuxz.js} +3 -3
- package/dist/{stock-yUbmIey0.js → stock-V4Oy4QHQ.js} +28 -27
- package/dist/{supplier-Qlox4B8s.js → supplier-DbYagMhS.js} +16 -16
- package/dist/{surcharge-CsAxFX-L.js → surcharge-CcvvfLHB.js} +5 -5
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-ingredient-select-dialog-BOtDFKQO.js → use-ingredient-select-dialog-B4jFgJ5b.js} +2 -2
- package/dist/{use-inventory-binding-dialog-Dz5NbeEn.js → use-inventory-binding-dialog-20flYyGE.js} +2 -2
- package/dist/{use-template-enabled-locations-MNNKqChl.js → use-template-enabled-locations-CpDMbAGF.js} +2 -2
- package/dist/useHrmPermission-CZW6u2TS.js +16 -0
- package/dist/views/receive-request/composables/use-order-draft-permission.d.ts +2 -5
- package/dist/{vue-i18n-BqX2td3b.js → vue-i18n-CUrz9OVK.js} +389 -389
- package/dist/{xlsx-CtRIIkxr.js → xlsx-DBsOBE1z.js} +1 -1
- package/dist/{xlsx.util-Bd4_86rn.js → xlsx.util-xziohm10.js} +1 -1
- package/package.json +5 -4
- package/dist/App-Dm-YoD_v.js +0 -411
- package/dist/StockView-3J7Gkskb.js +0 -2406
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
import { defineComponent as W, ref as G, onMounted as Ce, resolveComponent as A, openBlock as x, createElementBlock as R, Fragment as oe, createElementVNode as y, toDisplayString as
|
|
2
|
-
import { a as Y, c as me, S as $e, F as ie,
|
|
1
|
+
import { defineComponent as W, ref as G, onMounted as Ce, resolveComponent as A, openBlock as x, createElementBlock as R, Fragment as oe, createElementVNode as y, toDisplayString as N, createVNode as V, createCommentVNode as E, computed as S, watch as le, unref as d, normalizeClass as he, withCtx as K, h as O, createBlock as D, renderList as ae, isRef as ve, normalizeStyle as Ie, Teleport as Ae, normalizeProps as Re, guardReactiveProps as Se } from "vue";
|
|
2
|
+
import { a as Y, c as me, S as $e, F as ie, y as Ee, z as Te, k as ye, u as Ue } from "./app-SnX9gL_k.js";
|
|
3
3
|
import { useDialog as ce, useSnackbar as pe, components as ee, useProxiedModel as be, useBreakpoints as Pe } from "@feedmepos/ui-library";
|
|
4
4
|
import { i as De, _ as Ge } from "./is-linked-ingredient-error-fJ2TJb3z.js";
|
|
5
|
-
import { F as
|
|
6
|
-
import { _ as Ve } from "./IngredientBindedItem.vue_vue_type_script_setup_true_lang-
|
|
7
|
-
import { defineStore as Me, storeToRefs as
|
|
5
|
+
import { F as z } from "./form-mode.enum-BKiNVH6A.js";
|
|
6
|
+
import { _ as Ve } from "./IngredientBindedItem.vue_vue_type_script_setup_true_lang-B2vMgXVZ.js";
|
|
7
|
+
import { defineStore as Me, storeToRefs as ze } from "pinia";
|
|
8
8
|
import { D as ge, R as te } from "./row-action.enum-Co_O4qD9.js";
|
|
9
|
-
import { c as
|
|
10
|
-
import { a as j, c as ke } from "./number-
|
|
9
|
+
import { c as Ne } from "./component-kqxARxvM.js";
|
|
10
|
+
import { a as j, c as ke } from "./number-gRrApZRj.js";
|
|
11
11
|
import { useI18n as Q, useCoreStore as Ke } from "@feedmepos/mf-common";
|
|
12
12
|
import { u as Le, _ as Oe } from "./SingleColumnLayout.vue_vue_type_script_setup_true_lang-sUxHOj47.js";
|
|
13
|
-
import { b as xe, c as fe, I as je, A as de, U as Be, R as Ye } from "./rules-
|
|
14
|
-
import { _ as qe } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-
|
|
15
|
-
import { a as re } from "./FmMultiselectDialog-
|
|
16
|
-
import { d as we } from "./defineDeepModel-
|
|
13
|
+
import { b as xe, c as fe, I as je, A as de, U as Be, R as Ye } from "./rules-CWFFr_mA.js";
|
|
14
|
+
import { _ as qe } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-DhPu_GyE.js";
|
|
15
|
+
import { a as re } from "./FmMultiselectDialog-uFZKKIiO.js";
|
|
16
|
+
import { d as we } from "./defineDeepModel-CUJCBuvw.js";
|
|
17
17
|
import { L as He, P as Je, D as We } from "./app-DiX-EfV6.js";
|
|
18
|
-
import { _ as Qe, c as Xe, d as Ze } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-
|
|
19
|
-
import { u as en } from "./FmMultiselectDialog-
|
|
20
|
-
import { u as nn } from "./vue-i18n-
|
|
21
|
-
import { F as tn } from "./inventory-core-dart.default-
|
|
18
|
+
import { _ as Qe, c as Xe, d as Ze } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-C1KGaqi7.js";
|
|
19
|
+
import { u as en } from "./FmMultiselectDialog-3uKA-o0f.js";
|
|
20
|
+
import { u as nn } from "./vue-i18n-CUrz9OVK.js";
|
|
21
|
+
import { F as tn } from "./inventory-core-dart.default-Bu1oVkLC.js";
|
|
22
22
|
import { _ as on } from "./FmCustomAttribute.vue_vue_type_script_setup_true_lang-D-IWRjRD.js";
|
|
23
|
-
import { u as ln } from "./feature-
|
|
23
|
+
import { u as ln } from "./feature-gkhmly57.js";
|
|
24
24
|
import { _ as sn, F as _e } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-Ca_eYa8-.js";
|
|
25
|
-
import { b as an, d as rn } from "./xlsx.util-
|
|
26
|
-
import { f as dn } from "./date2-
|
|
27
|
-
import { _ as un } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-
|
|
25
|
+
import { b as an, d as rn } from "./xlsx.util-xziohm10.js";
|
|
26
|
+
import { f as dn } from "./date2-CGqqJOqr.js";
|
|
27
|
+
import { _ as un } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-E9FFFhwx.js";
|
|
28
28
|
const mn = {
|
|
29
29
|
key: 0,
|
|
30
30
|
class: "flex flex-col items-center w-full h-full gap-24"
|
|
@@ -48,7 +48,7 @@ const mn = {
|
|
|
48
48
|
return (u, _) => {
|
|
49
49
|
const t = A("FmSpacer"), n = A("FmCircularProgress");
|
|
50
50
|
return x(), R(oe, null, [
|
|
51
|
-
y("p", null,
|
|
51
|
+
y("p", null, N(u.message), 1),
|
|
52
52
|
c.value ? (x(), R("div", mn, [
|
|
53
53
|
V(t),
|
|
54
54
|
y("div", null, [
|
|
@@ -74,7 +74,7 @@ const mn = {
|
|
|
74
74
|
function _() {
|
|
75
75
|
const e = {
|
|
76
76
|
recipe: {},
|
|
77
|
-
mode:
|
|
77
|
+
mode: z.CREATE,
|
|
78
78
|
show: !0,
|
|
79
79
|
"onUpdate:show"(i) {
|
|
80
80
|
u.value.show = i;
|
|
@@ -85,7 +85,7 @@ const mn = {
|
|
|
85
85
|
async function t(e) {
|
|
86
86
|
const i = {
|
|
87
87
|
recipe: me(e),
|
|
88
|
-
mode:
|
|
88
|
+
mode: z.UPDATE,
|
|
89
89
|
show: !0,
|
|
90
90
|
"onUpdate:show"(r) {
|
|
91
91
|
u.value.show = r;
|
|
@@ -191,7 +191,7 @@ function vn() {
|
|
|
191
191
|
id: "action",
|
|
192
192
|
header: "",
|
|
193
193
|
cell(n) {
|
|
194
|
-
return
|
|
194
|
+
return Ne(
|
|
195
195
|
[ge[te.Edit], ge[te.Delete]],
|
|
196
196
|
(o) => {
|
|
197
197
|
a(o, n.row.original.original);
|
|
@@ -495,7 +495,7 @@ const bn = { class: "flex flex-col" }, gn = { class: "flex flex-col gap-4" }, Fe
|
|
|
495
495
|
content: o.displayName
|
|
496
496
|
}, {
|
|
497
497
|
default: K(() => [
|
|
498
|
-
y("span", Bn,
|
|
498
|
+
y("span", Bn, N(o.displayName), 1)
|
|
499
499
|
]),
|
|
500
500
|
_: 1
|
|
501
501
|
}, 8, ["content"])
|
|
@@ -527,7 +527,7 @@ const bn = { class: "flex flex-col" }, gn = { class: "flex flex-col gap-4" }, Fe
|
|
|
527
527
|
color: "system-error-300",
|
|
528
528
|
size: "sm"
|
|
529
529
|
}),
|
|
530
|
-
y("div", null,
|
|
530
|
+
y("div", null, N(d(c)("inventory.inventoryBindings.circularError")), 1)
|
|
531
531
|
])) : E("", !0)
|
|
532
532
|
])
|
|
533
533
|
]),
|
|
@@ -838,7 +838,7 @@ const Sn = { class: "flex flex-col gap-16" }, $n = { class: "flex flex-col" }, E
|
|
|
838
838
|
}), Un = { class: "border-1 mx-3 my-1 rounded-md" }, Pn = { class: "flex flex-col border-b border-fm-color-neutral-gray-100" }, Dn = {
|
|
839
839
|
class: "flex items-center w-full",
|
|
840
840
|
style: { "min-height": "48px" }
|
|
841
|
-
}, Gn = { class: "flex-1 fm-typo-en-body-md-400 py-8 px-12" }, Mn = { class: "line-clamp-1 w-full" },
|
|
841
|
+
}, Gn = { class: "flex-1 fm-typo-en-body-md-400 py-8 px-12" }, Mn = { class: "line-clamp-1 w-full" }, zn = { class: "w-[150px]" }, Nn = {
|
|
842
842
|
key: 0,
|
|
843
843
|
class: "w-[52px]"
|
|
844
844
|
}, Kn = { class: "flex flex-col px-12 pb-4" }, Ln = /* @__PURE__ */ W({
|
|
@@ -883,12 +883,12 @@ const Sn = { class: "flex flex-col gap-16" }, $n = { class: "flex flex-col" }, E
|
|
|
883
883
|
content: t.displayName
|
|
884
884
|
}, {
|
|
885
885
|
default: K(() => [
|
|
886
|
-
y("span", Mn,
|
|
886
|
+
y("span", Mn, N(t.displayName), 1)
|
|
887
887
|
]),
|
|
888
888
|
_: 1
|
|
889
889
|
}, 8, ["content"])
|
|
890
890
|
]),
|
|
891
|
-
y("div",
|
|
891
|
+
y("div", zn, [
|
|
892
892
|
V(Qe, {
|
|
893
893
|
"model-value": { amount: d(a).amount, measurement: d(a).measurement },
|
|
894
894
|
"onUpdate:modelValue": u,
|
|
@@ -898,7 +898,7 @@ const Sn = { class: "flex flex-col gap-16" }, $n = { class: "flex flex-col" }, E
|
|
|
898
898
|
disabled: t.readonly
|
|
899
899
|
}, null, 8, ["model-value", "unit", "disabled"])
|
|
900
900
|
]),
|
|
901
|
-
t.readonly ? E("", !0) : (x(), R("div",
|
|
901
|
+
t.readonly ? E("", !0) : (x(), R("div", Nn, [
|
|
902
902
|
V(e, {
|
|
903
903
|
disabled: t.disabled,
|
|
904
904
|
type: "button",
|
|
@@ -1077,7 +1077,7 @@ const On = { class: "flex flex-col gap-24" }, jn = {
|
|
|
1077
1077
|
}, 8, ["disabled", "model-value", "rules"]),
|
|
1078
1078
|
((U = v.recipeBindingConfig) == null ? void 0 : U.enabled) !== !1 ? (x(), R("div", jn, [
|
|
1079
1079
|
y("div", Yn, [
|
|
1080
|
-
y("div", qn,
|
|
1080
|
+
y("div", qn, N(d(b)("inventory.inventoryBindings.recipe")), 1),
|
|
1081
1081
|
v.readonly ? E("", !0) : (x(), D(T, {
|
|
1082
1082
|
key: 0,
|
|
1083
1083
|
variant: "secondary",
|
|
@@ -1090,7 +1090,7 @@ const On = { class: "flex flex-col gap-24" }, jn = {
|
|
|
1090
1090
|
]),
|
|
1091
1091
|
y("div", Hn, [
|
|
1092
1092
|
y("div", Jn, [
|
|
1093
|
-
y("div", Wn,
|
|
1093
|
+
y("div", Wn, N(d(b)("inventory.inventoryBindings.recipe")), 1),
|
|
1094
1094
|
w[5] || (w[5] = y("div", { class: "w-[200px]" }, null, -1)),
|
|
1095
1095
|
v.recipeBindingConfig.ableToApplyRules ? (x(), R("div", Qn)) : E("", !0),
|
|
1096
1096
|
v.readonly ? E("", !0) : (x(), R("div", Xn))
|
|
@@ -1112,7 +1112,7 @@ const On = { class: "flex flex-col gap-24" }, jn = {
|
|
|
1112
1112
|
])) : E("", !0),
|
|
1113
1113
|
v.enableIngredientGroup ? (x(), R("div", Zn, [
|
|
1114
1114
|
y("div", et, [
|
|
1115
|
-
y("div", nt,
|
|
1115
|
+
y("div", nt, N(d(b)("inventory.inventoryBindings.ingredientGroup")), 1),
|
|
1116
1116
|
v.readonly ? E("", !0) : (x(), D(T, {
|
|
1117
1117
|
key: 0,
|
|
1118
1118
|
variant: "secondary",
|
|
@@ -1125,7 +1125,7 @@ const On = { class: "flex flex-col gap-24" }, jn = {
|
|
|
1125
1125
|
]),
|
|
1126
1126
|
y("div", tt, [
|
|
1127
1127
|
y("div", ot, [
|
|
1128
|
-
y("div", it,
|
|
1128
|
+
y("div", it, N(d(b)("inventory.inventoryBindings.ingredientGroup")), 1),
|
|
1129
1129
|
w[6] || (w[6] = y("div", { class: "w-[200px]" }, null, -1)),
|
|
1130
1130
|
w[7] || (w[7] = y("div", { class: "w-[52px]" }, null, -1))
|
|
1131
1131
|
]),
|
|
@@ -1145,11 +1145,11 @@ const On = { class: "flex flex-col gap-24" }, jn = {
|
|
|
1145
1145
|
color: "system-error-300",
|
|
1146
1146
|
size: "sm"
|
|
1147
1147
|
}),
|
|
1148
|
-
y("div", null,
|
|
1148
|
+
y("div", null, N(d(b)("inventory.inventoryBindings.circularError")), 1)
|
|
1149
1149
|
])) : E("", !0),
|
|
1150
1150
|
y("div", at, [
|
|
1151
1151
|
y("div", rt, [
|
|
1152
|
-
y("div", dt,
|
|
1152
|
+
y("div", dt, N((J = _.value[$.id]) == null ? void 0 : J.name), 1)
|
|
1153
1153
|
]),
|
|
1154
1154
|
y("div", ut, [
|
|
1155
1155
|
V(P, {
|
|
@@ -1180,7 +1180,7 @@ const On = { class: "flex flex-col gap-24" }, jn = {
|
|
|
1180
1180
|
])) : E("", !0),
|
|
1181
1181
|
y("div", ct, [
|
|
1182
1182
|
y("div", pt, [
|
|
1183
|
-
y("div", ft,
|
|
1183
|
+
y("div", ft, N(d(b)("inventory.inventoryBindings.ingredient")), 1),
|
|
1184
1184
|
v.readonly ? E("", !0) : (x(), D(T, {
|
|
1185
1185
|
key: 0,
|
|
1186
1186
|
variant: "secondary",
|
|
@@ -1193,8 +1193,8 @@ const On = { class: "flex flex-col gap-24" }, jn = {
|
|
|
1193
1193
|
]),
|
|
1194
1194
|
y("div", vt, [
|
|
1195
1195
|
y("div", yt, [
|
|
1196
|
-
y("div", bt,
|
|
1197
|
-
y("div", gt,
|
|
1196
|
+
y("div", bt, N(d(b)("inventory.inventoryBindings.ingredient")), 1),
|
|
1197
|
+
y("div", gt, N(d(b)("inventory.inventoryBindings.amount")), 1),
|
|
1198
1198
|
w[8] || (w[8] = y("div", { class: "w-[52px]" }, null, -1)),
|
|
1199
1199
|
(X = v.skuBindingConfig) != null && X.ableToApplyRules || (L = v.skuBindingConfig) != null && L.ableToConfigureAlternative ? (x(), R("div", _t)) : E("", !0)
|
|
1200
1200
|
]),
|
|
@@ -1377,7 +1377,7 @@ const On = { class: "flex flex-col gap-24" }, jn = {
|
|
|
1377
1377
|
_: 1
|
|
1378
1378
|
})
|
|
1379
1379
|
]),
|
|
1380
|
-
p.mode !== d(
|
|
1380
|
+
p.mode !== d(z).CREATE ? (x(), R("div", xt, [
|
|
1381
1381
|
V(w, {
|
|
1382
1382
|
label: "Show binded items",
|
|
1383
1383
|
modelValue: s.value,
|
|
@@ -1416,27 +1416,27 @@ const On = { class: "flex flex-col gap-24" }, jn = {
|
|
|
1416
1416
|
props: {
|
|
1417
1417
|
show: { type: Boolean },
|
|
1418
1418
|
recipe: {},
|
|
1419
|
-
mode: { default:
|
|
1419
|
+
mode: { default: z.READ }
|
|
1420
1420
|
},
|
|
1421
1421
|
emits: ["update:show"],
|
|
1422
1422
|
setup(f) {
|
|
1423
1423
|
const B = f, b = Y(), c = pe(), { t: a } = Q(), u = be(B, "show"), _ = be(B, "recipe"), t = S(() => {
|
|
1424
1424
|
switch (B.mode) {
|
|
1425
|
-
case
|
|
1425
|
+
case z.READ:
|
|
1426
1426
|
return "";
|
|
1427
|
-
case
|
|
1427
|
+
case z.UPDATE:
|
|
1428
1428
|
return a("inventory.recipe.update.title");
|
|
1429
|
-
case
|
|
1429
|
+
case z.CREATE:
|
|
1430
1430
|
return a("inventory.recipe.create.title");
|
|
1431
1431
|
}
|
|
1432
1432
|
return "";
|
|
1433
1433
|
}), n = S(() => {
|
|
1434
1434
|
switch (B.mode) {
|
|
1435
|
-
case
|
|
1435
|
+
case z.READ:
|
|
1436
1436
|
return "";
|
|
1437
|
-
case
|
|
1437
|
+
case z.UPDATE:
|
|
1438
1438
|
return a("common.save");
|
|
1439
|
-
case
|
|
1439
|
+
case z.CREATE:
|
|
1440
1440
|
return a("common.add");
|
|
1441
1441
|
}
|
|
1442
1442
|
return "";
|
|
@@ -1484,11 +1484,11 @@ const On = { class: "flex flex-col gap-24" }, jn = {
|
|
|
1484
1484
|
}
|
|
1485
1485
|
function m() {
|
|
1486
1486
|
switch (B.mode) {
|
|
1487
|
-
case
|
|
1487
|
+
case z.READ:
|
|
1488
1488
|
return;
|
|
1489
|
-
case
|
|
1489
|
+
case z.UPDATE:
|
|
1490
1490
|
return r();
|
|
1491
|
-
case
|
|
1491
|
+
case z.CREATE:
|
|
1492
1492
|
return i();
|
|
1493
1493
|
}
|
|
1494
1494
|
}
|
|
@@ -1599,7 +1599,7 @@ function St() {
|
|
|
1599
1599
|
const $t = { class: "flex flex-col py-8" }, Et = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, Tt = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ro = /* @__PURE__ */ W({
|
|
1600
1600
|
__name: "RecipeView",
|
|
1601
1601
|
setup(f) {
|
|
1602
|
-
const B = Y(), b = S(() => B.recipes), c = Ue(), { createRecipe: a, updateRecipe: u } = ue(), { recipeDialogProps: _, recipeViewLoading: t } =
|
|
1602
|
+
const B = Y(), b = S(() => B.recipes), c = Ue(), { createRecipe: a, updateRecipe: u } = ue(), { recipeDialogProps: _, recipeViewLoading: t } = ze(ue()), { columnDefs: n, formatRowData: o } = vn(), e = S(() => o(b.value));
|
|
1603
1603
|
ce(), pe(), G(!1);
|
|
1604
1604
|
function i(I) {
|
|
1605
1605
|
if (I === "add")
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { defineComponent as Y, ref as b, computed as
|
|
1
|
+
import { defineComponent as Y, ref as b, computed as q, watch as M, resolveComponent as V, openBlock as s, createElementBlock as r, createElementVNode as t, toDisplayString as F, Fragment as U, renderList as G, createVNode as p, createBlock as P, createCommentVNode as K, nextTick as fe, createSlots as ye, withCtx as T, normalizeClass as ee, unref as O, withModifiers as be, Teleport as xe } from "vue";
|
|
2
2
|
import { _ as _e } from "./SingleColumnLayout.vue_vue_type_script_setup_true_lang-sUxHOj47.js";
|
|
3
|
-
import { B as A, g as he, r as ke, s as we, u as Te, a as R, b as Fe, c as De, d as te, e as Ce, f as Se } from "./predefined-templates-
|
|
3
|
+
import { B as A, g as he, r as ke, s as we, u as Te, a as R, b as Fe, c as De, d as te, e as Ce, f as Se } from "./predefined-templates-D9bzSOz_.js";
|
|
4
4
|
import { useSnackbar as Be } from "@feedmepos/ui-library";
|
|
5
5
|
import { _ as Ve } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
6
|
-
import {
|
|
6
|
+
import { K as j, L as $e } from "./app-SnX9gL_k.js";
|
|
7
7
|
import { useCoreStore as ze, useI18n as Ie } from "@feedmepos/mf-common";
|
|
8
|
-
import "./dayjs.min-
|
|
9
|
-
import "./inventory-core-dart.default-
|
|
8
|
+
import "./dayjs.min-JnfBpNSN.js";
|
|
9
|
+
import "./inventory-core-dart.default-Bu1oVkLC.js";
|
|
10
10
|
import { F as Oe } from "./FmAdminBadge-DjnBAgyv.js";
|
|
11
11
|
const Pe = { class: "p-3" }, Ee = { class: "text-sm font-semibold text-gray-700 mb-4 pb-2 border-b border-gray-200" }, Ne = { class: "flex flex-col gap-3" }, Ue = {
|
|
12
12
|
key: 0,
|
|
13
13
|
class: "flex items-center justify-between py-1"
|
|
14
|
-
}, Ae = { class: "text-[13px] text-gray-600" },
|
|
14
|
+
}, Ae = { class: "text-[13px] text-gray-600" }, Le = { class: "text-[13px] text-gray-600" }, He = ["value", "rows", "placeholder", "onInput"], Re = {
|
|
15
15
|
key: 5,
|
|
16
16
|
class: "flex items-center justify-between py-1"
|
|
17
17
|
}, je = { class: "text-[13px] text-gray-600" }, Me = ["value", "onInput"], Ge = /* @__PURE__ */ Y({
|
|
@@ -29,7 +29,7 @@ const Pe = { class: "p-3" }, Ee = { class: "text-sm font-semibold text-gray-700
|
|
|
29
29
|
const c = A[n.tag];
|
|
30
30
|
return c ? c.initialConfigFields() : [];
|
|
31
31
|
}
|
|
32
|
-
const d = b(h(g.block)), $ =
|
|
32
|
+
const d = b(h(g.block)), $ = q(() => {
|
|
33
33
|
const n = A[g.block.tag];
|
|
34
34
|
return (n == null ? void 0 : n.label) ?? g.block.tag;
|
|
35
35
|
});
|
|
@@ -71,14 +71,14 @@ const Pe = { class: "p-3" }, Ee = { class: "text-sm font-semibold text-gray-700
|
|
|
71
71
|
placeholder: a.placeholder,
|
|
72
72
|
"onUpdate:modelValue": (y) => i(w, y)
|
|
73
73
|
}, null, 8, ["label", "model-value", "placeholder", "onUpdate:modelValue"])) : a.type === "textarea" ? (s(), r(U, { key: 2 }, [
|
|
74
|
-
t("div",
|
|
74
|
+
t("div", Le, F(a.label), 1),
|
|
75
75
|
t("textarea", {
|
|
76
76
|
class: "w-full font-mono text-[13px] p-2 border border-gray-300 rounded resize-y box-border focus:outline-none focus:border-blue-600",
|
|
77
77
|
value: a.value,
|
|
78
78
|
rows: a.rows ?? 8,
|
|
79
79
|
placeholder: a.placeholder,
|
|
80
80
|
onInput: (y) => i(w, y.target.value)
|
|
81
|
-
}, null, 40,
|
|
81
|
+
}, null, 40, He)
|
|
82
82
|
], 64)) : a.type === "select" ? (s(), P(D, {
|
|
83
83
|
key: 3,
|
|
84
84
|
label: a.label,
|
|
@@ -101,13 +101,13 @@ const Pe = { class: "p-3" }, Ee = { class: "text-sm font-semibold text-gray-700
|
|
|
101
101
|
class: "color-input w-9 h-7 p-0 border border-gray-300 rounded cursor-pointer bg-transparent",
|
|
102
102
|
onInput: (y) => i(w, y.target.value)
|
|
103
103
|
}, null, 40, Me)
|
|
104
|
-
])) :
|
|
104
|
+
])) : K("", !0)
|
|
105
105
|
]))), 128))
|
|
106
106
|
])
|
|
107
107
|
]);
|
|
108
108
|
};
|
|
109
109
|
}
|
|
110
|
-
}),
|
|
110
|
+
}), Ke = /* @__PURE__ */ Ve(Ge, [["__scopeId", "data-v-1f00cb56"]]), qe = { class: "h-full flex flex-col" }, Ye = { class: "flex-1 overflow-auto p-4 bg-gray-100" }, Je = /* @__PURE__ */ Y({
|
|
111
111
|
__name: "TemplatePreview",
|
|
112
112
|
props: {
|
|
113
113
|
blocks: {},
|
|
@@ -121,7 +121,7 @@ const Pe = { class: "p-3" }, Ee = { class: "text-sm font-semibold text-gray-700
|
|
|
121
121
|
function h() {
|
|
122
122
|
return !f && g.value && (f = g.value.attachShadow({ mode: "open" })), f;
|
|
123
123
|
}
|
|
124
|
-
const d =
|
|
124
|
+
const d = q(() => x.previewData ?? he(x.templateType));
|
|
125
125
|
M(
|
|
126
126
|
() => [x.blocks, d.value, g.value],
|
|
127
127
|
() => {
|
|
@@ -172,7 +172,7 @@ const Pe = { class: "p-3" }, Ee = { class: "text-sm font-semibold text-gray-700
|
|
|
172
172
|
const m = f.querySelector(`[data-block-id="${i}"]`);
|
|
173
173
|
m && (m.classList.add("highlight"), m.scrollIntoView({ behavior: "smooth", block: "nearest" }));
|
|
174
174
|
}
|
|
175
|
-
return (i, m) => (s(), r("div",
|
|
175
|
+
return (i, m) => (s(), r("div", qe, [
|
|
176
176
|
m[0] || (m[0] = t("div", { class: "text-xs font-semibold text-gray-400 uppercase tracking-wider px-3 py-2 border-b border-gray-200" }, " Live Preview ", -1)),
|
|
177
177
|
t("div", Ye, [
|
|
178
178
|
t("div", {
|
|
@@ -219,7 +219,7 @@ const Pe = { class: "p-3" }, Ee = { class: "text-sm font-semibold text-gray-700
|
|
|
219
219
|
},
|
|
220
220
|
emits: ["update:modelValue", "saved"],
|
|
221
221
|
setup(E, { emit: x }) {
|
|
222
|
-
const g = E, f = x, h = Te(), d = Be(), $ = ze(), i =
|
|
222
|
+
const g = E, f = x, h = Te(), d = Be(), $ = ze(), i = q({
|
|
223
223
|
get: () => g.modelValue,
|
|
224
224
|
set: (l) => f("update:modelValue", l)
|
|
225
225
|
}), m = b(!1), n = b(!1), c = b(R()), v = b(null), _ = b(j.Enum.purchaseOrder), D = b("Purchase Order Template"), a = b(null), w = b(!1), y = b(!1), C = b("select-type"), W = [
|
|
@@ -247,7 +247,7 @@ const Pe = { class: "p-3" }, Ee = { class: "text-sm font-semibold text-gray-700
|
|
|
247
247
|
icon: "local_shipping",
|
|
248
248
|
description: "Customize the layout for delivery order printouts"
|
|
249
249
|
}
|
|
250
|
-
],
|
|
250
|
+
], L = b(/* @__PURE__ */ new Set()), J = q(
|
|
251
251
|
() => c.value.find((l) => l.id === v.value) ?? null
|
|
252
252
|
), z = b(null), N = b(null);
|
|
253
253
|
M(i, async (l) => {
|
|
@@ -255,7 +255,7 @@ const Pe = { class: "p-3" }, Ee = { class: "text-sm font-semibold text-gray-700
|
|
|
255
255
|
C.value = "select-type", m.value = !0;
|
|
256
256
|
try {
|
|
257
257
|
const e = await h.browse();
|
|
258
|
-
|
|
258
|
+
L.value = new Set(e.map((u) => u.type));
|
|
259
259
|
} catch {
|
|
260
260
|
} finally {
|
|
261
261
|
m.value = !1;
|
|
@@ -279,7 +279,7 @@ const Pe = { class: "p-3" }, Ee = { class: "text-sm font-semibold text-gray-700
|
|
|
279
279
|
m.value = !0;
|
|
280
280
|
try {
|
|
281
281
|
const l = await h.browse();
|
|
282
|
-
|
|
282
|
+
L.value = new Set(l.map((u) => u.type));
|
|
283
283
|
const e = l.find((u) => u.type === _.value);
|
|
284
284
|
e ? (a.value = e._id, D.value = e.name, c.value = e.blocks.map((u) => ({ ...u }))) : (a.value = null, c.value = R(), D.value = Q());
|
|
285
285
|
} catch {
|
|
@@ -303,8 +303,8 @@ const Pe = { class: "p-3" }, Ee = { class: "text-sm font-semibold text-gray-700
|
|
|
303
303
|
function se(l) {
|
|
304
304
|
const e = c.value.find((u) => u.id === v.value);
|
|
305
305
|
if (e) {
|
|
306
|
-
const u = l.configFields || [],
|
|
307
|
-
e.config = { configFields: u, templateHtml:
|
|
306
|
+
const u = l.configFields || [], H = te(e.tag);
|
|
307
|
+
e.config = { configFields: u, templateHtml: H };
|
|
308
308
|
}
|
|
309
309
|
}
|
|
310
310
|
function ne(l) {
|
|
@@ -341,10 +341,10 @@ const Pe = { class: "p-3" }, Ee = { class: "text-sm font-semibold text-gray-700
|
|
|
341
341
|
...o,
|
|
342
342
|
config: { configFields: k, templateHtml: I }
|
|
343
343
|
};
|
|
344
|
-
}),
|
|
344
|
+
}), H = Ce(u), S = {
|
|
345
345
|
name: D.value,
|
|
346
346
|
type: _.value,
|
|
347
|
-
blocks:
|
|
347
|
+
blocks: H,
|
|
348
348
|
businessId: e,
|
|
349
349
|
createdAt: (/* @__PURE__ */ new Date()).toISOString(),
|
|
350
350
|
updatedAt: (/* @__PURE__ */ new Date()).toISOString()
|
|
@@ -353,7 +353,7 @@ const Pe = { class: "p-3" }, Ee = { class: "text-sm font-semibold text-gray-700
|
|
|
353
353
|
a.value ? B = await h.update(a.value, {
|
|
354
354
|
_id: a.value,
|
|
355
355
|
...S
|
|
356
|
-
}) : (B = await h.create(S), a.value = B._id),
|
|
356
|
+
}) : (B = await h.create(S), a.value = B._id), L.value.add(_.value), y.value = !1, d == null || d.open({
|
|
357
357
|
title: "Success",
|
|
358
358
|
message: "Print template saved",
|
|
359
359
|
type: "success"
|
|
@@ -372,7 +372,7 @@ const Pe = { class: "p-3" }, Ee = { class: "text-sm font-semibold text-gray-700
|
|
|
372
372
|
if (a.value) {
|
|
373
373
|
n.value = !0;
|
|
374
374
|
try {
|
|
375
|
-
await h.delete(a.value), a.value = null, c.value = R(), D.value = Q(),
|
|
375
|
+
await h.delete(a.value), a.value = null, c.value = R(), D.value = Q(), L.value.delete(_.value), w.value = !1, d == null || d.open({
|
|
376
376
|
title: "Deleted",
|
|
377
377
|
message: "Print template deleted. Default layout will be used.",
|
|
378
378
|
type: "success"
|
|
@@ -400,7 +400,7 @@ const Pe = { class: "p-3" }, Ee = { class: "text-sm font-semibold text-gray-700
|
|
|
400
400
|
return ((e = A[l]) == null ? void 0 : e.icon) ?? "widgets";
|
|
401
401
|
}
|
|
402
402
|
return (l, e) => {
|
|
403
|
-
const u = V("FmIcon"),
|
|
403
|
+
const u = V("FmIcon"), H = V("FmTextField"), S = V("FmButton"), B = V("FmDialog");
|
|
404
404
|
return s(), r(U, null, [
|
|
405
405
|
p(B, {
|
|
406
406
|
modelValue: i.value,
|
|
@@ -423,7 +423,7 @@ const Pe = { class: "p-3" }, Ee = { class: "text-sm font-semibold text-gray-700
|
|
|
423
423
|
name: "arrow_back",
|
|
424
424
|
size: "sm"
|
|
425
425
|
})
|
|
426
|
-
])) :
|
|
426
|
+
])) : K("", !0),
|
|
427
427
|
C.value === "select-type" ? (s(), r("span", We, "Print Template Editor")) : (s(), r("span", Xe, F((o = W.find((k) => k.value === _.value)) == null ? void 0 : o.label) + " Template", 1))
|
|
428
428
|
])
|
|
429
429
|
];
|
|
@@ -449,7 +449,7 @@ const Pe = { class: "p-3" }, Ee = { class: "text-sm font-semibold text-gray-700
|
|
|
449
449
|
t("div", st, F(o.label), 1),
|
|
450
450
|
t("div", nt, F(o.description), 1)
|
|
451
451
|
]),
|
|
452
|
-
|
|
452
|
+
L.value.has(o.value) ? (s(), r("span", rt, "Customized")) : (s(), r("span", it, "Default"))
|
|
453
453
|
], 10, lt)), 64))
|
|
454
454
|
]))
|
|
455
455
|
])) : m.value ? (s(), r("div", ut, e[8] || (e[8] = [
|
|
@@ -457,7 +457,7 @@ const Pe = { class: "p-3" }, Ee = { class: "text-sm font-semibold text-gray-700
|
|
|
457
457
|
]))) : (s(), r("div", dt, [
|
|
458
458
|
t("div", ct, [
|
|
459
459
|
t("div", pt, [
|
|
460
|
-
p(
|
|
460
|
+
p(H, {
|
|
461
461
|
modelValue: D.value,
|
|
462
462
|
"onUpdate:modelValue": e[1] || (e[1] = (o) => D.value = o),
|
|
463
463
|
placeholder: "Template name",
|
|
@@ -518,10 +518,10 @@ const Pe = { class: "p-3" }, Ee = { class: "text-sm font-semibold text-gray-700
|
|
|
518
518
|
}, null, 8, ["onClick"])
|
|
519
519
|
])
|
|
520
520
|
], 42, ft))), 128)),
|
|
521
|
-
c.value.length === 0 ? (s(), r("div", xt, " Click a block above to add it ")) :
|
|
521
|
+
c.value.length === 0 ? (s(), r("div", xt, " Click a block above to add it ")) : K("", !0)
|
|
522
522
|
]),
|
|
523
523
|
J.value ? (s(), r("div", _t, [
|
|
524
|
-
(s(), P(
|
|
524
|
+
(s(), P(Ke, {
|
|
525
525
|
key: J.value.id,
|
|
526
526
|
block: J.value,
|
|
527
527
|
onUpdate: se
|
|
@@ -557,7 +557,7 @@ const Pe = { class: "p-3" }, Ee = { class: "text-sm font-semibold text-gray-700
|
|
|
557
557
|
variant: "destructive",
|
|
558
558
|
size: "md",
|
|
559
559
|
onClick: e[2] || (e[2] = (o) => w.value = !0)
|
|
560
|
-
})) :
|
|
560
|
+
})) : K("", !0),
|
|
561
561
|
p(S, {
|
|
562
562
|
label: "Save Template",
|
|
563
563
|
variant: "primary",
|