@feedmepos/mf-inventory-portal 0.0.23-dev.1 → 0.0.23-dev.10
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-Y3Ez8Rjf.js → App-DDxwfi6I.js} +36 -31
- package/dist/{ApprovalView-BUU1G4Q2.js → ApprovalView-7rpIigm0.js} +4 -4
- package/dist/{BindingsDialog-8wc4Q0JQ.js → BindingsDialog-DbyzX6mw.js} +2 -2
- package/dist/{BindingsPicker-DGWN1LQc.js → BindingsPicker-FZfhZr5O.js} +2 -2
- package/dist/{BindingsTable-7NJP2jT6.js → BindingsTable-Bk2770OV.js} +6 -6
- package/dist/ClosingDraftView-D9CnCwak.js +772 -0
- package/dist/{ClosingTemplateView-9s7vmwaT.js → ClosingTemplateView-DkpHmTtx.js} +32 -31
- package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DjBiov5r.js +283 -0
- package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-5DINn0ZB.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CBC214tP.js} +2 -2
- package/dist/{FmMultiselectDialog-7hok9sJP.js → FmMultiselectDialog-CK6xwOeG.js} +128 -124
- package/dist/FmUnitInput.vue_vue_type_script_setup_true_lang-IFTMUhET.js +329 -0
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-FQ0HjuL3.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-D0otwOX8.js} +1 -1
- package/dist/{IngredientGroupView-C3maHTCg.js → IngredientGroupView-D5XtVfIQ.js} +12 -11
- package/dist/IngredientsView-c7WnQiTv.js +1666 -0
- package/dist/{IntegrationView-gO4h89Wj.js → IntegrationView-CHkhMxVM.js} +50 -50
- package/dist/{InventoryBindingForm-dh3GeyG-.js → InventoryBindingForm-BUZ9MS5V.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-CJuo3i7W.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-YIRre_Km.js} +13 -13
- package/dist/{InventoryBindingSummary-BPoPcEoe.js → InventoryBindingSummary-BUi0mjeC.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-olm8sZKt.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CpYtHPFH.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-BezTV43V.js → PremiumBadge.vue_vue_type_script_setup_true_lang-D8IH1X1o.js} +2 -2
- package/dist/{PurchaseOrderPrintPreview-Dix_fIoo.js → PurchaseOrderPrintPreview-BLuoVz5N.js} +1 -1
- package/dist/ReceiveRequestView-BNM5JdQO.js +4165 -0
- package/dist/{RecipeView-C4-a4IEW.js → RecipeView-DxRumcLY.js} +11 -10
- package/dist/{StockView-Du2txrIP.js → StockView-CZyeg3sX.js} +1356 -1457
- package/dist/{SupplierView-D_09FbQh.js → SupplierView-C2XLbf27.js} +2352 -783
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-BQG6UzUU.js +1229 -0
- package/dist/{TransferTemplateView-j3CRy6Lc.js → TransferTemplateView-BCxZCU0i.js} +307 -307
- package/dist/{UnitView-BXw2Vwq1.js → UnitView-uGpE4txg.js} +81 -80
- package/dist/{WarehouseView-CKamiETC.js → WarehouseView-DvQVmixr.js} +25 -24
- package/dist/api/bill.d.ts +2 -2
- package/dist/api/closing-draft.d.ts +6 -0
- package/dist/api/closing.d.ts +1 -0
- package/dist/api/netsuite.d.ts +70 -0
- package/dist/{app-GUbzqEtW.js → app-BaOENyRY.js} +3425 -3343
- package/dist/app.d.ts +3 -0
- package/dist/app.js +1 -1
- package/dist/components/FmMinMaxInputRules.d.ts +4 -1
- package/dist/components/row-action.enum.d.ts +1 -0
- package/dist/{date2-CLE9fB2R.js → date2-CfGU3sHq.js} +1 -1
- package/dist/{dayjs.min-CY1d38w7.js → dayjs.min-BMk-E1IO.js} +17 -17
- package/dist/{decimal-SIjO6Mjw.js → decimal-BkLhxOFS.js} +1 -1
- package/dist/{defineDeepModel-l40rX7kr.js → defineDeepModel-Cy-_HBnw.js} +1 -1
- package/dist/{feature-BXruKUhX.js → feature-GoxrdjJJ.js} +23 -9
- package/dist/form-mode.enum-BKiNVH6A.js +4 -0
- package/dist/{format-time-from-id-CcFsBXmk.js → format-time-from-id-96hwVl9P.js} +1 -1
- package/dist/format-unit-display-Cp0DBbM8.js +1217 -0
- package/dist/{fuzzy-CVOV9zJc.js → fuzzy-CBGiL1wK.js} +1 -1
- package/dist/index-0HEhOwKT.js +12087 -0
- package/dist/{index-BX5KZXhI.js → index-CoL8wxbn.js} +126 -122
- package/dist/{index-m9e9nYfl.js → index-S7yfliEo.js} +1 -1
- package/dist/netsuite-D3VPLW8O.js +225 -0
- package/dist/router/name.d.ts +1 -0
- package/dist/{row-action.enum-PMKMRrZR.js → row-action.enum-7rGLGZ5v.js} +10 -5
- package/dist/{rules-DlnN8IP3.js → rules-DxLLla7a.js} +40 -35
- package/dist/stock-BbFKtx1y.js +111 -0
- package/dist/stores/feature.d.ts +2 -0
- package/dist/stores/integration/netsuite.d.ts +81 -0
- package/dist/stores/inventory.d.ts +1 -4
- package/dist/style.css +1 -1
- package/dist/{supplier-B21WlSAM.js → supplier-gGovyyjr.js} +22 -22
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-inventory-binding-dialog-D3x6xj2O.js → use-inventory-binding-dialog-DIBMf_9-.js} +2 -2
- package/dist/{use-template-enabled-locations-2-z-b-UXef.js → use-template-enabled-locations-2-Bof9JMYI.js} +2 -2
- package/dist/views/closing-draft/ClosingDraftView.vue.d.ts +2 -0
- package/dist/views/closing-draft/components/closing-draft-action/ClosingDraftAction.vue.d.ts +22 -0
- package/dist/views/closing-draft/components/closing-draft-dialog/ClosingDraftDialog.vue.d.ts +447 -0
- package/dist/views/closing-draft/composables/use-closing-draft-actions.d.ts +22 -0
- package/dist/views/closing-draft/composables/use-closing-draft-table.d.ts +2601 -0
- package/dist/views/closing-draft/helpers/draft-status-to-class-name.helper.d.ts +1 -0
- package/dist/views/closing-template/composables/use-closing-template-actions.d.ts +24 -192
- package/dist/views/closing-template/composables/use-closing-template-table.d.ts +24 -192
- package/dist/views/receive-request/components/transfer-form/NetSuiteField.vue.d.ts +2 -2
- package/dist/views/receive-request/components/transfer-form/TransferForm.vue.d.ts +40 -40
- package/dist/views/receive-request/components/transfer-form/composables/use-transfer-items.d.ts +1 -0
- package/dist/views/receive-request/composables/use-receive-request-form.d.ts +63 -63
- package/dist/views/receive-request/composables/use-receive-request-table.d.ts +63 -63
- package/dist/views/receive-request/helper/check-netsuite-subsidiary.helper.d.ts +1 -0
- package/dist/views/stock/components/StockRecordCard.vue.d.ts +1 -1
- package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-template-items.d.ts +8 -8
- package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +96 -96
- package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +96 -96
- package/dist/{xlsx-6mM1eNiL.js → xlsx-DOnDmayp.js} +1 -1
- package/dist/{xlsx.util-BLftcF4q.js → xlsx.util-BqsQd9YP.js} +1 -1
- package/package.json +3 -3
- package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-B4DDh9-a.js +0 -267
- package/dist/FmUnitInput.vue_vue_type_script_setup_true_lang-CxR1FCft.js +0 -326
- package/dist/IngredientsView-DCR3IBkR.js +0 -1613
- package/dist/ReceiveRequestView-DdPiYb2P.js +0 -4082
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-C9MOos--.js +0 -1144
- package/dist/format-unit-display-DEKg8cJm.js +0 -1198
- package/dist/index-CVsyOEb1.js +0 -10545
- package/dist/netsuite-DAKRv7zr.js +0 -146
- package/dist/normalizeArguments-DP7Hrren.js +0 -1552
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as oe, computed as _, ref as C, watch as ne, openBlock as
|
|
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
2
|
import { useDialogChild as ke, useSnackbar as _e } from "@feedmepos/ui-library";
|
|
3
|
-
import {
|
|
4
|
-
import { f as xe } from "./fuzzy-
|
|
5
|
-
import { d as Fe } from "./index-
|
|
3
|
+
import { D as m } from "./app-BaOENyRY.js";
|
|
4
|
+
import { f as xe } from "./fuzzy-CBGiL1wK.js";
|
|
5
|
+
import { d as Fe } from "./index-S7yfliEo.js";
|
|
6
6
|
/* empty css */
|
|
7
7
|
import { useI18n as we } from "@feedmepos/mf-common";
|
|
8
8
|
import { _ as Ce } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
@@ -16,41 +16,41 @@ const Se = /* @__PURE__ */ oe({
|
|
|
16
16
|
},
|
|
17
17
|
emits: ["changed:minHeight"],
|
|
18
18
|
setup(U, { emit: E }) {
|
|
19
|
-
const
|
|
20
|
-
const
|
|
21
|
-
return
|
|
22
|
-
}),
|
|
23
|
-
() => Array.from({ length:
|
|
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
24
|
);
|
|
25
25
|
function P() {
|
|
26
|
-
|
|
26
|
+
H.value = Math.floor(p.scrollTop / p.itemHeight) - Math.floor(p.prerender / 2);
|
|
27
27
|
}
|
|
28
28
|
const h = C(Fe(P, 10));
|
|
29
|
-
ne([() =>
|
|
29
|
+
ne([() => p.scrollTop], () => {
|
|
30
30
|
h.value();
|
|
31
31
|
});
|
|
32
|
-
function g(
|
|
33
|
-
const s =
|
|
32
|
+
function g(r) {
|
|
33
|
+
const s = r.el;
|
|
34
34
|
s && (s.style.opacity = "0", setTimeout(() => {
|
|
35
35
|
s.style.opacity = "1";
|
|
36
36
|
}, 0));
|
|
37
37
|
}
|
|
38
|
-
return (
|
|
38
|
+
return (r, s) => (d(), v("div", {
|
|
39
39
|
class: "relative",
|
|
40
|
-
style: A({ minHeight:
|
|
40
|
+
style: A({ minHeight: u.value })
|
|
41
41
|
}, [
|
|
42
|
-
(
|
|
43
|
-
f >= 0 && f <
|
|
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
44
|
key: 0,
|
|
45
45
|
class: "absolute w-full left-0 bg-white",
|
|
46
46
|
style: A({
|
|
47
|
-
top: `${
|
|
48
|
-
height: `${
|
|
47
|
+
top: `${r.itemHeight * f}px`,
|
|
48
|
+
height: `${r.itemHeight}px`,
|
|
49
49
|
transition: "opacity 0.5s ease"
|
|
50
50
|
}),
|
|
51
51
|
onVnodeMounted: g
|
|
52
52
|
}, [
|
|
53
|
-
fe(
|
|
53
|
+
fe(r.$slots, "default", {
|
|
54
54
|
key: f,
|
|
55
55
|
index: f,
|
|
56
56
|
getItem: (x) => x[f]
|
|
@@ -63,13 +63,13 @@ const Se = /* @__PURE__ */ oe({
|
|
|
63
63
|
key: 0,
|
|
64
64
|
class: "h-12 bg-white absolute top-[-12px] left-[-24px] w-lvw z-50",
|
|
65
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" },
|
|
66
|
+
}, Be = { class: "flex gap-16 basis-1/2" }, Ae = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, $e = {
|
|
67
67
|
key: 0,
|
|
68
68
|
class: "flex items-center gap-8 justify-center py-32"
|
|
69
|
-
},
|
|
69
|
+
}, He = { class: "text-fm-color-typo-secondary fm-typo-en-body-md-400" }, Ie = {
|
|
70
70
|
key: 2,
|
|
71
71
|
class: "p-16 text-fm-color-typo-disabled fm-typo-en-body-lg-400 text-center"
|
|
72
|
-
},
|
|
72
|
+
}, De = /* @__PURE__ */ oe({
|
|
73
73
|
__name: "FmMultiselectDialog",
|
|
74
74
|
props: {
|
|
75
75
|
modelValue: {},
|
|
@@ -87,45 +87,48 @@ const Se = /* @__PURE__ */ oe({
|
|
|
87
87
|
emits: ["update:modelValue"],
|
|
88
88
|
setup(U, { emit: E }) {
|
|
89
89
|
var Q, R, Y;
|
|
90
|
-
const { t:
|
|
90
|
+
const { t: p } = we(), $ = ke(), u = U, H = E, n = C(u.modelValue ?? []), P = _e();
|
|
91
91
|
be(() => {
|
|
92
|
-
var l,
|
|
93
|
-
|
|
94
|
-
const e = (l =
|
|
92
|
+
var l, a, o, b;
|
|
93
|
+
$.emitData(n.value);
|
|
94
|
+
const e = (l = u.modelValue) != null && l.length ? u.items.findIndex((F) => {
|
|
95
95
|
var k;
|
|
96
|
-
return
|
|
96
|
+
return m(F.value, (k = u.modelValue) == null ? void 0 : k[0]);
|
|
97
97
|
}) : 0;
|
|
98
|
-
(
|
|
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
99
|
}), ne([() => n.value], ([e]) => {
|
|
100
|
-
|
|
100
|
+
$.emitData(e), H("update:modelValue", e);
|
|
101
101
|
});
|
|
102
102
|
function h(e) {
|
|
103
|
-
return !!n.value.find((l) =>
|
|
103
|
+
return !!n.value.find((l) => m(l, e));
|
|
104
104
|
}
|
|
105
105
|
function g(e, l) {
|
|
106
|
-
|
|
107
|
-
const
|
|
108
|
-
if (!(l &&
|
|
106
|
+
u.singleSelect && (n.value = l ? [] : [e]);
|
|
107
|
+
const a = h(e);
|
|
108
|
+
if (!(l && a || !l && !a))
|
|
109
109
|
if (l) {
|
|
110
110
|
const o = [...n.value, e];
|
|
111
111
|
n.value = o;
|
|
112
112
|
} else {
|
|
113
|
-
const o = n.value.filter((b) => !
|
|
113
|
+
const o = n.value.filter((b) => !m(b, e));
|
|
114
114
|
n.value = o;
|
|
115
115
|
}
|
|
116
116
|
}
|
|
117
|
-
const
|
|
118
|
-
const e =
|
|
119
|
-
return
|
|
117
|
+
const r = C(""), s = _(() => {
|
|
118
|
+
const e = r.value.toLocaleLowerCase(), l = u.items;
|
|
119
|
+
return r.value ? xe.filter(e, l, {
|
|
120
120
|
pre: "|",
|
|
121
121
|
post: "|",
|
|
122
122
|
extract(o) {
|
|
123
123
|
return o.sublabel ? `${o.label}${o.sublabel}` : o.label;
|
|
124
124
|
}
|
|
125
|
-
}).map((o) => o.original) : l;
|
|
125
|
+
}).map((o) => o.original).filter((o) => !o.disabled) : l;
|
|
126
126
|
}), f = _(
|
|
127
|
-
() => n.value.filter((e) =>
|
|
128
|
-
|
|
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);
|
|
129
132
|
function se() {
|
|
130
133
|
if (s.value.length > 100) {
|
|
131
134
|
P.open({
|
|
@@ -134,96 +137,97 @@ const Se = /* @__PURE__ */ oe({
|
|
|
134
137
|
});
|
|
135
138
|
return;
|
|
136
139
|
}
|
|
137
|
-
x.value ? n.value = n.value.filter(
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
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)))
|
|
141
145
|
).map((e) => e.value);
|
|
142
146
|
}
|
|
143
147
|
const ie = q(
|
|
144
|
-
((Q =
|
|
148
|
+
((Q = u.items) == null ? void 0 : Q.map((e) => ({ value: e.value, disabled: e.disabled ?? !1 }))) ?? []
|
|
145
149
|
);
|
|
146
|
-
function
|
|
150
|
+
function de(e, l) {
|
|
147
151
|
return e.reduce(
|
|
148
|
-
(
|
|
152
|
+
(a, o) => {
|
|
149
153
|
const b = l(o);
|
|
150
|
-
return
|
|
154
|
+
return a[b] || (a[b] = []), a[b].push(o), a;
|
|
151
155
|
},
|
|
152
156
|
{}
|
|
153
157
|
);
|
|
154
158
|
}
|
|
155
|
-
const
|
|
159
|
+
const ue = _(() => de(ie, (e) => {
|
|
156
160
|
var l;
|
|
157
161
|
return (l = e.value) == null ? void 0 : l._id;
|
|
158
162
|
})), re = q(
|
|
159
|
-
((R =
|
|
163
|
+
((R = u.items) == null ? void 0 : R.map((e) => ({ value: e.value, collapsed: e.collapsed ?? !1 }))) ?? []
|
|
160
164
|
), G = q(
|
|
161
|
-
((Y =
|
|
165
|
+
((Y = u.groups) == null ? void 0 : Y.reduce(
|
|
162
166
|
(e, l) => (e[l.id] = l.collapse ?? !1, e),
|
|
163
167
|
{}
|
|
164
168
|
)) ?? {}
|
|
165
169
|
);
|
|
166
170
|
function N({ groupId: e, value: l }) {
|
|
167
|
-
var
|
|
168
|
-
return e && G[e] || ((
|
|
171
|
+
var a;
|
|
172
|
+
return e && G[e] || ((a = re.find((o) => m(o.value, l))) == null ? void 0 : a.collapsed);
|
|
169
173
|
}
|
|
170
174
|
function ce(e) {
|
|
171
175
|
G[e] = !G[e];
|
|
172
176
|
}
|
|
173
177
|
function j(e) {
|
|
174
|
-
return
|
|
178
|
+
return u.items.filter((l) => l.groupId === e).map((l) => l.value).every((l) => n.value.find((a) => m(a, l)));
|
|
175
179
|
}
|
|
176
180
|
function X(e) {
|
|
177
|
-
return !j(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)));
|
|
178
182
|
}
|
|
179
183
|
function ve(e) {
|
|
180
|
-
const l =
|
|
184
|
+
const l = u.items.filter((a) => a.groupId === e).map((a) => a.value);
|
|
181
185
|
if (j(e))
|
|
182
|
-
n.value = n.value.filter((
|
|
186
|
+
n.value = n.value.filter((a) => !l.find((o) => m(a, o)));
|
|
183
187
|
else if (X(e))
|
|
184
|
-
for (const
|
|
185
|
-
n.value.find((o) =>
|
|
188
|
+
for (const a of l)
|
|
189
|
+
n.value.find((o) => m(o, a)) || (n.value = [...n.value, a]);
|
|
186
190
|
else
|
|
187
191
|
n.value = [...n.value, ...l];
|
|
188
192
|
}
|
|
189
|
-
const
|
|
193
|
+
const I = C(0);
|
|
190
194
|
function J(e) {
|
|
191
195
|
var l;
|
|
192
|
-
|
|
196
|
+
I.value = ((l = e.target) == null ? void 0 : l.scrollTop) ?? I;
|
|
193
197
|
}
|
|
194
|
-
const me = _(() =>
|
|
198
|
+
const me = _(() => I.value > 100), D = C(), O = C();
|
|
195
199
|
return (e, l) => {
|
|
196
200
|
var ee, le;
|
|
197
|
-
const
|
|
198
|
-
return
|
|
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", {
|
|
199
203
|
class: "relative max-h-[380px] overflow-y-auto overflow-x-hidden",
|
|
200
204
|
onScroll: J,
|
|
201
205
|
onScrollend: J,
|
|
202
206
|
ref_key: "scrollable",
|
|
203
|
-
ref:
|
|
207
|
+
ref: D
|
|
204
208
|
}, [
|
|
205
209
|
V("div", Ve, [
|
|
206
|
-
e.noShadow ? M("", !0) : (
|
|
210
|
+
e.noShadow ? M("", !0) : (d(), v("div", Te)),
|
|
207
211
|
V("div", Be, [
|
|
208
|
-
c(
|
|
209
|
-
V("span", Ae, K(B(
|
|
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)
|
|
210
214
|
]),
|
|
211
215
|
c(o, {
|
|
212
216
|
class: "basis-1/2",
|
|
213
|
-
modelValue:
|
|
214
|
-
"onUpdate:modelValue": l[1] || (l[1] = (
|
|
217
|
+
modelValue: r.value,
|
|
218
|
+
"onUpdate:modelValue": l[1] || (l[1] = (t) => r.value = t),
|
|
215
219
|
"prepend-icon": "search",
|
|
216
220
|
placeholder: e.placeholder,
|
|
217
221
|
ref_key: "searchTextField",
|
|
218
222
|
ref: O
|
|
219
223
|
}, ye({ _: 2 }, [
|
|
220
|
-
|
|
224
|
+
r.value.length ? {
|
|
221
225
|
name: "append",
|
|
222
226
|
fn: y(() => [
|
|
223
|
-
c(
|
|
227
|
+
c(a, {
|
|
224
228
|
class: "cursor-pointer",
|
|
225
229
|
name: "close",
|
|
226
|
-
onClick: l[0] || (l[0] = (
|
|
230
|
+
onClick: l[0] || (l[0] = (t) => r.value = "")
|
|
227
231
|
})
|
|
228
232
|
]),
|
|
229
233
|
key: "0"
|
|
@@ -231,64 +235,64 @@ const Se = /* @__PURE__ */ oe({
|
|
|
231
235
|
]), 1032, ["modelValue", "placeholder"])
|
|
232
236
|
]),
|
|
233
237
|
V("div", null, [
|
|
234
|
-
e.loading ? (
|
|
238
|
+
e.loading ? (d(), v("div", $e, [
|
|
235
239
|
c(b, {
|
|
236
240
|
size: "md",
|
|
237
241
|
color: "neutral-gray-400"
|
|
238
242
|
}),
|
|
239
|
-
V("div",
|
|
240
|
-
])) : s.value.length ? (
|
|
243
|
+
V("div", He, K(B(p)("inventory.formField.loading")), 1)
|
|
244
|
+
])) : s.value.length ? (d(), L(pe, { key: 1 }, {
|
|
241
245
|
default: y(() => [
|
|
242
|
-
e.singleSelect ? M("", !0) : (
|
|
246
|
+
e.singleSelect ? M("", !0) : (d(), L(k, {
|
|
243
247
|
key: 0,
|
|
244
248
|
"model-value": x.value,
|
|
245
249
|
indeterminate: W.value,
|
|
246
250
|
value: "",
|
|
247
|
-
onClick: l[2] || (l[2] = (
|
|
251
|
+
onClick: l[2] || (l[2] = (t) => se())
|
|
248
252
|
}, {
|
|
249
253
|
prepend: y(() => [
|
|
250
254
|
c(F, {
|
|
251
255
|
"model-value": x.value,
|
|
252
256
|
indeterminate: W.value,
|
|
253
|
-
label: x.value ? B(
|
|
257
|
+
label: x.value ? B(p)("inventory.formField.select.removeAll") : B(p)("inventory.formField.select.selectAll"),
|
|
254
258
|
value: ""
|
|
255
259
|
}, null, 8, ["model-value", "indeterminate", "label"])
|
|
256
260
|
]),
|
|
257
261
|
_: 1
|
|
258
262
|
}, 8, ["model-value", "indeterminate"])),
|
|
259
|
-
e.groups ? (
|
|
260
|
-
key:
|
|
263
|
+
e.groups ? (d(!0), v(S, { key: 2 }, z(e.groups, (t) => (d(), v(S, {
|
|
264
|
+
key: t.id
|
|
261
265
|
}, [
|
|
262
266
|
c(k, {
|
|
263
|
-
label:
|
|
264
|
-
sublabel:
|
|
267
|
+
label: t.label,
|
|
268
|
+
sublabel: t.sublabel,
|
|
265
269
|
style: { "padding-top": "4px", "padding-bottom": "4px", "padding-left": "32px" },
|
|
266
|
-
disabled:
|
|
270
|
+
disabled: t.disabled
|
|
267
271
|
}, {
|
|
268
272
|
prepend: y(() => [
|
|
269
273
|
c(F, {
|
|
270
|
-
"model-value": j(
|
|
271
|
-
indeterminate: X(
|
|
272
|
-
onClick: () => ve(
|
|
273
|
-
value:
|
|
274
|
-
disabled:
|
|
274
|
+
"model-value": j(t.id),
|
|
275
|
+
indeterminate: X(t.id),
|
|
276
|
+
onClick: () => ve(t.id),
|
|
277
|
+
value: t.id,
|
|
278
|
+
disabled: t.disabled
|
|
275
279
|
}, null, 8, ["model-value", "indeterminate", "onClick", "value", "disabled"])
|
|
276
280
|
]),
|
|
277
281
|
append: y(() => [
|
|
278
282
|
c(Z, {
|
|
279
|
-
"prepend-icon": N({ groupId:
|
|
283
|
+
"prepend-icon": N({ groupId: t.id }) ? "expand_less" : "expand_more",
|
|
280
284
|
size: "md",
|
|
281
285
|
variant: "tertiary",
|
|
282
|
-
onClick: he(() => ce(
|
|
286
|
+
onClick: he(() => ce(t.id), ["stop"])
|
|
283
287
|
}, null, 8, ["prepend-icon", "onClick"])
|
|
284
288
|
]),
|
|
285
289
|
_: 2
|
|
286
290
|
}, 1032, ["label", "sublabel", "disabled"]),
|
|
287
|
-
(
|
|
291
|
+
(d(!0), v(S, null, z(s.value.filter((i) => i.groupId === t.id), (i) => (d(), v("div", {
|
|
288
292
|
key: i.value,
|
|
289
293
|
class: te([
|
|
290
294
|
"transition-all overflow-y-clip",
|
|
291
|
-
N({ groupId:
|
|
295
|
+
N({ groupId: t.id, value: i.value }) ? "max-h-0 opacity-0" : "max-h-[64px] opacity-100"
|
|
292
296
|
])
|
|
293
297
|
}, [
|
|
294
298
|
c(k, {
|
|
@@ -309,25 +313,25 @@ const Se = /* @__PURE__ */ oe({
|
|
|
309
313
|
_: 2
|
|
310
314
|
}, 1032, ["label", "sublabel", "disabled", "onClick"])
|
|
311
315
|
], 2))), 128))
|
|
312
|
-
], 64))), 128)) : (
|
|
313
|
-
e.virtualScroll ? (
|
|
316
|
+
], 64))), 128)) : (d(), v(S, { key: 1 }, [
|
|
317
|
+
e.virtualScroll ? (d(), L(Se, {
|
|
314
318
|
key: 0,
|
|
315
319
|
length: s.value.length,
|
|
316
320
|
"item-height": 64,
|
|
317
|
-
scrollTop:
|
|
321
|
+
scrollTop: I.value,
|
|
318
322
|
prerender: 100
|
|
319
323
|
}, {
|
|
320
|
-
default: y(({ getItem:
|
|
324
|
+
default: y(({ getItem: t }) => {
|
|
321
325
|
var i, T;
|
|
322
326
|
return [
|
|
323
327
|
c(k, {
|
|
324
|
-
label:
|
|
325
|
-
sublabel:
|
|
328
|
+
label: t(s.value).label,
|
|
329
|
+
sublabel: t(s.value).sublabel,
|
|
326
330
|
onClick: (ae) => g(
|
|
327
|
-
|
|
328
|
-
!h(
|
|
331
|
+
t(s.value).value,
|
|
332
|
+
!h(t(s.value).value)
|
|
329
333
|
),
|
|
330
|
-
disabled: (T =
|
|
334
|
+
disabled: (T = ue.value[(i = t(s.value).value) == null ? void 0 : i._id][0]) == null ? void 0 : T.disabled,
|
|
331
335
|
style: A({
|
|
332
336
|
paddingTop: 4,
|
|
333
337
|
paddingBottom: 4,
|
|
@@ -336,10 +340,10 @@ const Se = /* @__PURE__ */ oe({
|
|
|
336
340
|
}, {
|
|
337
341
|
prepend: y(() => [
|
|
338
342
|
c(F, {
|
|
339
|
-
"model-value": h(
|
|
340
|
-
"onUpdate:modelValue": (ae) => g(
|
|
341
|
-
value:
|
|
342
|
-
disabled:
|
|
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
|
|
343
347
|
}, null, 8, ["model-value", "onUpdate:modelValue", "value", "disabled"])
|
|
344
348
|
]),
|
|
345
349
|
_: 2
|
|
@@ -347,18 +351,18 @@ const Se = /* @__PURE__ */ oe({
|
|
|
347
351
|
];
|
|
348
352
|
}),
|
|
349
353
|
_: 1
|
|
350
|
-
}, 8, ["length", "scrollTop"])) : (
|
|
351
|
-
key:
|
|
354
|
+
}, 8, ["length", "scrollTop"])) : (d(!0), v(S, { key: 1 }, z(s.value, (t) => (d(), v("div", {
|
|
355
|
+
key: t.value,
|
|
352
356
|
class: te([
|
|
353
357
|
"transition-all overflow-y-clip",
|
|
354
|
-
N({ value:
|
|
358
|
+
N({ value: t.value }) ? "max-h-0 opacity-0" : "max-h-[64px] opacity-100"
|
|
355
359
|
])
|
|
356
360
|
}, [
|
|
357
361
|
c(k, {
|
|
358
|
-
label:
|
|
359
|
-
sublabel:
|
|
360
|
-
onClick: (i) => g(
|
|
361
|
-
disabled:
|
|
362
|
+
label: t.label,
|
|
363
|
+
sublabel: t.sublabel,
|
|
364
|
+
onClick: (i) => g(t.value, !h(t.value)),
|
|
365
|
+
disabled: t.disabled,
|
|
362
366
|
style: A({
|
|
363
367
|
paddingTop: 4,
|
|
364
368
|
paddingBottom: 4,
|
|
@@ -367,10 +371,10 @@ const Se = /* @__PURE__ */ oe({
|
|
|
367
371
|
}, {
|
|
368
372
|
prepend: y(() => [
|
|
369
373
|
c(F, {
|
|
370
|
-
"model-value": h(
|
|
371
|
-
"onUpdate:modelValue": (i) => g(
|
|
372
|
-
value:
|
|
373
|
-
disabled:
|
|
374
|
+
"model-value": h(t.value),
|
|
375
|
+
"onUpdate:modelValue": (i) => g(t.value, i),
|
|
376
|
+
value: t.value,
|
|
377
|
+
disabled: t.disabled
|
|
374
378
|
}, null, 8, ["model-value", "onUpdate:modelValue", "value", "disabled"])
|
|
375
379
|
]),
|
|
376
380
|
_: 2
|
|
@@ -379,23 +383,23 @@ const Se = /* @__PURE__ */ oe({
|
|
|
379
383
|
], 64))
|
|
380
384
|
]),
|
|
381
385
|
_: 1
|
|
382
|
-
})) : (
|
|
386
|
+
})) : (d(), v("div", Ie, K(B(p)("inventory.formField.noItemsFound")), 1))
|
|
383
387
|
]),
|
|
384
388
|
V("div", {
|
|
385
389
|
class: "sticky bottom-24",
|
|
386
|
-
style: A({ transform: `translateX(${(((le =
|
|
390
|
+
style: A({ transform: `translateX(${(((le = D.value) == null ? void 0 : le.clientWidth) ?? 0) - 80}px)` })
|
|
387
391
|
}, [
|
|
388
392
|
c(ge, { name: "fade" }, {
|
|
389
393
|
default: y(() => [
|
|
390
|
-
me.value ? (
|
|
394
|
+
me.value ? (d(), L(Z, {
|
|
391
395
|
key: 0,
|
|
392
396
|
variant: "fab",
|
|
393
397
|
class: "bg-white",
|
|
394
398
|
"text-color": "neutral-gray-400",
|
|
395
399
|
"prepend-icon": "keyboard_arrow_up",
|
|
396
400
|
onClick: l[3] || (l[3] = () => {
|
|
397
|
-
var
|
|
398
|
-
return (
|
|
401
|
+
var t;
|
|
402
|
+
return (t = D.value) == null ? void 0 : t.scrollTo({ top: 0, behavior: "smooth" });
|
|
399
403
|
})
|
|
400
404
|
})) : M("", !0)
|
|
401
405
|
]),
|
|
@@ -405,7 +409,7 @@ const Se = /* @__PURE__ */ oe({
|
|
|
405
409
|
], 544);
|
|
406
410
|
};
|
|
407
411
|
}
|
|
408
|
-
}), je = /* @__PURE__ */ Ce(
|
|
412
|
+
}), je = /* @__PURE__ */ Ce(De, [["__scopeId", "data-v-fa6c2f94"]]);
|
|
409
413
|
export {
|
|
410
414
|
je as F
|
|
411
415
|
};
|