@feedmepos/mf-inventory-portal 1.3.14-dev.1 → 1.3.14-dev.2
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-D1_jkD6L.js +309 -0
- package/dist/{ApprovalView-BxioAXpO.js → ApprovalView-CfF2FqsE.js} +12 -12
- package/dist/{BindingsDialog-Dn_hP7Ji.js → BindingsDialog-H-juP-az.js} +2 -2
- package/dist/{BindingsPicker-BEXOUaoI.js → BindingsPicker-ClruHF7p.js} +2 -2
- package/dist/{BindingsTable-CsRLA5J_.js → BindingsTable-Bx9pbFOO.js} +3 -3
- package/dist/{ClosingDraftView-DoH9ZcGA.js → ClosingDraftView-DN97Tao5.js} +137 -137
- package/dist/{ClosingHistoryView-BWf_gIrc.js → ClosingHistoryView-DsRYUqa2.js} +32 -32
- package/dist/{ClosingTemplateView-BKRxzvQX.js → ClosingTemplateView-f9zfsxCu.js} +14 -14
- package/dist/DefaultView-COVVxOrF.js +31 -0
- package/dist/{DeliveryOrderPrintPreview-HzspgQXj.js → DeliveryOrderPrintPreview-BMK4kBCQ.js} +11 -11
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DstxeP1q.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-Bqj_Ygmo.js} +23 -23
- package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-E9FFFhwx.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CK1ha_AY.js} +2 -2
- package/dist/{FmMultiselectDialog-3uKA-o0f.js → FmMultiselectDialog-BazT9oUX.js} +1 -1
- package/dist/{FmMultiselectDialog-uFZKKIiO.js → FmMultiselectDialog-_gUuhudi.js} +16 -16
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-C1KGaqi7.js → FmUnitInput.vue_vue_type_script_setup_true_lang-BBtAgdsA.js} +18 -18
- package/dist/{ImportView-zrNDzp3k.js → ImportView-jpkwuCXO.js} +6 -6
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-B2vMgXVZ.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-DLJnF4do.js} +1 -1
- package/dist/{IngredientGroupView-HcAKvPur.js → IngredientGroupView-x3t1hyNn.js} +5 -5
- package/dist/{IngredientsView-CRB5UN-e.js → IngredientsView-BzWTnlb4.js} +15 -15
- package/dist/{IntegrationExplorerView-k3IHeiOU.js → IntegrationExplorerView-Bca3owbx.js} +5 -5
- package/dist/{IntegrationView-B3WeQTDB.js → IntegrationView-Dh1c4Qyo.js} +81 -81
- package/dist/{InventoryBindingForm-B-7SQKl2.js → InventoryBindingForm-B1sI1TGZ.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-DhPu_GyE.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-7NeE7Xos.js} +15 -15
- package/dist/{InventoryBindingSummary-Swi6A3W2.js → InventoryBindingSummary-R8zHPc52.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-Duv0At06.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DMJVh7Nt.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang--gt60IlU.js → PremiumBadge.vue_vue_type_script_setup_true_lang-ChC9sEIk.js} +5 -5
- package/dist/{PublishView-B9HJT61I.js → PublishView-Bqp8Ww4J.js} +13 -13
- package/dist/{PurchaseOrderPrintPreview-sClUXkgt.js → PurchaseOrderPrintPreview-D7TCn8U-.js} +11 -11
- package/dist/{ReceiveRequestView-BbS55juS.js → ReceiveRequestView-oNBVAMYu.js} +23 -23
- package/dist/{RecipeView-BH3asOD4.js → RecipeView-D8Mvgji9.js} +50 -50
- package/dist/{SettingsView-BJAMNNhr.js → SettingsView-BJScLK9z.js} +30 -30
- package/dist/{StockView-DMLFY7d1.js → StockView-CRRdVCcD.js} +143 -143
- package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-DeiLMVin.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-DUKv_LV6.js} +1 -1
- package/dist/{SupplierView-C3uBrEcc.js → SupplierView-DdBBIV8W.js} +12 -12
- package/dist/{SurchargeView-S9ByD9Nd.js → SurchargeView-DisBUPIs.js} +16 -16
- package/dist/{SystemTrailDialog.vue_vue_type_script_setup_true_lang-ha60Wy7z.js → SystemTrailDialog.vue_vue_type_script_setup_true_lang-CZ3Q3BAf.js} +2 -2
- package/dist/{TemplatePublishDialog.vue_vue_type_script_setup_true_lang-CfyCEElN.js → TemplatePublishDialog.vue_vue_type_script_setup_true_lang-CC7F5HVc.js} +1 -1
- package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-CKfs-ns0.js → TransferDetails.vue_vue_type_script_setup_true_lang-BLlg1Vka.js} +212 -212
- package/dist/{TransferTemplateView-zbn5CGiZ.js → TransferTemplateView-7ICJMF9z.js} +17 -17
- package/dist/{UnitCostHistoryView-LhvAybS8.js → UnitCostHistoryView-BMRDBQ58.js} +4 -4
- package/dist/{UnitDisplayControl.vue_vue_type_script_setup_true_lang-E2QCl521.js → UnitDisplayControl.vue_vue_type_script_setup_true_lang-mNXHzLN3.js} +4 -4
- package/dist/{UnitView-6oUdlUVo.js → UnitView-uUUYOjYn.js} +24 -24
- package/dist/{WarehouseView-DQFe99KT.js → WarehouseView-BfMf_iuj.js} +25 -25
- package/dist/{WastageTemplateView-BiYZqiT2.js → WastageTemplateView-BQYjJGZ-.js} +14 -14
- package/dist/{app-SnX9gL_k.js → app-B_zMegJc.js} +4571 -4564
- package/dist/app.d.ts +16 -0
- package/dist/app.js +1 -1
- package/dist/{closing-template-Ch--jBk-.js → closing-template-9vhx5Ji1.js} +1 -1
- package/dist/composable/useInventoryAccess.d.ts +11 -0
- package/dist/composable/useNavigationMenu.d.ts +14 -0
- package/dist/{date2-CGqqJOqr.js → date2-BMCS_Dsc.js} +1 -1
- package/dist/{dayjs.min-JnfBpNSN.js → dayjs.min-Dl26OaXo.js} +16 -16
- package/dist/{decimal-C-2MQYNP.js → decimal-e6OK2jkR.js} +2 -2
- package/dist/{defineDeepModel-CUJCBuvw.js → defineDeepModel-BvLlwxnd.js} +1 -1
- package/dist/{duplicate-template-BXg5EQRC.js → duplicate-template-Cnhu8Rxw.js} +1 -1
- package/dist/{empty-placeholder-wf6-BWE8.js → empty-placeholder-B0QU467o.js} +1 -1
- package/dist/{export-DUsFBcmf.js → export-CGvyGmeo.js} +1 -1
- package/dist/{feature-gkhmly57.js → feature-Do41WWzx.js} +23 -23
- package/dist/{format-time-from-id-D1RhcKfL.js → format-time-from-id-CqX_KaUG.js} +1 -1
- package/dist/{format-unit-display-DXs_-yEW.js → format-unit-display-D8qWmRXP.js} +11 -11
- package/dist/{import-export.helper-B84wW0eo.js → import-export.helper-85V8Ib5e.js} +6 -6
- package/dist/{index-Dp1GAjHf.js → index-C-CwnjUn.js} +3 -3
- package/dist/{index-artVJVqL.js → index-Cg3aLEhT.js} +1 -1
- package/dist/{index-D3XgyMwL.js → index-CtUF9Nsv.js} +1 -1
- package/dist/{inventory-core-dart.default-Bu1oVkLC.js → inventory-core-dart.default-B64FzAla.js} +1 -1
- package/dist/{lodash-DZbYS5Vn.js → lodash-U9ycVPlv.js} +1 -1
- package/dist/{lz-string-nX96TtT6.js → lz-string-0CgVsQoC.js} +13 -13
- package/dist/{netsuite-DQkJKCH9.js → netsuite-Du7-sXJt.js} +77 -77
- package/dist/{number-gRrApZRj.js → number-iJAzDfmj.js} +7 -7
- package/dist/{predefined-templates-D9bzSOz_.js → predefined-templates-LlSrXOXm.js} +1 -1
- package/dist/{purchase-order-template-BiE_We2X.js → purchase-order-template-DFuXb0rr.js} +1 -1
- package/dist/{recalculationUtils-zNt-EW5S.js → recalculationUtils-DWPnMW1G.js} +1 -1
- package/dist/router/name.d.ts +1 -0
- package/dist/{rules-CWFFr_mA.js → rules-DefSKiUN.js} +2 -2
- package/dist/{stock-C-34Vuxz.js → stock-BfF6peMd.js} +3 -3
- package/dist/{stock-V4Oy4QHQ.js → stock-Cx1BwdWs.js} +1 -1
- package/dist/{supplier-DbYagMhS.js → supplier-CU3iqdGr.js} +16 -16
- package/dist/{surcharge-CcvvfLHB.js → surcharge-D77J5opH.js} +12 -12
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-ingredient-select-dialog-B4jFgJ5b.js → use-ingredient-select-dialog-B-jxV-79.js} +2 -2
- package/dist/{use-inventory-binding-dialog-20flYyGE.js → use-inventory-binding-dialog-BdTd5qPl.js} +2 -2
- package/dist/{use-template-enabled-locations-CpDMbAGF.js → use-template-enabled-locations-vFvaCjlH.js} +2 -2
- package/dist/{useHrmPermission-CZW6u2TS.js → useHrmPermission-CekUhyck.js} +4 -4
- package/dist/useNavigationMenu-BiLWMIip.js +162 -0
- package/dist/views/DefaultView.vue.d.ts +2 -0
- package/dist/{vue-i18n-CUrz9OVK.js → vue-i18n-C3_OsgSl.js} +372 -372
- package/dist/{xlsx-DBsOBE1z.js → xlsx-o7n1whCa.js} +398 -398
- package/dist/{xlsx.util-xziohm10.js → xlsx.util-D6nPboPW.js} +1 -1
- package/package.json +4 -4
- package/dist/App-Cb6qfRCz.js +0 -445
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { defineComponent as ne, ref as g, computed as D, watch as de, resolveComponent as w, openBlock as n, createElementBlock as p, createBlock as M, withModifiers as ue, createCommentVNode as b, createVNode as _, withCtx as T, createElementVNode as o, toDisplayString as l, unref as i, Fragment as z, createTextVNode as Z, renderList as le, normalizeClass as me, h as X, Teleport as pe } from "vue";
|
|
2
2
|
import { _ as ve } from "./SingleColumnLayout.vue_vue_type_script_setup_true_lang-sUxHOj47.js";
|
|
3
3
|
import { useI18n as se, useCoreStore as ge } from "@feedmepos/mf-common";
|
|
4
|
-
import {
|
|
4
|
+
import { E as ie, B as P, a as he, u as _e } from "./app-B_zMegJc.js";
|
|
5
5
|
import { F as re } from "./FmAdminBadge-DjnBAgyv.js";
|
|
6
|
-
import { _ as be } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-
|
|
6
|
+
import { _ as be } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CK1ha_AY.js";
|
|
7
7
|
import { useSnackbar as ce, useDialog as ke } from "@feedmepos/ui-library";
|
|
8
|
-
import { u as fe } from "./stock-
|
|
9
|
-
import { g as ye, f as xe } from "./recalculationUtils-
|
|
10
|
-
import { _ as De } from "./UnitDisplayControl.vue_vue_type_script_setup_true_lang-
|
|
8
|
+
import { u as fe } from "./stock-Cx1BwdWs.js";
|
|
9
|
+
import { g as ye, f as xe } from "./recalculationUtils-DWPnMW1G.js";
|
|
10
|
+
import { _ as De } from "./UnitDisplayControl.vue_vue_type_script_setup_true_lang-mNXHzLN3.js";
|
|
11
11
|
const we = { class: "fm-typo-en-heading-lg-600" }, Se = { class: "flex flex-col gap-16" }, Ce = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ve = { class: "flex flex-col gap-8" }, $e = { class: "fm-typo-en-body-md-600" }, Ae = { class: "flex flex-col gap-8" }, Fe = { class: "fm-typo-en-body-md-600" }, Re = { class: "flex items-center gap-8 mb-8" }, Ie = {
|
|
12
12
|
key: 2,
|
|
13
13
|
class: "text-red-500 text-sm mt-2"
|
|
@@ -26,7 +26,7 @@ const we = { class: "fm-typo-en-heading-lg-600" }, Se = { class: "flex flex-col
|
|
|
26
26
|
}, Me = { class: "fm-typo-en-body-md-600" }, Ke = { class: "flex flex-col gap-8 max-h-[300px] overflow-y-auto" }, He = { class: "flex items-center justify-between" }, je = { class: "fm-typo-en-body-sm-600" }, ze = { class: "flex items-center gap-8" }, We = {
|
|
27
27
|
key: 0,
|
|
28
28
|
class: "fm-typo-en-body-xs-600 px-8 py-4 rounded-4 bg-fm-color-neutral-100 text-fm-color-typo-secondary"
|
|
29
|
-
},
|
|
29
|
+
}, Ye = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, Ge = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, Je = {
|
|
30
30
|
key: 0,
|
|
31
31
|
class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary"
|
|
32
32
|
}, Qe = {
|
|
@@ -48,11 +48,11 @@ const we = { class: "fm-typo-en-heading-lg-600" }, Se = { class: "flex flex-col
|
|
|
48
48
|
},
|
|
49
49
|
emits: ["submitted"],
|
|
50
50
|
setup(ae, { expose: S, emit: C }) {
|
|
51
|
-
const U = C, { t } = se(), L = fe(), O = ie(), V = ce(), $ = g(!1), f = g(""), m = g(""), F = g(!1), v = g([]), a = g(!1), k = g([]), A = g(!1), h = g([]), x = g(!1), W = D(() => ye(v.value)),
|
|
51
|
+
const U = C, { t } = se(), L = fe(), O = ie(), V = ce(), $ = g(!1), f = g(""), m = g(""), F = g(!1), v = g([]), a = g(!1), k = g([]), A = g(!1), h = g([]), x = g(!1), W = D(() => ye(v.value)), Y = D(() => {
|
|
52
52
|
if (!f.value) return [];
|
|
53
53
|
const r = W.value.find((e) => e.value === f.value);
|
|
54
54
|
return r ? W.value.filter((e) => e.date.getTime() > r.date.getTime()).sort((e, d) => d.date.getTime() - e.date.getTime()) : [];
|
|
55
|
-
}),
|
|
55
|
+
}), G = D({
|
|
56
56
|
get: () => {
|
|
57
57
|
if (F.value && m.value) {
|
|
58
58
|
const r = v.value.find((e) => P(e._id) === m.value);
|
|
@@ -81,7 +81,7 @@ const we = { class: "fm-typo-en-heading-lg-600" }, Se = { class: "flex flex-col
|
|
|
81
81
|
return t("inventory.stock.recalculation.error.endDateBeforeOpening");
|
|
82
82
|
}
|
|
83
83
|
return "";
|
|
84
|
-
}), N = D(() => !!f.value && !!m.value && !E.value),
|
|
84
|
+
}), N = D(() => !!f.value && !!m.value && !E.value), J = D(() => k.value.some(
|
|
85
85
|
(r) => !r.completedAt && !r.failedReason
|
|
86
86
|
));
|
|
87
87
|
async function Q() {
|
|
@@ -196,7 +196,7 @@ const we = { class: "fm-typo-en-heading-lg-600" }, Se = { class: "flex flex-col
|
|
|
196
196
|
o("div", we, l(i(t)("inventory.stock.recalculation.title")), 1)
|
|
197
197
|
]),
|
|
198
198
|
"dialog-footer": T(() => [
|
|
199
|
-
|
|
199
|
+
J.value ? (n(), p("div", qe, [
|
|
200
200
|
_(d, {
|
|
201
201
|
variant: "tertiary",
|
|
202
202
|
onClick: e[6] || (e[6] = (c) => $.value = !1),
|
|
@@ -221,7 +221,7 @@ const we = { class: "fm-typo-en-heading-lg-600" }, Se = { class: "flex flex-col
|
|
|
221
221
|
default: T(() => [
|
|
222
222
|
o("div", Se, [
|
|
223
223
|
o("div", Ce, l(i(t)("inventory.stock.recalculation.description")), 1),
|
|
224
|
-
|
|
224
|
+
J.value ? b("", !0) : (n(), p(z, { key: 0 }, [
|
|
225
225
|
o("div", Ve, [
|
|
226
226
|
o("p", $e, [
|
|
227
227
|
Z(l(i(t)("inventory.stock.recalculation.openingDate")) + " ", 1),
|
|
@@ -258,9 +258,9 @@ const we = { class: "fm-typo-en-heading-lg-600" }, Se = { class: "flex flex-col
|
|
|
258
258
|
]),
|
|
259
259
|
F.value ? (n(), M(s, {
|
|
260
260
|
key: 1,
|
|
261
|
-
modelValue:
|
|
262
|
-
"onUpdate:modelValue": e[4] || (e[4] = (c) =>
|
|
263
|
-
items:
|
|
261
|
+
modelValue: G.value,
|
|
262
|
+
"onUpdate:modelValue": e[4] || (e[4] = (c) => G.value = c),
|
|
263
|
+
items: Y.value,
|
|
264
264
|
placeholder: i(t)("inventory.stock.recalculation.selectClosing"),
|
|
265
265
|
loading: a.value,
|
|
266
266
|
disabled: !f.value || a.value
|
|
@@ -320,9 +320,9 @@ const we = { class: "fm-typo-en-heading-lg-600" }, Se = { class: "flex flex-col
|
|
|
320
320
|
}, l(c.failedReason ? i(t)("inventory.stock.recalculation.status.failed") : c.completedAt ? i(t)("inventory.stock.recalculation.status.completed") : i(t)("inventory.stock.recalculation.status.inProgress")), 3)
|
|
321
321
|
])
|
|
322
322
|
]),
|
|
323
|
-
o("div",
|
|
324
|
-
o("div",
|
|
325
|
-
c.createdBy ? (n(), p("div",
|
|
323
|
+
o("div", Ye, l(i(t)("inventory.stock.recalculation.from")) + ": " + l(new Date(c.recalculateStartDate).toLocaleDateString()), 1),
|
|
324
|
+
o("div", Ge, l(i(t)("inventory.stock.recalculation.to")) + ": " + l(new Date(c.recalculateEndDate).toLocaleDateString()), 1),
|
|
325
|
+
c.createdBy ? (n(), p("div", Je, l(i(t)("inventory.stock.recalculation.requestedBy")) + ": " + l(c.createdBy.name || c.createdBy.id), 1)) : b("", !0),
|
|
326
326
|
c.completedAt ? (n(), p("div", Qe, l(i(t)("inventory.stock.recalculation.completedAt")) + ": " + l(new Date(c.completedAt).toLocaleString()), 1)) : b("", !0),
|
|
327
327
|
c.failedReason ? (n(), p("div", Xe, l(c.failedReason), 1)) : b("", !0)
|
|
328
328
|
]);
|
|
@@ -378,9 +378,9 @@ const we = { class: "fm-typo-en-heading-lg-600" }, Se = { class: "flex flex-col
|
|
|
378
378
|
setup(ae, { expose: S, emit: C }) {
|
|
379
379
|
const U = C, { t } = se(), L = fe(), O = ie(), V = ce(), $ = g(!1), f = g(""), m = g(""), F = g([]), v = g([]), a = g(!1), k = g([]), A = g(!1), h = g([]), x = g(!1), W = D(
|
|
380
380
|
() => ye(F.value, v.value)
|
|
381
|
-
),
|
|
381
|
+
), Y = D(() => xe(
|
|
382
382
|
h.value.filter((e) => !!e.closingId).map((e) => ({ closingId: e.closingId, draftCreatedAt: new Date(P(e._id)) }))
|
|
383
|
-
)),
|
|
383
|
+
)), G = D(() => {
|
|
384
384
|
if (f.value)
|
|
385
385
|
try {
|
|
386
386
|
const e = P(f.value);
|
|
@@ -402,7 +402,7 @@ const we = { class: "fm-typo-en-heading-lg-600" }, Se = { class: "flex flex-col
|
|
|
402
402
|
if (!m.value) return !1;
|
|
403
403
|
const e = new Date(m.value), d = /* @__PURE__ */ new Date();
|
|
404
404
|
return d.setHours(0, 0, 0, 0), e.setHours(0, 0, 0, 0), e >= d;
|
|
405
|
-
}), N = D(() => !!f.value && !!m.value && !K.value),
|
|
405
|
+
}), N = D(() => !!f.value && !!m.value && !K.value), J = D(() => k.value.some(
|
|
406
406
|
(e) => !e.completedAt && !e.failedReason
|
|
407
407
|
));
|
|
408
408
|
async function Q() {
|
|
@@ -528,7 +528,7 @@ const we = { class: "fm-typo-en-heading-lg-600" }, Se = { class: "flex flex-col
|
|
|
528
528
|
o("div", tt, l(i(t)("inventory.stock.recalculation.title")), 1)
|
|
529
529
|
]),
|
|
530
530
|
"dialog-footer": T(() => [
|
|
531
|
-
|
|
531
|
+
J.value ? (n(), p("div", Rt, [
|
|
532
532
|
_(s, {
|
|
533
533
|
variant: "tertiary",
|
|
534
534
|
onClick: d[3] || (d[3] = (y) => $.value = !1),
|
|
@@ -553,7 +553,7 @@ const we = { class: "fm-typo-en-heading-lg-600" }, Se = { class: "flex flex-col
|
|
|
553
553
|
default: T(() => [
|
|
554
554
|
o("div", ot, [
|
|
555
555
|
o("div", at, l(i(t)("inventory.stock.recalculation.description")), 1),
|
|
556
|
-
|
|
556
|
+
J.value ? b("", !0) : (n(), p(z, { key: 0 }, [
|
|
557
557
|
o("div", lt, [
|
|
558
558
|
o("p", nt, [
|
|
559
559
|
Z(l(i(t)("inventory.stock.recalculation.openingDate")) + " ", 1),
|
|
@@ -579,7 +579,7 @@ const we = { class: "fm-typo-en-heading-lg-600" }, Se = { class: "flex flex-col
|
|
|
579
579
|
modelValue: m.value,
|
|
580
580
|
"onUpdate:modelValue": d[1] || (d[1] = (y) => m.value = y),
|
|
581
581
|
placeholder: i(t)("inventory.stock.recalculation.selectDate"),
|
|
582
|
-
min:
|
|
582
|
+
min: G.value,
|
|
583
583
|
disabled: !f.value || a.value
|
|
584
584
|
}, null, 8, ["modelValue", "placeholder", "min", "disabled"]),
|
|
585
585
|
K.value ? (n(), p("div", ct, l(K.value), 1)) : b("", !0),
|
|
@@ -608,7 +608,7 @@ const we = { class: "fm-typo-en-heading-lg-600" }, Se = { class: "flex flex-col
|
|
|
608
608
|
class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary"
|
|
609
609
|
}, [
|
|
610
610
|
d[9] || (d[9] = Z(" • ")),
|
|
611
|
-
y.closingId &&
|
|
611
|
+
y.closingId && Y.value.get(y.closingId) ? (n(), p("span", pt, l(Y.value.get(y.closingId)), 1)) : (n(), p("span", vt, l(y._id), 1)),
|
|
612
612
|
y.effectiveAt ? (n(), p("span", gt, " (" + l(new Date(y.effectiveAt).toLocaleString()) + ") ", 1)) : b("", !0)
|
|
613
613
|
]))), 128))
|
|
614
614
|
])
|
|
@@ -785,7 +785,7 @@ const we = { class: "fm-typo-en-heading-lg-600" }, Se = { class: "flex flex-col
|
|
|
785
785
|
}, 8, ["modelValue"]);
|
|
786
786
|
};
|
|
787
787
|
}
|
|
788
|
-
}), zt = { class: "flex flex-col gap-16 p-16" }, Wt = { class: "flex flex-col gap-16" },
|
|
788
|
+
}), zt = { class: "flex flex-col gap-16 p-16" }, Wt = { class: "flex flex-col gap-16" }, Yt = { class: "flex gap-8 ml-auto" }, lo = /* @__PURE__ */ ne({
|
|
789
789
|
__name: "ClosingHistoryView",
|
|
790
790
|
setup(ae) {
|
|
791
791
|
var e, d;
|
|
@@ -831,12 +831,12 @@ const we = { class: "fm-typo-en-heading-lg-600" }, Se = { class: "flex flex-col
|
|
|
831
831
|
prependIcon: "refresh"
|
|
832
832
|
}
|
|
833
833
|
), s;
|
|
834
|
-
}),
|
|
834
|
+
}), Y = g(), G = g();
|
|
835
835
|
function K(s) {
|
|
836
836
|
var u, I;
|
|
837
837
|
switch (s) {
|
|
838
838
|
case "recalculation":
|
|
839
|
-
return V.value === "closings" ? (u =
|
|
839
|
+
return V.value === "closings" ? (u = Y.value) == null ? void 0 : u.open() : (I = G.value) == null ? void 0 : I.open();
|
|
840
840
|
case "initiateOpening": {
|
|
841
841
|
L.open({
|
|
842
842
|
title: "Initiate Opening Balance",
|
|
@@ -872,7 +872,7 @@ const we = { class: "fm-typo-en-heading-lg-600" }, Se = { class: "flex flex-col
|
|
|
872
872
|
}
|
|
873
873
|
}
|
|
874
874
|
}
|
|
875
|
-
const E = g(!1), N = g(!1),
|
|
875
|
+
const E = g(!1), N = g(!1), J = (/* @__PURE__ */ new Date()).toISOString().split("T")[0];
|
|
876
876
|
async function Q() {
|
|
877
877
|
N.value = !0;
|
|
878
878
|
try {
|
|
@@ -1032,13 +1032,13 @@ const we = { class: "fm-typo-en-heading-lg-600" }, Se = { class: "flex flex-col
|
|
|
1032
1032
|
_(et, {
|
|
1033
1033
|
"show-button": !1,
|
|
1034
1034
|
ref_key: "recalculationDialogRef",
|
|
1035
|
-
ref:
|
|
1035
|
+
ref: Y,
|
|
1036
1036
|
onSubmitted: u[3] || (u[3] = (R) => H())
|
|
1037
1037
|
}, null, 512),
|
|
1038
1038
|
_(It, {
|
|
1039
1039
|
"show-button": !1,
|
|
1040
1040
|
ref_key: "snapshotRecalculationDialogRef",
|
|
1041
|
-
ref:
|
|
1041
|
+
ref: G,
|
|
1042
1042
|
onSubmitted: u[4] || (u[4] = (R) => j())
|
|
1043
1043
|
}, null, 512),
|
|
1044
1044
|
_(jt, {
|
|
@@ -1064,12 +1064,12 @@ const we = { class: "fm-typo-en-heading-lg-600" }, Se = { class: "flex flex-col
|
|
|
1064
1064
|
modelValue: x.value,
|
|
1065
1065
|
"onUpdate:modelValue": u[6] || (u[6] = (R) => x.value = R),
|
|
1066
1066
|
label: "Snapshot Date",
|
|
1067
|
-
max: i(
|
|
1067
|
+
max: i(J)
|
|
1068
1068
|
}, null, 8, ["modelValue", "max"])
|
|
1069
1069
|
])
|
|
1070
1070
|
]),
|
|
1071
1071
|
"dialog-footer": T(() => [
|
|
1072
|
-
o("div",
|
|
1072
|
+
o("div", Yt, [
|
|
1073
1073
|
_(c, {
|
|
1074
1074
|
variant: "tertiary",
|
|
1075
1075
|
onClick: u[7] || (u[7] = (R) => E.value = !1),
|
|
@@ -4,24 +4,24 @@ import { useI18n as W, useCoreStore as de } from "@feedmepos/mf-common";
|
|
|
4
4
|
import { useDialog as pe, useDialogChild as Ze, useSnackbar as ce, FmButtonVariant as oe, components as Y, FmAdvancedSort as et, useProxiedModel as tt, useBreakpoints as nt } from "@feedmepos/ui-library";
|
|
5
5
|
import { defineStore as Ve, storeToRefs as Ne } from "pinia";
|
|
6
6
|
import { F as G } from "./form-mode.enum-BKiNVH6A.js";
|
|
7
|
-
import { a as me } from "./closing-template-
|
|
8
|
-
import { u as fe, c as Ue, a as ve,
|
|
9
|
-
import { t as re, a as ge, d as ye, s as Le, r as st } from "./xlsx.util-
|
|
7
|
+
import { a as me } from "./closing-template-9vhx5Ji1.js";
|
|
8
|
+
import { u as fe, c as Ue, a as ve, l as ot } from "./app-B_zMegJc.js";
|
|
9
|
+
import { t as re, a as ge, d as ye, s as Le, r as st } from "./xlsx.util-D6nPboPW.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-BMCS_Dsc.js";
|
|
12
12
|
import { D as se, R as z } from "./row-action.enum-Co_O4qD9.js";
|
|
13
13
|
import { c as at } from "./component-kqxARxvM.js";
|
|
14
|
-
import { f as rt } from "./format-time-from-id-
|
|
15
|
-
import { _ as it } from "./TemplatePublishDialog.vue_vue_type_script_setup_true_lang-
|
|
16
|
-
import { u as ct } from "./netsuite-
|
|
17
|
-
import { u as mt } from "./duplicate-template-
|
|
18
|
-
import { _ as ut } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-
|
|
19
|
-
import { R as dt, A as pt } from "./rules-
|
|
20
|
-
import { u as ft } from "./use-ingredient-select-dialog-
|
|
21
|
-
import { d as vt } from "./defineDeepModel-
|
|
14
|
+
import { f as rt } from "./format-time-from-id-CqX_KaUG.js";
|
|
15
|
+
import { _ as it } from "./TemplatePublishDialog.vue_vue_type_script_setup_true_lang-CC7F5HVc.js";
|
|
16
|
+
import { u as ct } from "./netsuite-Du7-sXJt.js";
|
|
17
|
+
import { u as mt } from "./duplicate-template-Cnhu8Rxw.js";
|
|
18
|
+
import { _ as ut } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CK1ha_AY.js";
|
|
19
|
+
import { R as dt, A as pt } from "./rules-DefSKiUN.js";
|
|
20
|
+
import { u as ft } from "./use-ingredient-select-dialog-B-jxV-79.js";
|
|
21
|
+
import { d as vt } from "./defineDeepModel-BvLlwxnd.js";
|
|
22
22
|
import { F as X, _ as ze } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-Ca_eYa8-.js";
|
|
23
|
-
import { u as gt } from "./use-template-enabled-locations-
|
|
24
|
-
import { _ as yt } from "./SystemTrailDialog.vue_vue_type_script_setup_true_lang-
|
|
23
|
+
import { u as gt } from "./use-template-enabled-locations-vFvaCjlH.js";
|
|
24
|
+
import { _ as yt } from "./SystemTrailDialog.vue_vue_type_script_setup_true_lang-CZ3Q3BAf.js";
|
|
25
25
|
import { _ as ht } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
26
26
|
const ue = Ve(
|
|
27
27
|
"closingTemplateTable",
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { defineComponent as p, computed as f, watchEffect as d, resolveComponent as n, openBlock as _, createElementBlock as v, createVNode as o, createElementVNode as c } from "vue";
|
|
2
|
+
import { useRouter as g } from "vue-router";
|
|
3
|
+
import { useCoreStore as x } from "@feedmepos/mf-common";
|
|
4
|
+
import { u as S } from "./useNavigationMenu-BiLWMIip.js";
|
|
5
|
+
import { u as y } from "./feature-Do41WWzx.js";
|
|
6
|
+
const C = { class: "flex flex-col items-center w-full h-full gap-24" }, V = /* @__PURE__ */ p({
|
|
7
|
+
__name: "DefaultView",
|
|
8
|
+
setup(F) {
|
|
9
|
+
const t = x(), a = y(), u = g(), { firstAccessibleRouteName: l } = S(), m = f(
|
|
10
|
+
() => !!t.sessionUser.value && !!t.currentBusiness.value && a.isLoaded
|
|
11
|
+
);
|
|
12
|
+
return d(() => {
|
|
13
|
+
if (!m.value) return;
|
|
14
|
+
const e = l.value;
|
|
15
|
+
e && u.replace({ name: e });
|
|
16
|
+
}), (e, r) => {
|
|
17
|
+
const s = n("FmSpacer"), i = n("FmCircularProgress");
|
|
18
|
+
return _(), v("div", C, [
|
|
19
|
+
o(s),
|
|
20
|
+
c("div", null, [
|
|
21
|
+
o(i, { size: "xl" })
|
|
22
|
+
]),
|
|
23
|
+
r[0] || (r[0] = c("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary pl-8" }, "Loading page...", -1)),
|
|
24
|
+
o(s)
|
|
25
|
+
]);
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
});
|
|
29
|
+
export {
|
|
30
|
+
V as default
|
|
31
|
+
};
|
package/dist/{DeliveryOrderPrintPreview-HzspgQXj.js → DeliveryOrderPrintPreview-BMK4kBCQ.js}
RENAMED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { defineComponent as x, computed as g, ref as h, onMounted as _, openBlock as i, createElementBlock as u, createElementVNode as t, createTextVNode as n, toDisplayString as l, createCommentVNode as d, Fragment as o, renderList as p, normalizeClass as c } from "vue";
|
|
2
2
|
import { useRoute as w } from "vue-router";
|
|
3
|
-
import {
|
|
4
|
-
import { L as k } from "./lz-string-
|
|
5
|
-
import { _ as
|
|
6
|
-
const
|
|
3
|
+
import { P as b } from "./app-B_zMegJc.js";
|
|
4
|
+
import { L as k } from "./lz-string-0CgVsQoC.js";
|
|
5
|
+
import { _ as P } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
6
|
+
const N = { class: "purchase-box" }, A = { valign: "bottom" }, E = { class: "sub-header" }, C = ["src"], D = { style: { "padding-left": "10px" } }, O = { class: "address" }, R = { class: "text-right" }, S = {
|
|
7
7
|
key: 0,
|
|
8
8
|
class: "subtitle"
|
|
9
|
-
}, F = { class: "sub-header" }, T = { class: "caption" }, I = { class: "address" }, q = { class: "text-right" }, L = { class: "sub-header" }, U = { class: "address" },
|
|
9
|
+
}, F = { class: "sub-header" }, T = { class: "caption" }, I = { class: "address" }, q = { class: "text-right" }, L = { class: "sub-header" }, U = { class: "address" }, B = { class: "purchase-body" }, H = { class: "text-left" }, M = { class: "text-left" }, V = { class: "text-left" }, J = { class: "text-left" }, j = { class: "text-left" }, z = { class: "text-right" }, G = { key: 0 }, Q = {
|
|
10
10
|
key: 1,
|
|
11
11
|
style: { "padding-top": "30px" }
|
|
12
12
|
}, Z = { valign: "bottom" }, K = { class: "header" }, W = { class: "caption" }, X = {
|
|
@@ -40,7 +40,7 @@ const P = { class: "purchase-box" }, A = { valign: "bottom" }, E = { class: "sub
|
|
|
40
40
|
const s = h(JSON.parse(m));
|
|
41
41
|
return _(async () => {
|
|
42
42
|
setTimeout(() => window.print(), 500);
|
|
43
|
-
}), (rt, e) => (i(), u("div",
|
|
43
|
+
}), (rt, e) => (i(), u("div", N, [
|
|
44
44
|
t("table", null, [
|
|
45
45
|
t("tr", A, [
|
|
46
46
|
t("td", null, [
|
|
@@ -114,7 +114,7 @@ const P = { class: "purchase-box" }, A = { valign: "bottom" }, E = { class: "sub
|
|
|
114
114
|
])
|
|
115
115
|
])
|
|
116
116
|
]),
|
|
117
|
-
t("div",
|
|
117
|
+
t("div", B, [
|
|
118
118
|
t("table", null, [
|
|
119
119
|
e[19] || (e[19] = t("thead", { class: "item-header" }, [
|
|
120
120
|
t("tr", null, [
|
|
@@ -134,9 +134,9 @@ const P = { class: "purchase-box" }, A = { valign: "bottom" }, E = { class: "sub
|
|
|
134
134
|
], -1)),
|
|
135
135
|
t("tbody", null, [
|
|
136
136
|
t("tr", null, [
|
|
137
|
-
t("td",
|
|
138
|
-
t("td",
|
|
139
|
-
t("td",
|
|
137
|
+
t("td", H, l(s.value.orderNumber), 1),
|
|
138
|
+
t("td", M, l(s.value.ref), 1),
|
|
139
|
+
t("td", V, l(s.value.supplier.phoneNumber), 1)
|
|
140
140
|
])
|
|
141
141
|
])
|
|
142
142
|
]),
|
|
@@ -208,7 +208,7 @@ const P = { class: "purchase-box" }, A = { valign: "bottom" }, E = { class: "sub
|
|
|
208
208
|
])) : d("", !0)
|
|
209
209
|
]));
|
|
210
210
|
}
|
|
211
|
-
}), at = /* @__PURE__ */
|
|
211
|
+
}), at = /* @__PURE__ */ P(et, [["__scopeId", "data-v-516391ec"]]);
|
|
212
212
|
export {
|
|
213
213
|
at as default
|
|
214
214
|
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { u as B,
|
|
2
|
-
import { u as z } from "./supplier-
|
|
3
|
-
import { computed as u, defineComponent as A, mergeModels as
|
|
4
|
-
import { F as
|
|
1
|
+
import { u as B, r as h, Q as E, V as R, z as w } from "./app-B_zMegJc.js";
|
|
2
|
+
import { u as z } from "./supplier-CU3iqdGr.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 Q, renderList as W, unref as N } from "vue";
|
|
4
|
+
import { F as Y } from "./FmMultiselectDialog-_gUuhudi.js";
|
|
5
5
|
function _(o) {
|
|
6
6
|
const c = R.safeParse(o);
|
|
7
7
|
if (c.success) return c.data;
|
|
8
8
|
throw new Error("Invalid supplier data");
|
|
9
9
|
}
|
|
10
|
-
function
|
|
10
|
+
function S(o) {
|
|
11
11
|
return {
|
|
12
12
|
_id: o.doc._id,
|
|
13
13
|
internal: o.type,
|
|
@@ -36,7 +36,7 @@ function G(o, c, p = !1, f = !1) {
|
|
|
36
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
37
|
c({
|
|
38
38
|
...s,
|
|
39
|
-
supplier: e ? _(e) : t ?
|
|
39
|
+
supplier: e ? _(e) : t ? S(t) : s.supplier
|
|
40
40
|
});
|
|
41
41
|
});
|
|
42
42
|
const d = u(
|
|
@@ -64,7 +64,7 @@ function G(o, c, p = !1, f = !1) {
|
|
|
64
64
|
) : n.allLocations).find((a) => a.doc._id === s);
|
|
65
65
|
c({
|
|
66
66
|
...e,
|
|
67
|
-
supplier: m ?
|
|
67
|
+
supplier: m ? S(m) : e.supplier
|
|
68
68
|
});
|
|
69
69
|
}
|
|
70
70
|
}), b = u(() => r.locationSuppliers.map(_)), L = u(() => r.businessSuppliers.map(_)), F = u(() => {
|
|
@@ -75,8 +75,8 @@ function G(o, c, p = !1, f = !1) {
|
|
|
75
75
|
const s = ((i = n._currentLocation) == null ? void 0 : i.type) === E.warehouse;
|
|
76
76
|
return (p ? n.allLocations.filter(
|
|
77
77
|
(t) => t.doc._id !== n.currentLocation.doc._id
|
|
78
|
-
) : n.allLocations).filter((t) => s || t.acceptRequest).map(
|
|
79
|
-
}),
|
|
78
|
+
) : n.allLocations).filter((t) => s || t.acceptRequest).map(S);
|
|
79
|
+
}), V = u(() => {
|
|
80
80
|
if (d.value === h.enum.purchase) {
|
|
81
81
|
const e = b.value.map((t) => ({
|
|
82
82
|
label: t.name,
|
|
@@ -101,20 +101,20 @@ function G(o, c, p = !1, f = !1) {
|
|
|
101
101
|
return a ? _(a) : null;
|
|
102
102
|
}
|
|
103
103
|
const i = n.allLocations.find((a) => a.doc._id);
|
|
104
|
-
return i ?
|
|
104
|
+
return i ? S(i) : null;
|
|
105
105
|
});
|
|
106
106
|
return {
|
|
107
107
|
transferLocationModel: v,
|
|
108
|
-
transferLocationOptions:
|
|
108
|
+
transferLocationOptions: V,
|
|
109
109
|
locationOptionsTypePurchase: F,
|
|
110
110
|
locationOptionsTypePurchaseLocationLevel: b,
|
|
111
111
|
locationOptionsTypeTransfer: l,
|
|
112
112
|
selectedLocation: T
|
|
113
113
|
};
|
|
114
114
|
}
|
|
115
|
-
const
|
|
115
|
+
const j = { class: "overflow-y-auto h-full pb-8" }, ee = /* @__PURE__ */ A({
|
|
116
116
|
__name: "FmFilterableMenuOptions",
|
|
117
|
-
props: /* @__PURE__ */
|
|
117
|
+
props: /* @__PURE__ */ q({
|
|
118
118
|
modelValue: {},
|
|
119
119
|
maxHeight: {},
|
|
120
120
|
width: {},
|
|
@@ -127,8 +127,8 @@ const J = { class: "overflow-y-auto h-full pb-8" }, ee = /* @__PURE__ */ A({
|
|
|
127
127
|
}),
|
|
128
128
|
emits: ["update:search"],
|
|
129
129
|
setup(o) {
|
|
130
|
-
const c = o, p =
|
|
131
|
-
() => new
|
|
130
|
+
const c = o, p = D(o, "search"), f = u(
|
|
131
|
+
() => new Y(c.items, ["label", "sublabel"], {
|
|
132
132
|
caseSensitive: !1,
|
|
133
133
|
sort: !0
|
|
134
134
|
})
|
|
@@ -144,12 +144,12 @@ const J = { class: "overflow-y-auto h-full pb-8" }, ee = /* @__PURE__ */ A({
|
|
|
144
144
|
ref_key: "stickyRef",
|
|
145
145
|
ref: n
|
|
146
146
|
}, [
|
|
147
|
-
|
|
147
|
+
$(L, {
|
|
148
148
|
modelValue: p.value,
|
|
149
149
|
"onUpdate:modelValue": v[1] || (v[1] = (l) => p.value = l),
|
|
150
150
|
placeholder: "Filter options"
|
|
151
151
|
}, {
|
|
152
|
-
append:
|
|
152
|
+
append: x(() => [
|
|
153
153
|
p.value ? (y(), I(b, {
|
|
154
154
|
key: 0,
|
|
155
155
|
variant: "tertiary",
|
|
@@ -160,16 +160,16 @@ const J = { class: "overflow-y-auto h-full pb-8" }, ee = /* @__PURE__ */ A({
|
|
|
160
160
|
_: 1
|
|
161
161
|
}, 8, ["modelValue"])
|
|
162
162
|
], 512),
|
|
163
|
-
M("div",
|
|
164
|
-
(y(!0), O(
|
|
165
|
-
key:
|
|
163
|
+
M("div", j, [
|
|
164
|
+
(y(!0), O(Q, null, W(r.value, (l, V) => (y(), I(F, {
|
|
165
|
+
key: V,
|
|
166
166
|
label: l.label,
|
|
167
167
|
sublabel: l.sublabel,
|
|
168
|
-
"model-value": N(
|
|
169
|
-
onClick: () => d.handleItemChange(N(
|
|
168
|
+
"model-value": N(w)(d.modelValue, l.value),
|
|
169
|
+
onClick: () => d.handleItemChange(N(w)(d.modelValue, l.value), l),
|
|
170
170
|
onVnodeMounted: (T) => {
|
|
171
171
|
var s, e;
|
|
172
|
-
return N(
|
|
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
173
|
}
|
|
174
174
|
}, null, 8, ["label", "sublabel", "model-value", "onClick", "onVnodeMounted"]))), 128)),
|
|
175
175
|
r.value.length ? C("", !0) : (y(), I(F, {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as S, computed as w, ref as P, resolveComponent as h, openBlock as n, createElementBlock as p, createVNode as x, withCtx as $, createElementVNode as b, Fragment as V, createTextVNode as R, toDisplayString as D, unref as r, createBlock as v, createCommentVNode as k, renderList as N, watch as O, mergeModels as H, useModel as I, renderSlot as W, normalizeClass as A } from "vue";
|
|
2
2
|
import { useCoreStore as q, useI18n as Q } from "@feedmepos/mf-common";
|
|
3
|
-
import { u as G } from "./app-
|
|
4
|
-
import { b as T } from "./date2-
|
|
3
|
+
import { u as G } from "./app-B_zMegJc.js";
|
|
4
|
+
import { b as T } from "./date2-BMCS_Dsc.js";
|
|
5
5
|
import { useBreakpoints as J } from "@feedmepos/ui-library";
|
|
6
6
|
import { u as K } from "./SingleColumnLayout.vue_vue_type_script_setup_true_lang-sUxHOj47.js";
|
|
7
7
|
import { D as z } from "./app-DiX-EfV6.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineStore as p } from "pinia";
|
|
2
2
|
import { useDialog as y } from "@feedmepos/ui-library";
|
|
3
3
|
import { useI18n as v } from "@feedmepos/mf-common";
|
|
4
|
-
import { a } from "./FmMultiselectDialog-
|
|
4
|
+
import { a } from "./FmMultiselectDialog-_gUuhudi.js";
|
|
5
5
|
import { h as S } from "vue";
|
|
6
6
|
const w = p("inventoryMultiSelectDialog", () => {
|
|
7
7
|
const l = y(), { t: n } = v();
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
var He = Object.defineProperty;
|
|
2
2
|
var Pe = (F, i, l) => i in F ? He(F, i, { enumerable: !0, configurable: !0, writable: !0, value: l }) : F[i] = l;
|
|
3
3
|
var ve = (F, i, l) => Pe(F, typeof i != "symbol" ? i + "" : i, l);
|
|
4
|
-
import { defineComponent as be, computed as x, ref as $, watch as ge, openBlock as d, createElementBlock as f, normalizeStyle as
|
|
5
|
-
import { useDialogChild as
|
|
6
|
-
import {
|
|
7
|
-
import { d as Je } from "./index-
|
|
4
|
+
import { defineComponent as be, computed as x, ref as $, watch as ge, openBlock as d, createElementBlock as f, normalizeStyle as z, Fragment as V, renderList as O, renderSlot as ke, createCommentVNode as D, useSlots as Oe, onMounted as Ue, onUnmounted as Ee, reactive as ee, resolveComponent as T, createElementVNode as B, createVNode as k, createTextVNode as Ke, toDisplayString as P, unref as L, createSlots as je, withCtx as w, createBlock as I, resolveDynamicComponent as pe, normalizeClass as fe, withModifiers as Ne, Transition as ze } from "vue";
|
|
5
|
+
import { useDialogChild as Ge } from "@feedmepos/ui-library";
|
|
6
|
+
import { z as he } from "./app-B_zMegJc.js";
|
|
7
|
+
import { d as Je } from "./index-Cg3aLEhT.js";
|
|
8
8
|
/* empty css */
|
|
9
9
|
import { useI18n as Re } from "@feedmepos/mf-common";
|
|
10
10
|
import { P as We, J as ye, D as Qe } from "./app-DiX-EfV6.js";
|
|
@@ -40,13 +40,13 @@ const Ye = /* @__PURE__ */ be({
|
|
|
40
40
|
}
|
|
41
41
|
return (S, p) => (d(), f("div", {
|
|
42
42
|
class: "relative",
|
|
43
|
-
style:
|
|
43
|
+
style: z({ minHeight: a.value })
|
|
44
44
|
}, [
|
|
45
45
|
(d(!0), f(V, null, O(m.value, (C) => (d(), f(V, { key: C }, [
|
|
46
46
|
C >= 0 && C < S.length ? (d(), f("div", {
|
|
47
47
|
key: 0,
|
|
48
48
|
class: "absolute w-full left-0 bg-white",
|
|
49
|
-
style:
|
|
49
|
+
style: z({
|
|
50
50
|
top: `${S.itemHeight * C}px`,
|
|
51
51
|
height: `${S.itemHeight}px`,
|
|
52
52
|
transition: "opacity 0.5s ease"
|
|
@@ -198,7 +198,7 @@ const qe = { class: "sticky top-0 bg-white z-50" }, et = {
|
|
|
198
198
|
emits: ["update:modelValue", "close"],
|
|
199
199
|
setup(F, { emit: i }) {
|
|
200
200
|
var oe, ie, re;
|
|
201
|
-
const { t: l } = Re(), u =
|
|
201
|
+
const { t: l } = Re(), u = Ge(), a = F, v = Oe(), m = x(() => {
|
|
202
202
|
var t;
|
|
203
203
|
const e = (t = v.appendList) == null ? void 0 : t.call(v);
|
|
204
204
|
return Array.isArray(e) ? e : e ? [e] : [];
|
|
@@ -256,10 +256,10 @@ const qe = { class: "sticky top-0 bg-white z-50" }, et = {
|
|
|
256
256
|
a.items,
|
|
257
257
|
(e) => [e.label ?? "", e.sublabel ?? "", ...e.searchKeys ?? []].filter((t) => t)
|
|
258
258
|
)
|
|
259
|
-
), E = $(""),
|
|
259
|
+
), E = $(""), G = $(null), b = x(() => {
|
|
260
260
|
let e = xe.value.search(E.value);
|
|
261
|
-
if (
|
|
262
|
-
const t = We.build(
|
|
261
|
+
if (G.value && a.filterAttributes) {
|
|
262
|
+
const t = We.build(G.value);
|
|
263
263
|
e = a.attributeKey ? e.filter((n) => ye(n[a.attributeKey] ?? {}, t)) : e.filter((n) => ye(n, t));
|
|
264
264
|
}
|
|
265
265
|
return e;
|
|
@@ -401,8 +401,8 @@ const qe = { class: "sticky top-0 bg-white z-50" }, et = {
|
|
|
401
401
|
]),
|
|
402
402
|
e.filterAttributes && e.filterAttributes.length > 0 ? (d(), f("div", nt, [
|
|
403
403
|
k(L(Qe), {
|
|
404
|
-
modelValue:
|
|
405
|
-
"onUpdate:modelValue": t[2] || (t[2] = (s) =>
|
|
404
|
+
modelValue: G.value,
|
|
405
|
+
"onUpdate:modelValue": t[2] || (t[2] = (s) => G.value = s),
|
|
406
406
|
attributes: e.filterAttributes
|
|
407
407
|
}, null, 8, ["modelValue", "attributes"])
|
|
408
408
|
])) : D("", !0),
|
|
@@ -513,7 +513,7 @@ const qe = { class: "sticky top-0 bg-white z-50" }, et = {
|
|
|
513
513
|
!g(s(b.value).value)
|
|
514
514
|
),
|
|
515
515
|
disabled: (me = (j = Fe.value[p(s(b.value).value)]) == null ? void 0 : j[0]) == null ? void 0 : me.disabled,
|
|
516
|
-
style:
|
|
516
|
+
style: z({
|
|
517
517
|
paddingTop: 4,
|
|
518
518
|
paddingBottom: 4,
|
|
519
519
|
paddingLeft: e.singleSelect === !0 ? 12 : 32
|
|
@@ -560,7 +560,7 @@ const qe = { class: "sticky top-0 bg-white z-50" }, et = {
|
|
|
560
560
|
sublabel: s.sublabel,
|
|
561
561
|
onClick: (y) => H(s.value, !g(s.value)),
|
|
562
562
|
disabled: s.disabled,
|
|
563
|
-
style:
|
|
563
|
+
style: z({
|
|
564
564
|
paddingTop: 4,
|
|
565
565
|
paddingBottom: 4,
|
|
566
566
|
paddingLeft: e.singleSelect === !0 ? 12 : 32
|
|
@@ -588,9 +588,9 @@ const qe = { class: "sticky top-0 bg-white z-50" }, et = {
|
|
|
588
588
|
]),
|
|
589
589
|
B("div", {
|
|
590
590
|
class: "sticky bottom-24",
|
|
591
|
-
style:
|
|
591
|
+
style: z({ transform: `translateX(${(((ce = R.value) == null ? void 0 : ce.clientWidth) ?? 0) - 80}px)` })
|
|
592
592
|
}, [
|
|
593
|
-
k(
|
|
593
|
+
k(ze, { name: "fade" }, {
|
|
594
594
|
default: w(() => [
|
|
595
595
|
Me.value ? (d(), I(ue, {
|
|
596
596
|
key: 0,
|