@feedmepos/mf-inventory-portal 0.0.22-dev.40 → 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.
Files changed (45) hide show
  1. package/dist/{ApprovalView-JOsQBu1z.js → ApprovalView-5YpqaJKy.js} +3 -3
  2. package/dist/{BindingsDialog-DG2ZolH1.js → BindingsDialog-lGoLNJyU.js} +1 -1
  3. package/dist/{BindingsPicker-B7h_iST8.js → BindingsPicker-CdvkacXh.js} +1 -1
  4. package/dist/{BindingsTable-BToh6gcG.js → BindingsTable-B8G9Ckdk.js} +1 -1
  5. package/dist/ClosingTemplateView-Dcy08dPm.js +1775 -0
  6. package/dist/FmDroppableField-DeW5xBTW.js +154 -0
  7. package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-4NHQdjz7.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DBpTwDEI.js} +3 -3
  8. package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-cSTp7zUx.js +359 -0
  9. package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-DMOalXUS.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-DFHzlUVu.js} +1 -1
  10. package/dist/{IngredientsView-ChnCqdWi.js → IngredientsView-DKJjOK_4.js} +5 -5
  11. package/dist/IntegrationView-CgqU4EBV.js +1141 -0
  12. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BQW6HYyD.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-gvpXGm1X.js} +1 -1
  13. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-BQqcpZIJ.js → PremiumBadge.vue_vue_type_script_setup_true_lang-B3JDjoOu.js} +2 -2
  14. package/dist/{PurchaseOrderPrintPreview-BvED8ZbQ.js → PurchaseOrderPrintPreview-olI-JfjI.js} +1 -1
  15. package/dist/{ReceiveRequestView-DdxBaqmU.js → ReceiveRequestView-flhI8D2c.js} +10 -10
  16. package/dist/{RecipeView-YdSRy_yP.js → RecipeView-CoMyQ92u.js} +4 -4
  17. package/dist/{StockView-WF5z4dTF.js → StockView-Dae47pLA.js} +5 -5
  18. package/dist/{SupplierView-H2Vi5lSs.js → SupplierView-CxYZUHrc.js} +3 -3
  19. package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-D48gSqHW.js → TransferDetails.vue_vue_type_script_setup_true_lang-DoEEedkk.js} +396 -387
  20. package/dist/TransferTemplateView-DdB7z0b4.js +1302 -0
  21. package/dist/{UnitView-qD9JSdHT.js → UnitView-B0E2nG3J.js} +4 -4
  22. package/dist/{WarehouseView-C19Dd53y.js → WarehouseView-NQ2JwyWK.js} +2 -2
  23. package/dist/{app-DKE_n9Mo.js → app-tiUQG6R0.js} +3898 -3854
  24. package/dist/app.d.ts +50 -3
  25. package/dist/app.js +1 -1
  26. package/dist/components/FmMultiselectDialog.vue.d.ts +3 -9
  27. package/dist/{decimal-veoPLYim.js → decimal-BOvNv58m.js} +1 -1
  28. package/dist/{defineDeepModel-u6t3hXU9.js → defineDeepModel-CNgIKGt8.js} +1 -1
  29. package/dist/{format-time-from-id-8gjg5B98.js → format-time-from-id-DWlH-AZV.js} +1 -1
  30. package/dist/format-unit-display-DIhXvTxN.js +1195 -0
  31. package/dist/stores/netsuite.d.ts +1 -1
  32. package/dist/style.css +1 -1
  33. package/dist/{supplier-DLcmVScz.js → supplier-rpkSwf7L.js} +1 -1
  34. package/dist/tsconfig.app.tsbuildinfo +1 -1
  35. package/dist/{use-template-enabled-locations-2-CdJVJikY.js → use-template-enabled-locations-2-BrK8SKvw.js} +1 -1
  36. package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +7 -5
  37. package/dist/{xlsx-CrKrCGZz.js → xlsx-DGqkxpZX.js} +1 -1
  38. package/dist/{xlsx.util-Bcpkvw1Z.js → xlsx.util-CvycJwUf.js} +1 -1
  39. package/package.json +3 -1
  40. package/dist/ClosingTemplateView-BwMJAxuz.js +0 -1688
  41. package/dist/FmDroppableField-CJNAT3h2.js +0 -152
  42. package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-Cc_P0kss.js +0 -364
  43. package/dist/IntegrationView-NWkc9PLW.js +0 -1141
  44. package/dist/TransferTemplateView-DeT32cat.js +0 -2054
  45. package/dist/purchase-order-transaction-type-CIDEpjJB.js +0 -348
@@ -1,152 +0,0 @@
1
- import { defineComponent as O, ref as r, computed as v, resolveComponent as z, openBlock as n, createElementBlock as p, createElementVNode as d, createCommentVNode as k, renderSlot as c, createBlock as C, normalizeClass as u, toDisplayString as g } from "vue";
2
- import { X as N } from "./app-DKE_n9Mo.js";
3
- const M = {
4
- key: 0,
5
- class: "relative"
6
- }, W = ["accept", "disabled"], X = { class: "flex flex-col gap-8" }, q = ["accept", "disabled"], G = /* @__PURE__ */ O({
7
- __name: "FmDroppableField",
8
- props: {
9
- buttonLabel: {},
10
- label: { default: "" },
11
- disabled: { type: Boolean, default: !1 },
12
- accept: { default: "" },
13
- maxFileSize: { default: 8e6 },
14
- contentClass: {}
15
- },
16
- emits: ["file-upload", "file-rejected"],
17
- setup(S, { emit: $ }) {
18
- const l = S, y = $, t = r(!1), i = r(null), s = r(null), f = r(), B = (e) => {
19
- l.disabled || (e.stopPropagation(), e.preventDefault());
20
- }, V = (e) => {
21
- l.disabled || (e.stopPropagation(), e.preventDefault(), t.value = !0);
22
- }, R = (e) => {
23
- l.disabled || (e.stopPropagation(), e.preventDefault(), t.value = !1);
24
- }, j = (e) => {
25
- var a;
26
- l.disabled || (e.stopPropagation(), e.preventDefault(), t.value = !1, F((a = e.dataTransfer) == null ? void 0 : a.files));
27
- };
28
- function F(e) {
29
- if (e)
30
- if (f.value = e, i.value = T(e[0]), s.value = A(e[0]), i.value && s.value)
31
- y("file-upload", e[0]);
32
- else {
33
- const a = L();
34
- y("file-rejected", [
35
- {
36
- file: e[0],
37
- reason: a
38
- }
39
- ]);
40
- }
41
- }
42
- const L = () => {
43
- const e = new Array();
44
- return i.value || e.push("invalid-type"), s.value || e.push("invalid-size"), e;
45
- }, T = (e) => {
46
- if (!l.accept) return !0;
47
- const a = l.accept.split(",").map((o) => o.trim());
48
- for (const o of a)
49
- if (E(o)) {
50
- if (D(o) === D(e.type)) return !0;
51
- } else if (P(e) === o || e.type === o) return !0;
52
- return !1;
53
- }, A = (e) => e.size <= l.maxFileSize, E = (e) => e.indexOf("*") !== -1, P = (e) => "." + e.name.split(".").pop(), D = (e) => e.substring(0, e.indexOf("/")), w = v(() => {
54
- if (t.value) return "Drop file to upload";
55
- if (i.value) {
56
- if (!s.value) return `File size exceeds ${l.maxFileSize * 1e-6}mb`;
57
- } else return "File type is not valid";
58
- return "";
59
- }), m = v(() => f.value ? !i.value || !s.value : !1), _ = (e) => {
60
- const a = e.target;
61
- F(a.files);
62
- }, x = v(() => {
63
- var e;
64
- return (e = f.value) == null ? void 0 : e.item(0);
65
- }), b = r();
66
- return (e, a) => {
67
- const o = z("FmLabel"), I = z("FmButton");
68
- return n(), p("label", {
69
- class: "fm-droppable-field",
70
- ref_key: "fmButtonRef",
71
- ref: b
72
- }, [
73
- e.$slots.default ? (n(), p("div", M, [
74
- d("input", {
75
- accept: e.accept,
76
- disabled: e.disabled,
77
- class: "fm-droppable-field__input",
78
- type: "file",
79
- onChange: _
80
- }, null, 40, W)
81
- ])) : k("", !0),
82
- c(e.$slots, "default", {
83
- isDragging: t.value,
84
- isValidFileType: i.value,
85
- isValidFileSize: s.value,
86
- singleValidFile: x.value,
87
- openFileDialog: () => {
88
- var h;
89
- return console.log("click", b.value), (h = b.value) == null ? void 0 : h.click();
90
- }
91
- }, () => [
92
- d("div", X, [
93
- e.$slots.label ? c(e.$slots, "label", { key: 0 }, void 0, !0) : (n(), C(o, {
94
- key: 1,
95
- label: e.label
96
- }, null, 8, ["label"]))
97
- ]),
98
- d("div", {
99
- class: u([[
100
- e.contentClass ? e.contentClass : "w-full h-full",
101
- {
102
- "fm-droppable-field__container--dragging": t.value,
103
- "fm-droppable-field__container--invalid": m.value && !e.disabled,
104
- "fm-droppable-field__container--disabled": e.disabled
105
- }
106
- ], "fm-droppable-field__container"]),
107
- onDragenter: B,
108
- onDragleave: R,
109
- onDragover: V,
110
- onDrop: j
111
- }, [
112
- (t.value || m.value) && !e.disabled ? (n(), p("div", {
113
- key: 0,
114
- class: u({
115
- "fm-typo-en-body-lg-600": !0,
116
- "text-fm-color-primary": t.value,
117
- "text-fm-color-typo-error": m.value
118
- })
119
- }, g(w.value), 3)) : (n(), C(I, {
120
- key: 1,
121
- disabled: e.disabled,
122
- label: e.buttonLabel ?? "Add files",
123
- size: "md",
124
- variant: "secondary"
125
- }, null, 8, ["disabled", "label"])),
126
- c(e.$slots, "accept-text", {}, () => [
127
- l.accept ? (n(), p("div", {
128
- key: 0,
129
- class: u([[e.disabled ? "text-fm-color-typo-disabled" : "text-fm-color-typo-secondary"], "fm-typo-en-body-md-400"])
130
- }, g(`Accepts ${l.accept}`), 3)) : k("", !0)
131
- ], !0),
132
- d("input", {
133
- accept: e.accept,
134
- disabled: e.disabled,
135
- class: "fm-droppable-field__input",
136
- type: "file",
137
- onChange: _
138
- }, null, 40, q)
139
- ], 34),
140
- c(e.$slots, "helper-text", {}, () => [
141
- d("div", {
142
- class: u([[e.disabled ? "text-fm-color-typo-disabled" : "text-fm-color-typo-secondary"], "fm-typo-en-body-sm-400"])
143
- }, g(`Max size ${l.maxFileSize * 1e-6}mb`), 3)
144
- ], !0)
145
- ], !0)
146
- ], 512);
147
- };
148
- }
149
- }), K = /* @__PURE__ */ N(G, [["__scopeId", "data-v-311b22a0"]]);
150
- export {
151
- K as F
152
- };
@@ -1,364 +0,0 @@
1
- import { reactive as q, onUnmounted as G, defineComponent as T, computed as g, resolveComponent as y, openBlock as a, createElementBlock as b, Fragment as M, createElementVNode as m, unref as r, normalizeClass as D, toDisplayString as R, createCommentVNode as h, renderList as I, createBlock as k, createVNode as _, renderSlot as J, Teleport as K, ref as O, withCtx as S, watch as X, mergeModels as Z, useModel as U } from "vue";
2
- import { FmButtonVariant as ee, useBreakpoints as A } from "@feedmepos/ui-library";
3
- import { i as Y, V as z } from "./app-DKE_n9Mo.js";
4
- import { useCoreStore as ne, useI18n as j } from "@feedmepos/mf-common";
5
- const H = q({});
6
- function Q() {
7
- const i = `${Math.random()}`, t = new ResizeObserver((o) => {
8
- const l = o.map((n) => n.target.scrollHeight).reduce((n, s) => n + s);
9
- H[i] = l;
10
- }), d = (o) => {
11
- const l = o.el;
12
- l && t.observe(l);
13
- }, u = (o) => {
14
- const l = o.el;
15
- l && t.unobserve(l);
16
- };
17
- return G(() => {
18
- t.disconnect(), delete H[i];
19
- }), {
20
- get tableHeight() {
21
- return {
22
- height: `calc(100dvh - ${Object.values(H).reduce((n, s) => n + s, 0) + 64}px)`
23
- };
24
- },
25
- onMounted: d,
26
- onUnmounted: u
27
- };
28
- }
29
- const te = { class: "flex flex-col w-full bg-white h-full" }, oe = {
30
- key: 0,
31
- class: /* @__PURE__ */ D(["text-fm-color-typo-secondary fm-typo-en-body-sm-400"])
32
- }, le = { key: 0 }, ae = { key: 1 }, se = { class: "bg-white flex-1" }, ue = { class: "fixed bottom-96 right-16" }, Be = /* @__PURE__ */ T({
33
- __name: "SingleColumnLayout",
34
- props: {
35
- actions: { default: () => [] },
36
- title: { default: "Title" },
37
- description: {},
38
- showBackButton: { type: Boolean },
39
- defaultPadding: { type: Boolean },
40
- breadcrumbs: { default: () => [] },
41
- usingBusinessHelperText: {}
42
- },
43
- emits: ["click:action"],
44
- setup(i, { emit: t }) {
45
- const d = i, u = t, o = g(() => d.actions.find((e) => e.isPrimary)), l = g(
46
- () => d.actions.filter((e) => !e.isPrimary).map((e) => ({ ...e, variant: e.variant ?? ee.Tertiary }))
47
- ), { breakpoints: n } = A(), s = g(() => n.value.xs || n.value.sm), v = Y(), w = g(() => v.businessLevel), x = Q();
48
- return (e, p) => {
49
- const B = y("FmButton");
50
- return a(), b(M, null, [
51
- m("div", te, [
52
- m("div", {
53
- onVnodeMounted: p[1] || (p[1] = //@ts-ignore
54
- (...f) => r(x).onMounted && r(x).onMounted(...f)),
55
- class: D([
56
- "flex gap-4",
57
- {
58
- "p-12": s.value,
59
- "px-24 py-16": !s.value
60
- }
61
- ])
62
- }, [
63
- m("div", {
64
- class: D([
65
- "flex-1 flex flex-col gap-4 fm-typo-en-title-md-600 bg-white",
66
- {
67
- "py-12": s.value
68
- }
69
- ])
70
- }, [
71
- m("div", null, R(e.title), 1),
72
- e.usingBusinessHelperText && w.value ? (a(), b("div", oe, R(e.usingBusinessHelperText), 1)) : h("", !0)
73
- ], 2),
74
- l.value.length ? (a(), b("div", le, [
75
- (a(!0), b(M, null, I(l.value, (f) => (a(), k(B, {
76
- key: f.value,
77
- label: f.label,
78
- "prepend-icon": f.prependIcon,
79
- variant: f.variant,
80
- onClick: (N) => u("click:action", f.value)
81
- }, null, 8, ["label", "prepend-icon", "variant", "onClick"]))), 128))
82
- ])) : h("", !0),
83
- o.value && (r(n).lg || r(n).md) ? (a(), b("div", ae, [
84
- _(B, {
85
- label: o.value.label,
86
- "prepend-icon": o.value.prependIcon,
87
- onClick: p[0] || (p[0] = (f) => u("click:action", o.value.value))
88
- }, null, 8, ["label", "prepend-icon"])
89
- ])) : h("", !0)
90
- ], 2),
91
- m("div", se, [
92
- J(e.$slots, "default")
93
- ])
94
- ]),
95
- o.value && s.value ? (a(), k(K, {
96
- key: 0,
97
- to: "body"
98
- }, [
99
- m("div", ue, [
100
- _(B, {
101
- label: o.value.label,
102
- "prepend-icon": o.value.prependIcon,
103
- onClick: p[2] || (p[2] = (f) => u("click:action", o.value.value)),
104
- variant: "fab"
105
- }, null, 8, ["label", "prepend-icon"])
106
- ])
107
- ])) : h("", !0)
108
- ], 64);
109
- };
110
- }
111
- }), re = { class: "inline-flex" }, ie = { class: "inline-flex rounded-md items-center gap-4 justify-center h-[30px] px-8 py-4 bg-fm-color-neutral-gray-100 cursor-pointer text-fm-color-neutral-gray-400" }, ce = { class: "fm-typo-en-body-md-600 select-none text-ellipsis overflow-hidden whitespace-nowrap" }, de = { class: "relative" }, me = { class: "sticky top-0 py-8 bg-white translate-y-[-12px]" }, ve = /* @__PURE__ */ T({
112
- __name: "ChangeLocationComponent",
113
- props: {
114
- showBusiness: { type: Boolean }
115
- },
116
- setup(i) {
117
- const t = Y(), d = ne(), u = g(() => {
118
- var e;
119
- return (e = d.currentBusiness.value) == null ? void 0 : e.name;
120
- }), { t: o } = j(), l = O(""), n = g({
121
- get() {
122
- return t.businessLevel;
123
- },
124
- set(e) {
125
- t.businessLevel = e;
126
- }
127
- }), s = g(
128
- () => t.locations.map((e) => ({ label: e.name, value: e.dbName, type: e.type })).filter(
129
- (e) => l.value ? e.label.toLocaleLowerCase().includes(l.value.toLocaleLowerCase()) : !0
130
- )
131
- ), v = g(
132
- () => s.value.filter((e) => e.type === "restaurant")
133
- ), w = g(
134
- () => s.value.filter((e) => e.type === "warehouse")
135
- );
136
- function x({ value: e }) {
137
- n.value = !1, t.selectLocation(t.locations.find((p) => p.dbName === e));
138
- }
139
- return (e, p) => {
140
- const B = y("FmIcon"), f = y("FmSearch"), N = y("FmMenuHeader"), E = y("FmMenuDivider"), L = y("FmMenuItem"), W = y("FmMenu");
141
- return a(), b("div", re, [
142
- _(W, { "close-on-click": !0 }, {
143
- "menu-button": S(() => {
144
- var c;
145
- return [
146
- m("div", ie, [
147
- _(B, {
148
- name: e.showBusiness && n.value ? "store" : "storefront",
149
- size: "sm"
150
- }, null, 8, ["name"]),
151
- m("div", ce, R(e.showBusiness && n.value ? u.value : ((c = r(t)._currentLocation) == null ? void 0 : c.name) ?? r(o)("inventory.common.noLocationSelected")), 1),
152
- _(B, {
153
- name: "expand_more",
154
- size: "sm"
155
- })
156
- ])
157
- ];
158
- }),
159
- default: S(() => [
160
- m("div", de, [
161
- m("div", me, [
162
- _(f, {
163
- "model-value": l.value,
164
- "onUpdate:modelValue": p[0] || (p[0] = (c) => l.value = c),
165
- placeholder: r(o)("inventory.common.table.toolbar.filterItems")
166
- }, null, 8, ["model-value", "placeholder"])
167
- ]),
168
- m("div", null, [
169
- e.showBusiness ? (a(), b(M, { key: 0 }, [
170
- _(N, {
171
- label: r(o)("inventory.common.business")
172
- }, null, 8, ["label"]),
173
- _(E),
174
- _(L, {
175
- "model-value": n.value,
176
- label: u.value,
177
- sublabel: "Business",
178
- onClick: p[1] || (p[1] = (c) => n.value = !0)
179
- }, null, 8, ["model-value", "label"])
180
- ], 64)) : h("", !0),
181
- (a(!0), b(M, null, I(v.value, (c) => {
182
- var F;
183
- return a(), k(L, {
184
- key: c.value,
185
- "model-value": !n.value && ((F = r(t)._currentLocation) == null ? void 0 : F.dbName) === c.value,
186
- label: c.label,
187
- sublabel: "Restaurant",
188
- onClick: ($) => x(c),
189
- onVnodeMounted: ($) => {
190
- var V, C;
191
- return !n.value && ((V = r(t)._currentLocation) == null ? void 0 : V.dbName) === c.value && ((C = $.el) == null || C.scrollIntoView({ behavior: "smooth", block: "center" })), void 0;
192
- }
193
- }, null, 8, ["model-value", "label", "onClick", "onVnodeMounted"]);
194
- }), 128)),
195
- (a(!0), b(M, null, I(w.value, (c) => {
196
- var F;
197
- return a(), k(L, {
198
- key: c.value,
199
- "model-value": !n.value && ((F = r(t)._currentLocation) == null ? void 0 : F.dbName) === c.value,
200
- label: c.label,
201
- sublabel: "Warehouse",
202
- onClick: ($) => x(c),
203
- onVnodeMounted: ($) => {
204
- var V, C;
205
- return !n.value && ((V = r(t)._currentLocation) == null ? void 0 : V.dbName) === c.value && ((C = $.el) == null || C.scrollIntoView({ behavior: "smooth", block: "center" })), void 0;
206
- }
207
- }, null, 8, ["model-value", "label", "onClick", "onVnodeMounted"]);
208
- }), 128)),
209
- !e.showBusiness && !v.value.length && !w.value.length ? (a(), k(L, {
210
- key: 1,
211
- disabled: "",
212
- label: r(o)("inventory.common.noResultFound")
213
- }, null, 8, ["label"])) : h("", !0)
214
- ])
215
- ])
216
- ]),
217
- _: 1
218
- })
219
- ]);
220
- };
221
- }
222
- });
223
- function Me() {
224
- const i = /* @__PURE__ */ new Date();
225
- return i.setDate(i.getDate() - 15), {
226
- start: i,
227
- end: /* @__PURE__ */ new Date()
228
- };
229
- }
230
- function P(i = 15) {
231
- const t = /* @__PURE__ */ new Date();
232
- t.setDate(t.getDate() - i);
233
- const d = t, u = /* @__PURE__ */ new Date();
234
- return {
235
- startDate: `${z(d)}`,
236
- endDate: `${z(u)}`
237
- };
238
- }
239
- const pe = { class: "inline-flex rounded-md items-center gap-4 justify-center h-[30px] px-8 py-4 bg-fm-color-neutral-gray-100 cursor-pointer text-fm-color-neutral-gray-400" }, be = { class: "fm-typo-en-body-md-600 select-none text-ellipsis overflow-hidden whitespace-nowrap" }, fe = /* @__PURE__ */ T({
240
- __name: "FmDateRangePickerChip",
241
- props: {
242
- modelValue: { default: (i) => i.modelValue ?? P() }
243
- },
244
- emits: ["update:modelValue"],
245
- setup(i, { emit: t }) {
246
- const d = t, u = O(P());
247
- X(u, (l) => {
248
- d("update:modelValue", l);
249
- });
250
- const o = g(() => {
251
- const { startDate: l, endDate: n } = u.value;
252
- return !l && !n ? "" : `${l} - ${n}`;
253
- });
254
- return (l, n) => {
255
- const s = y("FmIcon"), v = y("FmDateRangePicker");
256
- return a(), k(v, {
257
- "show-predefined-range": "",
258
- modelValue: u.value,
259
- "onUpdate:modelValue": n[0] || (n[0] = (w) => u.value = w),
260
- "start-label": "",
261
- "end-label": ""
262
- }, {
263
- "trigger-button": S(() => [
264
- m("div", pe, [
265
- _(s, {
266
- name: "calendar_month",
267
- size: "sm"
268
- }),
269
- m("div", be, R(o.value), 1)
270
- ])
271
- ]),
272
- _: 1
273
- }, 8, ["modelValue"]);
274
- };
275
- }
276
- }), ye = { class: "flex-1 w-full flex items-center gap-4" }, ge = {
277
- key: 0,
278
- class: "flex-1"
279
- }, he = { class: "w-full max-w-[343px] xs:max-w-[unset] sm:max-w-[unset]" }, Fe = /* @__PURE__ */ T({
280
- __name: "FmInventoryTableToolbar",
281
- props: /* @__PURE__ */ Z({
282
- dateRangeQuery: { type: Boolean },
283
- changeLocation: { type: Boolean },
284
- searchable: { type: Boolean },
285
- actions: {},
286
- usingBusinessHelperText: {},
287
- showBusiness: { type: Boolean }
288
- }, {
289
- search: {},
290
- searchModifiers: {},
291
- dateRange: {},
292
- dateRangeModifiers: {}
293
- }),
294
- emits: ["update:search", "update:dateRange"],
295
- setup(i) {
296
- const { breakpoints: t } = A(), d = g(() => t.value.xs || t.value.sm), u = U(i, "search"), o = U(i, "dateRange"), { t: l } = j(), n = Q();
297
- return (s, v) => {
298
- const w = y("FmTextField"), x = y("FmButton");
299
- return a(), b("div", {
300
- class: "flex flex-col gap-8",
301
- onVnodeMounted: v[2] || (v[2] = //@ts-ignore
302
- (...e) => r(n).onMounted && r(n).onMounted(...e)),
303
- onVnodeUnmounted: v[3] || (v[3] = //@ts-ignore
304
- (...e) => r(n).onUnmounted && r(n).onUnmounted(...e))
305
- }, [
306
- m("div", {
307
- class: D([
308
- "flex gap-8 items-center",
309
- {
310
- "px-8 flex-col-reverse h-[unset]": d.value,
311
- "h-48": !d.value
312
- }
313
- ])
314
- }, [
315
- s.changeLocation || s.dateRangeQuery ? (a(), b("div", {
316
- key: 0,
317
- class: D([
318
- "flex gap-8 items-center",
319
- {
320
- "w-full overflow-x-auto": d.value
321
- }
322
- ])
323
- }, [
324
- s.changeLocation ? (a(), k(ve, {
325
- key: 0,
326
- "show-business": s.showBusiness
327
- }, null, 8, ["show-business"])) : h("", !0),
328
- s.dateRangeQuery ? (a(), k(fe, {
329
- key: 1,
330
- "model-value": o.value,
331
- "onUpdate:modelValue": v[0] || (v[0] = (e) => o.value = e)
332
- }, null, 8, ["model-value"])) : h("", !0)
333
- ], 2)) : h("", !0),
334
- m("div", ye, [
335
- d.value ? h("", !0) : (a(), b("div", ge)),
336
- m("div", he, [
337
- s.searchable ? (a(), k(w, {
338
- key: 0,
339
- "model-value": u.value,
340
- "onUpdate:modelValue": v[1] || (v[1] = (e) => u.value = e),
341
- "prepend-icon": "search",
342
- placeholder: r(l)("inventory.common.table.toolbar.filterItems"),
343
- class: "w-full"
344
- }, null, 8, ["model-value", "placeholder"])) : h("", !0)
345
- ]),
346
- (a(!0), b(M, null, I(s.actions, (e, p) => (a(), k(x, {
347
- key: p,
348
- variant: "tertiary",
349
- "prepend-icon": e.icon,
350
- onClick: e.onClick
351
- }, null, 8, ["prepend-icon", "onClick"]))), 128))
352
- ])
353
- ], 2)
354
- ], 512);
355
- };
356
- }
357
- });
358
- export {
359
- Be as _,
360
- Fe as a,
361
- Me as b,
362
- P as i,
363
- Q as u
364
- };