@feedmepos/mf-inventory-portal 0.0.23-dev.19 → 0.0.23-dev.20
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-DY01VbHo.js → App-N2myASr3.js} +44 -41
- package/dist/{ApprovalView-DtwXb5T7.js → ApprovalView-B87DpnNq.js} +20 -23
- package/dist/{BindingsDialog-ClnnwUTV.js → BindingsDialog-DehCgt1T.js} +7 -7
- package/dist/{BindingsPicker-DbdkXiHx.js → BindingsPicker-BBtJ3rBB.js} +7 -8
- package/dist/{BindingsTable-Cqh3Ku0d.js → BindingsTable-CfHuy-K1.js} +16 -20
- package/dist/{ClosingDraftView-CzuMTeC1.js → ClosingDraftView-BYZ1mZrG.js} +190 -196
- package/dist/{ClosingTemplateView-CVQlOya4.js → ClosingTemplateView-CAL9jYaf.js} +49 -60
- package/dist/{FmDroppableField-8RzKjEdL.js → FmDroppableField-CC7RiBoR.js} +1 -1
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BO1wCa9i.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-C4G9LaXv.js} +24 -25
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-sgvBxxkn.js → FmUnitInput.vue_vue_type_script_setup_true_lang-BBf7jmJz.js} +56 -57
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-D7uvrzFU.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-DjTvrLPs.js} +7 -7
- package/dist/{IngredientGroupView-DgDZnggI.js → IngredientGroupView-X0ST4tW9.js} +30 -37
- package/dist/{IngredientsView-SuCckJrj.js → IngredientsView-BUJXzpVr.js} +106 -112
- package/dist/{IntegrationView-CZQoHCkX.js → IntegrationView-QbuIwjec.js} +63 -65
- package/dist/{InventoryBindingForm-C-E3EINv.js → InventoryBindingForm-C1BR_h_3.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-B3nsmCuj.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-CRwcFskQ.js} +18 -20
- package/dist/{InventoryBindingSummary-DNiOKfO8.js → InventoryBindingSummary-gn3Gq1ok.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CdYa8Pv2.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-GY3FFm5_.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-BwxgZ-vM.js → PremiumBadge.vue_vue_type_script_setup_true_lang-DVwtuUg9.js} +8 -8
- package/dist/{PurchaseOrderPrintPreview-C6i2S9L-.js → PurchaseOrderPrintPreview-FuOYaO56.js} +13 -14
- package/dist/{ReceiveRequestView-BABjGvIn.js → ReceiveRequestView-BNz1brve.js} +66 -75
- package/dist/{RecipeView-CoMcIuHu.js → RecipeView-DRKTODfC.js} +58 -64
- package/dist/{StockView-DhJshtaj.js → StockView-DnMcfkGG.js} +80 -87
- package/dist/{SupplierView-hQtDIQzE.js → SupplierView-DAnnWZUN.js} +45 -52
- package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-DsJUSZsm.js → TransferDetails.vue_vue_type_script_setup_true_lang-BBARPa0S.js} +103 -110
- package/dist/{TransferTemplateView-GzwT4hp-.js → TransferTemplateView-2qlKwwKg.js} +217 -227
- package/dist/{UnitView-CRMF6RWu.js → UnitView-u5wZGetF.js} +103 -108
- package/dist/{WarehouseView-AVEDff0v.js → WarehouseView-Z80N7FJV.js} +77 -84
- package/dist/api/adjustment-template.d.ts +23 -0
- package/dist/app-Fc2FPGhO.js +58871 -0
- package/dist/app.d.ts +51 -0
- package/dist/app.js +2 -2
- package/dist/components/FmMultiselectDialogProps.d.ts +1 -0
- package/dist/composable/defineDeepModel.d.ts +1 -1
- package/dist/{decimal-N5ymnwhP.js → decimal-BDD-e5Lb.js} +1 -1
- package/dist/{feature-Bfq8yWgS.js → feature-BMEyYowI.js} +1 -1
- package/dist/{format-unit-display-CXawcmvj.js → format-unit-display-DvlR_z--.js} +205 -212
- package/dist/{index-CcCqc9jx.js → index-CR22QBdu.js} +1 -1
- package/dist/{netsuite-DX6L1oLu.js → netsuite-CqMWgzKo.js} +9 -9
- package/dist/router/name.d.ts +1 -0
- package/dist/{stock-Btlxmf8R.js → stock-sIy40ix1.js} +7 -8
- package/dist/style.css +1 -1
- package/dist/supplier-Cf24JqTH.js +77 -0
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-inventory-binding-dialog-BFqxWNzX.js → use-inventory-binding-dialog-Br9Uv9o8.js} +10 -11
- package/dist/views/adjustment-template/wastage-template/WastageTemplateDetails.vue.d.ts +2 -0
- package/dist/views/adjustment-template/wastage-template/WastageTemplateDialog.vue.d.ts +22 -0
- package/dist/views/adjustment-template/wastage-template/WastageTemplatePublish.vue.d.ts +6 -0
- package/dist/views/adjustment-template/wastage-template/WastageTemplateView.vue.d.ts +2 -0
- package/dist/views/adjustment-template/wastage-template/actions.d.ts +1295 -0
- package/dist/views/adjustment-template/wastage-template/form/WastageTemplateForm.vue.d.ts +16 -0
- package/dist/views/adjustment-template/wastage-template/form/WastageTemplateItemTable.vue.d.ts +35 -0
- package/dist/views/adjustment-template/wastage-template/form/useAdjustmentTemplateItems.d.ts +20 -0
- package/dist/views/adjustment-template/wastage-template/props.d.ts +29 -0
- package/dist/views/adjustment-template/wastage-template/table.d.ts +1273 -0
- package/dist/views/stock/components/dialog/AdjustedItemForm.vue.d.ts +2 -2
- package/dist/views/stock/helper/compute-summary-total.d.ts +2 -2
- package/dist/{xlsx-C3L2eW52.js → xlsx-sL0sD2HQ.js} +1 -1
- package/dist/{xlsx.util-CJKLCuWK.js → xlsx.util-D2Tdwf8J.js} +1 -1
- package/package.json +3 -3
- package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-m92y5x0G.js +0 -436
- package/dist/FmMultiselectDialog-Jr9uL_z_.js +0 -415
- package/dist/TableActionableRow.vue_vue_type_script_setup_true_lang-DlNJ6kRg.js +0 -135
- package/dist/_plugin-vue_export-helper-CHgC5LLL.js +0 -9
- package/dist/app-ww5ibHkL.js +0 -33540
- package/dist/date2-D5MTVjlP.js +0 -117
- package/dist/dayjs.min-7pwGJ2aW.js +0 -282
- package/dist/defineDeepModel-DJODEpcR.js +0 -13
- package/dist/form-mode.enum-BKiNVH6A.js +0 -4
- package/dist/format-time-from-id-0UkRUr39.js +0 -15
- package/dist/fuzzy-DdOiOd-q.js +0 -41
- package/dist/index-Cin_fxtb.js +0 -45
- package/dist/index-gvJJ-xRY.js +0 -22283
- package/dist/row-action.enum-7rGLGZ5v.js +0 -55
- package/dist/rules-C83wiSGb.js +0 -203
- package/dist/supplier-CSzla-9I.js +0 -77
- package/dist/use-template-enabled-locations-2-CUkqC-cd.js +0 -86
|
@@ -1,415 +0,0 @@
|
|
|
1
|
-
import { defineComponent as oe, computed as _, ref as C, watch as ne, openBlock as d, createElementBlock as v, normalizeStyle as A, Fragment as S, renderList as z, renderSlot as fe, createCommentVNode as M, onMounted as be, reactive as q, resolveComponent as w, createElementVNode as V, createVNode as c, toDisplayString as K, unref as B, createSlots as ye, withCtx as y, createBlock as L, normalizeClass as te, withModifiers as he, Transition as ge } from "vue";
|
|
2
|
-
import { useDialogChild as ke, useSnackbar as _e } from "@feedmepos/ui-library";
|
|
3
|
-
import { D as m } from "./app-ww5ibHkL.js";
|
|
4
|
-
import { f as xe } from "./fuzzy-DdOiOd-q.js";
|
|
5
|
-
import { d as Fe } from "./index-Cin_fxtb.js";
|
|
6
|
-
/* empty css */
|
|
7
|
-
import { useI18n as we } from "@feedmepos/mf-common";
|
|
8
|
-
import { _ as Ce } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
9
|
-
const Se = /* @__PURE__ */ oe({
|
|
10
|
-
__name: "VirtualScroll",
|
|
11
|
-
props: {
|
|
12
|
-
itemHeight: {},
|
|
13
|
-
length: {},
|
|
14
|
-
scrollTop: {},
|
|
15
|
-
prerender: {}
|
|
16
|
-
},
|
|
17
|
-
emits: ["changed:minHeight"],
|
|
18
|
-
setup(U, { emit: E }) {
|
|
19
|
-
const p = U, $ = E, u = _(() => {
|
|
20
|
-
const r = p.itemHeight * p.length;
|
|
21
|
-
return $("changed:minHeight", r), `${r}px`;
|
|
22
|
-
}), H = C(0), n = _(
|
|
23
|
-
() => Array.from({ length: p.prerender }).map((r, s) => s + H.value)
|
|
24
|
-
);
|
|
25
|
-
function P() {
|
|
26
|
-
H.value = Math.floor(p.scrollTop / p.itemHeight) - Math.floor(p.prerender / 2);
|
|
27
|
-
}
|
|
28
|
-
const h = C(Fe(P, 10));
|
|
29
|
-
ne([() => p.scrollTop], () => {
|
|
30
|
-
h.value();
|
|
31
|
-
});
|
|
32
|
-
function g(r) {
|
|
33
|
-
const s = r.el;
|
|
34
|
-
s && (s.style.opacity = "0", setTimeout(() => {
|
|
35
|
-
s.style.opacity = "1";
|
|
36
|
-
}, 0));
|
|
37
|
-
}
|
|
38
|
-
return (r, s) => (d(), v("div", {
|
|
39
|
-
class: "relative",
|
|
40
|
-
style: A({ minHeight: u.value })
|
|
41
|
-
}, [
|
|
42
|
-
(d(!0), v(S, null, z(n.value, (f) => (d(), v(S, { key: f }, [
|
|
43
|
-
f >= 0 && f < r.length ? (d(), v("div", {
|
|
44
|
-
key: 0,
|
|
45
|
-
class: "absolute w-full left-0 bg-white",
|
|
46
|
-
style: A({
|
|
47
|
-
top: `${r.itemHeight * f}px`,
|
|
48
|
-
height: `${r.itemHeight}px`,
|
|
49
|
-
transition: "opacity 0.5s ease"
|
|
50
|
-
}),
|
|
51
|
-
onVnodeMounted: g
|
|
52
|
-
}, [
|
|
53
|
-
fe(r.$slots, "default", {
|
|
54
|
-
key: f,
|
|
55
|
-
index: f,
|
|
56
|
-
getItem: (x) => x[f]
|
|
57
|
-
})
|
|
58
|
-
], 4)) : M("", !0)
|
|
59
|
-
], 64))), 128))
|
|
60
|
-
], 4));
|
|
61
|
-
}
|
|
62
|
-
}), Ve = { class: "flex justify-between items-center sticky top-0 bg-white z-50" }, Te = {
|
|
63
|
-
key: 0,
|
|
64
|
-
class: "h-12 bg-white absolute top-[-12px] left-[-24px] w-lvw z-50",
|
|
65
|
-
style: { "max-width": "min(100vw - 48px, 560px)" }
|
|
66
|
-
}, Be = { class: "flex gap-16 basis-1/2" }, Ae = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, $e = {
|
|
67
|
-
key: 0,
|
|
68
|
-
class: "flex items-center gap-8 justify-center py-32"
|
|
69
|
-
}, He = { class: "text-fm-color-typo-secondary fm-typo-en-body-md-400" }, Ie = {
|
|
70
|
-
key: 2,
|
|
71
|
-
class: "p-16 text-fm-color-typo-disabled fm-typo-en-body-lg-400 text-center"
|
|
72
|
-
}, De = /* @__PURE__ */ oe({
|
|
73
|
-
__name: "FmMultiselectDialog",
|
|
74
|
-
props: {
|
|
75
|
-
modelValue: {},
|
|
76
|
-
items: {},
|
|
77
|
-
groups: {},
|
|
78
|
-
singleSelect: { type: Boolean },
|
|
79
|
-
placeholder: {},
|
|
80
|
-
showValidBorder: { type: Boolean },
|
|
81
|
-
maxHeight: {},
|
|
82
|
-
width: {},
|
|
83
|
-
noShadow: { type: Boolean },
|
|
84
|
-
loading: { type: Boolean },
|
|
85
|
-
virtualScroll: { type: Boolean }
|
|
86
|
-
},
|
|
87
|
-
emits: ["update:modelValue"],
|
|
88
|
-
setup(U, { emit: E }) {
|
|
89
|
-
var Q, R, Y;
|
|
90
|
-
const { t: p } = we(), $ = ke(), u = U, H = E, n = C(u.modelValue ?? []), P = _e();
|
|
91
|
-
be(() => {
|
|
92
|
-
var l, a, o, b;
|
|
93
|
-
$.emitData(n.value);
|
|
94
|
-
const e = (l = u.modelValue) != null && l.length ? u.items.findIndex((F) => {
|
|
95
|
-
var k;
|
|
96
|
-
return m(F.value, (k = u.modelValue) == null ? void 0 : k[0]);
|
|
97
|
-
}) : 0;
|
|
98
|
-
(a = D.value) == null || a.scrollTo({ top: e * 64 - 64, behavior: "smooth" }), (b = (o = O.value) == null ? void 0 : o.inputEl) == null || b.focus();
|
|
99
|
-
}), ne([() => n.value], ([e]) => {
|
|
100
|
-
$.emitData(e), H("update:modelValue", e);
|
|
101
|
-
});
|
|
102
|
-
function h(e) {
|
|
103
|
-
return !!n.value.find((l) => m(l, e));
|
|
104
|
-
}
|
|
105
|
-
function g(e, l) {
|
|
106
|
-
u.singleSelect && (n.value = l ? [] : [e]);
|
|
107
|
-
const a = h(e);
|
|
108
|
-
if (!(l && a || !l && !a))
|
|
109
|
-
if (l) {
|
|
110
|
-
const o = [...n.value, e];
|
|
111
|
-
n.value = o;
|
|
112
|
-
} else {
|
|
113
|
-
const o = n.value.filter((b) => !m(b, e));
|
|
114
|
-
n.value = o;
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
const r = C(""), s = _(() => {
|
|
118
|
-
const e = r.value.toLocaleLowerCase(), l = u.items;
|
|
119
|
-
return r.value ? xe.filter(e, l, {
|
|
120
|
-
pre: "|",
|
|
121
|
-
post: "|",
|
|
122
|
-
extract(o) {
|
|
123
|
-
return o.sublabel ? `${o.label}${o.sublabel}` : o.label;
|
|
124
|
-
}
|
|
125
|
-
}).map((o) => o.original).filter((o) => !o.disabled) : l;
|
|
126
|
-
}), f = _(
|
|
127
|
-
() => n.value.filter((e) => {
|
|
128
|
-
const l = u.items.find((a) => m(a.value, e));
|
|
129
|
-
return !(l != null && l.disabled) && s.value.find((a) => m(a.value, e));
|
|
130
|
-
})
|
|
131
|
-
), x = _(() => f.value.filter((e) => !e.disabled).length === s.value.filter((e) => !e.disabled).length), W = _(() => f.value.length > 0 && !x.value);
|
|
132
|
-
function se() {
|
|
133
|
-
if (s.value.length > 100) {
|
|
134
|
-
P.open({
|
|
135
|
-
title: "Too many items to select",
|
|
136
|
-
message: "Please use the filter to narrow down your search options."
|
|
137
|
-
});
|
|
138
|
-
return;
|
|
139
|
-
}
|
|
140
|
-
x.value ? n.value = n.value.filter((e) => {
|
|
141
|
-
const l = u.items.find((a) => m(a.value, e));
|
|
142
|
-
return (l == null ? void 0 : l.disabled) && !s.value.find((a) => m(a.value, e));
|
|
143
|
-
}) : n.value = u.items.filter(
|
|
144
|
-
(e) => !e.disabled && (n.value.find((l) => m(l, e.value)) || s.value.find((l) => m(l.value, e.value)))
|
|
145
|
-
).map((e) => e.value);
|
|
146
|
-
}
|
|
147
|
-
const ie = q(
|
|
148
|
-
((Q = u.items) == null ? void 0 : Q.map((e) => ({ value: e.value, disabled: e.disabled ?? !1 }))) ?? []
|
|
149
|
-
);
|
|
150
|
-
function de(e, l) {
|
|
151
|
-
return e.reduce(
|
|
152
|
-
(a, o) => {
|
|
153
|
-
const b = l(o);
|
|
154
|
-
return a[b] || (a[b] = []), a[b].push(o), a;
|
|
155
|
-
},
|
|
156
|
-
{}
|
|
157
|
-
);
|
|
158
|
-
}
|
|
159
|
-
const ue = _(() => de(ie, (e) => {
|
|
160
|
-
var l;
|
|
161
|
-
return (l = e.value) == null ? void 0 : l._id;
|
|
162
|
-
})), re = q(
|
|
163
|
-
((R = u.items) == null ? void 0 : R.map((e) => ({ value: e.value, collapsed: e.collapsed ?? !1 }))) ?? []
|
|
164
|
-
), G = q(
|
|
165
|
-
((Y = u.groups) == null ? void 0 : Y.reduce(
|
|
166
|
-
(e, l) => (e[l.id] = l.collapse ?? !1, e),
|
|
167
|
-
{}
|
|
168
|
-
)) ?? {}
|
|
169
|
-
);
|
|
170
|
-
function N({ groupId: e, value: l }) {
|
|
171
|
-
var a;
|
|
172
|
-
return e && G[e] || ((a = re.find((o) => m(o.value, l))) == null ? void 0 : a.collapsed);
|
|
173
|
-
}
|
|
174
|
-
function ce(e) {
|
|
175
|
-
G[e] = !G[e];
|
|
176
|
-
}
|
|
177
|
-
function j(e) {
|
|
178
|
-
return u.items.filter((l) => l.groupId === e).map((l) => l.value).every((l) => n.value.find((a) => m(a, l)));
|
|
179
|
-
}
|
|
180
|
-
function X(e) {
|
|
181
|
-
return !j(e) && u.items.filter((a) => a.groupId === e).map((a) => a.value).some((a) => n.value.find((o) => m(o, a)));
|
|
182
|
-
}
|
|
183
|
-
function ve(e) {
|
|
184
|
-
const l = u.items.filter((a) => a.groupId === e).map((a) => a.value);
|
|
185
|
-
if (j(e))
|
|
186
|
-
n.value = n.value.filter((a) => !l.find((o) => m(a, o)));
|
|
187
|
-
else if (X(e))
|
|
188
|
-
for (const a of l)
|
|
189
|
-
n.value.find((o) => m(o, a)) || (n.value = [...n.value, a]);
|
|
190
|
-
else
|
|
191
|
-
n.value = [...n.value, ...l];
|
|
192
|
-
}
|
|
193
|
-
const I = C(0);
|
|
194
|
-
function J(e) {
|
|
195
|
-
var l;
|
|
196
|
-
I.value = ((l = e.target) == null ? void 0 : l.scrollTop) ?? I;
|
|
197
|
-
}
|
|
198
|
-
const me = _(() => I.value > 100), D = C(), O = C();
|
|
199
|
-
return (e, l) => {
|
|
200
|
-
var ee, le;
|
|
201
|
-
const a = w("FmIcon"), o = w("FmTextField"), b = w("FmCircularProgress"), F = w("FmCheckbox"), k = w("FmListItem"), Z = w("FmButton"), pe = w("FmList");
|
|
202
|
-
return d(), v("div", {
|
|
203
|
-
class: "relative max-h-[380px] overflow-y-auto overflow-x-hidden",
|
|
204
|
-
onScroll: J,
|
|
205
|
-
onScrollend: J,
|
|
206
|
-
ref_key: "scrollable",
|
|
207
|
-
ref: D
|
|
208
|
-
}, [
|
|
209
|
-
V("div", Ve, [
|
|
210
|
-
e.noShadow ? M("", !0) : (d(), v("div", Te)),
|
|
211
|
-
V("div", Be, [
|
|
212
|
-
c(a, { name: "autorenew" }),
|
|
213
|
-
V("span", Ae, K(B(p)("inventory.formField.itemsSelected", { count: ((ee = n.value) == null ? void 0 : ee.length) ?? 0 })), 1)
|
|
214
|
-
]),
|
|
215
|
-
c(o, {
|
|
216
|
-
class: "basis-1/2",
|
|
217
|
-
modelValue: r.value,
|
|
218
|
-
"onUpdate:modelValue": l[1] || (l[1] = (t) => r.value = t),
|
|
219
|
-
"prepend-icon": "search",
|
|
220
|
-
placeholder: e.placeholder,
|
|
221
|
-
ref_key: "searchTextField",
|
|
222
|
-
ref: O
|
|
223
|
-
}, ye({ _: 2 }, [
|
|
224
|
-
r.value.length ? {
|
|
225
|
-
name: "append",
|
|
226
|
-
fn: y(() => [
|
|
227
|
-
c(a, {
|
|
228
|
-
class: "cursor-pointer",
|
|
229
|
-
name: "close",
|
|
230
|
-
onClick: l[0] || (l[0] = (t) => r.value = "")
|
|
231
|
-
})
|
|
232
|
-
]),
|
|
233
|
-
key: "0"
|
|
234
|
-
} : void 0
|
|
235
|
-
]), 1032, ["modelValue", "placeholder"])
|
|
236
|
-
]),
|
|
237
|
-
V("div", null, [
|
|
238
|
-
e.loading ? (d(), v("div", $e, [
|
|
239
|
-
c(b, {
|
|
240
|
-
size: "md",
|
|
241
|
-
color: "neutral-gray-400"
|
|
242
|
-
}),
|
|
243
|
-
V("div", He, K(B(p)("inventory.formField.loading")), 1)
|
|
244
|
-
])) : s.value.length ? (d(), L(pe, { key: 1 }, {
|
|
245
|
-
default: y(() => [
|
|
246
|
-
e.singleSelect ? M("", !0) : (d(), L(k, {
|
|
247
|
-
key: 0,
|
|
248
|
-
"model-value": x.value,
|
|
249
|
-
indeterminate: W.value,
|
|
250
|
-
value: "",
|
|
251
|
-
onClick: l[2] || (l[2] = (t) => se())
|
|
252
|
-
}, {
|
|
253
|
-
prepend: y(() => [
|
|
254
|
-
c(F, {
|
|
255
|
-
"model-value": x.value,
|
|
256
|
-
indeterminate: W.value,
|
|
257
|
-
label: x.value ? B(p)("inventory.formField.select.removeAll") : B(p)("inventory.formField.select.selectAll"),
|
|
258
|
-
value: ""
|
|
259
|
-
}, null, 8, ["model-value", "indeterminate", "label"])
|
|
260
|
-
]),
|
|
261
|
-
_: 1
|
|
262
|
-
}, 8, ["model-value", "indeterminate"])),
|
|
263
|
-
e.groups ? (d(!0), v(S, { key: 2 }, z(e.groups, (t) => (d(), v(S, {
|
|
264
|
-
key: t.id
|
|
265
|
-
}, [
|
|
266
|
-
c(k, {
|
|
267
|
-
label: t.label,
|
|
268
|
-
sublabel: t.sublabel,
|
|
269
|
-
style: { "padding-top": "4px", "padding-bottom": "4px", "padding-left": "32px" },
|
|
270
|
-
disabled: t.disabled
|
|
271
|
-
}, {
|
|
272
|
-
prepend: y(() => [
|
|
273
|
-
c(F, {
|
|
274
|
-
"model-value": j(t.id),
|
|
275
|
-
indeterminate: X(t.id),
|
|
276
|
-
onClick: () => ve(t.id),
|
|
277
|
-
value: t.id,
|
|
278
|
-
disabled: t.disabled
|
|
279
|
-
}, null, 8, ["model-value", "indeterminate", "onClick", "value", "disabled"])
|
|
280
|
-
]),
|
|
281
|
-
append: y(() => [
|
|
282
|
-
c(Z, {
|
|
283
|
-
"prepend-icon": N({ groupId: t.id }) ? "expand_less" : "expand_more",
|
|
284
|
-
size: "md",
|
|
285
|
-
variant: "tertiary",
|
|
286
|
-
onClick: he(() => ce(t.id), ["stop"])
|
|
287
|
-
}, null, 8, ["prepend-icon", "onClick"])
|
|
288
|
-
]),
|
|
289
|
-
_: 2
|
|
290
|
-
}, 1032, ["label", "sublabel", "disabled"]),
|
|
291
|
-
(d(!0), v(S, null, z(s.value.filter((i) => i.groupId === t.id), (i) => (d(), v("div", {
|
|
292
|
-
key: i.value,
|
|
293
|
-
class: te([
|
|
294
|
-
"transition-all overflow-y-clip",
|
|
295
|
-
N({ groupId: t.id, value: i.value }) ? "max-h-0 opacity-0" : "max-h-[64px] opacity-100"
|
|
296
|
-
])
|
|
297
|
-
}, [
|
|
298
|
-
c(k, {
|
|
299
|
-
label: i.label,
|
|
300
|
-
sublabel: i.sublabel,
|
|
301
|
-
disabled: i.disabled,
|
|
302
|
-
onClick: (T) => g(i.value, !h(i.value)),
|
|
303
|
-
style: { "padding-top": "4px", "padding-bottom": "4px", "padding-left": "64px" }
|
|
304
|
-
}, {
|
|
305
|
-
prepend: y(() => [
|
|
306
|
-
c(F, {
|
|
307
|
-
"model-value": h(i.value),
|
|
308
|
-
"onUpdate:modelValue": (T) => g(i.value, T),
|
|
309
|
-
value: i.value,
|
|
310
|
-
disabled: i.disabled
|
|
311
|
-
}, null, 8, ["model-value", "onUpdate:modelValue", "value", "disabled"])
|
|
312
|
-
]),
|
|
313
|
-
_: 2
|
|
314
|
-
}, 1032, ["label", "sublabel", "disabled", "onClick"])
|
|
315
|
-
], 2))), 128))
|
|
316
|
-
], 64))), 128)) : (d(), v(S, { key: 1 }, [
|
|
317
|
-
e.virtualScroll ? (d(), L(Se, {
|
|
318
|
-
key: 0,
|
|
319
|
-
length: s.value.length,
|
|
320
|
-
"item-height": 64,
|
|
321
|
-
scrollTop: I.value,
|
|
322
|
-
prerender: 100
|
|
323
|
-
}, {
|
|
324
|
-
default: y(({ getItem: t }) => {
|
|
325
|
-
var i, T;
|
|
326
|
-
return [
|
|
327
|
-
c(k, {
|
|
328
|
-
label: t(s.value).label,
|
|
329
|
-
sublabel: t(s.value).sublabel,
|
|
330
|
-
onClick: (ae) => g(
|
|
331
|
-
t(s.value).value,
|
|
332
|
-
!h(t(s.value).value)
|
|
333
|
-
),
|
|
334
|
-
disabled: (T = ue.value[(i = t(s.value).value) == null ? void 0 : i._id][0]) == null ? void 0 : T.disabled,
|
|
335
|
-
style: A({
|
|
336
|
-
paddingTop: 4,
|
|
337
|
-
paddingBottom: 4,
|
|
338
|
-
paddingLeft: e.singleSelect === !0 ? 12 : 32
|
|
339
|
-
})
|
|
340
|
-
}, {
|
|
341
|
-
prepend: y(() => [
|
|
342
|
-
c(F, {
|
|
343
|
-
"model-value": h(t(s.value).value),
|
|
344
|
-
"onUpdate:modelValue": (ae) => g(t(s.value).value, ae),
|
|
345
|
-
value: t(s.value).value,
|
|
346
|
-
disabled: t(s.value).disabled
|
|
347
|
-
}, null, 8, ["model-value", "onUpdate:modelValue", "value", "disabled"])
|
|
348
|
-
]),
|
|
349
|
-
_: 2
|
|
350
|
-
}, 1032, ["label", "sublabel", "onClick", "disabled", "style"])
|
|
351
|
-
];
|
|
352
|
-
}),
|
|
353
|
-
_: 1
|
|
354
|
-
}, 8, ["length", "scrollTop"])) : (d(!0), v(S, { key: 1 }, z(s.value, (t) => (d(), v("div", {
|
|
355
|
-
key: t.value,
|
|
356
|
-
class: te([
|
|
357
|
-
"transition-all overflow-y-clip",
|
|
358
|
-
N({ value: t.value }) ? "max-h-0 opacity-0" : "max-h-[64px] opacity-100"
|
|
359
|
-
])
|
|
360
|
-
}, [
|
|
361
|
-
c(k, {
|
|
362
|
-
label: t.label,
|
|
363
|
-
sublabel: t.sublabel,
|
|
364
|
-
onClick: (i) => g(t.value, !h(t.value)),
|
|
365
|
-
disabled: t.disabled,
|
|
366
|
-
style: A({
|
|
367
|
-
paddingTop: 4,
|
|
368
|
-
paddingBottom: 4,
|
|
369
|
-
paddingLeft: e.singleSelect === !0 ? 12 : 32
|
|
370
|
-
})
|
|
371
|
-
}, {
|
|
372
|
-
prepend: y(() => [
|
|
373
|
-
c(F, {
|
|
374
|
-
"model-value": h(t.value),
|
|
375
|
-
"onUpdate:modelValue": (i) => g(t.value, i),
|
|
376
|
-
value: t.value,
|
|
377
|
-
disabled: t.disabled
|
|
378
|
-
}, null, 8, ["model-value", "onUpdate:modelValue", "value", "disabled"])
|
|
379
|
-
]),
|
|
380
|
-
_: 2
|
|
381
|
-
}, 1032, ["label", "sublabel", "onClick", "disabled", "style"])
|
|
382
|
-
], 2))), 128))
|
|
383
|
-
], 64))
|
|
384
|
-
]),
|
|
385
|
-
_: 1
|
|
386
|
-
})) : (d(), v("div", Ie, K(B(p)("inventory.formField.noItemsFound")), 1))
|
|
387
|
-
]),
|
|
388
|
-
V("div", {
|
|
389
|
-
class: "sticky bottom-24",
|
|
390
|
-
style: A({ transform: `translateX(${(((le = D.value) == null ? void 0 : le.clientWidth) ?? 0) - 80}px)` })
|
|
391
|
-
}, [
|
|
392
|
-
c(ge, { name: "fade" }, {
|
|
393
|
-
default: y(() => [
|
|
394
|
-
me.value ? (d(), L(Z, {
|
|
395
|
-
key: 0,
|
|
396
|
-
variant: "fab",
|
|
397
|
-
class: "bg-white",
|
|
398
|
-
"text-color": "neutral-gray-400",
|
|
399
|
-
"prepend-icon": "keyboard_arrow_up",
|
|
400
|
-
onClick: l[3] || (l[3] = () => {
|
|
401
|
-
var t;
|
|
402
|
-
return (t = D.value) == null ? void 0 : t.scrollTo({ top: 0, behavior: "smooth" });
|
|
403
|
-
})
|
|
404
|
-
})) : M("", !0)
|
|
405
|
-
]),
|
|
406
|
-
_: 1
|
|
407
|
-
})
|
|
408
|
-
], 4)
|
|
409
|
-
], 544);
|
|
410
|
-
};
|
|
411
|
-
}
|
|
412
|
-
}), je = /* @__PURE__ */ Ce(De, [["__scopeId", "data-v-fa6c2f94"]]);
|
|
413
|
-
export {
|
|
414
|
-
je as F
|
|
415
|
-
};
|
|
@@ -1,135 +0,0 @@
|
|
|
1
|
-
import { useI18n as R } from "@feedmepos/mf-common";
|
|
2
|
-
import { components as h } from "@feedmepos/ui-library";
|
|
3
|
-
import { h as i, defineComponent as F, computed as B, openBlock as u, createBlock as V, resolveDynamicComponent as z, unref as p, normalizeClass as D, withCtx as M, createElementVNode as c, renderSlot as N, normalizeProps as P, guardReactiveProps as _, createElementBlock as m, Fragment as w, renderList as E, createVNode as b, createCommentVNode as y } from "vue";
|
|
4
|
-
const { FmMenu: L, FmButton: S, FmMenuItem: $ } = h;
|
|
5
|
-
function O(o, a) {
|
|
6
|
-
return i(
|
|
7
|
-
L,
|
|
8
|
-
{
|
|
9
|
-
trigger: "click",
|
|
10
|
-
stopClickPropagation: !0
|
|
11
|
-
},
|
|
12
|
-
{
|
|
13
|
-
"menu-button": () => i(S, {
|
|
14
|
-
type: "button",
|
|
15
|
-
variant: "tertiary",
|
|
16
|
-
icon: "more_vert",
|
|
17
|
-
iconColor: "#000000",
|
|
18
|
-
size: "md"
|
|
19
|
-
}),
|
|
20
|
-
default: () => i(
|
|
21
|
-
"div",
|
|
22
|
-
{
|
|
23
|
-
style: {
|
|
24
|
-
backgroundColor: "white",
|
|
25
|
-
padding: "4px",
|
|
26
|
-
width: "160px"
|
|
27
|
-
}
|
|
28
|
-
},
|
|
29
|
-
o.map(({ translationKey: t, color: e, value: r }) => {
|
|
30
|
-
const { t: s } = R(), n = s(t);
|
|
31
|
-
return i(
|
|
32
|
-
$,
|
|
33
|
-
{
|
|
34
|
-
onClick() {
|
|
35
|
-
a(r ?? n);
|
|
36
|
-
}
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
label: () => i(
|
|
40
|
-
"span",
|
|
41
|
-
{
|
|
42
|
-
class: e
|
|
43
|
-
},
|
|
44
|
-
n
|
|
45
|
-
)
|
|
46
|
-
}
|
|
47
|
-
);
|
|
48
|
-
})
|
|
49
|
-
)
|
|
50
|
-
}
|
|
51
|
-
);
|
|
52
|
-
}
|
|
53
|
-
/**
|
|
54
|
-
* vue-table
|
|
55
|
-
*
|
|
56
|
-
* Copyright (c) TanStack
|
|
57
|
-
*
|
|
58
|
-
* This source code is licensed under the MIT license found in the
|
|
59
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
60
|
-
*
|
|
61
|
-
* @license MIT
|
|
62
|
-
*/
|
|
63
|
-
const I = F({
|
|
64
|
-
props: ["render", "props"],
|
|
65
|
-
setup: (o) => () => typeof o.render == "function" || typeof o.render == "object" ? i(o.render, o.props) : o.render
|
|
66
|
-
}), j = { class: "flex gap-4 w-full" }, A = { class: "flex-1" }, T = { class: "flex flex-col" }, q = { key: 0 }, G = { key: 0 }, Q = /* @__PURE__ */ F({
|
|
67
|
-
__name: "TableActionableRow",
|
|
68
|
-
props: {
|
|
69
|
-
row: {},
|
|
70
|
-
onRowClick: {},
|
|
71
|
-
actionColumnId: { default: "action" }
|
|
72
|
-
},
|
|
73
|
-
setup(o) {
|
|
74
|
-
const a = o, t = B(
|
|
75
|
-
() => a.row.getVisibleCells().reduce(
|
|
76
|
-
(e, r) => (e[r.column.id] = r, e),
|
|
77
|
-
{}
|
|
78
|
-
)
|
|
79
|
-
);
|
|
80
|
-
return (e, r) => (u(), V(z(e.onRowClick ? p(h).FmListItem : "div"), {
|
|
81
|
-
class: D([
|
|
82
|
-
"w-full border-b border-fm-color-neutral-gray-100",
|
|
83
|
-
{
|
|
84
|
-
"bg-fm-color-neutral-gray-100": e.row.getIsSelected(),
|
|
85
|
-
"cursor-pointer": typeof e.onRowClick == "function"
|
|
86
|
-
}
|
|
87
|
-
]),
|
|
88
|
-
onClick: r[0] || (r[0] = (s) => {
|
|
89
|
-
var n;
|
|
90
|
-
return (n = e.onRowClick) == null ? void 0 : n.call(e, e.row.original);
|
|
91
|
-
})
|
|
92
|
-
}, {
|
|
93
|
-
default: M(() => {
|
|
94
|
-
var s, n, f, d, C;
|
|
95
|
-
return [
|
|
96
|
-
c("div", j, [
|
|
97
|
-
c("div", A, [
|
|
98
|
-
N(e.$slots, "default", P(_(t.value)), () => [
|
|
99
|
-
c("div", T, [
|
|
100
|
-
(u(!0), m(w, null, E(a.row.getVisibleCells(), (l) => {
|
|
101
|
-
var g, v, k;
|
|
102
|
-
return u(), m(w, {
|
|
103
|
-
key: l.id
|
|
104
|
-
}, [
|
|
105
|
-
l.column.id !== e.actionColumnId ? (u(), m("div", q, [
|
|
106
|
-
b(p(I), {
|
|
107
|
-
render: (v = (g = l.column) == null ? void 0 : g.columnDef) == null ? void 0 : v.cell,
|
|
108
|
-
props: (k = l.getContext) == null ? void 0 : k.call(l)
|
|
109
|
-
}, null, 8, ["render", "props"])
|
|
110
|
-
])) : y("", !0)
|
|
111
|
-
], 64);
|
|
112
|
-
}), 128))
|
|
113
|
-
])
|
|
114
|
-
])
|
|
115
|
-
]),
|
|
116
|
-
t.value[e.actionColumnId ?? ""] ? (u(), m("div", G, [
|
|
117
|
-
c("div", null, [
|
|
118
|
-
b(p(I), {
|
|
119
|
-
render: (f = (n = (s = t.value[e.actionColumnId ?? ""]) == null ? void 0 : s.column) == null ? void 0 : n.columnDef) == null ? void 0 : f.cell,
|
|
120
|
-
props: (C = (d = t.value[e.actionColumnId ?? ""]) == null ? void 0 : d.getContext) == null ? void 0 : C.call(d)
|
|
121
|
-
}, null, 8, ["render", "props"])
|
|
122
|
-
])
|
|
123
|
-
])) : y("", !0)
|
|
124
|
-
])
|
|
125
|
-
];
|
|
126
|
-
}),
|
|
127
|
-
_: 3
|
|
128
|
-
}, 8, ["class"]));
|
|
129
|
-
}
|
|
130
|
-
});
|
|
131
|
-
export {
|
|
132
|
-
I as F,
|
|
133
|
-
Q as _,
|
|
134
|
-
O as c
|
|
135
|
-
};
|