@feedmepos/mf-inventory-portal 1.6.3 → 1.7.0-dev.1
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-C9leB4t0.js → App-BT6KYW8H.js} +6 -6
- package/dist/{ApprovalView-CqOXr5Hw.js → ApprovalView-Blu45mX4.js} +15 -15
- package/dist/{BindingsDialog-DRalvlwp.js → BindingsDialog-Ffb3DqzR.js} +3 -3
- package/dist/{BindingsPicker-zXli3Z1x.js → BindingsPicker-DJSieUGU.js} +6 -6
- package/dist/{BindingsTable--VoNPh7F.js → BindingsTable-BM_fnYD0.js} +5 -5
- package/dist/{BulkReceiveRequestView-Bon7uDCJ.js → BulkReceiveRequestView-LLE0EWF2.js} +36 -36
- package/dist/ChangeLocationComponent.vue_vue_type_script_setup_true_lang-DlW8baJa.js +126 -0
- package/dist/{ClosingDraftView-CdxQiwuz.js → ClosingDraftView-SLu2RsF2.js} +41 -40
- package/dist/{ClosingHistoryView-CTkdBXBa.js → ClosingHistoryView-DavlvyI8.js} +8 -8
- package/dist/{ClosingTemplateView-h9ohxtwI.js → ClosingTemplateView-CfOmfFEo.js} +18 -18
- package/dist/{DefaultView-CLRzOH5K.js → DefaultView-BG6SM2dx.js} +4 -4
- package/dist/{DeliveryOrderPrintPreview-vgPmHbtx.js → DeliveryOrderPrintPreview-CTZqCk5h.js} +19 -19
- package/dist/{EmailDialog.vue_vue_type_script_setup_true_lang-CE9wwNB_.js → EmailDialog.vue_vue_type_script_setup_true_lang-CeuncSiy.js} +9313 -9301
- package/dist/{FmAdminBadge-DjnBAgyv.js → FmAdminBadge-DlplQOHb.js} +6 -6
- package/dist/{FmConfirmationButton.vue_vue_type_script_setup_true_lang-DLrMEGFR.js → FmConfirmationButton.vue_vue_type_script_setup_true_lang-Vg8U7WMZ.js} +5 -5
- package/dist/{FmCustomAttribute.vue_vue_type_script_setup_true_lang-D-IWRjRD.js → FmCustomAttribute.vue_vue_type_script_setup_true_lang-CG1m-B2p.js} +6 -6
- package/dist/{FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-DTeWGr5O.js → FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-BoP7islj.js} +3 -3
- package/dist/{FmDroppableField-J0xUsOTV.js → FmDroppableField-J0tG_U3w.js} +1 -1
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DaXycWeg.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-Cp-IGhN8.js} +3 -3
- package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CbD3tpTg.js +118 -0
- package/dist/{FmMultiselectDialog-Bnouf9vX.js → FmMultiselectDialog-Btgi9bcG.js} +4 -4
- package/dist/{FmMultiselectDialog-BAMaksR7.js → FmMultiselectDialog-CYMF7L6M.js} +1 -1
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-DnfFPNWn.js → FmUnitInput.vue_vue_type_script_setup_true_lang-p5zOSCsD.js} +9 -9
- package/dist/{ImportView-DYhLRkQA.js → ImportView-Druqo-SE.js} +11 -11
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-B4n5-iRK.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-BrCQtful.js} +5 -5
- package/dist/{IngredientGroupView-Dn15H-1E.js → IngredientGroupView-X9-rsWxq.js} +9 -9
- package/dist/{IngredientsView-9sp4RWOF.js → IngredientsView-3VjrRo6Q.js} +26 -26
- package/dist/{IntegrationExplorerView-DSj9e9rb.js → IntegrationExplorerView-BsI1wdMs.js} +3897 -3898
- package/dist/{IntegrationView-DbcMnd4z.js → IntegrationView-DnClTLe8.js} +18 -18
- package/dist/{InventoryBindingForm-6OXalr29.js → InventoryBindingForm-GzG-Hd2M.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-6-CNpE55.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-BRUPz8Nd.js} +6 -6
- package/dist/{InventoryBindingSummary-h7b4l6Wb.js → InventoryBindingSummary-CziMAdeu.js} +3 -3
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-Cq_SuRtd.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-E8xHqN0A.js} +3 -3
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-7CXXGTvk.js → PremiumBadge.vue_vue_type_script_setup_true_lang-Dn_l93Az.js} +3 -3
- package/dist/{PreviewBadge.vue_vue_type_script_setup_true_lang-CRZiQHjx.js → PreviewBadge.vue_vue_type_script_setup_true_lang-DX2MJqL4.js} +2 -2
- package/dist/ProductionView-C5y_oeQ1.js +1330 -0
- package/dist/{PublishView-BNml0c7h.js → PublishView-DLaq3CIv.js} +7 -7
- package/dist/{PurchaseOrderPrintPreview-DMQ4-abx.js → PurchaseOrderPrintPreview-CfOxPPTs.js} +17 -17
- package/dist/{ReceiveRequestView-BTHWRSHt.js → ReceiveRequestView-CW0zq5Mi.js} +19 -19
- package/dist/{RecipeView-D7pdeDlr.js → RecipeView-MGQvVVkQ.js} +23 -23
- package/dist/{SettingsView-Ce3Fbejt.js → SettingsView-BAPGIrw5.js} +9 -9
- package/dist/{SingleColumnLayout.vue_vue_type_script_setup_true_lang-DGlWE5I8.js → SingleColumnLayout.vue_vue_type_script_setup_true_lang-DwrLsWX_.js} +2 -2
- package/dist/{StockView-BGH5uWNi.js → StockView-D1RGEL2U.js} +59 -58
- package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-BegeXje7.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-CzBZq9Vn.js} +8 -8
- package/dist/{SupplierView-BuyycuNM.js → SupplierView-CMH0w0sM.js} +201 -205
- package/dist/{SurchargeView-B3O9a7WC.js → SurchargeView-DTGGjNJz.js} +11 -11
- package/dist/{SystemTrailDialog.vue_vue_type_script_setup_true_lang-TJ4VhnI3.js → SystemTrailDialog.vue_vue_type_script_setup_true_lang-CmYuaLTY.js} +4 -4
- package/dist/{TableActionableRow.vue_vue_type_script_setup_true_lang-Ca_eYa8-.js → TableActionableRow.vue_vue_type_script_setup_true_lang-DAMpuZ1X.js} +7 -7
- package/dist/{TemplatePublishDialog.vue_vue_type_script_setup_true_lang-BgkgLkWo.js → TemplatePublishDialog.vue_vue_type_script_setup_true_lang-CZ-CIM6O.js} +4 -4
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-9_7cUWrk.js +4607 -0
- package/dist/{TransferTemplateView-CehWEgcU.js → TransferTemplateView-BHRlpNZL.js} +24 -24
- package/dist/{UnitCostHistoryView-N9UZOJVt.js → UnitCostHistoryView-DTcMOBYp.js} +8 -8
- package/dist/{UnitDisplayControl.vue_vue_type_script_setup_true_lang-DpVe38HB.js → UnitDisplayControl.vue_vue_type_script_setup_true_lang-tnwNEshB.js} +9 -9
- package/dist/{UnitView-YB56lxTp.js → UnitView-CmaNofZF.js} +11 -11
- package/dist/{WarehouseView-DtBYtULO.js → WarehouseView-CrZOVqtW.js} +9 -9
- package/dist/{WastageTemplateView-BJQ94zo8.js → WastageTemplateView-oS1mOuVs.js} +18 -18
- package/dist/api/production.d.ts +29 -0
- package/dist/{app-DiX-EfV6.js → app-C39bYJmq.js} +283 -283
- package/dist/{app-CnwVdB-r.js → app-DurCmkYx.js} +6901 -6691
- package/dist/app.js +1 -1
- package/dist/{closing-template-B0GQRFlS.js → closing-template--ylzHY8o.js} +1 -1
- package/dist/{date2-CaCMUbxN.js → date2-Ci_bWmXL.js} +1 -1
- package/dist/{dayjs.min-C413l7qz.js → dayjs.min-C1KEGVyY.js} +3 -3
- package/dist/{decimal-dpWXqHCT.js → decimal-CqES0LqS.js} +2 -2
- package/dist/{defineDeepModel-wTAgCIGa.js → defineDeepModel-CPc4-vVR.js} +1 -1
- package/dist/{duplicate-template-DTkeAcof.js → duplicate-template-7WtxyOgk.js} +1 -1
- package/dist/{feature-CSsMjXm4.js → feature-BhtPIg0j.js} +209 -206
- package/dist/{format-time-from-id-A1BqDOzj.js → format-time-from-id-da6PCU8D.js} +1 -1
- package/dist/{format-unit-display-CHS1Vvqm.js → format-unit-display-DfnibgdI.js} +24 -25
- package/dist/{import-export.helper-C8qIeMrV.js → import-export.helper-OeITQ-ew.js} +6 -6
- package/dist/{index-CEbJe2zv.js → index-63f31zwB.js} +11 -15
- package/dist/{index-CCdOkfwD.js → index-C4oo6Jir.js} +3 -3
- package/dist/{index-dgiwVVtQ.js → index-CKo4S3fc.js} +1 -1
- package/dist/inventory-core-dart.default-CjR1Ux6B.js +25015 -0
- package/dist/{jszip.min-k8R8v9tK.js → jszip.min-wa9dg6V2.js} +133 -133
- package/dist/{lz-string-OLkSz-NK.js → lz-string-CEq3F4OR.js} +33 -34
- package/dist/{menu-usage-module-D7cxkbEk.js → menu-usage-module-BdjYEk3s.js} +5 -5
- package/dist/{netsuite-Cm4tUcLt.js → netsuite-BYihdmW3.js} +145 -145
- package/dist/{number-CF9W8sDX.js → number-DIjdjQTT.js} +3 -3
- package/dist/{predefined-templates-DmBAGnMN.js → predefined-templates-BZ5B0n2R.js} +4 -13
- package/dist/{purchase-order-template-C0ynPqX6.js → purchase-order-template-ri08SOOi.js} +1 -1
- package/dist/{recalculationUtils-pDs8JNho.js → recalculationUtils-7tP21R_L.js} +1 -1
- package/dist/router/name.d.ts +1 -0
- package/dist/{rules-CYCN4sgu.js → rules-De93ckqk.js} +2 -2
- package/dist/{stock-D8S1alJa.js → stock-DvslvTup.js} +1 -1
- package/dist/stock-oKttHRVV.js +75 -0
- package/dist/stores/feature.d.ts +2 -0
- package/dist/{supplier-CiPnrjsq.js → supplier-otlIc6_E.js} +2 -2
- package/dist/{surcharge-CanooUK6.js → surcharge-DMLazg9b.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{uom-rules-eVbKU0_1.js → uom-rules-BVc5JsZO.js} +1 -1
- package/dist/{use-ingredient-select-dialog-Lpcjl8Ws.js → use-ingredient-select-dialog-C3H4EuIT.js} +2 -2
- package/dist/{use-inventory-binding-dialog-CA_03e_q.js → use-inventory-binding-dialog-BlLaBr8C.js} +2 -2
- package/dist/{use-template-enabled-locations-CWMCe4nl.js → use-template-enabled-locations-CwXGrrU2.js} +2 -2
- package/dist/{use-transfer-locations-rvGiFI0e.js → use-transfer-locations-DAMl3X7w.js} +2 -2
- package/dist/{useHrmPermission-wOFwl59u.js → useHrmPermission-hRmteNSl.js} +1 -1
- package/dist/{useNavigationMenu-BoDv65KI.js → useNavigationMenu-CNhXOgEu.js} +12 -7
- package/dist/useSseClient-Cn8CX__U.js +453 -0
- package/dist/views/production/ProductionBindingsCell.vue.d.ts +29 -0
- package/dist/views/production/ProductionCompletionDialog.vue.d.ts +32 -0
- package/dist/views/production/ProductionDetailSheet.vue.d.ts +38 -0
- package/dist/views/production/ProductionDuplicateDialog.vue.d.ts +280 -0
- package/dist/views/production/ProductionPrepareBuilder.vue.d.ts +6 -0
- package/dist/views/production/ProductionView.vue.d.ts +2 -0
- package/dist/views/receive-request/components/price-adjustment/PriceAdjustmentEditForm.vue.d.ts +19 -0
- package/dist/views/receive-request/components/price-adjustment/PriceAdjustmentEditor.vue.d.ts +18 -0
- package/dist/views/receive-request/components/price-adjustment/PriceAdjustmentList.vue.d.ts +33 -0
- package/dist/views/receive-request/components/price-adjustment/use-price-adjustment-form-controller.d.ts +9 -0
- package/dist/views/receive-request/components/transfer-form/TransferFormWithController.vue.d.ts +10 -0
- package/dist/views/receive-request/composables/use-process-purchase-order.d.ts +20 -0
- package/dist/views/receive-request/composables/use-receive-request-form.d.ts +120 -0
- package/dist/views/receive-request/composables/use-receive-request-table.d.ts +140 -0
- package/dist/views/receive-request-bulk/composables/use-bulk-receive-request-form.d.ts +100 -0
- package/dist/views/receive-request-bulk/composables/use-bulk-receive-request-table.d.ts +20 -0
- package/dist/vue-i18n-DeNNnVic.js +2351 -0
- package/dist/{xlsx.util-0_Y_Q66v.js → xlsx.util-B8IJR8tZ.js} +3710 -3720
- package/package.json +3 -3
- package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CL9YNazx.js +0 -237
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-CwY2xCQV.js +0 -4360
- package/dist/inventory-core-dart.default-CBuBQE02.js +0 -18716
- package/dist/useSseClient-DbWYwuT8.js +0 -524
- package/dist/vue-i18n-Bov_Y0eC.js +0 -2365
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@feedmepos/mf-inventory-portal",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.7.0-dev.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist"
|
|
@@ -53,10 +53,10 @@
|
|
|
53
53
|
"vue-router": "^4.4.0",
|
|
54
54
|
"xlsx": "^0.18.5",
|
|
55
55
|
"@feedmepos/inventory-core-2": "^2.0.0",
|
|
56
|
-
"@feedmepos/inventory-core": "^1.0.
|
|
56
|
+
"@feedmepos/inventory-core-dart": "^1.0.0",
|
|
57
57
|
"@feedmepos/inventory-core-js": "^1.0.1",
|
|
58
|
+
"@feedmepos/inventory-core": "^1.0.2-dev.8",
|
|
58
59
|
"@feedmepos/netsuite-core": "^1.0.0",
|
|
59
|
-
"@feedmepos/inventory-core-dart": "^1.0.0",
|
|
60
60
|
"@feedmepos/zod-inventory": "^2.0.0"
|
|
61
61
|
},
|
|
62
62
|
"devDependencies": {
|
|
@@ -1,237 +0,0 @@
|
|
|
1
|
-
import { defineComponent as z, computed as k, ref as O, resolveComponent as g, openBlock as l, createElementBlock as i, createVNode as _, withCtx as R, createElementVNode as m, Fragment as w, createTextVNode as I, toDisplayString as $, unref as t, createBlock as d, createCommentVNode as b, renderList as S, mergeModels as j, useModel as N, renderSlot as H, normalizeClass as T } from "vue";
|
|
2
|
-
import { useCoreStore as W, useI18n as D } from "@feedmepos/mf-common";
|
|
3
|
-
import { u as q } from "./app-CnwVdB-r.js";
|
|
4
|
-
import { _ as G } from "./FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-DTeWGr5O.js";
|
|
5
|
-
import { useBreakpoints as J } from "@feedmepos/ui-library";
|
|
6
|
-
import { u as K } from "./SingleColumnLayout.vue_vue_type_script_setup_true_lang-DGlWE5I8.js";
|
|
7
|
-
import { D as A } from "./app-DiX-EfV6.js";
|
|
8
|
-
import { F as P } from "./FmAdminBadge-DjnBAgyv.js";
|
|
9
|
-
const X = { class: "inline-flex" }, Y = { 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" }, Z = { class: "fm-typo-en-body-md-600 select-none text-ellipsis overflow-hidden whitespace-nowrap" }, ee = { class: "relative" }, oe = { class: "sticky top-0 py-8 bg-white translate-y-[-12px]" }, le = /* @__PURE__ */ z({
|
|
10
|
-
__name: "ChangeLocationComponent",
|
|
11
|
-
props: {
|
|
12
|
-
showBusiness: { type: Boolean }
|
|
13
|
-
},
|
|
14
|
-
setup(x) {
|
|
15
|
-
const a = q(), y = W(), B = k(() => {
|
|
16
|
-
var e;
|
|
17
|
-
return (e = y.currentBusiness.value) == null ? void 0 : e.name;
|
|
18
|
-
}), { t: c } = D(), v = O(""), r = k({
|
|
19
|
-
get() {
|
|
20
|
-
return a.businessLevel;
|
|
21
|
-
},
|
|
22
|
-
set(e) {
|
|
23
|
-
a.businessLevel = e;
|
|
24
|
-
}
|
|
25
|
-
}), p = k(
|
|
26
|
-
() => a.locations.map((e) => ({
|
|
27
|
-
label: e.name,
|
|
28
|
-
value: e.dbName,
|
|
29
|
-
type: e.type,
|
|
30
|
-
code: e.doc.profile.code ?? "--"
|
|
31
|
-
})).filter((e) => {
|
|
32
|
-
var f;
|
|
33
|
-
if (!v.value) return !0;
|
|
34
|
-
const o = v.value.toLocaleLowerCase();
|
|
35
|
-
return e.label.toLocaleLowerCase().includes(o) || ((f = e.code) == null ? void 0 : f.toLocaleLowerCase().includes(o));
|
|
36
|
-
})
|
|
37
|
-
), n = k(
|
|
38
|
-
() => p.value.filter((e) => e.type === "restaurant")
|
|
39
|
-
), s = k(
|
|
40
|
-
() => p.value.filter((e) => e.type === "warehouse")
|
|
41
|
-
);
|
|
42
|
-
function M({ value: e }) {
|
|
43
|
-
r.value = !1, a.selectLocation(a.locations.find((o) => o.dbName === e));
|
|
44
|
-
}
|
|
45
|
-
return (e, o) => {
|
|
46
|
-
const f = g("FmIcon"), Q = g("FmSearch"), C = g("FmMenuItem"), E = g("FmMenu");
|
|
47
|
-
return l(), i("div", X, [
|
|
48
|
-
_(E, { "close-on-click": !0 }, {
|
|
49
|
-
"menu-button": R(() => [
|
|
50
|
-
m("div", Y, [
|
|
51
|
-
_(f, {
|
|
52
|
-
name: e.showBusiness && r.value ? "store" : "storefront",
|
|
53
|
-
size: "sm"
|
|
54
|
-
}, null, 8, ["name"]),
|
|
55
|
-
m("div", Z, [
|
|
56
|
-
e.showBusiness && r.value ? (l(), i(w, { key: 0 }, [
|
|
57
|
-
I($(B.value), 1)
|
|
58
|
-
], 64)) : t(a)._currentLocation ? (l(), i(w, { key: 1 }, [
|
|
59
|
-
I($(t(a)._currentLocation.name) + " (" + $(t(a)._currentLocation.doc.profile.code ?? "--") + ") ", 1)
|
|
60
|
-
], 64)) : (l(), i(w, { key: 2 }, [
|
|
61
|
-
I($(t(c)("inventory.common.noLocationSelected")), 1)
|
|
62
|
-
], 64))
|
|
63
|
-
]),
|
|
64
|
-
_(f, {
|
|
65
|
-
name: "expand_more",
|
|
66
|
-
size: "sm"
|
|
67
|
-
})
|
|
68
|
-
])
|
|
69
|
-
]),
|
|
70
|
-
default: R(() => [
|
|
71
|
-
m("div", ee, [
|
|
72
|
-
m("div", oe, [
|
|
73
|
-
_(Q, {
|
|
74
|
-
"model-value": v.value,
|
|
75
|
-
"onUpdate:modelValue": o[0] || (o[0] = (u) => v.value = u),
|
|
76
|
-
placeholder: t(c)("inventory.common.table.toolbar.filterItems")
|
|
77
|
-
}, null, 8, ["model-value", "placeholder"])
|
|
78
|
-
]),
|
|
79
|
-
m("div", null, [
|
|
80
|
-
e.showBusiness ? (l(), d(C, {
|
|
81
|
-
key: 0,
|
|
82
|
-
"model-value": r.value,
|
|
83
|
-
label: B.value,
|
|
84
|
-
sublabel: "Business",
|
|
85
|
-
onClick: o[1] || (o[1] = (u) => r.value = !0)
|
|
86
|
-
}, null, 8, ["model-value", "label"])) : b("", !0),
|
|
87
|
-
(l(!0), i(w, null, S(n.value, (u) => {
|
|
88
|
-
var L;
|
|
89
|
-
return l(), d(C, {
|
|
90
|
-
key: u.value,
|
|
91
|
-
"model-value": !r.value && ((L = t(a)._currentLocation) == null ? void 0 : L.dbName) === u.value,
|
|
92
|
-
label: `${u.label} (${u.code})`,
|
|
93
|
-
sublabel: "Restaurant",
|
|
94
|
-
onClick: (h) => M(u),
|
|
95
|
-
onVnodeMounted: (h) => {
|
|
96
|
-
var V, F, U;
|
|
97
|
-
return !r.value && ((V = t(a)._currentLocation) == null ? void 0 : V.dbName) === u.value && ((F = h.el) == null || F.scrollIntoView({ behavior: "instant", block: "end" }), (U = h.el) == null || U.scrollIntoView({ behavior: "smooth", block: "center" })), void 0;
|
|
98
|
-
}
|
|
99
|
-
}, null, 8, ["model-value", "label", "onClick", "onVnodeMounted"]);
|
|
100
|
-
}), 128)),
|
|
101
|
-
(l(!0), i(w, null, S(s.value, (u) => {
|
|
102
|
-
var L;
|
|
103
|
-
return l(), d(C, {
|
|
104
|
-
key: u.value,
|
|
105
|
-
"model-value": !r.value && ((L = t(a)._currentLocation) == null ? void 0 : L.dbName) === u.value,
|
|
106
|
-
label: u.label,
|
|
107
|
-
sublabel: "Warehouse",
|
|
108
|
-
onClick: (h) => M(u),
|
|
109
|
-
onVnodeMounted: (h) => {
|
|
110
|
-
var V, F;
|
|
111
|
-
return !r.value && ((V = t(a)._currentLocation) == null ? void 0 : V.dbName) === u.value && ((F = h.el) == null || F.scrollIntoView({ behavior: "smooth", block: "center" })), void 0;
|
|
112
|
-
}
|
|
113
|
-
}, null, 8, ["model-value", "label", "onClick", "onVnodeMounted"]);
|
|
114
|
-
}), 128)),
|
|
115
|
-
!e.showBusiness && !n.value.length && !s.value.length ? (l(), d(C, {
|
|
116
|
-
key: 1,
|
|
117
|
-
disabled: "",
|
|
118
|
-
label: t(c)("inventory.common.noResultFound")
|
|
119
|
-
}, null, 8, ["label"])) : b("", !0)
|
|
120
|
-
])
|
|
121
|
-
])
|
|
122
|
-
]),
|
|
123
|
-
_: 1
|
|
124
|
-
})
|
|
125
|
-
]);
|
|
126
|
-
};
|
|
127
|
-
}
|
|
128
|
-
}), te = { class: "flex-1 w-full flex items-center gap-4 xs:flex-col-reverse sm:flex-col-reverse" }, ne = {
|
|
129
|
-
key: 0,
|
|
130
|
-
class: "flex-1 xs:w-full sm:w-full"
|
|
131
|
-
}, ae = {
|
|
132
|
-
key: 1,
|
|
133
|
-
class: "flex-1"
|
|
134
|
-
}, se = { class: "w-full max-w-[343px] xs:max-w-[unset] sm:max-w-[unset]" }, fe = /* @__PURE__ */ z({
|
|
135
|
-
__name: "FmInventoryTableToolbar",
|
|
136
|
-
props: /* @__PURE__ */ j({
|
|
137
|
-
dateRangeQuery: { type: Boolean },
|
|
138
|
-
changeLocation: { type: Boolean },
|
|
139
|
-
searchable: { type: Boolean },
|
|
140
|
-
hideFilterOptions: { type: Boolean },
|
|
141
|
-
filterable: { type: Boolean },
|
|
142
|
-
filterAttributes: {},
|
|
143
|
-
actions: {},
|
|
144
|
-
usingBusinessHelperText: {},
|
|
145
|
-
showBusiness: { type: Boolean }
|
|
146
|
-
}, {
|
|
147
|
-
search: {},
|
|
148
|
-
searchModifiers: {},
|
|
149
|
-
filter: {},
|
|
150
|
-
filterModifiers: {},
|
|
151
|
-
dateRange: {},
|
|
152
|
-
dateRangeModifiers: {}
|
|
153
|
-
}),
|
|
154
|
-
emits: ["update:search", "update:filter", "update:dateRange"],
|
|
155
|
-
setup(x) {
|
|
156
|
-
const { breakpoints: a } = J(), y = k(() => a.value.xs || a.value.sm), B = N(x, "search"), c = N(x, "filter"), v = N(x, "dateRange"), { t: r } = D(), p = K();
|
|
157
|
-
return (n, s) => {
|
|
158
|
-
const M = g("FmTextField"), e = g("FmButton");
|
|
159
|
-
return l(), i("div", {
|
|
160
|
-
class: "flex flex-col gap-8",
|
|
161
|
-
onVnodeMounted: s[4] || (s[4] = //@ts-ignore
|
|
162
|
-
(...o) => t(p).onMounted && t(p).onMounted(...o)),
|
|
163
|
-
onVnodeUnmounted: s[5] || (s[5] = //@ts-ignore
|
|
164
|
-
(...o) => t(p).onUnmounted && t(p).onUnmounted(...o))
|
|
165
|
-
}, [
|
|
166
|
-
H(n.$slots, "default"),
|
|
167
|
-
m("div", {
|
|
168
|
-
class: T([
|
|
169
|
-
"flex gap-8 items-center",
|
|
170
|
-
{
|
|
171
|
-
"px-8 flex-col-reverse h-[unset]": y.value,
|
|
172
|
-
"h-48": !y.value
|
|
173
|
-
}
|
|
174
|
-
])
|
|
175
|
-
}, [
|
|
176
|
-
n.changeLocation || n.dateRangeQuery ? (l(), i("div", {
|
|
177
|
-
key: 0,
|
|
178
|
-
class: T([
|
|
179
|
-
"flex gap-8 items-center",
|
|
180
|
-
{
|
|
181
|
-
"w-full overflow-x-auto": y.value
|
|
182
|
-
}
|
|
183
|
-
])
|
|
184
|
-
}, [
|
|
185
|
-
n.changeLocation ? (l(), d(le, {
|
|
186
|
-
key: 0,
|
|
187
|
-
"show-business": n.showBusiness
|
|
188
|
-
}, null, 8, ["show-business"])) : b("", !0),
|
|
189
|
-
n.dateRangeQuery ? (l(), d(G, {
|
|
190
|
-
key: 1,
|
|
191
|
-
"model-value": v.value,
|
|
192
|
-
"onUpdate:modelValue": s[0] || (s[0] = (o) => v.value = o)
|
|
193
|
-
}, null, 8, ["model-value"])) : b("", !0)
|
|
194
|
-
], 2)) : b("", !0),
|
|
195
|
-
m("div", te, [
|
|
196
|
-
n.filterable && n.filterAttributes ? (l(), i("div", ne, [
|
|
197
|
-
n.hideFilterOptions ? (l(), d(P, { key: 1 }, {
|
|
198
|
-
default: R(() => [
|
|
199
|
-
_(t(A), {
|
|
200
|
-
modelValue: c.value,
|
|
201
|
-
"onUpdate:modelValue": s[2] || (s[2] = (o) => c.value = o),
|
|
202
|
-
attributes: n.filterAttributes
|
|
203
|
-
}, null, 8, ["modelValue", "attributes"])
|
|
204
|
-
]),
|
|
205
|
-
_: 1
|
|
206
|
-
})) : (l(), d(t(A), {
|
|
207
|
-
key: 0,
|
|
208
|
-
modelValue: c.value,
|
|
209
|
-
"onUpdate:modelValue": s[1] || (s[1] = (o) => c.value = o),
|
|
210
|
-
attributes: n.filterAttributes
|
|
211
|
-
}, null, 8, ["modelValue", "attributes"]))
|
|
212
|
-
])) : y.value ? b("", !0) : (l(), i("div", ae)),
|
|
213
|
-
m("div", se, [
|
|
214
|
-
n.searchable ? (l(), d(M, {
|
|
215
|
-
key: 0,
|
|
216
|
-
"model-value": B.value,
|
|
217
|
-
"onUpdate:modelValue": s[3] || (s[3] = (o) => B.value = o),
|
|
218
|
-
"prepend-icon": "search",
|
|
219
|
-
placeholder: t(r)("inventory.common.table.toolbar.filterItems"),
|
|
220
|
-
class: "w-full"
|
|
221
|
-
}, null, 8, ["model-value", "placeholder"])) : b("", !0)
|
|
222
|
-
]),
|
|
223
|
-
(l(!0), i(w, null, S(n.actions, (o, f) => (l(), d(e, {
|
|
224
|
-
key: f,
|
|
225
|
-
variant: "tertiary",
|
|
226
|
-
"prepend-icon": o.icon,
|
|
227
|
-
onClick: o.onClick
|
|
228
|
-
}, null, 8, ["prepend-icon", "onClick"]))), 128))
|
|
229
|
-
])
|
|
230
|
-
], 2)
|
|
231
|
-
], 512);
|
|
232
|
-
};
|
|
233
|
-
}
|
|
234
|
-
});
|
|
235
|
-
export {
|
|
236
|
-
fe as _
|
|
237
|
-
};
|