@feedmepos/mf-inventory-portal 0.0.19-dev.2 → 0.0.19-dev.4
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/{ApprovalView-DU7oB2Zk.js → ApprovalView-CT8w22Ga.js} +16 -17
- package/dist/{BindingsDialog-BgfV0G46.js → BindingsDialog-CrB5aA3X.js} +5 -6
- package/dist/{BindingsPicker-tUI5WYBk.js → BindingsPicker-jBTfZ4vJ.js} +6 -7
- package/dist/{BindingsTable-8G-Nc4pC.js → BindingsTable-DaZ3Vxpn.js} +14 -17
- package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-DaHXKF1s.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-BWFoHqPU.js} +16 -17
- package/dist/IngredientsView-DOoXPJop.js +1750 -0
- package/dist/IntegrationView-BX1nvP-k.js +1172 -0
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BKlWhMnB.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CFConGe4.js} +1 -1
- package/dist/{PurchaseOrderPrintPreview-YFcOtdfJ.js → PurchaseOrderPrintPreview-DSXXSlof.js} +13 -13
- package/dist/{ReceiveRequestView-bIXyVVX9.js → ReceiveRequestView-5nXXoRL_.js} +165 -172
- package/dist/RecipeView-DtoX2e_9.js +572 -0
- package/dist/StockView-DTnY8LfO.js +1876 -0
- package/dist/{SupplierView-BiSqTXnz.js → SupplierView-CzWM2tH4.js} +34 -37
- package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-CvbKNb0C.js → TransferDetails.vue_vue_type_script_setup_true_lang-DIc2G2jF.js} +34 -36
- package/dist/UnitView-Bk-OLoW2.js +638 -0
- package/dist/{WarehouseView-B8UxxAL6.js → WarehouseView-C3F_YWO-.js} +49 -50
- package/dist/app-YOcJA0qj.js +66729 -0
- package/dist/app.d.ts +30 -0
- package/dist/app.js +5 -3
- package/dist/{decimal-BtIn4K57.js → decimal-Cr-8e35u.js} +1 -1
- package/dist/{stock-estimate-C4PL0Fcz.js → id-to-date-9OvJMyEX.js} +12 -13
- package/dist/{layout-ITqYtCVu.js → layout-DCDPTIlR.js} +14 -14
- package/dist/router/name.d.ts +1 -2
- package/dist/{supplier-CA0OR3DU.js → supplier-Bos9ifGc.js} +3 -3
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/views/ingredients/composables/use-ingredient-form.d.ts +14 -2
- package/dist/views/ingredients/composables/use-ingredient-table.d.ts +1 -2
- package/dist/views/receive-request/composables/use-receive-request-table.d.ts +12 -12
- package/dist/views/recipe/composables/use-recipe-form.d.ts +14 -2
- package/dist/views/recipe/composables/use-recipe-table.d.ts +1 -2
- package/dist/views/stock/composables/use-stock-action.d.ts +26 -0
- package/dist/views/stock/composables/use-stock-table.d.ts +1 -8
- package/dist/views/unit/composables/use-unit-form.d.ts +14 -2
- package/dist/views/unit/composables/use-unit-table.d.ts +1 -2
- package/dist/{xlsx-DAVatAlv.js → xlsx-CUjMCYbh.js} +660 -660
- package/dist/{xlsx.util-BsZI2tNE.js → xlsx.util-ByRzckFP.js} +2 -2
- package/package.json +2 -2
- package/dist/FmMultiselectDialog.vue_vue_type_script_setup_true_lang-CxOk5ule.js +0 -143
- package/dist/FmUnitInput.vue_vue_type_script_setup_true_lang-D-vJDMKb.js +0 -236
- package/dist/IngredientsView-CAh7D4tL.js +0 -1760
- package/dist/IntegrationView-Bf7yHuS8.js +0 -1166
- package/dist/InventoryBindingForm.vue_vue_type_script_setup_true_lang-BdVrpR9J.js +0 -277
- package/dist/RecipeView-BD0mvxCg.js +0 -575
- package/dist/StockView-BCq37bGl.js +0 -1865
- package/dist/UnitView-DSdn__9m.js +0 -643
- package/dist/app-RVyC2D4O.js +0 -43892
- package/dist/date2-C2PfOqbB.js +0 -95
- package/dist/dayjs.min-0pzT_dbr.js +0 -282
- package/dist/fuzzy-yzIM5KUK.js +0 -41
- package/dist/index-l87_vggM.js +0 -21515
- package/dist/number-B5d98l0m.js +0 -97
- package/dist/rules-CCwuHe8Y.js +0 -85
- package/dist/use-inventory-binding-dialog-CTriImiV.js +0 -93
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
import { defineComponent as B, ref as h, watch as I, computed as ee, resolveComponent as te, openBlock as D, createBlock as H, unref as e, withCtx as g, createElementVNode as s, createVNode as n, normalizeStyle as ae, toDisplayString as oe, createElementBlock as re, createCommentVNode as ne, Teleport as se, mergeProps as le } from "vue";
|
|
2
|
-
import {
|
|
3
|
-
import { b as ce, _ as pe, a as ue } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-
|
|
4
|
-
import { a as me, b as de, _ as fe } from "./TransferDetails.vue_vue_type_script_setup_true_lang-
|
|
5
|
-
import {
|
|
6
|
-
import { _ as _e, F as _, u as ve } from "./layout-ITqYtCVu.js";
|
|
2
|
+
import { a5 as f, O as U, j as ie } from "./app-YOcJA0qj.js";
|
|
3
|
+
import { b as ce, _ as pe, a as ue } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-BWFoHqPU.js";
|
|
4
|
+
import { a as me, b as de, _ as fe } from "./TransferDetails.vue_vue_type_script_setup_true_lang-DIc2G2jF.js";
|
|
5
|
+
import { _ as _e, F as _, u as ve } from "./layout-DCDPTIlR.js";
|
|
7
6
|
import { useBreakpoints as he } from "@feedmepos/ui-library";
|
|
8
7
|
import { useI18n as De } from "@feedmepos/mf-common";
|
|
9
|
-
const ge = { class: "px-24 xs:p-0 sm:p-0 flex flex-col gap-8 max-h-full" }, be = { class: "flex flex-col py-8" }, xe = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ye = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary line-clamp-1" }, we = { class: "fm-typo-en-body-md-400 text-fm-color-typo-primary line-clamp-1" },
|
|
8
|
+
const ge = { class: "px-24 xs:p-0 sm:p-0 flex flex-col gap-8 max-h-full" }, be = { class: "flex flex-col py-8" }, xe = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ye = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary line-clamp-1" }, we = { class: "fm-typo-en-body-md-400 text-fm-color-typo-primary line-clamp-1" }, Oe = {
|
|
10
9
|
key: 0,
|
|
11
10
|
class: "fm-typo-en-body-md-400 text-fm-color-typo-primary line-clamp-1"
|
|
12
|
-
},
|
|
11
|
+
}, Re = { class: "pt-8" }, Ve = /* @__PURE__ */ B({
|
|
13
12
|
__name: "ApprovalView",
|
|
14
|
-
setup(
|
|
13
|
+
setup(ke) {
|
|
15
14
|
const o = me("approval"), { columnDefs: G } = de("approval", o), J = ie();
|
|
16
15
|
f.object({
|
|
17
16
|
name: f.string().optional().nullable(),
|
|
@@ -68,13 +67,13 @@ const ge = { class: "px-24 xs:p-0 sm:p-0 flex flex-col gap-8 max-h-full" }, be =
|
|
|
68
67
|
onRowClick: (t) => e(o).promptShowTransferDetails(t.purchaseOrder, t)
|
|
69
68
|
}, {
|
|
70
69
|
default: g((t) => {
|
|
71
|
-
var w,
|
|
70
|
+
var w, O, R, i, k, S, T, C, c, F, $, p, z, u, M, V, Y, j, q, m, L, N, E, P, d, A;
|
|
72
71
|
return [
|
|
73
72
|
s("div", be, [
|
|
74
73
|
s("div", xe, [
|
|
75
74
|
n(e(_), {
|
|
76
|
-
render: (
|
|
77
|
-
props: (
|
|
75
|
+
render: (R = (O = (w = t.purchaseOrder__id) == null ? void 0 : w.column) == null ? void 0 : O.columnDef) == null ? void 0 : R.cell,
|
|
76
|
+
props: (k = (i = t.purchaseOrder__id) == null ? void 0 : i.getContext) == null ? void 0 : k.call(i)
|
|
78
77
|
}, null, 8, ["render", "props"])
|
|
79
78
|
]),
|
|
80
79
|
s("div", ye, [
|
|
@@ -84,15 +83,15 @@ const ge = { class: "px-24 xs:p-0 sm:p-0 flex flex-col gap-8 max-h-full" }, be =
|
|
|
84
83
|
}, null, 8, ["render", "props"])
|
|
85
84
|
]),
|
|
86
85
|
s("div", we, oe((M = (u = (z = (p = ($ = r.original.purchaseOrder) == null ? void 0 : $.items) == null ? void 0 : p.map) == null ? void 0 : z.call(p, (Z) => `${Z.name}`)) == null ? void 0 : u.join) == null ? void 0 : M.call(u, ", ")), 1),
|
|
87
|
-
(V = r.original.purchaseOrder) != null && V.ref ? (D(), re("div",
|
|
86
|
+
(V = r.original.purchaseOrder) != null && V.ref ? (D(), re("div", Oe, [
|
|
88
87
|
n(e(_), {
|
|
89
|
-
render: (
|
|
90
|
-
props: (
|
|
88
|
+
render: (q = (j = (Y = t.purchaseOrder_ref) == null ? void 0 : Y.column) == null ? void 0 : j.columnDef) == null ? void 0 : q.cell,
|
|
89
|
+
props: (L = (m = t.purchaseOrder_ref) == null ? void 0 : m.getContext) == null ? void 0 : L.call(m)
|
|
91
90
|
}, null, 8, ["render", "props"])
|
|
92
91
|
])) : ne("", !0),
|
|
93
|
-
s("div",
|
|
92
|
+
s("div", Re, [
|
|
94
93
|
n(e(_), {
|
|
95
|
-
render: (P = (E = (
|
|
94
|
+
render: (P = (E = (N = t.purchaseOrder_status) == null ? void 0 : N.column) == null ? void 0 : E.columnDef) == null ? void 0 : P.cell,
|
|
96
95
|
props: (A = (d = t.purchaseOrder_status) == null ? void 0 : d.getContext) == null ? void 0 : A.call(d)
|
|
97
96
|
}, null, 8, ["render", "props"])
|
|
98
97
|
])
|
|
@@ -117,5 +116,5 @@ const ge = { class: "px-24 xs:p-0 sm:p-0 flex flex-col gap-8 max-h-full" }, be =
|
|
|
117
116
|
}
|
|
118
117
|
});
|
|
119
118
|
export {
|
|
120
|
-
|
|
119
|
+
Ve as default
|
|
121
120
|
};
|
|
@@ -1,16 +1,15 @@
|
|
|
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 {
|
|
3
|
-
import { u as L, A as S } from "./app-RVyC2D4O.js";
|
|
2
|
+
import { u as V, ae as L, _ as S } from "./app-YOcJA0qj.js";
|
|
4
3
|
const U = {
|
|
5
4
|
key: 0,
|
|
6
5
|
class: "flex justify-end gap-8 items-center"
|
|
7
6
|
}, E = {
|
|
8
7
|
key: 1,
|
|
9
8
|
class: "p-24 flex items-center justify-center gap-16"
|
|
10
|
-
}, N = /* @__PURE__ */ P("div", null, "Loading bindings dialog...", -1),
|
|
9
|
+
}, N = /* @__PURE__ */ P("div", null, "Loading bindings dialog...", -1), D = /* @__PURE__ */ C({
|
|
11
10
|
__name: "BindingsDialog",
|
|
12
11
|
setup(j) {
|
|
13
|
-
const p =
|
|
12
|
+
const p = V(), d = o(!0), s = o(new Array()), u = o(), n = L(y);
|
|
14
13
|
async function y() {
|
|
15
14
|
await p.readInventory(), u.value = n.onMessage("props:inventory-bindings", (e) => {
|
|
16
15
|
d.value = !1, s.value = e;
|
|
@@ -64,7 +63,7 @@ const U = {
|
|
|
64
63
|
class: "flex flex-col gap-16"
|
|
65
64
|
}, {
|
|
66
65
|
default: R(() => [
|
|
67
|
-
a(
|
|
66
|
+
a(S, {
|
|
68
67
|
"model-value": s.value,
|
|
69
68
|
"onUpdate:modelValue": t[0] || (t[0] = (w) => s.value = w),
|
|
70
69
|
"iframe-mode": "",
|
|
@@ -90,5 +89,5 @@ const U = {
|
|
|
90
89
|
}
|
|
91
90
|
});
|
|
92
91
|
export {
|
|
93
|
-
|
|
92
|
+
D as default
|
|
94
93
|
};
|
|
@@ -1,16 +1,15 @@
|
|
|
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 {
|
|
3
|
-
import { u as M, A as h } from "./app-RVyC2D4O.js";
|
|
2
|
+
import { u as x, ae as M, y as h } from "./app-YOcJA0qj.js";
|
|
4
3
|
const z = {
|
|
5
4
|
key: 0,
|
|
6
5
|
class: "flex flex-col gap-16"
|
|
7
6
|
}, K = { class: "flex justify-end gap-8 items-center" }, w = {
|
|
8
7
|
key: 1,
|
|
9
8
|
class: "p-24 flex items-center justify-center gap-16"
|
|
10
|
-
}, F = /* @__PURE__ */ k("div", null, "Loading bindings dialog...", -1),
|
|
9
|
+
}, F = /* @__PURE__ */ k("div", null, "Loading bindings dialog...", -1), A = /* @__PURE__ */ S({
|
|
11
10
|
__name: "BindingsPicker",
|
|
12
11
|
setup(L) {
|
|
13
|
-
const d =
|
|
12
|
+
const d = x(), C = r(() => d.recipes), I = r(() => d.skus), g = l(!0), i = l(new Array()), a = l("RECIPE"), c = r(() => a.value === "SKU" ? I.value.map((s) => ({
|
|
14
13
|
label: s.name,
|
|
15
14
|
sublabel: s.code,
|
|
16
15
|
value: s
|
|
@@ -63,7 +62,7 @@ const z = {
|
|
|
63
62
|
];
|
|
64
63
|
}
|
|
65
64
|
}
|
|
66
|
-
}), b = l(), o =
|
|
65
|
+
}), b = l(), o = M(B);
|
|
67
66
|
async function B() {
|
|
68
67
|
await d.readInventory(), b.value = o.onMessage(
|
|
69
68
|
"props:binding-items",
|
|
@@ -98,7 +97,7 @@ const z = {
|
|
|
98
97
|
u(t, { size: "md" }),
|
|
99
98
|
F
|
|
100
99
|
])) : (p(), f("div", z, [
|
|
101
|
-
u(
|
|
100
|
+
u(h, {
|
|
102
101
|
"model-value": _.value,
|
|
103
102
|
"onUpdate:modelValue": s[0] || (s[0] = (m) => _.value = m),
|
|
104
103
|
items: c.value
|
|
@@ -120,5 +119,5 @@ const z = {
|
|
|
120
119
|
}
|
|
121
120
|
});
|
|
122
121
|
export {
|
|
123
|
-
|
|
122
|
+
A as default
|
|
124
123
|
};
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
import { defineComponent as v, ref as l, provide as C, computed as f, resolveComponent as b, openBlock as p, createBlock as h, h as z, onMounted as B, onUnmounted as I, createElementBlock as y, createVNode as N, createElementVNode as x } from "vue";
|
|
2
|
-
import {
|
|
3
|
-
import "./index-l87_vggM.js";
|
|
2
|
+
import { q as _, u as E, ae as L } from "./app-YOcJA0qj.js";
|
|
4
3
|
import { components as F } from "@feedmepos/ui-library";
|
|
5
|
-
import "./fuzzy-yzIM5KUK.js";
|
|
6
|
-
import "./dayjs.min-0pzT_dbr.js";
|
|
7
4
|
import "@feedmepos/mf-common";
|
|
8
5
|
const P = /* @__PURE__ */ v({
|
|
9
6
|
__name: "binding-ui",
|
|
@@ -25,17 +22,17 @@ const P = /* @__PURE__ */ v({
|
|
|
25
22
|
C("closeDialog", () => {
|
|
26
23
|
d.value.isOpen = !d.value.isOpen;
|
|
27
24
|
});
|
|
28
|
-
const
|
|
25
|
+
const o = k, m = c, r = f(() => o.items.map((e) => ({
|
|
29
26
|
key: e.key,
|
|
30
27
|
name: e.name,
|
|
31
28
|
_skuLinked: e.bindings.filter(
|
|
32
|
-
({ type: n, id:
|
|
29
|
+
({ type: n, id: s }) => n === _.enum.SKU && o.skus.some((a) => a._id === s)
|
|
33
30
|
).length,
|
|
34
31
|
_recipeLinked: e.bindings.filter(
|
|
35
|
-
({ type: n, id:
|
|
32
|
+
({ type: n, id: s }) => n === _.enum.RECIPE && o.recipes.some((a) => a._id === s)
|
|
36
33
|
).length,
|
|
37
34
|
onUpdate: async () => {
|
|
38
|
-
|
|
35
|
+
o.editable && m("click:open-binding-dialog", o.type, e);
|
|
39
36
|
}
|
|
40
37
|
}))), g = [
|
|
41
38
|
{
|
|
@@ -48,7 +45,7 @@ const P = /* @__PURE__ */ v({
|
|
|
48
45
|
header: "Ingredient",
|
|
49
46
|
size: 200,
|
|
50
47
|
cell(i) {
|
|
51
|
-
const e = r.value.find((
|
|
48
|
+
const e = r.value.find((s) => s.key === i.row.original.key), n = e == null ? void 0 : e._skuLinked;
|
|
52
49
|
return n === 1 ? "1 item" : n ? `${n} items` : "Not set";
|
|
53
50
|
}
|
|
54
51
|
},
|
|
@@ -57,7 +54,7 @@ const P = /* @__PURE__ */ v({
|
|
|
57
54
|
header: "Recipe",
|
|
58
55
|
size: 200,
|
|
59
56
|
cell(i) {
|
|
60
|
-
const e = r.value.find((
|
|
57
|
+
const e = r.value.find((s) => s.key === i.row.original.key), n = e == null ? void 0 : e._recipeLinked;
|
|
61
58
|
return n === 1 ? "1 item" : n ? `${n} items` : "Not set";
|
|
62
59
|
}
|
|
63
60
|
},
|
|
@@ -93,19 +90,19 @@ const P = /* @__PURE__ */ v({
|
|
|
93
90
|
}), R = {
|
|
94
91
|
key: 1,
|
|
95
92
|
class: "p-24 flex items-center justify-center gap-16"
|
|
96
|
-
}, M = /* @__PURE__ */ x("div", null, "Loading bindings table...", -1),
|
|
93
|
+
}, M = /* @__PURE__ */ x("div", null, "Loading bindings table...", -1), V = /* @__PURE__ */ v({
|
|
97
94
|
__name: "BindingsTable",
|
|
98
95
|
setup(k) {
|
|
99
|
-
const c = E(), d = l(!0),
|
|
96
|
+
const c = E(), d = l(!0), o = l(new Array()), m = f(() => c.recipes), r = f(() => c.skus), g = l(""), i = L(n), e = l();
|
|
100
97
|
async function n() {
|
|
101
98
|
await c.readInventory(), e.value = i.onMessage(
|
|
102
99
|
"props:grouped-bindings",
|
|
103
100
|
(t) => {
|
|
104
|
-
d.value = !1,
|
|
101
|
+
d.value = !1, o.value = t;
|
|
105
102
|
}
|
|
106
103
|
), i.sendMessage("props:grouped-bindings");
|
|
107
104
|
}
|
|
108
|
-
async function
|
|
105
|
+
async function s(t, u) {
|
|
109
106
|
i.sendMessage("@click:open-binding-dialog", {
|
|
110
107
|
key: t,
|
|
111
108
|
binding: u
|
|
@@ -132,17 +129,17 @@ const P = /* @__PURE__ */ v({
|
|
|
132
129
|
M
|
|
133
130
|
])) : (p(), h(P, {
|
|
134
131
|
key: 0,
|
|
135
|
-
items:
|
|
132
|
+
items: o.value,
|
|
136
133
|
recipes: m.value,
|
|
137
134
|
skus: r.value,
|
|
138
135
|
type: g.value,
|
|
139
136
|
editable: "",
|
|
140
|
-
"onClick:openBindingDialog":
|
|
137
|
+
"onClick:openBindingDialog": s
|
|
141
138
|
}, null, 8, ["items", "recipes", "skus", "type"]))
|
|
142
139
|
], 512);
|
|
143
140
|
};
|
|
144
141
|
}
|
|
145
142
|
});
|
|
146
143
|
export {
|
|
147
|
-
|
|
144
|
+
V as default
|
|
148
145
|
};
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { defineComponent as $, computed as g, resolveComponent as f, openBlock as t, createElementBlock as y, Fragment as k, createElementVNode as m, toDisplayString as R, renderList as F, createBlock as _, createCommentVNode as b, unref as d, createVNode as v, renderSlot as A, Teleport as H, ref as S, withCtx as C, watch as U, mergeModels as Y, useModel as B } from "vue";
|
|
2
|
-
import { FmButtonVariant as
|
|
2
|
+
import { FmButtonVariant as j, useBreakpoints as z } from "@feedmepos/ui-library";
|
|
3
3
|
import { useI18n as T } from "@feedmepos/mf-common";
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
const E = { class: "flex flex-col w-full bg-white h-full" }, q = { class: "flex items-center px-24 py-16 xs:p-12 sm:p-12 gap-4 h-[68px]" }, G = { class: "flex-1 fm-typo-en-title-md-800 flex items-center h-[36px] bg-white" }, J = { key: 0 }, K = { key: 1 }, O = { class: "bg-white flex-1" }, W = { class: "fixed bottom-96 right-16" }, he = /* @__PURE__ */ $({
|
|
4
|
+
import { j as Q, O as V } from "./app-YOcJA0qj.js";
|
|
5
|
+
const E = { class: "flex flex-col w-full bg-white h-full" }, O = { class: "flex items-center px-24 py-16 xs:p-12 sm:p-12 gap-4 h-[68px]" }, q = { class: "flex-1 fm-typo-en-title-md-800 flex items-center h-[36px] bg-white" }, G = { key: 0 }, J = { key: 1 }, K = { class: "bg-white flex-1" }, W = { class: "fixed bottom-96 right-16" }, _e = /* @__PURE__ */ $({
|
|
7
6
|
__name: "SingleColumnLayout",
|
|
8
7
|
props: {
|
|
9
8
|
actions: { default: () => [] },
|
|
@@ -16,15 +15,15 @@ const E = { class: "flex flex-col w-full bg-white h-full" }, q = { class: "flex
|
|
|
16
15
|
emits: ["click:action"],
|
|
17
16
|
setup(i, { emit: o }) {
|
|
18
17
|
const l = i, a = o, n = g(() => l.actions.find((r) => r.isPrimary)), s = g(
|
|
19
|
-
() => l.actions.filter((r) => !r.isPrimary).map((r) => ({ ...r, variant: r.variant ??
|
|
20
|
-
), { breakpoints: c } =
|
|
18
|
+
() => l.actions.filter((r) => !r.isPrimary).map((r) => ({ ...r, variant: r.variant ?? j.Tertiary }))
|
|
19
|
+
), { breakpoints: c } = z();
|
|
21
20
|
return (r, e) => {
|
|
22
21
|
const p = f("FmButton");
|
|
23
22
|
return t(), y(k, null, [
|
|
24
23
|
m("div", E, [
|
|
25
|
-
m("div",
|
|
26
|
-
m("div",
|
|
27
|
-
s.value.length ? (t(), y("div",
|
|
24
|
+
m("div", O, [
|
|
25
|
+
m("div", q, R(r.title), 1),
|
|
26
|
+
s.value.length ? (t(), y("div", G, [
|
|
28
27
|
(t(!0), y(k, null, F(s.value, (h) => (t(), _(p, {
|
|
29
28
|
key: h.value,
|
|
30
29
|
label: h.label,
|
|
@@ -33,7 +32,7 @@ const E = { class: "flex flex-col w-full bg-white h-full" }, q = { class: "flex
|
|
|
33
32
|
onClick: (L) => a("click:action", h.value)
|
|
34
33
|
}, null, 8, ["label", "prepend-icon", "variant", "onClick"]))), 128))
|
|
35
34
|
])) : b("", !0),
|
|
36
|
-
n.value && (d(c).lg || d(c).md) ? (t(), y("div",
|
|
35
|
+
n.value && (d(c).lg || d(c).md) ? (t(), y("div", J, [
|
|
37
36
|
v(p, {
|
|
38
37
|
label: n.value.label,
|
|
39
38
|
"prepend-icon": n.value.prependIcon,
|
|
@@ -41,7 +40,7 @@ const E = { class: "flex flex-col w-full bg-white h-full" }, q = { class: "flex
|
|
|
41
40
|
}, null, 8, ["label", "prepend-icon"])
|
|
42
41
|
])) : b("", !0)
|
|
43
42
|
]),
|
|
44
|
-
m("div",
|
|
43
|
+
m("div", K, [
|
|
45
44
|
A(r.$slots, "default")
|
|
46
45
|
])
|
|
47
46
|
]),
|
|
@@ -70,7 +69,7 @@ const E = { class: "flex flex-col w-full bg-white h-full" }, q = { class: "flex
|
|
|
70
69
|
}, oe = /* @__PURE__ */ $({
|
|
71
70
|
__name: "ChangeLocationComponent",
|
|
72
71
|
setup(i) {
|
|
73
|
-
const o =
|
|
72
|
+
const o = Q(), { t: l } = T(), a = S(""), n = g(
|
|
74
73
|
() => o.locations.map((e) => ({ label: e.name, value: e.dbName, type: e.type })).filter(
|
|
75
74
|
(e) => a.value ? e.label.toLocaleLowerCase().includes(a.value.toLocaleLowerCase()) : !0
|
|
76
75
|
)
|
|
@@ -157,7 +156,7 @@ const E = { class: "flex flex-col w-full bg-white h-full" }, q = { class: "flex
|
|
|
157
156
|
};
|
|
158
157
|
}
|
|
159
158
|
});
|
|
160
|
-
function
|
|
159
|
+
function he() {
|
|
161
160
|
const i = /* @__PURE__ */ new Date();
|
|
162
161
|
return i.setDate(i.getDate() - 15), {
|
|
163
162
|
start: i,
|
|
@@ -213,7 +212,7 @@ const le = { class: "inline-flex rounded-md items-center gap-4 justify-center h-
|
|
|
213
212
|
}), re = { class: "xs:px-8 sm:px-8 flex gap-8 items-center xs:gap-4 xs:flex-col-reverse sm:gap-4 sm:flex-col-reverse h-48 sm:h-[unset] xs:h-[unset]" }, ce = {
|
|
214
213
|
key: 0,
|
|
215
214
|
class: "xs:w-full sm:w-full flex gap-8 items-center"
|
|
216
|
-
}, ie = { class: "flex-1 w-full flex items-center gap-4" }, ue = /* @__PURE__ */ m("div", { class: "flex-1 xs:hidden sm:hidden" }, null, -1), de = { class: "w-full max-w-[343px] xs:max-w-[unset] sm:max-w-[unset]" },
|
|
215
|
+
}, ie = { class: "flex-1 w-full flex items-center gap-4" }, ue = /* @__PURE__ */ m("div", { class: "flex-1 xs:hidden sm:hidden" }, null, -1), de = { class: "w-full max-w-[343px] xs:max-w-[unset] sm:max-w-[unset]" }, ye = /* @__PURE__ */ $({
|
|
217
216
|
__name: "FmInventoryTableToolbar",
|
|
218
217
|
props: /* @__PURE__ */ Y({
|
|
219
218
|
dateRangeQuery: { type: Boolean },
|
|
@@ -266,8 +265,8 @@ const le = { class: "inline-flex rounded-md items-center gap-4 justify-center h-
|
|
|
266
265
|
}
|
|
267
266
|
});
|
|
268
267
|
export {
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
268
|
+
_e as _,
|
|
269
|
+
ye as a,
|
|
270
|
+
he as b,
|
|
272
271
|
I as i
|
|
273
272
|
};
|