@feedmepos/mf-inventory-portal 0.0.22-dev.41 → 0.0.22-dev.42
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-DKqwRFlF.js → ApprovalView-5YpqaJKy.js} +3 -3
- package/dist/{BindingsDialog-CtMSqEuE.js → BindingsDialog-lGoLNJyU.js} +1 -1
- package/dist/{BindingsPicker-DCLNF1PL.js → BindingsPicker-CdvkacXh.js} +1 -1
- package/dist/{BindingsTable-6ndQuHeA.js → BindingsTable-B8G9Ckdk.js} +1 -1
- package/dist/ClosingTemplateView-Dcy08dPm.js +1775 -0
- package/dist/FmDroppableField-DeW5xBTW.js +154 -0
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BUGB0uk3.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DBpTwDEI.js} +3 -3
- package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CM93v-jp.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-cSTp7zUx.js} +1 -1
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-SNp8etCc.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-DFHzlUVu.js} +1 -1
- package/dist/{IngredientsView-B1jGkWYN.js → IngredientsView-DKJjOK_4.js} +5 -5
- package/dist/IntegrationView-CgqU4EBV.js +1141 -0
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-mZQlrYaY.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-gvpXGm1X.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-BEFmqnHk.js → PremiumBadge.vue_vue_type_script_setup_true_lang-B3JDjoOu.js} +2 -2
- package/dist/{PurchaseOrderPrintPreview-DTQViYuX.js → PurchaseOrderPrintPreview-olI-JfjI.js} +1 -1
- package/dist/{ReceiveRequestView-CNRixgQu.js → ReceiveRequestView-flhI8D2c.js} +10 -10
- package/dist/{RecipeView-HStPC5pE.js → RecipeView-CoMyQ92u.js} +4 -4
- package/dist/{StockView-JO3NtkX9.js → StockView-Dae47pLA.js} +5 -5
- package/dist/{SupplierView-gtaS4K3U.js → SupplierView-CxYZUHrc.js} +3 -3
- package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-dPt3qbcX.js → TransferDetails.vue_vue_type_script_setup_true_lang-DoEEedkk.js} +5 -5
- package/dist/TransferTemplateView-DdB7z0b4.js +1302 -0
- package/dist/{UnitView-dbInWUk4.js → UnitView-B0E2nG3J.js} +4 -4
- package/dist/{WarehouseView-BlTBvLF0.js → WarehouseView-NQ2JwyWK.js} +2 -2
- package/dist/{app-TB3IWuaU.js → app-tiUQG6R0.js} +3917 -3873
- package/dist/app.d.ts +50 -3
- package/dist/app.js +1 -1
- package/dist/components/FmMultiselectDialog.vue.d.ts +3 -9
- package/dist/{decimal-BRAYgPnN.js → decimal-BOvNv58m.js} +1 -1
- package/dist/{defineDeepModel-DrEk5Fhq.js → defineDeepModel-CNgIKGt8.js} +1 -1
- package/dist/{format-time-from-id-kpVYfVQb.js → format-time-from-id-DWlH-AZV.js} +1 -1
- package/dist/format-unit-display-DIhXvTxN.js +1195 -0
- package/dist/stores/netsuite.d.ts +1 -1
- package/dist/style.css +1 -1
- package/dist/{supplier-CJcqHpaM.js → supplier-rpkSwf7L.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-template-enabled-locations-2-DyD24laW.js → use-template-enabled-locations-2-BrK8SKvw.js} +1 -1
- package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +7 -5
- package/dist/{xlsx-Dd5ckm6-.js → xlsx-DGqkxpZX.js} +1 -1
- package/dist/{xlsx.util-qlqvEcJz.js → xlsx.util-CvycJwUf.js} +1 -1
- package/package.json +1 -1
- package/dist/ClosingTemplateView-BPrDQ_8-.js +0 -1688
- package/dist/FmDroppableField-DQFPEiJn.js +0 -152
- package/dist/IntegrationView-Bu0waSjB.js +0 -1141
- package/dist/TransferTemplateView-C0pjLfbz.js +0 -2054
- package/dist/purchase-order-transaction-type-ZMNa__2l.js +0 -348
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
import { defineComponent as U, ref as d, computed as y, resolveComponent as k, openBlock as s, createElementBlock as c, createElementVNode as p, createCommentVNode as S, renderSlot as u, createBlock as C, normalizeClass as f, toDisplayString as F, unref as B } from "vue";
|
|
2
|
+
import { useI18n as W } from "@feedmepos/mf-common";
|
|
3
|
+
import { X } from "./app-tiUQG6R0.js";
|
|
4
|
+
const q = {
|
|
5
|
+
key: 0,
|
|
6
|
+
class: "relative"
|
|
7
|
+
}, G = ["accept", "disabled"], H = { class: "flex flex-col gap-8" }, J = ["accept", "disabled"], K = /* @__PURE__ */ U({
|
|
8
|
+
__name: "FmDroppableField",
|
|
9
|
+
props: {
|
|
10
|
+
buttonLabel: {},
|
|
11
|
+
label: { default: "" },
|
|
12
|
+
disabled: { type: Boolean, default: !1 },
|
|
13
|
+
accept: { default: "" },
|
|
14
|
+
maxFileSize: { default: 8e6 },
|
|
15
|
+
contentClass: {}
|
|
16
|
+
},
|
|
17
|
+
emits: ["file-upload", "file-rejected"],
|
|
18
|
+
setup(T, { emit: V }) {
|
|
19
|
+
const l = T, g = V, { t: r } = W(), t = d(!1), i = d(null), n = d(null), m = d(), R = (e) => {
|
|
20
|
+
l.disabled || (e.stopPropagation(), e.preventDefault());
|
|
21
|
+
}, $ = (e) => {
|
|
22
|
+
l.disabled || (e.stopPropagation(), e.preventDefault(), t.value = !0);
|
|
23
|
+
}, j = (e) => {
|
|
24
|
+
l.disabled || (e.stopPropagation(), e.preventDefault(), t.value = !1);
|
|
25
|
+
}, E = (e) => {
|
|
26
|
+
var a;
|
|
27
|
+
l.disabled || (e.stopPropagation(), e.preventDefault(), t.value = !1, h((a = e.dataTransfer) == null ? void 0 : a.files));
|
|
28
|
+
};
|
|
29
|
+
function h(e) {
|
|
30
|
+
if (e)
|
|
31
|
+
if (m.value = e, i.value = I(e[0]), n.value = P(e[0]), i.value && n.value)
|
|
32
|
+
g("file-upload", e[0]);
|
|
33
|
+
else {
|
|
34
|
+
const a = L();
|
|
35
|
+
g("file-rejected", [
|
|
36
|
+
{
|
|
37
|
+
file: e[0],
|
|
38
|
+
reason: a
|
|
39
|
+
}
|
|
40
|
+
]);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
const L = () => {
|
|
44
|
+
const e = new Array();
|
|
45
|
+
return i.value || e.push("invalid-type"), n.value || e.push("invalid-size"), e;
|
|
46
|
+
}, I = (e) => {
|
|
47
|
+
if (!l.accept) return !0;
|
|
48
|
+
const a = l.accept.split(",").map((o) => o.trim());
|
|
49
|
+
for (const o of a)
|
|
50
|
+
if (w(o)) {
|
|
51
|
+
if (D(o) === D(e.type)) return !0;
|
|
52
|
+
} else if (A(e) === o || e.type === o) return !0;
|
|
53
|
+
return !1;
|
|
54
|
+
}, P = (e) => e.size <= l.maxFileSize, w = (e) => e.indexOf("*") !== -1, A = (e) => "." + e.name.split(".").pop(), D = (e) => e.substring(0, e.indexOf("/")), O = y(() => {
|
|
55
|
+
if (t.value) return r("inventory.formField.dropField.dropToUpload");
|
|
56
|
+
if (i.value) {
|
|
57
|
+
if (!n.value)
|
|
58
|
+
return r("inventory.formField.dropField.fileSizeExceeded", { size: l.maxFileSize });
|
|
59
|
+
} else return r("inventory.formField.dropField.invalidFileType");
|
|
60
|
+
return "";
|
|
61
|
+
}), v = y(() => m.value ? !i.value || !n.value : !1), _ = (e) => {
|
|
62
|
+
const a = e.target;
|
|
63
|
+
h(a.files);
|
|
64
|
+
}, N = y(() => {
|
|
65
|
+
var e;
|
|
66
|
+
return (e = m.value) == null ? void 0 : e.item(0);
|
|
67
|
+
}), b = d();
|
|
68
|
+
return (e, a) => {
|
|
69
|
+
const o = k("FmLabel"), x = k("FmButton");
|
|
70
|
+
return s(), c("label", {
|
|
71
|
+
class: "fm-droppable-field",
|
|
72
|
+
ref_key: "fmButtonRef",
|
|
73
|
+
ref: b
|
|
74
|
+
}, [
|
|
75
|
+
e.$slots.default ? (s(), c("div", q, [
|
|
76
|
+
p("input", {
|
|
77
|
+
accept: e.accept,
|
|
78
|
+
disabled: e.disabled,
|
|
79
|
+
class: "fm-droppable-field__input",
|
|
80
|
+
type: "file",
|
|
81
|
+
onChange: _
|
|
82
|
+
}, null, 40, G)
|
|
83
|
+
])) : S("", !0),
|
|
84
|
+
u(e.$slots, "default", {
|
|
85
|
+
isDragging: t.value,
|
|
86
|
+
isValidFileType: i.value,
|
|
87
|
+
isValidFileSize: n.value,
|
|
88
|
+
singleValidFile: N.value,
|
|
89
|
+
openFileDialog: () => {
|
|
90
|
+
var z;
|
|
91
|
+
return console.log("click", b.value), (z = b.value) == null ? void 0 : z.click();
|
|
92
|
+
}
|
|
93
|
+
}, () => [
|
|
94
|
+
p("div", H, [
|
|
95
|
+
e.$slots.label ? u(e.$slots, "label", { key: 0 }, void 0, !0) : (s(), C(o, {
|
|
96
|
+
key: 1,
|
|
97
|
+
label: e.label
|
|
98
|
+
}, null, 8, ["label"]))
|
|
99
|
+
]),
|
|
100
|
+
p("div", {
|
|
101
|
+
class: f([[
|
|
102
|
+
e.contentClass ? e.contentClass : "w-full h-full",
|
|
103
|
+
{
|
|
104
|
+
"fm-droppable-field__container--dragging": t.value,
|
|
105
|
+
"fm-droppable-field__container--invalid": v.value && !e.disabled,
|
|
106
|
+
"fm-droppable-field__container--disabled": e.disabled
|
|
107
|
+
}
|
|
108
|
+
], "fm-droppable-field__container"]),
|
|
109
|
+
onDragenter: R,
|
|
110
|
+
onDragleave: j,
|
|
111
|
+
onDragover: $,
|
|
112
|
+
onDrop: E
|
|
113
|
+
}, [
|
|
114
|
+
(t.value || v.value) && !e.disabled ? (s(), c("div", {
|
|
115
|
+
key: 0,
|
|
116
|
+
class: f({
|
|
117
|
+
"fm-typo-en-body-lg-600": !0,
|
|
118
|
+
"text-fm-color-primary": t.value,
|
|
119
|
+
"text-fm-color-typo-error": v.value
|
|
120
|
+
})
|
|
121
|
+
}, F(O.value), 3)) : (s(), C(x, {
|
|
122
|
+
key: 1,
|
|
123
|
+
disabled: e.disabled,
|
|
124
|
+
label: e.buttonLabel ?? "Add files",
|
|
125
|
+
size: "md",
|
|
126
|
+
variant: "secondary"
|
|
127
|
+
}, null, 8, ["disabled", "label"])),
|
|
128
|
+
u(e.$slots, "accept-text", {}, () => [
|
|
129
|
+
l.accept ? (s(), c("div", {
|
|
130
|
+
key: 0,
|
|
131
|
+
class: f([[e.disabled ? "text-fm-color-typo-disabled" : "text-fm-color-typo-secondary"], "fm-typo-en-body-md-400"])
|
|
132
|
+
}, F(B(r)("inventory.formField.dropField.accepts", { fileTypes: e.accept })), 3)) : S("", !0)
|
|
133
|
+
], !0),
|
|
134
|
+
p("input", {
|
|
135
|
+
accept: e.accept,
|
|
136
|
+
disabled: e.disabled,
|
|
137
|
+
class: "fm-droppable-field__input",
|
|
138
|
+
type: "file",
|
|
139
|
+
onChange: _
|
|
140
|
+
}, null, 40, J)
|
|
141
|
+
], 34),
|
|
142
|
+
u(e.$slots, "helper-text", {}, () => [
|
|
143
|
+
p("div", {
|
|
144
|
+
class: f([[e.disabled ? "text-fm-color-typo-disabled" : "text-fm-color-typo-secondary"], "fm-typo-en-body-sm-400"])
|
|
145
|
+
}, F(B(r)("inventory.formField.dropField.maxSize", { size: e.maxFileSize })), 3)
|
|
146
|
+
], !0)
|
|
147
|
+
], !0)
|
|
148
|
+
], 512);
|
|
149
|
+
};
|
|
150
|
+
}
|
|
151
|
+
}), Z = /* @__PURE__ */ X(K, [["__scopeId", "data-v-e121b2c1"]]);
|
|
152
|
+
export {
|
|
153
|
+
Z as F
|
|
154
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as P, t as B, a7 as A, i as D, ae as R, am as H, an as V } from "./app-
|
|
2
|
-
import { u as j } from "./supplier-
|
|
3
|
-
import { P as S } from "./
|
|
1
|
+
import { a as P, t as B, a7 as A, i as D, ae as R, am as H, an as V } from "./app-tiUQG6R0.js";
|
|
2
|
+
import { u as j } from "./supplier-rpkSwf7L.js";
|
|
3
|
+
import { P as S } from "./format-unit-display-DIhXvTxN.js";
|
|
4
4
|
import { computed as y, defineComponent as $, mergeModels as W, useModel as J, resolveComponent as w, openBlock as F, createElementBlock as I, normalizeStyle as K, createElementVNode as N, createVNode as Q, withCtx as X, createBlock as x, createCommentVNode as E, Fragment as Y, renderList as Z, unref as M } from "vue";
|
|
5
5
|
function ne(c, i, t, s) {
|
|
6
6
|
var b, g, u;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { reactive as E, onUnmounted as W, defineComponent as T, computed as y, resolveComponent as _, openBlock as a, createElementBlock as f, Fragment as L, createElementVNode as m, unref as c, normalizeClass as D, toDisplayString as R, createCommentVNode as g, renderList as I, createBlock as h, createVNode as x, renderSlot as q, Teleport as G, ref as P, withCtx as N, watch as J, mergeModels as K, useModel as U } from "vue";
|
|
2
2
|
import { FmButtonVariant as X, useBreakpoints as O } from "@feedmepos/ui-library";
|
|
3
|
-
import { i as A, V as H } from "./app-
|
|
3
|
+
import { i as A, V as H } from "./app-tiUQG6R0.js";
|
|
4
4
|
import { useCoreStore as Z, useI18n as Y } from "@feedmepos/mf-common";
|
|
5
5
|
const S = E({});
|
|
6
6
|
function j() {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as p, openBlock as s, createElementBlock as n, createElementVNode as r, toDisplayString as o, unref as l, Fragment as d, renderList as x } from "vue";
|
|
2
|
-
import { a, k as y } from "./app-
|
|
2
|
+
import { a, k as y } from "./app-tiUQG6R0.js";
|
|
3
3
|
import { useI18n as _ } from "@feedmepos/mf-common";
|
|
4
4
|
const v = { class: "flex flex-col" }, g = { class: "flex flex-row fm-typo-en-body-md-600 bg-fm-color-neutral-gray-100 text-fm-color-typo-secondary h-48 items-center" }, h = { class: "flex-1 py-8 px-16" }, b = {
|
|
5
5
|
class: "flex-0 py-8 px-16",
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { ref as O, defineComponent as le, computed as C, resolveComponent as U, openBlock as g, createBlock as T, withCtx as S, createVNode as p, unref as u, createElementBlock as P, Fragment as q, createElementVNode as d, createCommentVNode as Y, onMounted as nt, watch as ze, normalizeClass as J, createTextVNode as He, toDisplayString as L, renderList as Q, isRef as Ee, createSlots as Oe, normalizeStyle as ot, Teleport as Re, normalizeProps as lt, guardReactiveProps as rt } from "vue";
|
|
2
|
-
import { u as X, c as je, S as at, _ as st, A as ge, a as Ye, g as be, t as Ge, F as ue, R as xe, U as it, M as ut, d as Ae, b as qe, C as Ve, e as De, f as dt, h as ct, I as mt, i as pt } from "./app-
|
|
2
|
+
import { u as X, c as je, S as at, _ as st, A as ge, a as Ye, g as be, t as Ge, F as ue, R as xe, U as it, M as ut, d as Ae, b as qe, C as Ve, e as De, f as dt, h as ct, I as mt, i as pt } from "./app-tiUQG6R0.js";
|
|
3
3
|
import { useDialog as We, useSnackbar as he, useProxiedModel as Te, useDialogChild as vt, useBreakpoints as ft } from "@feedmepos/ui-library";
|
|
4
4
|
import { i as yt, _ as gt } from "./is-linked-ingredient-error-fJ2TJb3z.js";
|
|
5
5
|
import { F as G, D as Pe, R as ye } from "./row-action.enum-PMKMRrZR.js";
|
|
6
6
|
import { useI18n as Z, useCoreStore as de } from "@feedmepos/mf-common";
|
|
7
7
|
import { defineStore as bt, storeToRefs as ht } from "pinia";
|
|
8
8
|
import { c as _t, _ as xt, F as Be } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-DlNJ6kRg.js";
|
|
9
|
-
import { u as Vt, _ as kt, a as Ct } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-
|
|
9
|
+
import { u as Vt, _ as kt, a as Ct } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-cSTp7zUx.js";
|
|
10
10
|
import { g as wt, _ as ke, S as Ce } from "./StockForecast.vue_vue_type_style_index_0_lang-KLXSWvo5.js";
|
|
11
|
-
import { _ as we } from "./IngredientBindedItem.vue_vue_type_script_setup_true_lang-
|
|
11
|
+
import { _ as we } from "./IngredientBindedItem.vue_vue_type_script_setup_true_lang-DFHzlUVu.js";
|
|
12
12
|
import { _ as Se } from "./PreviewBadge.vue_vue_type_script_setup_true_lang-CRZiQHjx.js";
|
|
13
|
-
import { t as Ke, d as Je, s as St, r as Ft } from "./xlsx.util-
|
|
14
|
-
import { F as Mt } from "./FmDroppableField-
|
|
13
|
+
import { t as Ke, d as Je, s as St, r as Ft } from "./xlsx.util-CvycJwUf.js";
|
|
14
|
+
import { F as Mt } from "./FmDroppableField-DeW5xBTW.js";
|
|
15
15
|
const Fe = bt("ingredientForm", function() {
|
|
16
16
|
const a = We(), f = he(), s = X(), n = O(!1), { t: l } = Z(), o = O();
|
|
17
17
|
function m() {
|