@feedmepos/mf-inventory-portal 0.0.22-dev.4 → 0.0.22-dev.41
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-xF73Z1jN.js → ApprovalView-DKqwRFlF.js} +25 -26
- package/dist/{BindingsDialog-CCSAxGT4.js → BindingsDialog-CtMSqEuE.js} +9 -9
- package/dist/{BindingsPicker-ErFH0uEQ.js → BindingsPicker-DCLNF1PL.js} +22 -22
- package/dist/{BindingsTable-D8ffJgIJ.js → BindingsTable-6ndQuHeA.js} +1 -1
- package/dist/ClosingTemplateView-BPrDQ_8-.js +1688 -0
- package/dist/FmDroppableField-DQFPEiJn.js +152 -0
- package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BUGB0uk3.js +266 -0
- package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CM93v-jp.js +359 -0
- package/dist/IngredientBindedItem.vue_vue_type_script_setup_true_lang-SNp8etCc.js +51 -0
- package/dist/IngredientsView-B1jGkWYN.js +1611 -0
- package/dist/{IntegrationView-54yz2EqS.js → IntegrationView-Bu0waSjB.js} +71 -71
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CKvKlCk-.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-mZQlrYaY.js} +1 -1
- package/dist/PremiumBadge.vue_vue_type_script_setup_true_lang-BEFmqnHk.js +116 -0
- package/dist/{PurchaseOrderPrintPreview-pcpWSfl4.js → PurchaseOrderPrintPreview-DTQViYuX.js} +7 -7
- package/dist/ReceiveRequestView-CNRixgQu.js +4069 -0
- package/dist/RecipeView-HStPC5pE.js +591 -0
- package/dist/Standalone.vue.d.ts +2 -0
- package/dist/StockView-JO3NtkX9.js +7762 -0
- package/dist/{SupplierView-TYCkPXan.js → SupplierView-gtaS4K3U.js} +111 -111
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-dPt3qbcX.js +1146 -0
- package/dist/TransferTemplateView-C0pjLfbz.js +2054 -0
- package/dist/{UnitView-B9yE4-rc.js → UnitView-dbInWUk4.js} +18 -18
- package/dist/{WarehouseView-DUtVLTjb.js → WarehouseView-BlTBvLF0.js} +176 -177
- package/dist/api/bill.d.ts +84 -238
- package/dist/api/closing-template.d.ts +6 -4
- package/dist/api/inventory.d.ts +72 -85
- package/dist/api/netsuite.d.ts +47 -0
- package/dist/api/purchase-order-template.d.ts +4 -6
- package/dist/{app-w8TOQVZc.js → app-TB3IWuaU.js} +24520 -23671
- package/dist/app.d.ts +7 -0
- package/dist/app.js +3 -3
- package/dist/components/FmFilterableMenuOptions.vue.d.ts +54 -0
- package/dist/components/FmMinMaxInputRules.d.ts +2 -0
- package/dist/components/FmUnitInputRules.d.ts +2 -0
- package/dist/components/map/GoogleMap.vue.d.ts +4 -4
- package/dist/{decimal-C4q7UMfr.js → decimal-BRAYgPnN.js} +1 -1
- package/dist/defineDeepModel-DrEk5Fhq.js +13 -0
- package/dist/format-time-from-id-kpVYfVQb.js +15 -0
- package/dist/helper/rules.d.ts +7 -0
- package/dist/helper/rules.spec.d.ts +1 -0
- package/dist/helper/xlsx.util.d.ts +7 -0
- package/dist/purchase-order-transaction-type-ZMNa__2l.js +348 -0
- package/dist/stores/api.d.ts +1 -0
- package/dist/stores/feature.d.ts +0 -1
- package/dist/stores/helper/core-store-proxy.d.ts +3 -0
- package/dist/stores/helper/generate-backend-urls.d.ts +1 -0
- package/dist/stores/inventory.d.ts +85 -0
- package/dist/stores/location.d.ts +508 -503
- package/dist/stores/netsuite.d.ts +69 -0
- package/dist/stores/route.d.ts +0 -5
- package/dist/stores/supplier.d.ts +120 -3
- package/dist/style.css +1 -1
- package/dist/supplier-CJcqHpaM.js +70 -0
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/use-template-enabled-locations-2-DyD24laW.js +85 -0
- package/dist/views/closing-template/closing-template-import/ClosingTemplateImportItem.vue.d.ts +12 -0
- package/dist/views/closing-template/closing-template-import/ClosingTemplateImportItemProps.d.ts +7 -0
- package/dist/views/closing-template/composables/use-closing-template-actions.d.ts +1093 -1026
- package/dist/views/closing-template/composables/use-closing-template-table.d.ts +1098 -1037
- package/dist/views/closing-template/helpers/import-export.helper.d.ts +58 -0
- package/dist/views/ingredients/composables/use-ingredient-form.d.ts +2 -2
- package/dist/views/receive-request/components/transfer-details/TransferDetailsProps.d.ts +1 -0
- package/dist/views/receive-request/components/transfer-form/NetSuiteField.vue.d.ts +45 -0
- package/dist/views/receive-request/components/transfer-form/TransferForm.vue.d.ts +1944 -82
- package/dist/views/receive-request/components/transfer-form/TransferFormProps.d.ts +1 -0
- package/dist/views/receive-request/composables/use-receive-request-form.d.ts +2351 -284
- package/dist/views/receive-request/composables/use-receive-request-table.d.ts +2300 -233
- package/dist/views/recipe/composables/use-recipe-form.d.ts +2 -2
- package/dist/views/stock/components/StockRecordCard.vue.d.ts +42 -119
- package/dist/views/stock/composables/use-stock-action.d.ts +2 -2
- package/dist/views/transfer-template/components/transfer-template-details/TransferTemplateDetails.vue.d.ts +0 -2
- package/dist/views/transfer-template/components/transfer-template-details/TransferTemplateDetailsProps.d.ts +0 -1
- package/dist/views/transfer-template/components/transfer-template-form/composables/use-template-enabled-locations-2.d.ts +13 -0
- package/dist/views/transfer-template/components/transfer-template-form/composables/use-template-enabled-locations.d.ts +71 -85
- package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-locations.d.ts +39 -2
- package/dist/views/transfer-template/components/transfer-template-import/TransferTemplateImport.vue.d.ts +2 -0
- package/dist/views/transfer-template/components/transfer-template-import/TransferTemplateImportItem.vue.d.ts +12 -0
- package/dist/views/transfer-template/components/transfer-template-import/TransferTemplateImportItemProps.d.ts +9 -0
- package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +1263 -1466
- package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +1688 -897
- package/dist/views/transfer-template/helpers/import-export.helper.d.ts +76 -0
- package/dist/views/transfer-template/helpers/remove-deleted-skus.helper.d.ts +1 -0
- package/dist/views/transfer-template/helpers/template-item.error.helper.d.ts +1 -0
- package/dist/views/unit/composables/use-unit-form.d.ts +2 -2
- package/dist/{xlsx-BggStaH1.js → xlsx-Dd5ckm6-.js} +1525 -1525
- package/dist/xlsx.util-qlqvEcJz.js +78 -0
- package/package.json +7 -5
- package/dist/ClosingTemplateView-DdZlX1ug.js +0 -1030
- package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-ZYtBNoaE.js +0 -372
- package/dist/IngredientsView-DnwwQJTN.js +0 -1758
- package/dist/PremiumBadge.vue_vue_type_script_setup_true_lang-Bom_KvXW.js +0 -88
- package/dist/ReceiveRequestView-D5HXMY4Z.js +0 -215
- package/dist/RecipeView-BHkTgm5H.js +0 -581
- package/dist/StockView-iczCFYxn.js +0 -1892
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-EN3JgHKF.js +0 -740
- package/dist/TransferDialog.vue_vue_type_script_setup_true_lang-DC0Ss5hi.js +0 -1409
- package/dist/TransferTemplateView-Bbvpuys7.js +0 -1230
- package/dist/defineDeepModel-BOApqV24.js +0 -13
- package/dist/format-time-from-id-Cafjo8fn.js +0 -15
- package/dist/id-to-date-CtSHSVJF.js +0 -30
- package/dist/layout/layout-routes.d.ts +0 -6
- package/dist/purchase-order-transaction-type-CIC5h-6x.js +0 -712
- package/dist/supplier-CM-vZ4bQ.js +0 -69
- package/dist/use-template-enabled-locations-Bm00vEzC.js +0 -57
- package/dist/xlsx.util-CqlYZLKW.js +0 -109
- /package/dist/{layout/InventoryLayout.vue.d.ts → views/closing-template/closing-template-import/ClosingTemplateImport.vue.d.ts} +0 -0
|
@@ -1,372 +0,0 @@
|
|
|
1
|
-
import { reactive as E, onUnmounted as q, defineComponent as V, computed as _, resolveComponent as h, openBlock as a, createElementBlock as b, Fragment as F, createElementVNode as f, unref as u, normalizeClass as D, toDisplayString as L, createCommentVNode as y, renderList as R, createBlock as w, createVNode as v, renderSlot as G, Teleport as J, ref as z, withCtx as T, watch as K, mergeModels as W, useModel as S } from "vue";
|
|
2
|
-
import { FmButtonVariant as X, useBreakpoints as O } from "@feedmepos/ui-library";
|
|
3
|
-
import { j as P, O as U } from "./app-w8TOQVZc.js";
|
|
4
|
-
import { useCoreStore as Z, useI18n as j } from "@feedmepos/mf-common";
|
|
5
|
-
const I = E({});
|
|
6
|
-
function A() {
|
|
7
|
-
const i = `${Math.random()}`, o = new ResizeObserver((t) => {
|
|
8
|
-
const l = t.map((n) => n.target.scrollHeight).reduce((n, s) => n + s);
|
|
9
|
-
I[i] = l;
|
|
10
|
-
}), c = (t) => {
|
|
11
|
-
const l = t.el;
|
|
12
|
-
l && o.observe(l);
|
|
13
|
-
}, r = (t) => {
|
|
14
|
-
const l = t.el;
|
|
15
|
-
l && o.unobserve(l);
|
|
16
|
-
};
|
|
17
|
-
return q(() => {
|
|
18
|
-
o.disconnect(), delete I[i];
|
|
19
|
-
}), {
|
|
20
|
-
get tableHeight() {
|
|
21
|
-
return {
|
|
22
|
-
height: `calc(100dvh - ${Object.values(I).reduce((n, s) => n + s, 0) + 64}px)`
|
|
23
|
-
};
|
|
24
|
-
},
|
|
25
|
-
onMounted: c,
|
|
26
|
-
onUnmounted: r
|
|
27
|
-
};
|
|
28
|
-
}
|
|
29
|
-
const ee = { class: "flex flex-col w-full bg-white h-full" }, ne = {
|
|
30
|
-
key: 0,
|
|
31
|
-
class: /* @__PURE__ */ D(["text-fm-color-typo-secondary fm-typo-en-body-sm-400"])
|
|
32
|
-
}, te = { key: 0 }, oe = { key: 1 }, le = { class: "bg-white flex-1" }, ae = { class: "fixed bottom-96 right-16" }, ke = /* @__PURE__ */ V({
|
|
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: o }) {
|
|
45
|
-
const c = i, r = o, t = _(() => c.actions.find((e) => e.isPrimary)), l = _(
|
|
46
|
-
() => c.actions.filter((e) => !e.isPrimary).map((e) => ({ ...e, variant: e.variant ?? X.Tertiary }))
|
|
47
|
-
), { breakpoints: n } = O(), s = _(() => n.value.xs || n.value.sm), d = P(), k = _(() => d.businessLevel), x = A();
|
|
48
|
-
return (e, m) => {
|
|
49
|
-
const B = h("FmButton");
|
|
50
|
-
return a(), b(F, null, [
|
|
51
|
-
f("div", ee, [
|
|
52
|
-
f("div", {
|
|
53
|
-
onVnodeMounted: m[1] || (m[1] = //@ts-ignore
|
|
54
|
-
(...g) => u(x).onMounted && u(x).onMounted(...g)),
|
|
55
|
-
class: D([
|
|
56
|
-
"flex gap-4",
|
|
57
|
-
{
|
|
58
|
-
"p-12": s.value,
|
|
59
|
-
"px-24 py-16": !s.value
|
|
60
|
-
}
|
|
61
|
-
])
|
|
62
|
-
}, [
|
|
63
|
-
f("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
|
-
f("div", null, L(e.title), 1),
|
|
72
|
-
e.usingBusinessHelperText && k.value ? (a(), b("div", ne, L(e.usingBusinessHelperText), 1)) : y("", !0)
|
|
73
|
-
], 2),
|
|
74
|
-
l.value.length ? (a(), b("div", te, [
|
|
75
|
-
(a(!0), b(F, null, R(l.value, (g) => (a(), w(B, {
|
|
76
|
-
key: g.value,
|
|
77
|
-
label: g.label,
|
|
78
|
-
"prepend-icon": g.prependIcon,
|
|
79
|
-
variant: g.variant,
|
|
80
|
-
onClick: (M) => r("click:action", g.value)
|
|
81
|
-
}, null, 8, ["label", "prepend-icon", "variant", "onClick"]))), 128))
|
|
82
|
-
])) : y("", !0),
|
|
83
|
-
t.value && (u(n).lg || u(n).md) ? (a(), b("div", oe, [
|
|
84
|
-
v(B, {
|
|
85
|
-
label: t.value.label,
|
|
86
|
-
"prepend-icon": t.value.prependIcon,
|
|
87
|
-
onClick: m[0] || (m[0] = (g) => r("click:action", t.value.value))
|
|
88
|
-
}, null, 8, ["label", "prepend-icon"])
|
|
89
|
-
])) : y("", !0)
|
|
90
|
-
], 2),
|
|
91
|
-
f("div", le, [
|
|
92
|
-
G(e.$slots, "default")
|
|
93
|
-
])
|
|
94
|
-
]),
|
|
95
|
-
t.value && s.value ? (a(), w(J, {
|
|
96
|
-
key: 0,
|
|
97
|
-
to: "body"
|
|
98
|
-
}, [
|
|
99
|
-
f("div", ae, [
|
|
100
|
-
v(B, {
|
|
101
|
-
label: t.value.label,
|
|
102
|
-
"prepend-icon": t.value.prependIcon,
|
|
103
|
-
onClick: m[2] || (m[2] = (g) => r("click:action", t.value.value)),
|
|
104
|
-
variant: "fab"
|
|
105
|
-
}, null, 8, ["label", "prepend-icon"])
|
|
106
|
-
])
|
|
107
|
-
])) : y("", !0)
|
|
108
|
-
], 64);
|
|
109
|
-
};
|
|
110
|
-
}
|
|
111
|
-
}), se = { class: "inline-flex" }, ue = { 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" }, re = { class: "fm-typo-en-body-md-600 select-none text-ellipsis overflow-hidden whitespace-nowrap" }, ie = {
|
|
112
|
-
class: "overflow-hidden overflow-y-scroll",
|
|
113
|
-
style: { maxHeight: "105px" }
|
|
114
|
-
}, ce = {
|
|
115
|
-
class: "overflow-hidden overflow-y-scroll",
|
|
116
|
-
style: { maxHeight: "105px" }
|
|
117
|
-
}, de = /* @__PURE__ */ V({
|
|
118
|
-
__name: "ChangeLocationComponent",
|
|
119
|
-
props: {
|
|
120
|
-
showBusiness: { type: Boolean }
|
|
121
|
-
},
|
|
122
|
-
setup(i) {
|
|
123
|
-
const o = P(), c = Z(), r = _(() => {
|
|
124
|
-
var e;
|
|
125
|
-
return (e = c.currentBusiness.value) == null ? void 0 : e.name;
|
|
126
|
-
}), { t } = j(), l = z(""), n = _({
|
|
127
|
-
get() {
|
|
128
|
-
return o.businessLevel;
|
|
129
|
-
},
|
|
130
|
-
set(e) {
|
|
131
|
-
o.businessLevel = e;
|
|
132
|
-
}
|
|
133
|
-
}), s = _(
|
|
134
|
-
() => o.locations.map((e) => ({ label: e.name, value: e.dbName, type: e.type })).filter(
|
|
135
|
-
(e) => l.value ? e.label.toLocaleLowerCase().includes(l.value.toLocaleLowerCase()) : !0
|
|
136
|
-
)
|
|
137
|
-
), d = _(
|
|
138
|
-
() => s.value.filter((e) => e.type === "restaurant")
|
|
139
|
-
), k = _(
|
|
140
|
-
() => s.value.filter((e) => e.type === "warehouse")
|
|
141
|
-
);
|
|
142
|
-
function x({ value: e }) {
|
|
143
|
-
n.value = !1, o.selectLocation(o.locations.find((m) => m.dbName === e));
|
|
144
|
-
}
|
|
145
|
-
return (e, m) => {
|
|
146
|
-
const B = h("FmIcon"), g = h("FmSearch"), M = h("FmMenuDivider"), H = h("FmMenuHeader"), $ = h("FmMenuItem"), Y = h("FmMenu");
|
|
147
|
-
return a(), b("div", se, [
|
|
148
|
-
v(Y, { "close-on-click": !0 }, {
|
|
149
|
-
"menu-button": T(() => {
|
|
150
|
-
var p;
|
|
151
|
-
return [
|
|
152
|
-
f("div", ue, [
|
|
153
|
-
v(B, {
|
|
154
|
-
name: e.showBusiness && n.value ? "store" : "storefront",
|
|
155
|
-
size: "sm"
|
|
156
|
-
}, null, 8, ["name"]),
|
|
157
|
-
f("div", re, L(e.showBusiness && n.value ? r.value : ((p = u(o)._currentLocation) == null ? void 0 : p.name) ?? u(t)("inventory.common.noLocationSelected")), 1),
|
|
158
|
-
v(B, {
|
|
159
|
-
name: "expand_more",
|
|
160
|
-
size: "sm"
|
|
161
|
-
})
|
|
162
|
-
])
|
|
163
|
-
];
|
|
164
|
-
}),
|
|
165
|
-
default: T(() => [
|
|
166
|
-
v(g, {
|
|
167
|
-
"model-value": l.value,
|
|
168
|
-
"onUpdate:modelValue": m[0] || (m[0] = (p) => l.value = p),
|
|
169
|
-
class: "w-[200px]",
|
|
170
|
-
placeholder: u(t)("inventory.common.table.toolbar.filterItems")
|
|
171
|
-
}, null, 8, ["model-value", "placeholder"]),
|
|
172
|
-
v(M),
|
|
173
|
-
e.showBusiness ? (a(), b(F, { key: 0 }, [
|
|
174
|
-
v(H, {
|
|
175
|
-
label: u(t)("inventory.common.business")
|
|
176
|
-
}, null, 8, ["label"]),
|
|
177
|
-
v(M),
|
|
178
|
-
v($, {
|
|
179
|
-
"model-value": n.value,
|
|
180
|
-
label: r.value,
|
|
181
|
-
onClick: m[1] || (m[1] = (p) => n.value = !0)
|
|
182
|
-
}, null, 8, ["model-value", "label"])
|
|
183
|
-
], 64)) : y("", !0),
|
|
184
|
-
v(H, {
|
|
185
|
-
label: u(t)("inventory.common.restaurant")
|
|
186
|
-
}, null, 8, ["label"]),
|
|
187
|
-
v(M),
|
|
188
|
-
f("div", ie, [
|
|
189
|
-
(a(!0), b(F, null, R(d.value, (p) => {
|
|
190
|
-
var C;
|
|
191
|
-
return a(), w($, {
|
|
192
|
-
key: p.value,
|
|
193
|
-
"model-value": !n.value && ((C = u(o)._currentLocation) == null ? void 0 : C.dbName) === p.value,
|
|
194
|
-
label: p.label,
|
|
195
|
-
onClick: (Q) => x(p)
|
|
196
|
-
}, null, 8, ["model-value", "label", "onClick"]);
|
|
197
|
-
}), 128))
|
|
198
|
-
]),
|
|
199
|
-
d.value.length ? y("", !0) : (a(), w($, {
|
|
200
|
-
key: 1,
|
|
201
|
-
disabled: "",
|
|
202
|
-
label: u(t)("inventory.common.noResultFound")
|
|
203
|
-
}, null, 8, ["label"])),
|
|
204
|
-
v(H, {
|
|
205
|
-
label: u(t)("inventory.common.warehouse")
|
|
206
|
-
}, null, 8, ["label"]),
|
|
207
|
-
v(M),
|
|
208
|
-
f("div", ce, [
|
|
209
|
-
(a(!0), b(F, null, R(k.value, (p) => {
|
|
210
|
-
var C;
|
|
211
|
-
return a(), w($, {
|
|
212
|
-
key: p.value,
|
|
213
|
-
"model-value": !n.value && ((C = u(o)._currentLocation) == null ? void 0 : C.dbName) === p.value,
|
|
214
|
-
label: p.label,
|
|
215
|
-
onClick: (Q) => x(p)
|
|
216
|
-
}, null, 8, ["model-value", "label", "onClick"]);
|
|
217
|
-
}), 128))
|
|
218
|
-
]),
|
|
219
|
-
k.value.length ? y("", !0) : (a(), w($, {
|
|
220
|
-
key: 2,
|
|
221
|
-
disabled: "",
|
|
222
|
-
label: u(t)("inventory.common.noResultFound")
|
|
223
|
-
}, null, 8, ["label"]))
|
|
224
|
-
]),
|
|
225
|
-
_: 1
|
|
226
|
-
})
|
|
227
|
-
]);
|
|
228
|
-
};
|
|
229
|
-
}
|
|
230
|
-
});
|
|
231
|
-
function xe() {
|
|
232
|
-
const i = /* @__PURE__ */ new Date();
|
|
233
|
-
return i.setDate(i.getDate() - 15), {
|
|
234
|
-
start: i,
|
|
235
|
-
end: /* @__PURE__ */ new Date()
|
|
236
|
-
};
|
|
237
|
-
}
|
|
238
|
-
function N(i = 15) {
|
|
239
|
-
const o = /* @__PURE__ */ new Date();
|
|
240
|
-
o.setDate(o.getDate() - i);
|
|
241
|
-
const c = o, r = /* @__PURE__ */ new Date();
|
|
242
|
-
return {
|
|
243
|
-
startDate: `${U(c)}`,
|
|
244
|
-
endDate: `${U(r)}`
|
|
245
|
-
};
|
|
246
|
-
}
|
|
247
|
-
const me = { 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" }, pe = { class: "fm-typo-en-body-md-600 select-none text-ellipsis overflow-hidden whitespace-nowrap" }, ve = /* @__PURE__ */ V({
|
|
248
|
-
__name: "FmDateRangePickerChip",
|
|
249
|
-
props: {
|
|
250
|
-
modelValue: { default: (i) => i.modelValue ?? N() }
|
|
251
|
-
},
|
|
252
|
-
emits: ["update:modelValue"],
|
|
253
|
-
setup(i, { emit: o }) {
|
|
254
|
-
const c = o, r = z(N());
|
|
255
|
-
K(r, (l) => {
|
|
256
|
-
c("update:modelValue", l);
|
|
257
|
-
});
|
|
258
|
-
const t = _(() => {
|
|
259
|
-
const { startDate: l, endDate: n } = r.value;
|
|
260
|
-
return !l && !n ? "" : `${l} - ${n}`;
|
|
261
|
-
});
|
|
262
|
-
return (l, n) => {
|
|
263
|
-
const s = h("FmIcon"), d = h("FmDateRangePicker");
|
|
264
|
-
return a(), w(d, {
|
|
265
|
-
"show-predefined-range": "",
|
|
266
|
-
modelValue: r.value,
|
|
267
|
-
"onUpdate:modelValue": n[0] || (n[0] = (k) => r.value = k),
|
|
268
|
-
"start-label": "",
|
|
269
|
-
"end-label": ""
|
|
270
|
-
}, {
|
|
271
|
-
"trigger-button": T(() => [
|
|
272
|
-
f("div", me, [
|
|
273
|
-
v(s, {
|
|
274
|
-
name: "calendar_month",
|
|
275
|
-
size: "sm"
|
|
276
|
-
}),
|
|
277
|
-
f("div", pe, L(t.value), 1)
|
|
278
|
-
])
|
|
279
|
-
]),
|
|
280
|
-
_: 1
|
|
281
|
-
}, 8, ["modelValue"]);
|
|
282
|
-
};
|
|
283
|
-
}
|
|
284
|
-
}), fe = { class: "flex-1 w-full flex items-center gap-4" }, be = {
|
|
285
|
-
key: 0,
|
|
286
|
-
class: "flex-1"
|
|
287
|
-
}, ye = { class: "w-full max-w-[343px] xs:max-w-[unset] sm:max-w-[unset]" }, Be = /* @__PURE__ */ V({
|
|
288
|
-
__name: "FmInventoryTableToolbar",
|
|
289
|
-
props: /* @__PURE__ */ W({
|
|
290
|
-
dateRangeQuery: { type: Boolean },
|
|
291
|
-
changeLocation: { type: Boolean },
|
|
292
|
-
searchable: { type: Boolean },
|
|
293
|
-
actions: {},
|
|
294
|
-
usingBusinessHelperText: {},
|
|
295
|
-
showBusiness: { type: Boolean }
|
|
296
|
-
}, {
|
|
297
|
-
search: {},
|
|
298
|
-
searchModifiers: {},
|
|
299
|
-
dateRange: {},
|
|
300
|
-
dateRangeModifiers: {}
|
|
301
|
-
}),
|
|
302
|
-
emits: ["update:search", "update:dateRange"],
|
|
303
|
-
setup(i) {
|
|
304
|
-
const { breakpoints: o } = O(), c = _(() => o.value.xs || o.value.sm), r = S(i, "search"), t = S(i, "dateRange"), { t: l } = j(), n = A();
|
|
305
|
-
return (s, d) => {
|
|
306
|
-
const k = h("FmTextField"), x = h("FmButton");
|
|
307
|
-
return a(), b("div", {
|
|
308
|
-
class: "flex flex-col gap-8",
|
|
309
|
-
onVnodeMounted: d[2] || (d[2] = //@ts-ignore
|
|
310
|
-
(...e) => u(n).onMounted && u(n).onMounted(...e)),
|
|
311
|
-
onVnodeUnmounted: d[3] || (d[3] = //@ts-ignore
|
|
312
|
-
(...e) => u(n).onUnmounted && u(n).onUnmounted(...e))
|
|
313
|
-
}, [
|
|
314
|
-
f("div", {
|
|
315
|
-
class: D([
|
|
316
|
-
"flex gap-8 items-center",
|
|
317
|
-
{
|
|
318
|
-
"px-8 flex-col-reverse h-[unset]": c.value,
|
|
319
|
-
"h-48": !c.value
|
|
320
|
-
}
|
|
321
|
-
])
|
|
322
|
-
}, [
|
|
323
|
-
s.changeLocation || s.dateRangeQuery ? (a(), b("div", {
|
|
324
|
-
key: 0,
|
|
325
|
-
class: D([
|
|
326
|
-
"flex gap-8 items-center",
|
|
327
|
-
{
|
|
328
|
-
"w-full overflow-x-auto": c.value
|
|
329
|
-
}
|
|
330
|
-
])
|
|
331
|
-
}, [
|
|
332
|
-
s.changeLocation ? (a(), w(de, {
|
|
333
|
-
key: 0,
|
|
334
|
-
"show-business": s.showBusiness
|
|
335
|
-
}, null, 8, ["show-business"])) : y("", !0),
|
|
336
|
-
s.dateRangeQuery ? (a(), w(ve, {
|
|
337
|
-
key: 1,
|
|
338
|
-
"model-value": t.value,
|
|
339
|
-
"onUpdate:modelValue": d[0] || (d[0] = (e) => t.value = e)
|
|
340
|
-
}, null, 8, ["model-value"])) : y("", !0)
|
|
341
|
-
], 2)) : y("", !0),
|
|
342
|
-
f("div", fe, [
|
|
343
|
-
c.value ? y("", !0) : (a(), b("div", be)),
|
|
344
|
-
f("div", ye, [
|
|
345
|
-
s.searchable ? (a(), w(k, {
|
|
346
|
-
key: 0,
|
|
347
|
-
"model-value": r.value,
|
|
348
|
-
"onUpdate:modelValue": d[1] || (d[1] = (e) => r.value = e),
|
|
349
|
-
"prepend-icon": "search",
|
|
350
|
-
placeholder: u(l)("inventory.common.table.toolbar.filterItems"),
|
|
351
|
-
class: "w-full"
|
|
352
|
-
}, null, 8, ["model-value", "placeholder"])) : y("", !0)
|
|
353
|
-
]),
|
|
354
|
-
(a(!0), b(F, null, R(s.actions, (e, m) => (a(), w(x, {
|
|
355
|
-
key: m,
|
|
356
|
-
variant: "tertiary",
|
|
357
|
-
"prepend-icon": e.icon,
|
|
358
|
-
onClick: e.onClick
|
|
359
|
-
}, null, 8, ["prepend-icon", "onClick"]))), 128))
|
|
360
|
-
])
|
|
361
|
-
], 2)
|
|
362
|
-
], 512);
|
|
363
|
-
};
|
|
364
|
-
}
|
|
365
|
-
});
|
|
366
|
-
export {
|
|
367
|
-
ke as _,
|
|
368
|
-
Be as a,
|
|
369
|
-
xe as b,
|
|
370
|
-
N as i,
|
|
371
|
-
A as u
|
|
372
|
-
};
|