@feedmepos/mf-inventory-portal 1.7.6-dev.1 → 1.7.7-dev.0
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-C-lDjYhd.js +978 -0
- package/dist/{ApprovalView-BoOxc1dK.js → ApprovalView-DCLRLL0e.js} +9 -9
- package/dist/{BindingsDialog-wFlhR8EO.js → BindingsDialog-BE6sy81o.js} +2 -2
- package/dist/{BindingsPicker-BaGp4AIt.js → BindingsPicker-0VGrA-66.js} +2 -2
- package/dist/{BindingsTable-EXGDe6Sd.js → BindingsTable-CxZ5l3VI.js} +3 -3
- package/dist/{BulkReceiveRequestView-BbdsweKp.js → BulkReceiveRequestView-BLKhw3ra.js} +18 -18
- package/dist/{ChangeLocationComponent.vue_vue_type_script_setup_true_lang-BYPJFpqF.js → ChangeLocationComponent.vue_vue_type_script_setup_true_lang-CPURsfht.js} +1 -1
- package/dist/{ClosingDraftView-BEWKGXJj.js → ClosingDraftView-BbxrHUWE.js} +19 -19
- package/dist/{ClosingHistoryView-BAJHhjM5.js → ClosingHistoryView-VtSTRYHc.js} +5 -5
- package/dist/{ClosingTemplateView-Cfc4leLq.js → ClosingTemplateView-UF_333tz.js} +16 -16
- package/dist/{CustomPrintTemplatePreview.vue_vue_type_script_setup_true_lang-CUqTf604.js → CustomPrintTemplatePreview.vue_vue_type_script_setup_true_lang-WuxoWgrL.js} +1 -1
- package/dist/{DefaultView-CZHNxYUL.js → DefaultView-BRxJ7F35.js} +2 -2
- package/dist/{DeliveryOrderPrintPreview-D-aNdHZW.js → DeliveryOrderPrintPreview-DPuT59iz.js} +2 -2
- package/dist/{EmailDialog.vue_vue_type_script_setup_true_lang-DxbdOEAz.js → EmailDialog.vue_vue_type_script_setup_true_lang-Cyj4GC4q.js} +2251 -2251
- package/dist/{FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-BtazE-LI.js → FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-BYM5JnmS.js} +6 -6
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-s0_Zlteh.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BXDNjPi-.js} +2 -2
- package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-Bx4cyEAD.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-7JUVmexK.js} +2 -2
- package/dist/{FmMultiselectDialog-Bf3NCi_L.js → FmMultiselectDialog-C6uTv5aS.js} +2 -2
- package/dist/{FmMultiselectDialog-Cufpaf2d.js → FmMultiselectDialog-DvYkoSjO.js} +1 -1
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-BuqpGi2E.js → FmUnitInput.vue_vue_type_script_setup_true_lang-C3yDLM9v.js} +5 -5
- package/dist/{ImportView-Dh7yvai2.js → ImportView-zXdM3xW4.js} +6 -6
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-BU-iSbE4.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-RAj9Qp4l.js} +1 -1
- package/dist/{IngredientGroupView-DLox-uDL.js → IngredientGroupView-C-5ewGTv.js} +5 -5
- package/dist/{IngredientsView-T2vzP9PF.js → IngredientsView-EKZ1QIDj.js} +16 -16
- package/dist/{IntegrationExplorerView-FZ_ultfa.js → IntegrationExplorerView-CUnVzbbG.js} +4 -4
- package/dist/IntegrationView-YYpz3ALQ.js +6961 -0
- package/dist/{InventoryBindingForm-CDdqkWwR.js → InventoryBindingForm-Dfqei89d.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-BvCOt7Fs.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-DfdA-B8y.js} +5 -5
- package/dist/{InventoryBindingSummary-qQ3DEjla.js → InventoryBindingSummary-DbT3SnJ_.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-D7h1e3uk.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-Ca6jYEti.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-DLhvdZuv.js → PremiumBadge.vue_vue_type_script_setup_true_lang-BkZuon6u.js} +1 -1
- package/dist/{ProductionView-p-HndKao.js → ProductionView-DpSeJM9O.js} +7 -7
- package/dist/{PublishView-oHnKGoOb.js → PublishView-CJxa1ktR.js} +3 -3
- package/dist/{PurchaseOrderPrintPreview-B1EmhnJI.js → PurchaseOrderPrintPreview-BzEWmhDr.js} +2 -2
- package/dist/{ReceiveRequestView-Dde9Ycsp.js → ReceiveRequestView-BJ6biaP3.js} +14 -14
- package/dist/{RecipeView-yY0ZHIMz.js → RecipeView-BkLF-BI1.js} +90 -90
- package/dist/{SettingsView-DuGRzHeP.js → SettingsView--fnA7WIu.js} +4 -4
- package/dist/{StockView-BCjjWfIx.js → StockView-BXu1tpvo.js} +21 -21
- package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-JgcvryPR.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-C5Amn_eE.js} +1 -1
- package/dist/{SupplierView-DAtpz5Nn.js → SupplierView-BhZsIlwa.js} +12 -12
- package/dist/{SurchargeView-BmXRwfe7.js → SurchargeView-Co6CQqTM.js} +6 -6
- package/dist/{SystemTrailDialog.vue_vue_type_script_setup_true_lang-tbO3G3O3.js → SystemTrailDialog.vue_vue_type_script_setup_true_lang-CXozYsdr.js} +2 -2
- package/dist/{TemplatePublishDialog.vue_vue_type_script_setup_true_lang-addaauvo.js → TemplatePublishDialog.vue_vue_type_script_setup_true_lang-BvliiRSh.js} +1 -1
- package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-DX6m7_3T.js → TransferDetails.vue_vue_type_script_setup_true_lang-Cd_UayDn.js} +20 -20
- package/dist/{TransferTemplateView-C6v_p0ON.js → TransferTemplateView-DdHuBJkP.js} +20 -20
- package/dist/{UnitCostHistoryView-CSSoVlNm.js → UnitCostHistoryView-BRH1ywhf.js} +4 -4
- package/dist/{UnitDisplayControl.vue_vue_type_script_setup_true_lang-BBIgt8EV.js → UnitDisplayControl.vue_vue_type_script_setup_true_lang-BmgXYmV0.js} +4 -4
- package/dist/{UnitView-BDQ9q6-J.js → UnitView-BVX2o9UR.js} +8 -8
- package/dist/{WarehouseView-i87pv8X2.js → WarehouseView-Ba6WGnvu.js} +5 -5
- package/dist/{WastageTemplateView-DOGkYpBj.js → WastageTemplateView-Bol80Za-.js} +14 -14
- package/dist/api/changelog.d.ts +46 -0
- package/dist/{app-BwfsfYVp.js → app-LaCUn1-r.js} +19627 -18877
- package/dist/app.d.ts +865 -12
- package/dist/app.js +1 -1
- package/dist/{closing-template-C-i0In9k.js → closing-template-aYhWP2rb.js} +1 -1
- package/dist/{date2-DWs--tfe.js → date2-BoulU1Tu.js} +5 -5
- package/dist/{dayjs.min-CaRV1Wi0.js → dayjs.min-B6FGvuCG.js} +1 -1
- package/dist/{decimal-BjLdoOC1.js → decimal-DwQKc6cE.js} +2 -2
- package/dist/{defineDeepModel-DOpqfJrF.js → defineDeepModel-Caj3HBqQ.js} +1 -1
- package/dist/{duplicate-template-DnI4aJUR.js → duplicate-template-CD-QpX7n.js} +1 -1
- package/dist/{feature-BfrDMg89.js → feature-B4hdHc6A.js} +2 -2
- package/dist/{format-time-from-id-DuUCuxlQ.js → format-time-from-id-Bey5hBMh.js} +1 -1
- package/dist/{format-unit-display-BZ1q1-26.js → format-unit-display-D0VATleX.js} +27 -27
- package/dist/{import-export.helper-BrmNbzq7.js → import-export.helper-BhDB84mp.js} +6 -6
- package/dist/{index-zehKNoXW.js → index-BJXZxK0E.js} +1 -1
- package/dist/{index-BKANvjCM.js → index-BU3gmWhU.js} +1 -1
- package/dist/{index-Bo5t69x5.js → index-bNtRdicK.js} +3 -3
- package/dist/{inventory-core-dart.default-D0NBHAGO.js → inventory-core-dart.default-DFroDIQ3.js} +1 -1
- package/dist/{lz-string-Ct63PQcA.js → lz-string-DGCA2EkM.js} +1 -1
- package/dist/{netsuite-Bpo2Xw-w.js → netsuite-C0jq58Bs.js} +2 -2
- package/dist/{number-CRbGFoU9.js → number-CAvIa5GR.js} +3 -3
- package/dist/{predefined-templates-CdmFddqc.js → predefined-templates-IWiWJZxY.js} +1 -1
- package/dist/{purchase-order-template-BRHeybje.js → purchase-order-template-Cl4tuZRc.js} +1 -1
- package/dist/{recalculationUtils-Cd_DPwFq.js → recalculationUtils-Z4yfpgfp.js} +1 -1
- package/dist/{rules-Bpiyywdn.js → rules-EPds-U6d.js} +2 -2
- package/dist/{stock-483U0nPk.js → stock-CiKb9tvX.js} +3 -3
- package/dist/{stock-CZHMSmF-.js → stock-D5-7HF7g.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{supplier-CP72Hgs2.js → supplier-DcwSymtQ.js} +2 -2
- package/dist/{surcharge-B3Em7A0m.js → surcharge-BDBH2Cyv.js} +8 -8
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{uom-rules-DMa8f7gU.js → uom-rules-D4cavU4o.js} +1 -1
- package/dist/{use-ingredient-select-dialog-Cnq4K29b.js → use-ingredient-select-dialog-Bj5YXshA.js} +2 -2
- package/dist/{use-inventory-binding-dialog-B2zEOzhB.js → use-inventory-binding-dialog-4G3QTnfv.js} +2 -2
- package/dist/{use-template-enabled-locations-CaLBd9EZ.js → use-template-enabled-locations-BeDwAr1M.js} +2 -2
- package/dist/{use-transfer-locations-C6Quu_0N.js → use-transfer-locations-pTOLEKts.js} +2 -2
- package/dist/{useHrmPermission-BTTu2FyU.js → useHrmPermission-C3W-l036.js} +1 -1
- package/dist/{useNavigationMenu-Ds3D09QU.js → useNavigationMenu-CmXtHYX1.js} +2 -2
- package/dist/{useSseClient-CX4yIR5M.js → useSseClient-EFGFvz0f.js} +1 -1
- package/dist/views/changelog/components/ChangelogDialog.vue.d.ts +19 -0
- package/dist/views/changelog/components/ChangelogFloatingButton.vue.d.ts +2 -0
- package/dist/views/changelog/components/ChangelogPanel.vue.d.ts +18 -0
- package/dist/views/changelog/composables/change-path.d.ts +10 -0
- package/dist/views/changelog/composables/commit-message.d.ts +9 -0
- package/dist/views/changelog/composables/commit-message.spec.d.ts +1 -0
- package/dist/views/changelog/composables/use-changelog.d.ts +36 -0
- package/dist/views/integration/components/CodemaxInvoiceReceipt.vue.d.ts +25 -0
- package/dist/views/integration/helper/codemax-receipt.d.ts +50 -0
- package/dist/views/integration/helper/codemax-receipt.spec.d.ts +1 -0
- package/dist/{vue-i18n-DomEpNy7.js → vue-i18n-CMyTYc6i.js} +169 -169
- package/dist/{xlsx.util-b7q_LFx2.js → xlsx.util-BhS0EUwW.js} +2 -2
- package/package.json +4 -4
- package/dist/App-D8cvtli6.js +0 -311
- package/dist/IntegrationView-VxG-kJB5.js +0 -6788
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
import { defineComponent as le, ref as W, onMounted as pt, resolveComponent as G, createElementBlock as V, openBlock as v, Fragment as X, createElementVNode as f, toDisplayString as U, createVNode as x, createCommentVNode as T, computed as R, watch as ue, unref as n, normalizeClass as Ce, withCtx as J, h as de, createBlock as Y, renderList as me, isRef as De, mergeProps as we, createTextVNode as mt, withModifiers as ft, normalizeStyle as vt, Teleport as yt, normalizeProps as bt, guardReactiveProps as gt } from "vue";
|
|
2
|
-
import { a as ne, c as Oe, S as _t, F as be, u as tt, t as kt, v as ht,
|
|
3
|
-
import { useDialog as
|
|
2
|
+
import { a as ne, c as Oe, S as _t, F as be, u as tt, t as kt, v as ht, j as Je } from "./app-LaCUn1-r.js";
|
|
3
|
+
import { useDialog as je, useSnackbar as Le, components as _e, useProxiedModel as Ge, useBreakpoints as xt } from "@feedmepos/ui-library";
|
|
4
4
|
import { i as $t, _ as It, m as wt } from "./menu-usage-module-BdjYEk3s.js";
|
|
5
5
|
import { F as se } from "./form-mode.enum-BKiNVH6A.js";
|
|
6
|
-
import { _ as nt } from "./IngredientBindedItem.vue_vue_type_script_setup_true_lang-
|
|
6
|
+
import { _ as nt } from "./IngredientBindedItem.vue_vue_type_script_setup_true_lang-RAj9Qp4l.js";
|
|
7
7
|
import { defineStore as ot, storeToRefs as Et } from "pinia";
|
|
8
8
|
import { D as He, R as Ve } from "./row-action.enum-ncgDYAjP.js";
|
|
9
9
|
import { c as Vt } from "./component-BmLAdDiY.js";
|
|
10
|
-
import { a as Q, c as Ke } from "./number-
|
|
10
|
+
import { a as Q, c as Ke } from "./number-CAvIa5GR.js";
|
|
11
11
|
import { useI18n as ie, useCoreStore as St } from "@feedmepos/mf-common";
|
|
12
12
|
import { u as Ct, _ as Bt } from "./SingleColumnLayout.vue_vue_type_script_setup_true_lang-DwrLsWX_.js";
|
|
13
|
-
import { b as it, c as qe, I as Ft, A as Ne, U as lt, R as Rt } from "./rules-
|
|
14
|
-
import { _ as At } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-
|
|
15
|
-
import { a as Pe } from "./FmMultiselectDialog-
|
|
16
|
-
import { d as rt } from "./defineDeepModel-
|
|
13
|
+
import { b as it, c as qe, I as Ft, A as Ne, U as lt, R as Rt } from "./rules-EPds-U6d.js";
|
|
14
|
+
import { _ as At } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-DfdA-B8y.js";
|
|
15
|
+
import { a as Pe } from "./FmMultiselectDialog-C6uTv5aS.js";
|
|
16
|
+
import { d as rt } from "./defineDeepModel-Caj3HBqQ.js";
|
|
17
17
|
import { L as Tt, P as Ut, D as Pt } from "./app-C39bYJmq.js";
|
|
18
|
-
import { _ as Be, c as Mt, d as Dt, e as ye } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-
|
|
19
|
-
import { u as Gt } from "./FmMultiselectDialog-
|
|
20
|
-
import { u as Nt } from "./vue-i18n-
|
|
21
|
-
import { F as zt } from "./inventory-core-dart.default-
|
|
18
|
+
import { _ as Be, c as Mt, d as Dt, e as ye } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-C3yDLM9v.js";
|
|
19
|
+
import { u as Gt } from "./FmMultiselectDialog-DvYkoSjO.js";
|
|
20
|
+
import { u as Nt } from "./vue-i18n-CMyTYc6i.js";
|
|
21
|
+
import { F as zt } from "./inventory-core-dart.default-DFroDIQ3.js";
|
|
22
22
|
import { _ as Ot } from "./FmCustomAttribute.vue_vue_type_script_setup_true_lang-CG1m-B2p.js";
|
|
23
|
-
import { u as We } from "./feature-
|
|
24
|
-
import { F as he } from "./decimal-
|
|
25
|
-
import { _ as Fe } from "./FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-
|
|
26
|
-
import { b as at, d as st } from "./xlsx.util-
|
|
27
|
-
import { f as dt } from "./date2-
|
|
28
|
-
import { _ as
|
|
29
|
-
import { _ as
|
|
23
|
+
import { u as We } from "./feature-B4hdHc6A.js";
|
|
24
|
+
import { F as he } from "./decimal-DwQKc6cE.js";
|
|
25
|
+
import { _ as Fe } from "./FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BXDNjPi-.js";
|
|
26
|
+
import { b as at, d as st } from "./xlsx.util-BhS0EUwW.js";
|
|
27
|
+
import { f as dt } from "./date2-BoulU1Tu.js";
|
|
28
|
+
import { _ as jt, F as Qe } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-DAMpuZ1X.js";
|
|
29
|
+
import { _ as Lt } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-7JUVmexK.js";
|
|
30
30
|
const Kt = {
|
|
31
31
|
key: 0,
|
|
32
32
|
class: "flex flex-col items-center w-full h-full gap-24"
|
|
@@ -72,7 +72,7 @@ const Kt = {
|
|
|
72
72
|
};
|
|
73
73
|
}
|
|
74
74
|
}), ze = ot("recipeForm", function() {
|
|
75
|
-
const d =
|
|
75
|
+
const d = je(), l = Le(), t = ne(), i = W(!1), r = W();
|
|
76
76
|
function $() {
|
|
77
77
|
const a = {
|
|
78
78
|
recipe: {},
|
|
@@ -241,7 +241,7 @@ function Jt() {
|
|
|
241
241
|
return { columnDefs: $, formatRowData: u };
|
|
242
242
|
}
|
|
243
243
|
function Ht() {
|
|
244
|
-
const p = ne(), d =
|
|
244
|
+
const p = ne(), d = je();
|
|
245
245
|
async function l(r, $, u, o = []) {
|
|
246
246
|
var I, m;
|
|
247
247
|
const s = r.filter((_) => _.type === "SKU"), a = r.filter((_) => _.type !== "SKU"), g = /* @__PURE__ */ new Set();
|
|
@@ -996,7 +996,7 @@ const In = { class: "flex flex-col gap-24" }, wn = {
|
|
|
996
996
|
}, zn = {
|
|
997
997
|
class: "flex items-center",
|
|
998
998
|
style: { "min-height": "48px" }
|
|
999
|
-
}, On = { class: "flex-1 fm-typo-en-body-md-400 py-8 px-12" },
|
|
999
|
+
}, On = { class: "flex-1 fm-typo-en-body-md-400 py-8 px-12" }, jn = { class: "flex flex-col" }, Ln = { class: "w-[200px]" }, Kn = {
|
|
1000
1000
|
key: 0,
|
|
1001
1001
|
class: "w-[52px]"
|
|
1002
1002
|
}, qn = { class: "flex flex-col gap-16" }, Wn = { class: "flex items-center" }, Yn = { class: "flex-1 fm-typo-en-title-sm-600" }, Jn = { class: "flex flex-col" }, Hn = { class: "flex py-8 px-12 border-b border-fm-color-neutral-gray-200 bg-fm-color-neutral-gray-100 h-[44px] items-center" }, Qn = { class: "flex-1 fm-typo-en-body-md-600 text-fm-color-typo-secondary" }, Xn = { class: "fm-typo-en-body-md-600 text-fm-color-typo-secondary w-[150px] px-16" }, Zn = {
|
|
@@ -1145,11 +1145,11 @@ const In = { class: "flex flex-col gap-24" }, wn = {
|
|
|
1145
1145
|
b.readonly ? T("", !0) : (v(), V("div", Rn))
|
|
1146
1146
|
]),
|
|
1147
1147
|
(v(!0), V(X, null, me(g.value, (M) => {
|
|
1148
|
-
var
|
|
1148
|
+
var j;
|
|
1149
1149
|
return v(), Y(un, {
|
|
1150
1150
|
key: M.id,
|
|
1151
1151
|
"model-value": M,
|
|
1152
|
-
"display-name": (
|
|
1152
|
+
"display-name": (j = i.value[M.id]) == null ? void 0 : j.name,
|
|
1153
1153
|
"show-error": a.value.has(M.id),
|
|
1154
1154
|
readonly: b.readonly,
|
|
1155
1155
|
disabled: b.disabled,
|
|
@@ -1184,7 +1184,7 @@ const In = { class: "flex flex-col gap-24" }, wn = {
|
|
|
1184
1184
|
modelValue: +n(Q)(M.amount ?? { amount: 1, precision: 0 }),
|
|
1185
1185
|
rules: [n(it)(0), n(qe)(0)]
|
|
1186
1186
|
}, {
|
|
1187
|
-
default: J(({ invalid:
|
|
1187
|
+
default: J(({ invalid: j }) => {
|
|
1188
1188
|
var q;
|
|
1189
1189
|
return [
|
|
1190
1190
|
f("div", Gn, [
|
|
@@ -1198,15 +1198,15 @@ const In = { class: "flex flex-col gap-24" }, wn = {
|
|
|
1198
1198
|
])) : T("", !0),
|
|
1199
1199
|
f("div", zn, [
|
|
1200
1200
|
f("div", On, [
|
|
1201
|
-
f("div",
|
|
1201
|
+
f("div", jn, U((q = $.value[M.id]) == null ? void 0 : q.name), 1)
|
|
1202
1202
|
]),
|
|
1203
|
-
f("div",
|
|
1203
|
+
f("div", Ln, [
|
|
1204
1204
|
x(K, {
|
|
1205
1205
|
class: "w-full",
|
|
1206
1206
|
disabled: b.disabled,
|
|
1207
1207
|
modelValue: +n(Q)(M.amount ?? { amount: 1, precision: 0 }),
|
|
1208
1208
|
"onUpdate:modelValue": (oe) => y(M.id, oe, b.modelValue),
|
|
1209
|
-
invalid:
|
|
1209
|
+
invalid: j
|
|
1210
1210
|
}, null, 8, ["disabled", "modelValue", "onUpdate:modelValue", "invalid"])
|
|
1211
1211
|
]),
|
|
1212
1212
|
b.readonly ? T("", !0) : (v(), V("div", Kn, [
|
|
@@ -1248,7 +1248,7 @@ const In = { class: "flex flex-col gap-24" }, wn = {
|
|
|
1248
1248
|
(ee = b.skuBindingConfig) != null && ee.ableToApplyRules || (O = b.skuBindingConfig) != null && O.ableToConfigureAlternative ? (v(), V("div", Zn)) : T("", !0)
|
|
1249
1249
|
]),
|
|
1250
1250
|
(v(!0), V(X, null, me(e.value, (M) => {
|
|
1251
|
-
var
|
|
1251
|
+
var j, q, oe;
|
|
1252
1252
|
return v(), V(X, {
|
|
1253
1253
|
key: M.id
|
|
1254
1254
|
}, [
|
|
@@ -1276,7 +1276,7 @@ const In = { class: "flex flex-col gap-24" }, wn = {
|
|
|
1276
1276
|
])) : (v(), Y($n, {
|
|
1277
1277
|
key: 1,
|
|
1278
1278
|
"model-value": M,
|
|
1279
|
-
"display-name": (
|
|
1279
|
+
"display-name": (j = r.value[M.id]) == null ? void 0 : j.name,
|
|
1280
1280
|
unit: N(M),
|
|
1281
1281
|
"show-error": a.value.has(M.id),
|
|
1282
1282
|
"able-to-apply-rules": ((q = b.skuBindingConfig) == null ? void 0 : q.ableToApplyRules) === !0,
|
|
@@ -1496,7 +1496,7 @@ const In = { class: "flex flex-col gap-24" }, wn = {
|
|
|
1496
1496
|
},
|
|
1497
1497
|
emits: ["update:show"],
|
|
1498
1498
|
setup(p) {
|
|
1499
|
-
const d = p, l = ne(), t =
|
|
1499
|
+
const d = p, l = ne(), t = Le(), { t: i } = ie(), r = Ge(d, "show"), $ = Ge(d, "recipe"), u = R(() => {
|
|
1500
1500
|
switch (d.mode) {
|
|
1501
1501
|
case se.READ:
|
|
1502
1502
|
return "";
|
|
@@ -1803,24 +1803,24 @@ function ut(p, d, l, t) {
|
|
|
1803
1803
|
return !1;
|
|
1804
1804
|
}
|
|
1805
1805
|
const ge = ot("recipeBulkEditor", function() {
|
|
1806
|
-
const d = ne(), l =
|
|
1806
|
+
const d = ne(), l = Le(), { t } = ie(), i = W(!1), r = W(1), $ = W(null), u = W(/* @__PURE__ */ new Set()), o = W([]), s = W({}), a = W(!1), g = W(/* @__PURE__ */ new Map()), h = W(""), C = W([]), I = R(() => {
|
|
1807
1807
|
let O = d.recipes;
|
|
1808
1808
|
const M = $.value;
|
|
1809
1809
|
if (M != null && M.nameSearch) {
|
|
1810
|
-
const
|
|
1811
|
-
|
|
1810
|
+
const j = M.nameSearch.trim().toLowerCase();
|
|
1811
|
+
j && (O = O.filter((q) => q.name.toLowerCase().includes(j)));
|
|
1812
1812
|
}
|
|
1813
1813
|
if (M != null && M.filters && M.filters.length > 0) {
|
|
1814
|
-
const
|
|
1814
|
+
const j = /* @__PURE__ */ new Map();
|
|
1815
1815
|
for (const q of O)
|
|
1816
|
-
|
|
1816
|
+
j.set(
|
|
1817
1817
|
q._id,
|
|
1818
1818
|
ke(q.contains, /* @__PURE__ */ new Set([q._id]), d.recipeById)
|
|
1819
1819
|
);
|
|
1820
1820
|
for (const q of M.filters)
|
|
1821
1821
|
if (q.type === "ingredient") {
|
|
1822
1822
|
const { itemId: oe, amount: Z, measurementId: ae } = q;
|
|
1823
|
-
O = O.filter((fe) => (
|
|
1823
|
+
O = O.filter((fe) => (j.get(fe._id) ?? []).some((re) => {
|
|
1824
1824
|
var ce;
|
|
1825
1825
|
if (re.type !== "SKU" || re.id !== oe) return !1;
|
|
1826
1826
|
if (re.recipeIds.length === 1) {
|
|
@@ -1846,9 +1846,9 @@ const ge = ot("recipeBulkEditor", function() {
|
|
|
1846
1846
|
), _ = R(() => m.value.length > 0), w = R(() => {
|
|
1847
1847
|
const O = o.value.filter(et);
|
|
1848
1848
|
if (O.length === 0) {
|
|
1849
|
-
const
|
|
1849
|
+
const j = {};
|
|
1850
1850
|
for (const q of m.value)
|
|
1851
|
-
|
|
1851
|
+
j[q._id] = {
|
|
1852
1852
|
recipeId: q._id,
|
|
1853
1853
|
recipeName: q.name,
|
|
1854
1854
|
original: q,
|
|
@@ -1857,17 +1857,17 @@ const ge = ot("recipeBulkEditor", function() {
|
|
|
1857
1857
|
changes: [],
|
|
1858
1858
|
counts: { applied: 0, ignored: 0, blocked: 0, satisfied: 0 }
|
|
1859
1859
|
};
|
|
1860
|
-
return
|
|
1860
|
+
return j;
|
|
1861
1861
|
}
|
|
1862
1862
|
const M = {};
|
|
1863
|
-
for (const
|
|
1864
|
-
const q = JSON.parse(JSON.stringify(
|
|
1863
|
+
for (const j of m.value) {
|
|
1864
|
+
const q = JSON.parse(JSON.stringify(j)), { projected: oe, results: Z } = bo(q, O), ae = go(Z);
|
|
1865
1865
|
let fe = 0, xe = 0, re = 0, ve = 0;
|
|
1866
1866
|
for (const ce of Z)
|
|
1867
1867
|
ce.outcome === "applied" ? fe++ : ce.outcome === "ignored" ? xe++ : ce.outcome === "blocked" ? re++ : ce.outcome === "already-satisfied" && ve++;
|
|
1868
|
-
M[
|
|
1869
|
-
recipeId:
|
|
1870
|
-
recipeName:
|
|
1868
|
+
M[j._id] = {
|
|
1869
|
+
recipeId: j._id,
|
|
1870
|
+
recipeName: j.name,
|
|
1871
1871
|
original: q,
|
|
1872
1872
|
projected: ae === "will-update" || ae === "partially-ignored" ? oe : null,
|
|
1873
1873
|
status: ae,
|
|
@@ -1902,15 +1902,15 @@ const ge = ot("recipeBulkEditor", function() {
|
|
|
1902
1902
|
o.value = [...o.value, O];
|
|
1903
1903
|
}
|
|
1904
1904
|
function B(O, M) {
|
|
1905
|
-
const
|
|
1906
|
-
|
|
1905
|
+
const j = [...o.value];
|
|
1906
|
+
j[O] = M, o.value = j;
|
|
1907
1907
|
}
|
|
1908
1908
|
function F(O) {
|
|
1909
|
-
o.value = o.value.filter((M,
|
|
1909
|
+
o.value = o.value.filter((M, j) => j !== O);
|
|
1910
1910
|
}
|
|
1911
1911
|
function A(O, M) {
|
|
1912
|
-
const
|
|
1913
|
-
|
|
1912
|
+
const j = [...o.value], [q] = j.splice(O, 1);
|
|
1913
|
+
j.splice(M, 0, q), o.value = j;
|
|
1914
1914
|
}
|
|
1915
1915
|
function P() {
|
|
1916
1916
|
s.value = { ...w.value }, r.value = 3;
|
|
@@ -1930,17 +1930,17 @@ const ge = ot("recipeBulkEditor", function() {
|
|
|
1930
1930
|
const O = H(), M = await d.importRecipes({
|
|
1931
1931
|
create: [],
|
|
1932
1932
|
update: O
|
|
1933
|
-
}),
|
|
1934
|
-
if (
|
|
1933
|
+
}), j = (M == null ? void 0 : M.errors) ?? [];
|
|
1934
|
+
if (j.length > 0) {
|
|
1935
1935
|
const q = /* @__PURE__ */ new Map();
|
|
1936
|
-
for (const { data: oe, error: Z } of
|
|
1936
|
+
for (const { data: oe, error: Z } of j) {
|
|
1937
1937
|
const ae = typeof Z == "string" ? Z : (Z == null ? void 0 : Z.message) ?? t("inventory.recipe.bulkEditor.step3.unknownError");
|
|
1938
1938
|
q.set(oe._id, ae);
|
|
1939
1939
|
}
|
|
1940
1940
|
g.value = q, l.open({
|
|
1941
1941
|
title: t("inventory.recipe.bulkEditor.step3.partialErrorTitle"),
|
|
1942
1942
|
message: t("inventory.recipe.bulkEditor.step3.partialErrorMessage", {
|
|
1943
|
-
count:
|
|
1943
|
+
count: j.length
|
|
1944
1944
|
}),
|
|
1945
1945
|
type: "warning"
|
|
1946
1946
|
});
|
|
@@ -2289,7 +2289,7 @@ const ge = ot("recipeBulkEditor", function() {
|
|
|
2289
2289
|
]);
|
|
2290
2290
|
};
|
|
2291
2291
|
}
|
|
2292
|
-
}),
|
|
2292
|
+
}), jo = { class: "flex flex-col gap-0 rounded-lg border border-fm-color-border-default bg-fm-color-surface-default overflow-hidden" }, Lo = { class: "flex items-start gap-12 px-16 py-12" }, Ko = { class: "flex-1" }, qo = { class: "flex-1" }, Wo = {
|
|
2293
2293
|
key: 0,
|
|
2294
2294
|
class: "border-t border-fm-color-border-default px-16 py-10 flex items-center gap-10"
|
|
2295
2295
|
}, Yo = {
|
|
@@ -2389,7 +2389,7 @@ const ge = ot("recipeBulkEditor", function() {
|
|
|
2389
2389
|
() => r.skus.map((E) => ({ label: E.name, sublabel: E.code, value: E._id }))
|
|
2390
2390
|
), M = R(
|
|
2391
2391
|
() => r.recipes.map((E) => ({ label: E.name, value: E._id }))
|
|
2392
|
-
),
|
|
2392
|
+
), j = R(() => m.value === "recipe" ? M.value : O.value), q = R(() => m.value === "recipe" ? M.value : O.value), oe = R(() => m.value !== "ingredient" || !e.value ? null : r.skuById[e.value] ?? null), Z = R(() => m.value !== "ingredient" || !y.value ? null : r.skuById[y.value] ?? null), ae = R(() => {
|
|
2393
2393
|
const E = y.value ?? e.value;
|
|
2394
2394
|
return E ? [E] : [];
|
|
2395
2395
|
}), fe = R(() => ee.value ? Object.values(l.livePreviewEntries).filter(
|
|
@@ -2404,11 +2404,11 @@ const ge = ot("recipeBulkEditor", function() {
|
|
|
2404
2404
|
return;
|
|
2405
2405
|
}
|
|
2406
2406
|
const $e = Object.values(l.livePreviewEntries).find(
|
|
2407
|
-
(
|
|
2407
|
+
(L) => L.original.version === "v2" && L.original.contains.some((Ie) => Ie.type === "SKU" && Ie.id === D)
|
|
2408
2408
|
);
|
|
2409
2409
|
if ($e) {
|
|
2410
|
-
const
|
|
2411
|
-
k.value =
|
|
2410
|
+
const L = $e.original.contains.find((Ie) => Ie.type === "SKU" && Ie.id === D);
|
|
2411
|
+
k.value = L != null && L.alternatives ? [...L.alternatives] : [];
|
|
2412
2412
|
} else
|
|
2413
2413
|
k.value = [];
|
|
2414
2414
|
}
|
|
@@ -2488,12 +2488,12 @@ const ge = ot("recipeBulkEditor", function() {
|
|
|
2488
2488
|
{ deep: !0 }
|
|
2489
2489
|
), (E, D) => {
|
|
2490
2490
|
const te = G("FmSelect"), pe = G("FmSwitch"), Ee = G("FmIcon"), $e = G("FmTextField");
|
|
2491
|
-
return v(), V("div",
|
|
2492
|
-
f("div",
|
|
2491
|
+
return v(), V("div", jo, [
|
|
2492
|
+
f("div", Lo, [
|
|
2493
2493
|
f("div", Ko, [
|
|
2494
2494
|
x(te, {
|
|
2495
2495
|
modelValue: m.value,
|
|
2496
|
-
"onUpdate:modelValue": D[0] || (D[0] = (
|
|
2496
|
+
"onUpdate:modelValue": D[0] || (D[0] = (L) => m.value = L),
|
|
2497
2497
|
items: B.value,
|
|
2498
2498
|
label: n(i)("inventory.recipe.bulkEditor.step2.sectionField"),
|
|
2499
2499
|
placeholder: n(i)("inventory.recipe.bulkEditor.step2.sectionField")
|
|
@@ -2502,7 +2502,7 @@ const ge = ot("recipeBulkEditor", function() {
|
|
|
2502
2502
|
f("div", qo, [
|
|
2503
2503
|
x(te, {
|
|
2504
2504
|
modelValue: _.value,
|
|
2505
|
-
"onUpdate:modelValue": D[1] || (D[1] = (
|
|
2505
|
+
"onUpdate:modelValue": D[1] || (D[1] = (L) => _.value = L),
|
|
2506
2506
|
items: F.value,
|
|
2507
2507
|
label: n(i)("inventory.recipe.bulkEditor.step2.sectionAction"),
|
|
2508
2508
|
placeholder: n(i)("inventory.recipe.bulkEditor.step2.sectionAction")
|
|
@@ -2512,7 +2512,7 @@ const ge = ot("recipeBulkEditor", function() {
|
|
|
2512
2512
|
m.value === "ingredient" && n($).enableRecipeV2 ? (v(), V("div", Wo, [
|
|
2513
2513
|
x(pe, {
|
|
2514
2514
|
modelValue: w.value,
|
|
2515
|
-
"onUpdate:modelValue": D[2] || (D[2] = (
|
|
2515
|
+
"onUpdate:modelValue": D[2] || (D[2] = (L) => w.value = L),
|
|
2516
2516
|
label: n(i)("inventory.recipe.bulkEditor.step2.includeAlternativesToggle")
|
|
2517
2517
|
}, null, 8, ["modelValue", "label"])
|
|
2518
2518
|
])) : T("", !0),
|
|
@@ -2532,14 +2532,14 @@ const ge = ot("recipeBulkEditor", function() {
|
|
|
2532
2532
|
f("p", Qo, U(n(i)("inventory.recipe.bulkEditor.addModification.targetLabel")), 1),
|
|
2533
2533
|
x(te, {
|
|
2534
2534
|
modelValue: y.value,
|
|
2535
|
-
"onUpdate:modelValue": D[3] || (D[3] = (
|
|
2536
|
-
items:
|
|
2535
|
+
"onUpdate:modelValue": D[3] || (D[3] = (L) => y.value = L),
|
|
2536
|
+
items: j.value,
|
|
2537
2537
|
placeholder: m.value === "recipe" ? n(i)("inventory.recipe.bulkEditor.addModification.recipePlaceholder") : n(i)("inventory.recipe.bulkEditor.addModification.skuPlaceholder"),
|
|
2538
2538
|
clearable: ""
|
|
2539
2539
|
}, {
|
|
2540
|
-
"menu-wrapper": J((
|
|
2541
|
-
x(Fe, we(
|
|
2542
|
-
items:
|
|
2540
|
+
"menu-wrapper": J((L) => [
|
|
2541
|
+
x(Fe, we(L, {
|
|
2542
|
+
items: j.value,
|
|
2543
2543
|
"model-value": y.value
|
|
2544
2544
|
}), null, 16, ["items", "model-value"])
|
|
2545
2545
|
]),
|
|
@@ -2549,7 +2549,7 @@ const ge = ot("recipeBulkEditor", function() {
|
|
|
2549
2549
|
m.value === "ingredient" && Z.value ? (v(), Y(Be, {
|
|
2550
2550
|
key: 0,
|
|
2551
2551
|
modelValue: S.value,
|
|
2552
|
-
"onUpdate:modelValue": D[4] || (D[4] = (
|
|
2552
|
+
"onUpdate:modelValue": D[4] || (D[4] = (L) => S.value = L),
|
|
2553
2553
|
unit: Z.value.unit,
|
|
2554
2554
|
placeholder: n(i)("inventory.recipe.bulkEditor.query.amountPlaceholder"),
|
|
2555
2555
|
"convert-amount-on-change-unit": ""
|
|
@@ -2558,20 +2558,20 @@ const ge = ot("recipeBulkEditor", function() {
|
|
|
2558
2558
|
"model-value": N.value,
|
|
2559
2559
|
label: n(i)("inventory.recipe.bulkEditor.addModification.amountLabel"),
|
|
2560
2560
|
type: "number",
|
|
2561
|
-
"onUpdate:modelValue": D[5] || (D[5] = (
|
|
2561
|
+
"onUpdate:modelValue": D[5] || (D[5] = (L) => b(L))
|
|
2562
2562
|
}, null, 8, ["model-value", "label"])) : T("", !0),
|
|
2563
2563
|
m.value === "recipe" ? (v(), V(X, { key: 2 }, [
|
|
2564
2564
|
f("p", Xo, U(n(i)("inventory.recipe.bulkEditor.addModification.optionalRuleLabel")), 1),
|
|
2565
2565
|
x(Re, {
|
|
2566
2566
|
modelValue: c.value,
|
|
2567
|
-
"onUpdate:modelValue": D[6] || (D[6] = (
|
|
2567
|
+
"onUpdate:modelValue": D[6] || (D[6] = (L) => c.value = L)
|
|
2568
2568
|
}, null, 8, ["modelValue"])
|
|
2569
2569
|
], 64)) : T("", !0),
|
|
2570
2570
|
ee.value ? (v(), V(X, { key: 3 }, [
|
|
2571
2571
|
f("p", Zo, U(n(i)("inventory.recipe.bulkEditor.addModification.optionalAlternativesLabel")), 1),
|
|
2572
2572
|
x(Se, {
|
|
2573
2573
|
modelValue: k.value,
|
|
2574
|
-
"onUpdate:modelValue": D[7] || (D[7] = (
|
|
2574
|
+
"onUpdate:modelValue": D[7] || (D[7] = (L) => k.value = L),
|
|
2575
2575
|
"filter-ingredient-ids": ae.value
|
|
2576
2576
|
}, null, 8, ["modelValue", "filter-ingredient-ids"])
|
|
2577
2577
|
], 64)) : T("", !0)
|
|
@@ -2581,7 +2581,7 @@ const ge = ot("recipeBulkEditor", function() {
|
|
|
2581
2581
|
f("p", ti, U(n(i)("inventory.recipe.bulkEditor.addModification.altsClearNote")), 1),
|
|
2582
2582
|
x(Se, {
|
|
2583
2583
|
modelValue: k.value,
|
|
2584
|
-
"onUpdate:modelValue": D[8] || (D[8] = (
|
|
2584
|
+
"onUpdate:modelValue": D[8] || (D[8] = (L) => k.value = L),
|
|
2585
2585
|
"filter-ingredient-ids": ae.value
|
|
2586
2586
|
}, null, 8, ["modelValue", "filter-ingredient-ids"])
|
|
2587
2587
|
], 64)) : T("", !0)
|
|
@@ -2590,13 +2590,13 @@ const ge = ot("recipeBulkEditor", function() {
|
|
|
2590
2590
|
f("p", ni, U(n(i)("inventory.recipe.bulkEditor.addModification.bindingLabel")), 1),
|
|
2591
2591
|
x(te, {
|
|
2592
2592
|
modelValue: e.value,
|
|
2593
|
-
"onUpdate:modelValue": D[9] || (D[9] = (
|
|
2593
|
+
"onUpdate:modelValue": D[9] || (D[9] = (L) => e.value = L),
|
|
2594
2594
|
items: q.value,
|
|
2595
2595
|
placeholder: m.value === "recipe" ? n(i)("inventory.recipe.bulkEditor.addModification.recipePlaceholder") : n(i)("inventory.recipe.bulkEditor.addModification.skuPlaceholder"),
|
|
2596
2596
|
clearable: ""
|
|
2597
2597
|
}, {
|
|
2598
|
-
"menu-wrapper": J((
|
|
2599
|
-
x(Fe, we(
|
|
2598
|
+
"menu-wrapper": J((L) => [
|
|
2599
|
+
x(Fe, we(L, {
|
|
2600
2600
|
items: q.value,
|
|
2601
2601
|
"model-value": e.value
|
|
2602
2602
|
}), null, 16, ["items", "model-value"])
|
|
@@ -2607,7 +2607,7 @@ const ge = ot("recipeBulkEditor", function() {
|
|
|
2607
2607
|
m.value === "ingredient" && oe.value ? (v(), Y(Be, {
|
|
2608
2608
|
key: 0,
|
|
2609
2609
|
modelValue: S.value,
|
|
2610
|
-
"onUpdate:modelValue": D[10] || (D[10] = (
|
|
2610
|
+
"onUpdate:modelValue": D[10] || (D[10] = (L) => S.value = L),
|
|
2611
2611
|
unit: oe.value.unit,
|
|
2612
2612
|
placeholder: n(i)("inventory.recipe.bulkEditor.query.amountPlaceholder"),
|
|
2613
2613
|
"convert-amount-on-change-unit": ""
|
|
@@ -2616,20 +2616,20 @@ const ge = ot("recipeBulkEditor", function() {
|
|
|
2616
2616
|
"model-value": N.value,
|
|
2617
2617
|
label: n(i)("inventory.recipe.bulkEditor.addModification.amountLabel"),
|
|
2618
2618
|
type: "number",
|
|
2619
|
-
"onUpdate:modelValue": D[11] || (D[11] = (
|
|
2619
|
+
"onUpdate:modelValue": D[11] || (D[11] = (L) => b(L))
|
|
2620
2620
|
}, null, 8, ["model-value", "label"])) : T("", !0),
|
|
2621
2621
|
m.value === "recipe" ? (v(), V(X, { key: 2 }, [
|
|
2622
2622
|
f("p", oi, U(n(i)("inventory.recipe.bulkEditor.addModification.optionalRuleLabel")), 1),
|
|
2623
2623
|
x(Re, {
|
|
2624
2624
|
modelValue: c.value,
|
|
2625
|
-
"onUpdate:modelValue": D[12] || (D[12] = (
|
|
2625
|
+
"onUpdate:modelValue": D[12] || (D[12] = (L) => c.value = L)
|
|
2626
2626
|
}, null, 8, ["modelValue"])
|
|
2627
2627
|
], 64)) : T("", !0),
|
|
2628
2628
|
ee.value ? (v(), V(X, { key: 3 }, [
|
|
2629
2629
|
f("p", ii, U(n(i)("inventory.recipe.bulkEditor.addModification.optionalAlternativesLabel")), 1),
|
|
2630
2630
|
x(Se, {
|
|
2631
2631
|
modelValue: k.value,
|
|
2632
|
-
"onUpdate:modelValue": D[13] || (D[13] = (
|
|
2632
|
+
"onUpdate:modelValue": D[13] || (D[13] = (L) => k.value = L),
|
|
2633
2633
|
"filter-ingredient-ids": ae.value
|
|
2634
2634
|
}, null, 8, ["modelValue", "filter-ingredient-ids"])
|
|
2635
2635
|
], 64)) : T("", !0)
|
|
@@ -3014,7 +3014,7 @@ const Ti = { class: "flex flex-col gap-16" }, Ui = { class: "rounded-lg border b
|
|
|
3014
3014
|
}, zi = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Oi = {
|
|
3015
3015
|
key: 1,
|
|
3016
3016
|
class: "flex items-center gap-6"
|
|
3017
|
-
},
|
|
3017
|
+
}, ji = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Li = {
|
|
3018
3018
|
key: 2,
|
|
3019
3019
|
class: "flex items-center gap-6"
|
|
3020
3020
|
}, Ki = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, qi = {
|
|
@@ -3180,9 +3180,9 @@ const Ti = { class: "flex flex-col gap-16" }, Ui = { class: "rounded-lg border b
|
|
|
3180
3180
|
label: String(u.value),
|
|
3181
3181
|
variant: "info"
|
|
3182
3182
|
}, null, 8, ["label"]),
|
|
3183
|
-
f("span",
|
|
3183
|
+
f("span", ji, U(n(d)("inventory.recipe.bulkEditor.summary.countAlreadySatisfied")), 1)
|
|
3184
3184
|
])) : T("", !0),
|
|
3185
|
-
o.value > 0 ? (v(), V("div",
|
|
3185
|
+
o.value > 0 ? (v(), V("div", Li, [
|
|
3186
3186
|
x(c, {
|
|
3187
3187
|
size: "sm",
|
|
3188
3188
|
label: String(o.value),
|
|
@@ -3298,7 +3298,7 @@ const Ti = { class: "flex flex-col gap-16" }, Ui = { class: "rounded-lg border b
|
|
|
3298
3298
|
},
|
|
3299
3299
|
emits: ["update:show"],
|
|
3300
3300
|
setup(p, { emit: d }) {
|
|
3301
|
-
const l = p, { t } = ie(), i = ge(), r = Ge(l, "show"), $ =
|
|
3301
|
+
const l = p, { t } = ie(), i = ge(), r = Ge(l, "show"), $ = je(), u = R(() => i.currentStep === 1), o = R(() => i.currentStep === 2), s = R(() => i.currentStep === 3);
|
|
3302
3302
|
function a() {
|
|
3303
3303
|
i.currentStep = 2;
|
|
3304
3304
|
}
|
|
@@ -3513,14 +3513,14 @@ const gl = { class: "flex flex-col py-8" }, _l = { class: "fm-typo-en-body-lg-60
|
|
|
3513
3513
|
default: J(() => [
|
|
3514
3514
|
f("div", {
|
|
3515
3515
|
class: Ce([
|
|
3516
|
-
"flex flex-col gap-8 max-h-full",
|
|
3516
|
+
"relative flex flex-col gap-8 max-h-full",
|
|
3517
3517
|
{
|
|
3518
3518
|
"p-0": w.value,
|
|
3519
3519
|
"px-24 ": !w.value
|
|
3520
3520
|
}
|
|
3521
3521
|
])
|
|
3522
3522
|
}, [
|
|
3523
|
-
x(
|
|
3523
|
+
x(Lt, {
|
|
3524
3524
|
searchable: "",
|
|
3525
3525
|
search: I.value,
|
|
3526
3526
|
"onUpdate:search": k[0] || (k[0] = (z) => I.value = z)
|
|
@@ -3536,12 +3536,12 @@ const gl = { class: "flex flex-col py-8" }, _l = { class: "fm-typo-en-body-lg-60
|
|
|
3536
3536
|
"page-size": y.value
|
|
3537
3537
|
}, {
|
|
3538
3538
|
"list-row": J((z) => [
|
|
3539
|
-
x(
|
|
3539
|
+
x(jt, {
|
|
3540
3540
|
row: z,
|
|
3541
3541
|
onRowClick: (b) => n(r)(b.original)
|
|
3542
3542
|
}, {
|
|
3543
3543
|
default: J((b) => {
|
|
3544
|
-
var B, F, A, P, K, H, ee, O, M,
|
|
3544
|
+
var B, F, A, P, K, H, ee, O, M, j;
|
|
3545
3545
|
return [
|
|
3546
3546
|
f("div", gl, [
|
|
3547
3547
|
f("div", _l, [
|
|
@@ -3553,7 +3553,7 @@ const gl = { class: "flex flex-col py-8" }, _l = { class: "fm-typo-en-body-lg-60
|
|
|
3553
3553
|
f("div", kl, [
|
|
3554
3554
|
x(n(Qe), {
|
|
3555
3555
|
render: (O = (ee = (H = b.ingredients) == null ? void 0 : H.column) == null ? void 0 : ee.columnDef) == null ? void 0 : O.cell,
|
|
3556
|
-
props: (
|
|
3556
|
+
props: (j = (M = b.ingredients) == null ? void 0 : M.getContext) == null ? void 0 : j.call(M)
|
|
3557
3557
|
}, null, 8, ["render", "props"])
|
|
3558
3558
|
])
|
|
3559
3559
|
])
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { defineComponent as Y, ref as x, computed as q, watch as M, resolveComponent as V, createElementBlock as r, openBlock as s, createElementVNode as t, toDisplayString as C, Fragment as A, renderList as G, createBlock as E, createCommentVNode as K, createVNode as m, nextTick as fe, createSlots as ye, withCtx as F, 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-DwrLsWX_.js";
|
|
3
|
-
import { B as P, g as he, r as ke, s as we, u as Te, a as R, b as Fe, c as Ce, d as te, e as De, f as Se } from "./predefined-templates-
|
|
3
|
+
import { B as P, g as he, r as ke, s as we, u as Te, a as R, b as Fe, c as Ce, d as te, e as De, f as Se } from "./predefined-templates-IWiWJZxY.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 { H as j, I as $e } from "./app-
|
|
6
|
+
import { H as j, I as $e } from "./app-LaCUn1-r.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-B6FGvuCG.js";
|
|
9
|
+
import "./inventory-core-dart.default-DFroDIQ3.js";
|
|
10
10
|
import { F as Oe } from "./FmAdminBadge-DlplQOHb.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,
|
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
import { defineComponent as pe, createBlock as te, openBlock as j, withCtx as M, createElementVNode as e, toDisplayString as m, unref as s, ref as Y, h as be, computed as T, watch as Fe, resolveComponent as D, isRef as Pe, createVNode as _, createElementBlock as q, Fragment as ue, renderList as ve, createCommentVNode as se, normalizeClass as He, reactive as _t, mergeModels as nt, useModel as jt, onMounted as qe, createTextVNode as me, normalizeStyle as kt, watchEffect as Vt, renderSlot as st, onUnmounted as Ct, Teleport as Bt, normalizeProps as at, mergeProps as ze } from "vue";
|
|
2
2
|
import { u as Dt, _ as Mt } from "./SingleColumnLayout.vue_vue_type_script_setup_true_lang-DwrLsWX_.js";
|
|
3
|
-
import { u as Se, c as Re, a as Ne, F as rt, t as It, E as ie, s as Ht,
|
|
4
|
-
import { u as Oe } from "./stock-
|
|
3
|
+
import { u as Se, c as Re, a as Ne, F as rt, t as It, E as ie, s as Ht, d as Tt, B as Et, w as ne, h as Ce, i as lt, e as it, L as ge, M as Be } from "./app-LaCUn1-r.js";
|
|
4
|
+
import { u as Oe } from "./stock-CiKb9tvX.js";
|
|
5
5
|
import { c as Ut } from "./component-BmLAdDiY.js";
|
|
6
|
-
import { _ as ht, o as Pt } from "./UnitDisplayControl.vue_vue_type_script_setup_true_lang-
|
|
7
|
-
import { _ as Ke, S as Ge, g as bt, a as Rt } from "./SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-
|
|
6
|
+
import { _ as ht, o as Pt } from "./UnitDisplayControl.vue_vue_type_script_setup_true_lang-BmgXYmV0.js";
|
|
7
|
+
import { _ as Ke, S as Ge, g as bt, a as Rt } from "./SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-C5Amn_eE.js";
|
|
8
8
|
import { _ as Nt } from "./PreviewBadge.vue_vue_type_script_setup_true_lang-DX2MJqL4.js";
|
|
9
9
|
import { useI18n as ye, useCoreStore as Xe } from "@feedmepos/mf-common";
|
|
10
|
-
import { u as gt, i as Te, _ as ut } from "./PremiumBadge.vue_vue_type_script_setup_true_lang-
|
|
10
|
+
import { u as gt, i as Te, _ as ut } from "./PremiumBadge.vue_vue_type_script_setup_true_lang-BkZuon6u.js";
|
|
11
11
|
import { useSnackbar as we, useDialog as Le, useProxiedModel as Ye, useBreakpoints as Ot } from "@feedmepos/ui-library";
|
|
12
12
|
import { defineStore as Lt } from "pinia";
|
|
13
13
|
import { F as Je } from "./FmAdminBadge-DlplQOHb.js";
|
|
14
|
-
import { g as $e, a as he, e as Yt, t as Ee, c as xe, f as zt, h as ct, i as xt, j as Qe, d as Me, k as Gt } from "./number-
|
|
15
|
-
import { u as Ae } from "./stock-
|
|
16
|
-
import { c as Ue, A as Wt, M as Kt, R as qt } from "./rules-
|
|
17
|
-
import { u as Xt } from "./use-inventory-binding-dialog-
|
|
18
|
-
import { a as St } from "./FmMultiselectDialog-
|
|
19
|
-
import { d as ke } from "./dayjs.min-
|
|
20
|
-
import { _ as Jt } from "./NumberPrecisionInput.vue_vue_type_script_setup_true_lang-
|
|
21
|
-
import { g as Qt } from "./decimal-
|
|
22
|
-
import {
|
|
23
|
-
import { i as so } from "./FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-
|
|
14
|
+
import { g as $e, a as he, e as Yt, t as Ee, c as xe, f as zt, h as ct, i as xt, j as Qe, d as Me, k as Gt } from "./number-CAvIa5GR.js";
|
|
15
|
+
import { u as Ae } from "./stock-D5-7HF7g.js";
|
|
16
|
+
import { c as Ue, A as Wt, M as Kt, R as qt } from "./rules-EPds-U6d.js";
|
|
17
|
+
import { u as Xt } from "./use-inventory-binding-dialog-4G3QTnfv.js";
|
|
18
|
+
import { a as St } from "./FmMultiselectDialog-C6uTv5aS.js";
|
|
19
|
+
import { d as ke } from "./dayjs.min-B6FGvuCG.js";
|
|
20
|
+
import { _ as Jt } from "./NumberPrecisionInput.vue_vue_type_script_setup_true_lang-Ca6jYEti.js";
|
|
21
|
+
import { g as Qt } from "./decimal-DwQKc6cE.js";
|
|
22
|
+
import { b as Zt, d as eo, f as wt, t as dt, a as mt, p as to, n as oo, c as no } from "./date2-BoulU1Tu.js";
|
|
23
|
+
import { i as so } from "./FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-BYM5JnmS.js";
|
|
24
24
|
import { _ as ao } from "./empty-placeholder-B0QU467o.js";
|
|
25
|
-
import { F as _e } from "./inventory-core-dart.default-
|
|
26
|
-
import { u as ro } from "./feature-
|
|
27
|
-
import { u as At } from "./useHrmPermission-
|
|
25
|
+
import { F as _e } from "./inventory-core-dart.default-DFroDIQ3.js";
|
|
26
|
+
import { u as ro } from "./feature-B4hdHc6A.js";
|
|
27
|
+
import { u as At } from "./useHrmPermission-C3W-l036.js";
|
|
28
28
|
import { _ as lo, F as ft } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-DAMpuZ1X.js";
|
|
29
|
-
import { _ as io } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-
|
|
30
|
-
import { u as uo } from "./useSseClient-
|
|
31
|
-
import { u as co } from "./netsuite-
|
|
29
|
+
import { _ as io } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-7JUVmexK.js";
|
|
30
|
+
import { u as uo } from "./useSseClient-EFGFvz0f.js";
|
|
31
|
+
import { u as co } from "./netsuite-C0jq58Bs.js";
|
|
32
32
|
import { P as mo, J as fo } from "./app-C39bYJmq.js";
|
|
33
33
|
var Ie = /* @__PURE__ */ ((A) => (A.History = "History", A.Convert = "Convert", A.Adjust = "Adjust", A))(Ie || {});
|
|
34
34
|
const vo = [
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as C, computed as h, createElementBlock as l, openBlock as d, createElementVNode as r, normalizeClass as v, toDisplayString as m, unref as p, ref as V, resolveComponent as $, Fragment as k, createCommentVNode as G, createVNode as E, withCtx as S, renderList as P } from "vue";
|
|
2
2
|
import { useI18n as D, useCoreStore as N } from "@feedmepos/mf-common";
|
|
3
|
-
import { u as O } from "./netsuite-
|
|
3
|
+
import { u as O } from "./netsuite-C0jq58Bs.js";
|
|
4
4
|
function re(e, t = !1) {
|
|
5
5
|
var c;
|
|
6
6
|
return e ? [
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import { defineComponent as ie, mergeModels as Hd, computed as E, useModel as ed, resolveComponent as D, createElementBlock as w, openBlock as S, createElementVNode as h, createVNode as C, withCtx as U, toDisplayString as A, unref as p, Fragment as oe, renderList as le, ref as k, createBlock as z, createCommentVNode as W, createTextVNode as wd, isRef as dd, normalizeClass as ae, watch as Td, createSlots as jd, normalizeStyle as Kd, Teleport as Wd } from "vue";
|
|
2
|
-
import { u as ce } from "./supplier-
|
|
2
|
+
import { u as ce } from "./supplier-DcwSymtQ.js";
|
|
3
3
|
import { D as td, R as ye } from "./row-action.enum-ncgDYAjP.js";
|
|
4
4
|
import { c as Yd } from "./component-BmLAdDiY.js";
|
|
5
|
-
import { c as we, a as ke,
|
|
5
|
+
import { c as we, a as ke, h as rd, i as nd, g as Xd, m as Ad, u as Pe } from "./app-LaCUn1-r.js";
|
|
6
6
|
import { useI18n as ee, useCoreStore as Ce } from "@feedmepos/mf-common";
|
|
7
|
-
import { u as Ve } from "./netsuite-
|
|
7
|
+
import { u as Ve } from "./netsuite-C0jq58Bs.js";
|
|
8
8
|
import { useDialog as Ne, useSnackbar as Se, useProxiedModel as od, useDialogChild as Zd, useBreakpoints as qd } from "@feedmepos/ui-library";
|
|
9
9
|
import { u as zd, _ as Jd } from "./SingleColumnLayout.vue_vue_type_script_setup_true_lang-DwrLsWX_.js";
|
|
10
10
|
import { F as B } from "./form-mode.enum-BKiNVH6A.js";
|
|
11
|
-
import { R as Z } from "./rules-
|
|
12
|
-
import { a as Qd } from "./FmMultiselectDialog-
|
|
11
|
+
import { R as Z } from "./rules-EPds-U6d.js";
|
|
12
|
+
import { a as Qd } from "./FmMultiselectDialog-C6uTv5aS.js";
|
|
13
13
|
import { _ as et } from "./PreviewBadge.vue_vue_type_script_setup_true_lang-DX2MJqL4.js";
|
|
14
|
-
import { _ as dt } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-
|
|
15
|
-
import { u as xe } from "./feature-
|
|
16
|
-
import { u as tt } from "./purchase-order-template-
|
|
17
|
-
import { g as rt } from "./number-
|
|
14
|
+
import { _ as dt } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-C3yDLM9v.js";
|
|
15
|
+
import { u as xe } from "./feature-B4hdHc6A.js";
|
|
16
|
+
import { u as tt } from "./purchase-order-template-Cl4tuZRc.js";
|
|
17
|
+
import { g as rt } from "./number-CAvIa5GR.js";
|
|
18
18
|
import { _ as nt, F as ve } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-DAMpuZ1X.js";
|
|
19
|
-
import { _ as ot } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-
|
|
19
|
+
import { _ as ot } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-7JUVmexK.js";
|
|
20
20
|
import { defineStore as at } from "pinia";
|
|
21
|
-
import { b as Rd, d as Md, s as it, r as $t } from "./xlsx.util-
|
|
22
|
-
import { f as lt } from "./date2-
|
|
21
|
+
import { b as Rd, d as Md, s as it, r as $t } from "./xlsx.util-BhS0EUwW.js";
|
|
22
|
+
import { f as lt } from "./date2-BoulU1Tu.js";
|
|
23
23
|
import { F as st } from "./FmDroppableField-J0tG_U3w.js";
|
|
24
24
|
function ut(e, d) {
|
|
25
25
|
const { t } = ee(), r = Ve();
|