@feedmepos/mf-inventory-portal 1.2.50-dev.2 → 1.2.51-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-DAO7XF9h.js → App-bY_YcLwH.js} +24 -23
- package/dist/{ApprovalView-BUHefc15.js → ApprovalView-vzIiBqt2.js} +5 -5
- package/dist/{BindingsDialog-Cx9ngX7X.js → BindingsDialog-DCh2ORem.js} +2 -2
- package/dist/{BindingsPicker-CIZ9FVgv.js → BindingsPicker-DcNG03p-.js} +2 -2
- package/dist/{BindingsTable-CMyZkvyn.js → BindingsTable-B_Yaq-z3.js} +3 -3
- package/dist/{ClosingDraftView-D4CMfSvf.js → ClosingDraftView-C0T8cWEB.js} +9 -9
- package/dist/{ClosingHistoryView-J_2EA-F4.js → ClosingHistoryView-DkKAjh7T.js} +27 -27
- package/dist/{ClosingTemplateView-Bz21bJLn.js → ClosingTemplateView-DpH1EyW5.js} +14 -14
- package/dist/{DeliveryOrderPrintPreview-D9xRJSBT.js → DeliveryOrderPrintPreview-B2ecLaLu.js} +1 -1
- package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CI4z5XYQ.js +188 -0
- package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-BcJ1ydJ1.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-kVpsL4cx.js} +2 -2
- package/dist/{FmMultiselectDialog-B5F93-xV.js → FmMultiselectDialog-BviFuAM5.js} +81 -84
- package/dist/{FmMultiselectDialog-Cxj6_Bbq.js → FmMultiselectDialog-DGUwruxs.js} +1 -1
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-CJsg-6qm.js → FmUnitInput.vue_vue_type_script_setup_true_lang-CRTG3VFo.js} +3 -3
- package/dist/{ImportView-mq9p_YKN.js → ImportView-Bk4Z7nGh.js} +6 -6
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-CvdNblLJ.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-BEJ19Uej.js} +1 -1
- package/dist/{IngredientGroupView-1YQdweWW.js → IngredientGroupView-8GHMMOux.js} +5 -5
- package/dist/{IngredientsView-rZZDO37M.js → IngredientsView-DbmODx-v.js} +14 -14
- package/dist/{IntegrationView-0KCNTL9w.js → IntegrationView-DC0O_Lk4.js} +12 -12
- package/dist/{InventoryBindingForm-Cz6tMVlQ.js → InventoryBindingForm-ln0q25n_.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-9jHxMOEn.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-CFgk9rSe.js} +21 -21
- package/dist/{InventoryBindingSummary-DarjH7Dn.js → InventoryBindingSummary-BlNXhS4v.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BR6U0SpT.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BY_mXqPr.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-C9ffyR0d.js → PremiumBadge.vue_vue_type_script_setup_true_lang-BhNjwE3X.js} +2 -2
- package/dist/{PublishView-Bam4W7ko.js → PublishView-5GkTzxbi.js} +3 -3
- package/dist/{PurchaseOrderPrintPreview-DEKkUMB6.js → PurchaseOrderPrintPreview-Dj5lJ5Ou.js} +1 -1
- package/dist/ReceiveRequestView-BAYczSpW.js +2913 -0
- package/dist/{RecipeView-CwwKtDRg.js → RecipeView-OLPRwnVx.js} +8 -8
- package/dist/{StockView-CVN5MKbj.js → StockView-TcA5zJqr.js} +15 -15
- package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-Bm1MxmBR.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-DZ6TDkKR.js} +1 -1
- package/dist/{SupplierView-BhnmPv7N.js → SupplierView-77qI9YCg.js} +11 -11
- package/dist/{SurchargeView-nlkL3YIK.js → SurchargeView-CxW2ZZ8a.js} +6 -6
- package/dist/{SystemTrailDialog.vue_vue_type_script_setup_true_lang-DdPVsOZY.js → SystemTrailDialog.vue_vue_type_script_setup_true_lang-_8YeihNH.js} +2 -2
- package/dist/{TemplatePublishDialog.vue_vue_type_script_setup_true_lang-Bp49G_dV.js → TemplatePublishDialog.vue_vue_type_script_setup_true_lang-ByPIjcED.js} +1 -1
- package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-BQFBZ0CH.js → TransferDetails.vue_vue_type_script_setup_true_lang-7BoFD5wV.js} +128 -128
- package/dist/{TransferTemplateView-7AJGTAAy.js → TransferTemplateView-CI0U36Tr.js} +81 -80
- package/dist/{UnitView-Dz4bgzmW.js → UnitView-fNFFUNlb.js} +6 -6
- package/dist/{WarehouseView-DEYOa_Ol.js → WarehouseView-BAXgnZnO.js} +5 -5
- package/dist/{WastageTemplateView-DdPkFfyQ.js → WastageTemplateView-C5qCXWqZ.js} +14 -14
- package/dist/{app-kim0oKgm.js → app-CddcvygU.js} +25 -25
- package/dist/app.js +1 -1
- package/dist/{closing-template-MLHUWgwA.js → closing-template-DxdLqlb1.js} +1 -1
- package/dist/{date2-Ck1fxOS1.js → date2-CVZy20Q_.js} +1 -1
- package/dist/{dayjs.min-CgHxLw1P.js → dayjs.min-NrRtjg32.js} +26 -26
- package/dist/{decimal-DVjzMCmx.js → decimal-Du3Grkk9.js} +2 -2
- package/dist/{defineDeepModel-CLo1ie3w.js → defineDeepModel-DgRoiQBp.js} +1 -1
- package/dist/{duplicate-template-B_f_fYhs.js → duplicate-template-DvnZ4BW6.js} +1 -1
- package/dist/{feature-D4HcMaGK.js → feature-CTA18HlL.js} +7530 -5425
- package/dist/{format-time-from-id-CwtHJpC0.js → format-time-from-id-6kt1RMWs.js} +1 -1
- package/dist/{format-unit-display-DRIOlVir.js → format-unit-display-mVJ-nuJe.js} +10 -10
- package/dist/{import-export.helper-BrcydEPI.js → import-export.helper-DWwlJy7N.js} +5 -5
- package/dist/{index-Wd74fJNj.js → index-BEcj1jGd.js} +3 -3
- package/dist/{index-ChruXaud.js → index-BfcdagSF.js} +1 -1
- package/dist/{index-D9dtwK1d.js → index-By-jyWOP.js} +1 -1
- package/dist/{lodash-MkfFbMhZ.js → lodash-D0COOw3m.js} +1 -1
- package/dist/{netsuite-D4cXyIr7.js → netsuite-3LgQ5ztL.js} +36 -36
- package/dist/{purchase-order-template-BdKUiSPI.js → purchase-order-template-CJCmABzP.js} +1 -1
- package/dist/{rules-KSzt3qOJ.js → rules-hQBVd1Mn.js} +9 -9
- package/dist/{stock-DZliLQNR.js → stock-4xGaezEy.js} +3 -3
- package/dist/{stock-BHWNLsBc.js → stock-B6QW-S14.js} +1 -1
- package/dist/stores/feature.d.ts +4 -0
- package/dist/style.css +1 -1
- package/dist/{supplier-CiMOpHKx.js → supplier-C-dmFnqw.js} +2 -2
- package/dist/{surcharge-CjdNdcm1.js → surcharge-Db4IiSEQ.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-ingredient-select-dialog-CK_Ldhwm.js → use-ingredient-select-dialog-DgYSZDN8.js} +2 -2
- package/dist/{use-inventory-binding-dialog-jfME3m3c.js → use-inventory-binding-dialog-CnYcA_Fo.js} +2 -2
- package/dist/{use-template-enabled-locations-2-Dbk_RoRj.js → use-template-enabled-locations-2-B_aZrMUU.js} +2 -2
- package/dist/views/receive-request/components/transfer-form/composables/use-transfer-items.d.ts +3 -1
- package/dist/views/stock/components/StockRecordCard.vue.d.ts +1 -1
- package/dist/{vue-i18n-DUlOMRWF.js → vue-i18n-BCEDBY4T.js} +368 -368
- package/dist/{xlsx-CiNXr9Ie.js → xlsx-CJsXiiEq.js} +398 -398
- package/dist/{xlsx.util-D81JjCsx.js → xlsx.util-CSudzOii.js} +1 -1
- package/package.json +4 -4
- package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-ifkxhq6-.js +0 -231
- package/dist/ReceiveRequestView-DDfHVcG2.js +0 -3028
- package/dist/cypress/component/receive-request/KDI-15-total-price-currency.cy.d.ts +0 -2
- package/dist/views/ingredients/helper/calculate-default-cost.d.ts +0 -9
- package/dist/views/receive-request/components/transfer-form/TransferForm2.vue.d.ts +0 -22
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { ref as B, onUnmounted as D, defineComponent as U, watch as C, onMounted as M, computed as P, resolveComponent as y, openBlock as
|
|
2
|
-
import { u as K, a as $, R as e, m as E, g as r, b as H } from "./app-
|
|
1
|
+
import { ref as B, onUnmounted as D, defineComponent as U, watch as C, onMounted as M, computed as P, resolveComponent as y, openBlock as R, createElementBlock as A, unref as T, createVNode as I, createElementVNode as v, toDisplayString as x, createBlock as F, createCommentVNode as W } from "vue";
|
|
2
|
+
import { u as K, a as $, R as e, m as E, g as r, b as H } from "./app-CddcvygU.js";
|
|
3
3
|
import { useCoreStore as w, useI18n as V } from "@feedmepos/mf-common";
|
|
4
4
|
import { useRouter as O, useRoute as j } from "vue-router";
|
|
5
|
-
import { u as k } from "./feature-
|
|
6
|
-
import { u as z } from "./netsuite-
|
|
5
|
+
import { u as k } from "./feature-CTA18HlL.js";
|
|
6
|
+
import { u as z } from "./netsuite-3LgQ5ztL.js";
|
|
7
7
|
import { u as Q } from "./useTabStorage-BkIVScW_.js";
|
|
8
8
|
import { u as Y } from "./googlemap-Dm8ERVai.js";
|
|
9
9
|
function q() {
|
|
@@ -12,23 +12,23 @@ function q() {
|
|
|
12
12
|
isLoading: !1
|
|
13
13
|
};
|
|
14
14
|
}
|
|
15
|
-
const
|
|
15
|
+
const g = B(q());
|
|
16
16
|
function J() {
|
|
17
17
|
const c = O();
|
|
18
|
-
if (!
|
|
19
|
-
|
|
18
|
+
if (!g.value.loadingHookInstalled) {
|
|
19
|
+
g.value.loadingHookInstalled = !0;
|
|
20
20
|
const a = c.beforeEach(() => {
|
|
21
|
-
|
|
21
|
+
g.value.isLoading = !0;
|
|
22
22
|
}), d = c.afterEach(() => {
|
|
23
|
-
|
|
23
|
+
g.value.isLoading = !1;
|
|
24
24
|
});
|
|
25
25
|
D(() => {
|
|
26
|
-
|
|
26
|
+
g.value.loadingHookInstalled = !1, a(), d();
|
|
27
27
|
});
|
|
28
28
|
}
|
|
29
29
|
return {
|
|
30
30
|
get isLoading() {
|
|
31
|
-
return
|
|
31
|
+
return g.value.isLoading;
|
|
32
32
|
}
|
|
33
33
|
};
|
|
34
34
|
}
|
|
@@ -63,28 +63,28 @@ const X = {
|
|
|
63
63
|
const L = P(() => s.currentRoute.value.name === e.TRANSFER_TEMPLATE ? t.enablePoTemplate : s.currentRoute.value.name === e.INGREDIENT_GROUP ? t.enableIngredientGroup : !0);
|
|
64
64
|
return (u, i) => {
|
|
65
65
|
const S = y("FmSpacer"), G = y("FmCircularProgress"), o = y("FmButton"), n = y("RouterView");
|
|
66
|
-
return
|
|
67
|
-
T(m).isLoading ? (
|
|
68
|
-
|
|
66
|
+
return R(), A("div", null, [
|
|
67
|
+
T(m).isLoading ? (R(), A("div", X, [
|
|
68
|
+
I(S),
|
|
69
69
|
v("div", null, [
|
|
70
|
-
|
|
70
|
+
I(G, { size: "xl" })
|
|
71
71
|
]),
|
|
72
72
|
i[0] || (i[0] = v("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary pl-8" }, "Loading page...", -1)),
|
|
73
|
-
|
|
74
|
-
])) : L.value ? T(l).sessionUser.value ? (
|
|
73
|
+
I(S)
|
|
74
|
+
])) : L.value ? T(l).sessionUser.value ? (R(), F(n, { key: 2 })) : W("", !0) : (R(), A("div", Z, [
|
|
75
75
|
v("div", ee, [
|
|
76
76
|
v("div", te, x(T(_)("inventory.common.proPlan.title")), 1),
|
|
77
77
|
v("div", oe, x(T(_)("inventory.common.proPlan.subtitle")), 1)
|
|
78
78
|
]),
|
|
79
79
|
v("div", ne, [
|
|
80
80
|
v("a", re, [
|
|
81
|
-
|
|
81
|
+
I(o, {
|
|
82
82
|
label: T(_)("inventory.common.proPlan.comparePlans"),
|
|
83
83
|
variant: "secondary"
|
|
84
84
|
}, null, 8, ["label"])
|
|
85
85
|
]),
|
|
86
86
|
v("a", ae, [
|
|
87
|
-
|
|
87
|
+
I(o, {
|
|
88
88
|
label: T(_)("inventory.common.proPlan.callUs"),
|
|
89
89
|
"prepend-icon": "call"
|
|
90
90
|
}, null, 8, ["label"])
|
|
@@ -189,7 +189,8 @@ const X = {
|
|
|
189
189
|
},
|
|
190
190
|
{
|
|
191
191
|
label: r(e.SURCHARGE, t),
|
|
192
|
-
value: e.SURCHARGE
|
|
192
|
+
value: e.SURCHARGE,
|
|
193
|
+
hide: !s.enableSurcharge
|
|
193
194
|
},
|
|
194
195
|
{
|
|
195
196
|
label: r(e.TRANSFER_TEMPLATE, t),
|
|
@@ -253,8 +254,8 @@ const X = {
|
|
|
253
254
|
}, 2e3);
|
|
254
255
|
}), (o, n) => {
|
|
255
256
|
const f = y("FmCollapsibleTabs");
|
|
256
|
-
return
|
|
257
|
-
|
|
257
|
+
return R(), A("div", se, [
|
|
258
|
+
I(f, {
|
|
258
259
|
modelValue: u.value,
|
|
259
260
|
"onUpdate:modelValue": n[0] || (n[0] = (b) => u.value = b),
|
|
260
261
|
items: L.value
|
|
@@ -295,7 +296,7 @@ const _e = /* @__PURE__ */ U({
|
|
|
295
296
|
console.error("error when trying to reset businesses:", m);
|
|
296
297
|
}
|
|
297
298
|
}
|
|
298
|
-
return (s, m) => (
|
|
299
|
+
return (s, m) => (R(), F(le));
|
|
299
300
|
}
|
|
300
301
|
});
|
|
301
302
|
export {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { defineComponent as ue, ref as y, watch as ie, computed as d, resolveComponent as ce, openBlock as x, createBlock as X, unref as n, withCtx as P, createElementVNode as c, normalizeClass as pe, createVNode as i, normalizeStyle as de, toDisplayString as me, createElementBlock as fe, createCommentVNode as ve, Teleport as he, mergeProps as _e } from "vue";
|
|
2
|
-
import { u as De, m as b } from "./app-
|
|
3
|
-
import { a as ge, _ as ye } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-
|
|
4
|
-
import { u as be, P as k, a as Oe, _ as Re } from "./TransferDetails.vue_vue_type_script_setup_true_lang-
|
|
5
|
-
import { d as Z } from "./date2-
|
|
2
|
+
import { u as De, m as b } from "./app-CddcvygU.js";
|
|
3
|
+
import { a as ge, _ as ye } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-kVpsL4cx.js";
|
|
4
|
+
import { u as be, P as k, a as Oe, _ as Re } from "./TransferDetails.vue_vue_type_script_setup_true_lang-7BoFD5wV.js";
|
|
5
|
+
import { d as Z } from "./date2-CVZy20Q_.js";
|
|
6
6
|
import { u as Se, _ as xe } from "./SingleColumnLayout.vue_vue_type_script_setup_true_lang-CWZkVCAj.js";
|
|
7
7
|
import { _ as Pe, F as O } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-Ca_eYa8-.js";
|
|
8
8
|
import { useBreakpoints as ke } from "@feedmepos/ui-library";
|
|
9
9
|
import { useI18n as qe } from "@feedmepos/mf-common";
|
|
10
10
|
import { P as we, J as Te } from "./app-DiX-EfV6.js";
|
|
11
|
-
import { u as Ae } from "./netsuite-
|
|
11
|
+
import { u as Ae } from "./netsuite-3LgQ5ztL.js";
|
|
12
12
|
const Ce = { class: "flex flex-col py-8" }, Ne = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Me = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary line-clamp-1" }, Ve = { class: "fm-typo-en-body-md-400 text-fm-color-typo-primary line-clamp-1" }, Fe = {
|
|
13
13
|
key: 0,
|
|
14
14
|
class: "fm-typo-en-body-md-400 text-fm-color-typo-primary line-clamp-1"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
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-
|
|
3
|
-
import { a as L, ai as S } from "./app-
|
|
2
|
+
import { _ as V } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-CFgk9rSe.js";
|
|
3
|
+
import { a as L, ai as S } from "./app-CddcvygU.js";
|
|
4
4
|
const U = {
|
|
5
5
|
key: 0,
|
|
6
6
|
class: "flex justify-end gap-8 items-center"
|
|
@@ -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, ai as z } from "./app-
|
|
2
|
+
import { a as M } from "./FmMultiselectDialog-BviFuAM5.js";
|
|
3
|
+
import { a as x, ai as z } from "./app-CddcvygU.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, ai as R } from "./app-
|
|
3
|
-
import "./dayjs.min-
|
|
2
|
+
import { F as b, a as P, ai as R } from "./app-CddcvygU.js";
|
|
3
|
+
import "./dayjs.min-NrRtjg32.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-D0COOw3m.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,19 +2,19 @@ import { defineComponent as Te, ref as q, computed as V, onMounted as Xe, resolv
|
|
|
2
2
|
import { F as Ze, u as Nt, _ as Et } from "./SingleColumnLayout.vue_vue_type_script_setup_true_lang-CWZkVCAj.js";
|
|
3
3
|
import { useCoreStore as ht, useI18n as kt } from "@feedmepos/mf-common";
|
|
4
4
|
import { useSnackbar as et, useDialog as zt, components as be, useProxiedModel as Ht, useBreakpoints as Ot } from "@feedmepos/ui-library";
|
|
5
|
-
import { o as Kt, u as Ye,
|
|
5
|
+
import { o as Kt, u as Ye, J as W, w as H, s as _t, K as he, B as Ee, v as ze, c as Yt, a as xt } from "./app-CddcvygU.js";
|
|
6
6
|
import { defineStore as Dt, storeToRefs as Qt } from "pinia";
|
|
7
|
-
import { d as Oe, e as At, f as qt, a as De } from "./date2-
|
|
8
|
-
import { R as Gt, f as tt, a as Je, t as Wt, d as Be, o as wt, p as St, m as Ft, l as Zt } from "./rules-
|
|
9
|
-
import { b as Jt, d as Xt } from "./xlsx.util-
|
|
10
|
-
import { u as Ct } from "./stock-
|
|
11
|
-
import { u as at } from "./stock-
|
|
7
|
+
import { d as Oe, e as At, f as qt, a as De } from "./date2-CVZy20Q_.js";
|
|
8
|
+
import { R as Gt, f as tt, a as Je, t as Wt, d as Be, o as wt, p as St, m as Ft, l as Zt } from "./rules-hQBVd1Mn.js";
|
|
9
|
+
import { b as Jt, d as Xt } from "./xlsx.util-CSudzOii.js";
|
|
10
|
+
import { u as Ct } from "./stock-4xGaezEy.js";
|
|
11
|
+
import { u as at } from "./stock-B6QW-S14.js";
|
|
12
12
|
import { D as yt, R as Fe } from "./row-action.enum-BcW_L_nE.js";
|
|
13
13
|
import { c as ea } from "./component-DpCUABT3.js";
|
|
14
|
-
import { f as ta } from "./format-time-from-id-
|
|
15
|
-
import { _ as aa } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-
|
|
14
|
+
import { f as ta } from "./format-time-from-id-6kt1RMWs.js";
|
|
15
|
+
import { _ as aa } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-kVpsL4cx.js";
|
|
16
16
|
import { E as na } from "./empty-placeholder-wf6-BWE8.js";
|
|
17
|
-
import { u as oa } from "./vue-i18n-
|
|
17
|
+
import { u as oa } from "./vue-i18n-BCEDBY4T.js";
|
|
18
18
|
import { _ as sa, F as Le } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-Ca_eYa8-.js";
|
|
19
19
|
const Qe = Kt((c, o) => {
|
|
20
20
|
function e() {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { defineComponent as G, ref as v, computed as D, watch as se, resolveComponent as S, openBlock as i, createElementBlock as f, createVNode as g, withModifiers as ie, withCtx as
|
|
1
|
+
import { defineComponent as G, ref as v, computed as D, watch as se, resolveComponent as S, openBlock as i, createElementBlock as f, createVNode as g, withModifiers as ie, withCtx as L, createElementVNode as n, toDisplayString as s, unref as a, Fragment as $, createTextVNode as N, createBlock as T, createCommentVNode as k, renderList as z, normalizeClass as ce, h as re, onMounted as de, Teleport as ue } from "vue";
|
|
2
2
|
import { F as me, _ as fe } from "./SingleColumnLayout.vue_vue_type_script_setup_true_lang-CWZkVCAj.js";
|
|
3
3
|
import { useI18n as J, useCoreStore as ve } from "@feedmepos/mf-common";
|
|
4
|
-
import {
|
|
5
|
-
import { _ as pe } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-
|
|
4
|
+
import { E as Q, B as V, u as ye } from "./app-CddcvygU.js";
|
|
5
|
+
import { _ as pe } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-kVpsL4cx.js";
|
|
6
6
|
import { useSnackbar as W, useDialog as ge } from "@feedmepos/ui-library";
|
|
7
|
-
import { u as _e } from "./stock-
|
|
7
|
+
import { u as _e } from "./stock-B6QW-S14.js";
|
|
8
8
|
const be = { class: "fm-typo-en-heading-lg-600" }, he = { class: "flex flex-col gap-16" }, ke = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, xe = { class: "flex flex-col gap-8" }, De = { class: "fm-typo-en-body-md-600" }, we = { class: "flex flex-col gap-8" }, Se = { class: "fm-typo-en-body-md-600" }, Ve = { class: "flex items-center gap-8 mb-8" }, Ae = {
|
|
9
9
|
key: 2,
|
|
10
10
|
class: "text-red-500 text-sm mt-2"
|
|
@@ -14,13 +14,13 @@ const be = { class: "fm-typo-en-heading-lg-600" }, he = { class: "flex flex-col
|
|
|
14
14
|
}, Re = {
|
|
15
15
|
key: 0,
|
|
16
16
|
class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary"
|
|
17
|
-
},
|
|
17
|
+
}, Be = {
|
|
18
18
|
key: 1,
|
|
19
19
|
class: "flex flex-col gap-8"
|
|
20
|
-
},
|
|
20
|
+
}, Le = { class: "fm-typo-en-body-sm-600" }, Te = { class: "flex flex-col gap-4" }, Ie = { key: 0 }, Oe = {
|
|
21
21
|
key: 1,
|
|
22
22
|
class: "flex flex-col gap-8"
|
|
23
|
-
},
|
|
23
|
+
}, Ee = { class: "fm-typo-en-body-md-600" }, $e = { class: "flex flex-col gap-8 max-h-[300px] overflow-y-auto" }, Ne = { class: "flex items-center justify-between" }, Pe = { class: "fm-typo-en-body-sm-600" }, Ue = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, Ke = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, Me = {
|
|
24
24
|
key: 0,
|
|
25
25
|
class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary"
|
|
26
26
|
}, He = {
|
|
@@ -65,7 +65,7 @@ const be = { class: "fm-typo-en-heading-lg-600" }, he = { class: "flex flex-col
|
|
|
65
65
|
} catch (e) {
|
|
66
66
|
console.error("Error parsing date from closing ID:", e);
|
|
67
67
|
}
|
|
68
|
-
}),
|
|
68
|
+
}), B = D(() => {
|
|
69
69
|
if (!d.value || !c.value) return "";
|
|
70
70
|
const e = V(d.value), o = c.value;
|
|
71
71
|
if (e && o) {
|
|
@@ -74,7 +74,7 @@ const be = { class: "fm-typo-en-heading-lg-600" }, he = { class: "flex flex-col
|
|
|
74
74
|
return l("inventory.stock.recalculation.error.endDateBeforeOpening");
|
|
75
75
|
}
|
|
76
76
|
return "";
|
|
77
|
-
}), U = D(() => !!d.value && !!c.value && !
|
|
77
|
+
}), U = D(() => !!d.value && !!c.value && !B.value), K = D(() => w.value.some(
|
|
78
78
|
(e) => !e.completedAt && !e.failedReason
|
|
79
79
|
));
|
|
80
80
|
async function M() {
|
|
@@ -138,7 +138,7 @@ const be = { class: "fm-typo-en-heading-lg-600" }, he = { class: "flex flex-col
|
|
|
138
138
|
se(
|
|
139
139
|
[d, c],
|
|
140
140
|
() => {
|
|
141
|
-
d.value && c.value && !
|
|
141
|
+
d.value && c.value && !B.value ? te() : r.value = [];
|
|
142
142
|
},
|
|
143
143
|
{ immediate: !1 }
|
|
144
144
|
);
|
|
@@ -167,7 +167,7 @@ const be = { class: "fm-typo-en-heading-lg-600" }, he = { class: "flex flex-col
|
|
|
167
167
|
}
|
|
168
168
|
}
|
|
169
169
|
return (e, o) => {
|
|
170
|
-
const b = S("FmButton"),
|
|
170
|
+
const b = S("FmButton"), E = S("FmSelect"), j = S("FmRadio"), le = S("FmDatePicker"), ae = S("FmAlert"), ne = S("FmDialog");
|
|
171
171
|
return i(), f("div", null, [
|
|
172
172
|
g(b, {
|
|
173
173
|
"prepend-icon": "info",
|
|
@@ -181,10 +181,10 @@ const be = { class: "fm-typo-en-heading-lg-600" }, he = { class: "flex flex-col
|
|
|
181
181
|
dismissAway: "",
|
|
182
182
|
"max-width": "600px"
|
|
183
183
|
}, {
|
|
184
|
-
"dialog-header":
|
|
184
|
+
"dialog-header": L(() => [
|
|
185
185
|
n("div", be, s(a(l)("inventory.stock.recalculation.title")), 1)
|
|
186
186
|
]),
|
|
187
|
-
"dialog-footer":
|
|
187
|
+
"dialog-footer": L(() => [
|
|
188
188
|
K.value ? (i(), f("div", Ge, [
|
|
189
189
|
g(b, {
|
|
190
190
|
variant: "tertiary",
|
|
@@ -207,17 +207,17 @@ const be = { class: "fm-typo-en-heading-lg-600" }, he = { class: "flex flex-col
|
|
|
207
207
|
}, null, 8, ["disabled", "loading", "label"])
|
|
208
208
|
]))
|
|
209
209
|
]),
|
|
210
|
-
default:
|
|
210
|
+
default: L(() => [
|
|
211
211
|
n("div", he, [
|
|
212
212
|
n("div", ke, s(a(l)("inventory.stock.recalculation.description")), 1),
|
|
213
|
-
K.value ? k("", !0) : (i(), f(
|
|
213
|
+
K.value ? k("", !0) : (i(), f($, { key: 0 }, [
|
|
214
214
|
n("div", xe, [
|
|
215
215
|
n("p", De, [
|
|
216
216
|
N(s(a(l)("inventory.stock.recalculation.openingDate")) + " ", 1),
|
|
217
217
|
o[8] || (o[8] = n("span", { class: "text-fm-color-system-error-300" }, "*", -1))
|
|
218
218
|
]),
|
|
219
219
|
o[9] || (o[9] = n("div", { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary mb-4" }, " Showing the last 30 closing records. Select the opening date to start recalculation. ", -1)),
|
|
220
|
-
g(
|
|
220
|
+
g(E, {
|
|
221
221
|
modelValue: d.value,
|
|
222
222
|
"onUpdate:modelValue": o[0] || (o[0] = (t) => d.value = t),
|
|
223
223
|
items: R.value,
|
|
@@ -245,7 +245,7 @@ const be = { class: "fm-typo-en-heading-lg-600" }, he = { class: "flex flex-col
|
|
|
245
245
|
label: a(l)("inventory.stock.recalculation.selectByClosing")
|
|
246
246
|
}, null, 8, ["modelValue", "label"])
|
|
247
247
|
]),
|
|
248
|
-
_.value ? (i(), T(
|
|
248
|
+
_.value ? (i(), T(E, {
|
|
249
249
|
key: 1,
|
|
250
250
|
modelValue: P.value,
|
|
251
251
|
"onUpdate:modelValue": o[4] || (o[4] = (t) => P.value = t),
|
|
@@ -261,22 +261,22 @@ const be = { class: "fm-typo-en-heading-lg-600" }, he = { class: "flex flex-col
|
|
|
261
261
|
min: Z.value,
|
|
262
262
|
disabled: !d.value || u.value
|
|
263
263
|
}, null, 8, ["modelValue", "placeholder", "min", "disabled"])),
|
|
264
|
-
|
|
264
|
+
B.value ? (i(), f("div", Ae, s(B.value), 1)) : k("", !0)
|
|
265
265
|
]),
|
|
266
|
-
d.value && c.value && !
|
|
266
|
+
d.value && c.value && !B.value ? (i(), T(ae, {
|
|
267
267
|
key: 0,
|
|
268
268
|
type: "info"
|
|
269
269
|
}, {
|
|
270
|
-
default:
|
|
270
|
+
default: L(() => [
|
|
271
271
|
n("div", Ce, s(a(l)("inventory.stock.recalculation.info")), 1)
|
|
272
272
|
]),
|
|
273
273
|
_: 1
|
|
274
274
|
})) : k("", !0),
|
|
275
275
|
r.value.length > 0 ? (i(), f("div", Fe, [
|
|
276
|
-
p.value ? (i(), f("div", Re, " Loading affected closing drafts... ")) : (i(), f("div",
|
|
277
|
-
n("div",
|
|
276
|
+
p.value ? (i(), f("div", Re, " Loading affected closing drafts... ")) : (i(), f("div", Be, [
|
|
277
|
+
n("div", Le, " Affected closing draft(s): " + s(r.value.length), 1),
|
|
278
278
|
n("div", Te, [
|
|
279
|
-
(i(!0), f(
|
|
279
|
+
(i(!0), f($, null, z(r.value, (t) => (i(), f("div", {
|
|
280
280
|
key: t._id,
|
|
281
281
|
class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary"
|
|
282
282
|
}, [
|
|
@@ -288,9 +288,9 @@ const be = { class: "fm-typo-en-heading-lg-600" }, he = { class: "flex flex-col
|
|
|
288
288
|
])) : k("", !0)
|
|
289
289
|
], 64)),
|
|
290
290
|
w.value.length > 0 ? (i(), f("div", Oe, [
|
|
291
|
-
n("p",
|
|
292
|
-
n("div",
|
|
293
|
-
(i(!0), f(
|
|
291
|
+
n("p", Ee, s(a(l)("inventory.stock.recalculation.recentRequests")), 1),
|
|
292
|
+
n("div", $e, [
|
|
293
|
+
(i(!0), f($, null, z(w.value, (t) => (i(), f("div", {
|
|
294
294
|
key: t._id,
|
|
295
295
|
class: "p-12 border border-fm-color-border-primary rounded-8 flex flex-col gap-4"
|
|
296
296
|
}, [
|
|
@@ -416,7 +416,7 @@ const be = { class: "fm-typo-en-heading-lg-600" }, he = { class: "flex flex-col
|
|
|
416
416
|
title: a(h)("inventory.closing.history.title"),
|
|
417
417
|
"onClick:action": _
|
|
418
418
|
}, {
|
|
419
|
-
default:
|
|
419
|
+
default: L(() => [
|
|
420
420
|
n("div", Qe, [
|
|
421
421
|
g(pe, {
|
|
422
422
|
"change-location": "",
|
|
@@ -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 Ue } 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 Ne, a as ve, n as ot } from "./app-
|
|
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-DxdLqlb1.js";
|
|
8
|
+
import { u as fe, c as Ne, a as ve, n as ot } from "./app-CddcvygU.js";
|
|
9
|
+
import { t as re, a as ge, d as ye, s as Le, r as st } from "./xlsx.util-CSudzOii.js";
|
|
10
10
|
import { F as lt } from "./FmDroppableField-J0xUsOTV.js";
|
|
11
|
-
import { f as Be, a as le } from "./date2-
|
|
11
|
+
import { f as Be, a as le } from "./date2-CVZy20Q_.js";
|
|
12
12
|
import { D as se, R as z } from "./row-action.enum-BcW_L_nE.js";
|
|
13
13
|
import { c as at } from "./component-DpCUABT3.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-6kt1RMWs.js";
|
|
15
|
+
import { _ as it } from "./TemplatePublishDialog.vue_vue_type_script_setup_true_lang-ByPIjcED.js";
|
|
16
|
+
import { u as ct } from "./netsuite-3LgQ5ztL.js";
|
|
17
|
+
import { u as mt } from "./duplicate-template-DvnZ4BW6.js";
|
|
18
|
+
import { _ as ut } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-kVpsL4cx.js";
|
|
19
|
+
import { R as dt, A as pt } from "./rules-hQBVd1Mn.js";
|
|
20
|
+
import { u as ft } from "./use-ingredient-select-dialog-DgYSZDN8.js";
|
|
21
|
+
import { d as vt } from "./defineDeepModel-DgRoiQBp.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-2-
|
|
24
|
-
import { _ as yt } from "./SystemTrailDialog.vue_vue_type_script_setup_true_lang-
|
|
23
|
+
import { u as gt } from "./use-template-enabled-locations-2-B_aZrMUU.js";
|
|
24
|
+
import { _ as yt } from "./SystemTrailDialog.vue_vue_type_script_setup_true_lang-_8YeihNH.js";
|
|
25
25
|
import { _ as ht } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
26
26
|
const ue = Ve(
|
|
27
27
|
"closingTemplateTable",
|
package/dist/{DeliveryOrderPrintPreview-D9xRJSBT.js → DeliveryOrderPrintPreview-B2ecLaLu.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as x, computed as f, ref as h, onMounted as _, openBlock as u, createElementBlock as i, createElementVNode as t, createTextVNode as n, toDisplayString as e, createCommentVNode as d, Fragment as o, renderList as p, normalizeClass as g } from "vue";
|
|
2
2
|
import { useRoute as k } from "vue-router";
|
|
3
|
-
import { M as y } from "./app-
|
|
3
|
+
import { M as y } from "./app-CddcvygU.js";
|
|
4
4
|
import { _ as w } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
5
|
const c = { class: "purchase-box" }, A = { valign: "bottom" }, N = { class: "sub-header" }, O = ["src"], P = { style: { "padding-left": "10px" } }, C = { class: "address" }, D = { class: "text-right" }, R = {
|
|
6
6
|
key: 0,
|
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
import { u as B, t as h, T as E, V as R, z as w } from "./app-CddcvygU.js";
|
|
2
|
+
import { u as z } from "./supplier-C-dmFnqw.js";
|
|
3
|
+
import { computed as u, defineComponent as A, mergeModels as q, useModel as D, ref as H, resolveComponent as g, openBlock as y, createElementBlock as O, normalizeStyle as U, createElementVNode as M, createVNode as $, withCtx as x, createBlock as I, createCommentVNode as C, Fragment as W, renderList as Y, unref as N } from "vue";
|
|
4
|
+
import { F as j } from "./FmMultiselectDialog-BviFuAM5.js";
|
|
5
|
+
function _(o) {
|
|
6
|
+
const c = R.safeParse(o);
|
|
7
|
+
if (c.success) return c.data;
|
|
8
|
+
throw new Error("Invalid supplier data");
|
|
9
|
+
}
|
|
10
|
+
function S(o) {
|
|
11
|
+
return {
|
|
12
|
+
_id: o.doc._id,
|
|
13
|
+
internal: o.type,
|
|
14
|
+
contactName: o.doc.profile.name,
|
|
15
|
+
name: o.doc.profile.name ?? "",
|
|
16
|
+
email: o.doc.profile.email,
|
|
17
|
+
phoneNumber: o.doc.profile.phoneNo,
|
|
18
|
+
registrationNumber: o.doc.profile.regNo,
|
|
19
|
+
address: o.doc.profile.address ?? {
|
|
20
|
+
line1: "",
|
|
21
|
+
state: "",
|
|
22
|
+
city: "",
|
|
23
|
+
postcode: "",
|
|
24
|
+
country: ""
|
|
25
|
+
},
|
|
26
|
+
preparationTime: o.preparationTime
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
function G(o, c, p = !1, f = !1) {
|
|
30
|
+
const r = z(), n = B();
|
|
31
|
+
n.watchLocation(async () => {
|
|
32
|
+
var m;
|
|
33
|
+
await r.readSuppliers();
|
|
34
|
+
const s = o();
|
|
35
|
+
if ((m = s.supplier) != null && m._id) return;
|
|
36
|
+
const e = f ? r.suppliers[0] : r.businessSuppliers[0], t = (p ? n.locations.filter((a) => a.doc._id !== n.currentLocation.doc._id) : n.locations)[0];
|
|
37
|
+
c({
|
|
38
|
+
...s,
|
|
39
|
+
supplier: e ? _(e) : t ? S(t) : s.supplier
|
|
40
|
+
});
|
|
41
|
+
});
|
|
42
|
+
const d = u(
|
|
43
|
+
() => {
|
|
44
|
+
var s, e;
|
|
45
|
+
return typeof ((e = (s = o()) == null ? void 0 : s.supplier) == null ? void 0 : e.internal) == "string" ? h.enum.transfer : h.enum.purchase;
|
|
46
|
+
}
|
|
47
|
+
), v = u({
|
|
48
|
+
get() {
|
|
49
|
+
var s, e;
|
|
50
|
+
return (e = (s = o()) == null ? void 0 : s.supplier) == null ? void 0 : e._id;
|
|
51
|
+
},
|
|
52
|
+
set(s) {
|
|
53
|
+
const e = o() ?? {};
|
|
54
|
+
if (d.value === h.enum.purchase) {
|
|
55
|
+
const k = (f ? r.suppliers : r.businessSuppliers).find((P) => P._id === s);
|
|
56
|
+
c({
|
|
57
|
+
...e,
|
|
58
|
+
supplier: k ? _(k) : e.supplier
|
|
59
|
+
});
|
|
60
|
+
return;
|
|
61
|
+
}
|
|
62
|
+
const m = (p ? n.allLocations.filter(
|
|
63
|
+
(a) => a.doc._id !== n.currentLocation.doc._id
|
|
64
|
+
) : n.allLocations).find((a) => a.doc._id === s);
|
|
65
|
+
c({
|
|
66
|
+
...e,
|
|
67
|
+
supplier: m ? S(m) : e.supplier
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
}), b = u(() => r.locationSuppliers.map(_)), L = u(() => r.businessSuppliers.map(_)), F = u(() => {
|
|
71
|
+
const s = [...b.value], e = [...L.value];
|
|
72
|
+
return f ? [...e, ...s] : e;
|
|
73
|
+
}), l = u(() => {
|
|
74
|
+
var i;
|
|
75
|
+
const s = ((i = n._currentLocation) == null ? void 0 : i.type) === E.warehouse;
|
|
76
|
+
return (p ? n.allLocations.filter(
|
|
77
|
+
(t) => t.doc._id !== n.currentLocation.doc._id
|
|
78
|
+
) : n.allLocations).filter((t) => s || t.acceptRequest).map(S);
|
|
79
|
+
}), V = u(() => {
|
|
80
|
+
if (d.value === h.enum.purchase) {
|
|
81
|
+
const e = b.value.map((t) => ({
|
|
82
|
+
label: t.name,
|
|
83
|
+
value: t._id
|
|
84
|
+
})), i = L.value.map((t) => ({
|
|
85
|
+
label: t.name,
|
|
86
|
+
sublabel: "Business supplier",
|
|
87
|
+
value: t._id
|
|
88
|
+
}));
|
|
89
|
+
return f ? [...e, ...i] : i;
|
|
90
|
+
}
|
|
91
|
+
return l.value.map((e) => ({
|
|
92
|
+
label: e.name,
|
|
93
|
+
sublabel: e.internal ? `${e.internal}` : void 0,
|
|
94
|
+
value: e._id
|
|
95
|
+
}));
|
|
96
|
+
}), T = u(() => {
|
|
97
|
+
var t, m;
|
|
98
|
+
const s = (m = (t = o()) == null ? void 0 : t.supplier) == null ? void 0 : m._id;
|
|
99
|
+
if (d.value === h.enum.purchase) {
|
|
100
|
+
const a = r.suppliers.find((k) => k._id === s);
|
|
101
|
+
return a ? _(a) : null;
|
|
102
|
+
}
|
|
103
|
+
const i = n.allLocations.find((a) => a.doc._id);
|
|
104
|
+
return i ? S(i) : null;
|
|
105
|
+
});
|
|
106
|
+
return {
|
|
107
|
+
transferLocationModel: v,
|
|
108
|
+
transferLocationOptions: V,
|
|
109
|
+
locationOptionsTypePurchase: F,
|
|
110
|
+
locationOptionsTypePurchaseLocationLevel: b,
|
|
111
|
+
locationOptionsTypeTransfer: l,
|
|
112
|
+
selectedLocation: T
|
|
113
|
+
};
|
|
114
|
+
}
|
|
115
|
+
const J = { class: "overflow-y-auto h-full pb-8" }, ee = /* @__PURE__ */ A({
|
|
116
|
+
__name: "FmFilterableMenuOptions",
|
|
117
|
+
props: /* @__PURE__ */ q({
|
|
118
|
+
modelValue: {},
|
|
119
|
+
maxHeight: {},
|
|
120
|
+
width: {},
|
|
121
|
+
handleItemChange: { type: Function },
|
|
122
|
+
items: {},
|
|
123
|
+
options: {}
|
|
124
|
+
}, {
|
|
125
|
+
search: {},
|
|
126
|
+
searchModifiers: {}
|
|
127
|
+
}),
|
|
128
|
+
emits: ["update:search"],
|
|
129
|
+
setup(o) {
|
|
130
|
+
const c = o, p = D(o, "search"), f = u(
|
|
131
|
+
() => new j(c.items, ["label", "sublabel"], {
|
|
132
|
+
caseSensitive: !1,
|
|
133
|
+
sort: !0
|
|
134
|
+
})
|
|
135
|
+
), r = u(() => f.value.search(p.value)), n = H();
|
|
136
|
+
return console.log({ stickyRef: n }), (d, v) => {
|
|
137
|
+
const b = g("FmButton"), L = g("FmTextField"), F = g("FmMenuItem");
|
|
138
|
+
return y(), O("div", {
|
|
139
|
+
class: "relative",
|
|
140
|
+
style: U({ width: d.width })
|
|
141
|
+
}, [
|
|
142
|
+
M("div", {
|
|
143
|
+
class: "sticky top-0 bg-white mb-8",
|
|
144
|
+
ref_key: "stickyRef",
|
|
145
|
+
ref: n
|
|
146
|
+
}, [
|
|
147
|
+
$(L, {
|
|
148
|
+
modelValue: p.value,
|
|
149
|
+
"onUpdate:modelValue": v[1] || (v[1] = (l) => p.value = l),
|
|
150
|
+
placeholder: "Filter options"
|
|
151
|
+
}, {
|
|
152
|
+
append: x(() => [
|
|
153
|
+
p.value ? (y(), I(b, {
|
|
154
|
+
key: 0,
|
|
155
|
+
variant: "tertiary",
|
|
156
|
+
"prepend-icon": "close",
|
|
157
|
+
onClick: v[0] || (v[0] = (l) => p.value = "")
|
|
158
|
+
})) : C("", !0)
|
|
159
|
+
]),
|
|
160
|
+
_: 1
|
|
161
|
+
}, 8, ["modelValue"])
|
|
162
|
+
], 512),
|
|
163
|
+
M("div", J, [
|
|
164
|
+
(y(!0), O(W, null, Y(r.value, (l, V) => (y(), I(F, {
|
|
165
|
+
key: V,
|
|
166
|
+
label: l.label,
|
|
167
|
+
sublabel: l.sublabel,
|
|
168
|
+
"model-value": N(w)(d.modelValue, l.value),
|
|
169
|
+
onClick: () => d.handleItemChange(N(w)(d.modelValue, l.value), l),
|
|
170
|
+
onVnodeMounted: (T) => {
|
|
171
|
+
var s, e;
|
|
172
|
+
return N(w)(d.modelValue, l.value) && ((s = T.el) == null || s.scrollIntoView({ behavior: "instant", block: "end" }), (e = T.el) == null || e.scrollIntoView({ behavior: "smooth", block: "center" })), void 0;
|
|
173
|
+
}
|
|
174
|
+
}, null, 8, ["label", "sublabel", "model-value", "onClick", "onVnodeMounted"]))), 128)),
|
|
175
|
+
r.value.length ? C("", !0) : (y(), I(F, {
|
|
176
|
+
key: 0,
|
|
177
|
+
disabled: "",
|
|
178
|
+
label: "No options available"
|
|
179
|
+
}))
|
|
180
|
+
])
|
|
181
|
+
], 4);
|
|
182
|
+
};
|
|
183
|
+
}
|
|
184
|
+
});
|
|
185
|
+
export {
|
|
186
|
+
ee as _,
|
|
187
|
+
G as u
|
|
188
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as I, computed as g, ref as z, resolveComponent as h, openBlock as n, createElementBlock as y, createVNode as _, withCtx as L, createElementVNode as f, toDisplayString as Y, unref as u, createBlock as p, createCommentVNode as w, Fragment as $, renderList as R, watch as E, mergeModels as O, useModel as C, renderSlot as H, normalizeClass as S } from "vue";
|
|
2
2
|
import { useCoreStore as W, useI18n as P } from "@feedmepos/mf-common";
|
|
3
|
-
import { u as q } from "./app-
|
|
4
|
-
import { d as U } from "./date2-
|
|
3
|
+
import { u as q } from "./app-CddcvygU.js";
|
|
4
|
+
import { d as U } from "./date2-CVZy20Q_.js";
|
|
5
5
|
import { useBreakpoints as G } from "@feedmepos/ui-library";
|
|
6
6
|
import { u as J, F as K } from "./SingleColumnLayout.vue_vue_type_script_setup_true_lang-CWZkVCAj.js";
|
|
7
7
|
import { D as A } from "./app-DiX-EfV6.js";
|