@feedmepos/mf-inventory-portal 1.6.0 → 1.6.1-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-EFQddl2W.js → App-D7SR5dnB.js} +4 -4
- package/dist/{ApprovalView-DQG8Ti9p.js → ApprovalView-Bi7AgvV0.js} +24 -23
- package/dist/{BindingsDialog-D2IwJvme.js → BindingsDialog-BD8B6cZy.js} +2 -2
- package/dist/{BindingsPicker-ZGbgh9Vk.js → BindingsPicker-CRvmtsFb.js} +2 -2
- package/dist/{BindingsTable-Dgs2Od1_.js → BindingsTable-DJ1lLYOb.js} +3 -3
- package/dist/BulkReceiveRequestView-CZHXfukP.js +2000 -0
- package/dist/{ClosingDraftView-DGz2x5Lp.js → ClosingDraftView-DV1KPp2W.js} +27 -28
- package/dist/{ClosingHistoryView-SvbQFffP.js → ClosingHistoryView-C8fzDS5T.js} +5 -5
- package/dist/{ClosingTemplateView-LIyUAZ7a.js → ClosingTemplateView-qPT5Li2w.js} +14 -14
- package/dist/{DefaultView-B96qddHF.js → DefaultView-NF80xSuv.js} +2 -2
- package/dist/{DeliveryOrderPrintPreview-DWQ6hyoL.js → DeliveryOrderPrintPreview-B12J3W3U.js} +11 -11
- package/dist/{ReceiveRequestView-BP7KFzO6.js → EmailDialog.vue_vue_type_script_setup_true_lang-CoPqmpvz.js} +12571 -12873
- package/dist/FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-DxZ_5mfo.js +61 -0
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BfRdyxp5.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-B_mANlF3.js} +2 -2
- package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CxDZP-Qo.js +237 -0
- package/dist/{FmMultiselectDialog-B1O653NS.js → FmMultiselectDialog-Btal-2Li.js} +50 -44
- package/dist/{FmMultiselectDialog-SDMUzTex.js → FmMultiselectDialog-OVoHPzMx.js} +1 -1
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-D8u2M7r1.js → FmUnitInput.vue_vue_type_script_setup_true_lang-ClqEZkaP.js} +5 -5
- package/dist/{ImportView-BSlnGvlm.js → ImportView-CKXu4c1J.js} +6 -6
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-DaihxdpF.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-C-fgSyVq.js} +1 -1
- package/dist/{IngredientGroupView-Dy1fLXHf.js → IngredientGroupView-pwMYUotb.js} +21 -21
- package/dist/{IngredientsView-Dno8kdrq.js → IngredientsView-BzKhRbX3.js} +17 -17
- package/dist/{IntegrationExplorerView-C_5XKtMn.js → IntegrationExplorerView-BN8bTTW9.js} +352 -352
- package/dist/IntegrationView-DcERomsi.js +5791 -0
- package/dist/{InventoryBindingForm-YQFbS1hV.js → InventoryBindingForm-q_IGvaah.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-CMXe46hm.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-0ti9a4bq.js} +5 -5
- package/dist/{InventoryBindingSummary-DQEoKMWr.js → InventoryBindingSummary-aMQ0ZWgu.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CcJ7YBY5.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DpIGbDcW.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-DdTdixxy.js → PremiumBadge.vue_vue_type_script_setup_true_lang-CeMi5AJ0.js} +1 -1
- package/dist/{PublishView-Cv8penOo.js → PublishView-vOeknkUB.js} +61 -56
- package/dist/{PurchaseOrderPrintPreview-BvbaFNpc.js → PurchaseOrderPrintPreview-2dot6xAa.js} +9 -9
- package/dist/ReceiveRequestView-B9k1gWme.js +345 -0
- package/dist/{RecipeView-DU0QKiC9.js → RecipeView-PRj4zn8p.js} +17 -17
- package/dist/{SettingsView-DYNFioZF.js → SettingsView-CzxZ18_g.js} +4 -4
- package/dist/{StockView-CzdVLGZy.js → StockView-o-WD1-0x.js} +28 -27
- package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-DyDTSy_F.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-B9bLM6Gi.js} +1 -1
- package/dist/{SupplierView-BxbGPyPv.js → SupplierView-CMww3rSL.js} +12 -12
- package/dist/{SurchargeView-DIxfUVfT.js → SurchargeView-D9KFsMtR.js} +6 -6
- package/dist/{SystemTrailDialog.vue_vue_type_script_setup_true_lang-g0AfgEFk.js → SystemTrailDialog.vue_vue_type_script_setup_true_lang-EXFK8KkU.js} +6 -5
- package/dist/{TemplatePublishDialog.vue_vue_type_script_setup_true_lang-DsLOwuNG.js → TemplatePublishDialog.vue_vue_type_script_setup_true_lang-B9xb2r9v.js} +1 -1
- package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-CxVlssDF.js → TransferDetails.vue_vue_type_script_setup_true_lang-Bl9bVtVE.js} +1406 -1399
- package/dist/{TransferTemplateView-DRqghp1v.js → TransferTemplateView-BTL8deN-.js} +20 -20
- package/dist/{UnitCostHistoryView-BCQDTDOB.js → UnitCostHistoryView-D6n2ujRf.js} +4 -4
- package/dist/{UnitDisplayControl.vue_vue_type_script_setup_true_lang-BikZCEmA.js → UnitDisplayControl.vue_vue_type_script_setup_true_lang-CNpOAH0D.js} +10 -11
- package/dist/{UnitView-BXoXHqYc.js → UnitView-DNZW6dI4.js} +7 -7
- package/dist/{WarehouseView-DtnB7VJj.js → WarehouseView-gb9pJmNu.js} +5 -5
- package/dist/{WastageTemplateView-SNpTF3AP.js → WastageTemplateView-CGaEJXJv.js} +14 -14
- package/dist/api/purchase-order.d.ts +2 -1
- package/dist/api/supplier.d.ts +1 -0
- package/dist/{app-DTBAhC9s.js → app-Dsbvoxur.js} +1538 -977
- package/dist/app.d.ts +549 -0
- package/dist/app.js +1 -1
- package/dist/{closing-template-DBDqx2IR.js → closing-template-p88yK47D.js} +1 -1
- package/dist/components/FmMultiselectDialog.vue.d.ts +8 -4
- package/dist/components/FmMultiselectDialogProps.d.ts +1 -0
- package/dist/components/MultiLocationSelector.vue.d.ts +202 -0
- package/dist/{date2-BD3_Vr8I.js → date2-CtLHtGs5.js} +1 -1
- package/dist/{dayjs.min-CGyhCaEH.js → dayjs.min-B2OqD5Yb.js} +12 -12
- package/dist/{decimal-CnReZARa.js → decimal-Clk9Ewzg.js} +2 -2
- package/dist/{defineDeepModel-BCBQ-V52.js → defineDeepModel-B2OEZDfH.js} +1 -1
- package/dist/{duplicate-template-Dpb2sb-q.js → duplicate-template-B2POVQAS.js} +1 -1
- package/dist/{feature-BACkglr0.js → feature-CLIj8wgr.js} +70 -65
- package/dist/{format-time-from-id-CxJLjrBT.js → format-time-from-id-DdReiNfK.js} +1 -1
- package/dist/{format-unit-display-BUfzwU3m.js → format-unit-display-iz29tCVo.js} +12 -12
- package/dist/{import-export.helper-DttYDeho.js → import-export.helper-DlHAA9zA.js} +6 -6
- package/dist/{index-DGxWBGVv.js → index-B5Ojq711.js} +1 -1
- package/dist/{index-tFtJuoxA.js → index-CswTgtml.js} +3 -3
- package/dist/{index-BY8NVCx7.js → index-Dkl97ykE.js} +1 -1
- package/dist/{inventory-core-dart.default-DIKTKc_1.js → inventory-core-dart.default-FvRrnQri.js} +355 -328
- package/dist/jszip.min-dfImtC94.js +2322 -0
- package/dist/{lz-string-CwPU-SlY.js → lz-string-D1kxEFLt.js} +1 -1
- package/dist/{netsuite-B9XrL1RC.js → netsuite-C_Gph48P.js} +1570 -1509
- package/dist/{number-DKjrPhev.js → number-CTKxLav6.js} +3 -3
- package/dist/{predefined-templates-CQvQIvR-.js → predefined-templates-B2sDdw2Z.js} +1 -1
- package/dist/{purchase-order-template-NA3Qn9lf.js → purchase-order-template-DVDMAhJa.js} +1 -1
- package/dist/{recalculationUtils-Ll9Jy0C-.js → recalculationUtils-BNTXhTSX.js} +1 -1
- package/dist/router/name.d.ts +1 -0
- package/dist/{rules-DtBEn-Rn.js → rules-CRnEoheI.js} +2 -2
- package/dist/{stock-PIkXqbIP.js → stock-CeogHsSl.js} +1 -1
- package/dist/stores/feature.d.ts +2 -0
- package/dist/style.css +1 -1
- package/dist/supplier-DmbVK4Tn.js +83 -0
- package/dist/{surcharge-C8PXRjfJ.js → surcharge-Bm3TRth-.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{uom-rules-DddX9wN4.js → uom-rules-BmtdGlz9.js} +1 -1
- package/dist/{use-ingredient-select-dialog-DWQxhfQD.js → use-ingredient-select-dialog-Bm9296fn.js} +2 -2
- package/dist/{use-inventory-binding-dialog-BWSMrzp1.js → use-inventory-binding-dialog-HYJiNm8y.js} +2 -2
- package/dist/{use-template-enabled-locations-3DN8aZBs.js → use-template-enabled-locations-DSEcyYzM.js} +2 -2
- package/dist/{use-transfer-locations-DnybeRXF.js → use-transfer-locations-vpiv_TeO.js} +8 -8
- package/dist/{useHrmPermission-ymQe-N7i.js → useHrmPermission-DAncjlGt.js} +1 -1
- package/dist/{useNavigationMenu-D88-0QxA.js → useNavigationMenu-BG_AH0Xf.js} +43 -38
- package/dist/{useSseClient-CWNMcLEX.js → useSseClient-CuLS50U2.js} +3 -3
- package/dist/views/integration/components/binding-import/BindingImportPreview.vue.d.ts +22 -0
- package/dist/views/integration/components/binding-import/ImportBindings.vue.d.ts +444 -0
- package/dist/views/integration/helper/binding-import/configs/codemax.d.ts +3 -0
- package/dist/views/integration/helper/binding-import/configs/codemax.spec.d.ts +1 -0
- package/dist/views/integration/helper/binding-import/configs/food-market-hub.d.ts +3 -0
- package/dist/views/integration/helper/binding-import/configs/food-market-hub.spec.d.ts +1 -0
- package/dist/views/integration/helper/binding-import/core.d.ts +43 -0
- package/dist/views/integration/helper/binding-import/types.d.ts +100 -0
- package/dist/views/receive-request/components/transfer-form/TransferFormProps.d.ts +2 -0
- package/dist/views/receive-request/components/transfer-form/TransferFormWithController.vue.d.ts +194 -0
- package/dist/views/receive-request-bulk/BulkReceiveRequestView.vue.d.ts +3 -0
- package/dist/views/receive-request-bulk/components/CreateTransferWizard.vue.d.ts +25 -0
- package/dist/views/receive-request-bulk/composables/use-bulk-receive-request-form.d.ts +4138 -0
- package/dist/views/receive-request-bulk/composables/use-bulk-receive-request-table.d.ts +771 -0
- package/dist/{vue-i18n-D7c0eqQP.js → vue-i18n-Tl34av_i.js} +398 -398
- package/dist/{xlsx-DXHnJflt.js → xlsx.util-CJaAO-II.js} +2594 -2497
- package/package.json +5 -4
- package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang--A4q92Mt.js +0 -293
- package/dist/IntegrationView-D2_2A1ve.js +0 -5100
- package/dist/supplier-B5LWMrcL.js +0 -78
- package/dist/xlsx.util-PhY8wVQG.js +0 -101
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@feedmepos/mf-inventory-portal",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.1-dev.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist"
|
|
@@ -41,6 +41,7 @@
|
|
|
41
41
|
"google-maps": "^4.3.3",
|
|
42
42
|
"handlebars": "^4.7.8",
|
|
43
43
|
"html2pdf.js": "^0.14.0",
|
|
44
|
+
"jszip": "^3.10.1",
|
|
44
45
|
"libphonenumber-js": "^1.11.18",
|
|
45
46
|
"lodash": "^4.17.20",
|
|
46
47
|
"lz-string": "^1.5.0",
|
|
@@ -52,11 +53,11 @@
|
|
|
52
53
|
"vue-router": "^4.4.0",
|
|
53
54
|
"xlsx": "^0.18.5",
|
|
54
55
|
"@feedmepos/inventory-core": "^1.0.2-dev.8",
|
|
55
|
-
"@feedmepos/inventory-core-js": "^1.0.1",
|
|
56
56
|
"@feedmepos/inventory-core-dart": "^1.0.0",
|
|
57
|
+
"@feedmepos/inventory-core-2": "^2.0.0",
|
|
58
|
+
"@feedmepos/inventory-core-js": "^1.0.1",
|
|
57
59
|
"@feedmepos/netsuite-core": "^1.0.0",
|
|
58
|
-
"@feedmepos/zod-inventory": "^2.0.0"
|
|
59
|
-
"@feedmepos/inventory-core-2": "^2.0.0"
|
|
60
|
+
"@feedmepos/zod-inventory": "^2.0.0"
|
|
60
61
|
},
|
|
61
62
|
"devDependencies": {
|
|
62
63
|
"@rushstack/eslint-patch": "^1.10.3",
|
|
@@ -1,293 +0,0 @@
|
|
|
1
|
-
import { defineComponent as S, computed as w, ref as P, resolveComponent as h, openBlock as n, createElementBlock as p, createVNode as x, withCtx as $, createElementVNode as b, Fragment as V, createTextVNode as R, toDisplayString as D, unref as r, createBlock as v, createCommentVNode as k, renderList as N, watch as O, mergeModels as H, useModel as I, renderSlot as W, normalizeClass as A } from "vue";
|
|
2
|
-
import { useCoreStore as q, useI18n as Q } from "@feedmepos/mf-common";
|
|
3
|
-
import { u as G } from "./app-DTBAhC9s.js";
|
|
4
|
-
import { b as T } from "./date2-BD3_Vr8I.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 z } from "./app-DiX-EfV6.js";
|
|
8
|
-
import { F as X } from "./FmAdminBadge-DjnBAgyv.js";
|
|
9
|
-
const Z = { class: "inline-flex" }, ee = { 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" }, oe = { class: "fm-typo-en-body-md-600 select-none text-ellipsis overflow-hidden whitespace-nowrap" }, te = { class: "relative" }, ne = { class: "sticky top-0 py-8 bg-white translate-y-[-12px]" }, le = /* @__PURE__ */ S({
|
|
10
|
-
__name: "ChangeLocationComponent",
|
|
11
|
-
props: {
|
|
12
|
-
showBusiness: { type: Boolean }
|
|
13
|
-
},
|
|
14
|
-
setup(i) {
|
|
15
|
-
const t = G(), m = q(), c = w(() => {
|
|
16
|
-
var e;
|
|
17
|
-
return (e = m.currentBusiness.value) == null ? void 0 : e.name;
|
|
18
|
-
}), { t: f } = Q(), d = P(""), a = w({
|
|
19
|
-
get() {
|
|
20
|
-
return t.businessLevel;
|
|
21
|
-
},
|
|
22
|
-
set(e) {
|
|
23
|
-
t.businessLevel = e;
|
|
24
|
-
}
|
|
25
|
-
}), y = w(
|
|
26
|
-
() => t.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 g;
|
|
33
|
-
if (!d.value) return !0;
|
|
34
|
-
const o = d.value.toLocaleLowerCase();
|
|
35
|
-
return e.label.toLocaleLowerCase().includes(o) || ((g = e.code) == null ? void 0 : g.toLocaleLowerCase().includes(o));
|
|
36
|
-
})
|
|
37
|
-
), l = w(
|
|
38
|
-
() => y.value.filter((e) => e.type === "restaurant")
|
|
39
|
-
), s = w(
|
|
40
|
-
() => y.value.filter((e) => e.type === "warehouse")
|
|
41
|
-
);
|
|
42
|
-
function M({ value: e }) {
|
|
43
|
-
a.value = !1, t.selectLocation(t.locations.find((o) => o.dbName === e));
|
|
44
|
-
}
|
|
45
|
-
return (e, o) => {
|
|
46
|
-
const g = h("FmIcon"), j = h("FmSearch"), C = h("FmMenuItem"), E = h("FmMenu");
|
|
47
|
-
return n(), p("div", Z, [
|
|
48
|
-
x(E, { "close-on-click": !0 }, {
|
|
49
|
-
"menu-button": $(() => [
|
|
50
|
-
b("div", ee, [
|
|
51
|
-
x(g, {
|
|
52
|
-
name: e.showBusiness && a.value ? "store" : "storefront",
|
|
53
|
-
size: "sm"
|
|
54
|
-
}, null, 8, ["name"]),
|
|
55
|
-
b("div", oe, [
|
|
56
|
-
e.showBusiness && a.value ? (n(), p(V, { key: 0 }, [
|
|
57
|
-
R(D(c.value), 1)
|
|
58
|
-
], 64)) : r(t)._currentLocation ? (n(), p(V, { key: 1 }, [
|
|
59
|
-
R(D(r(t)._currentLocation.name) + " (" + D(r(t)._currentLocation.doc.profile.code ?? "--") + ") ", 1)
|
|
60
|
-
], 64)) : (n(), p(V, { key: 2 }, [
|
|
61
|
-
R(D(r(f)("inventory.common.noLocationSelected")), 1)
|
|
62
|
-
], 64))
|
|
63
|
-
]),
|
|
64
|
-
x(g, {
|
|
65
|
-
name: "expand_more",
|
|
66
|
-
size: "sm"
|
|
67
|
-
})
|
|
68
|
-
])
|
|
69
|
-
]),
|
|
70
|
-
default: $(() => [
|
|
71
|
-
b("div", te, [
|
|
72
|
-
b("div", ne, [
|
|
73
|
-
x(j, {
|
|
74
|
-
"model-value": d.value,
|
|
75
|
-
"onUpdate:modelValue": o[0] || (o[0] = (u) => d.value = u),
|
|
76
|
-
placeholder: r(f)("inventory.common.table.toolbar.filterItems")
|
|
77
|
-
}, null, 8, ["model-value", "placeholder"])
|
|
78
|
-
]),
|
|
79
|
-
b("div", null, [
|
|
80
|
-
e.showBusiness ? (n(), v(C, {
|
|
81
|
-
key: 0,
|
|
82
|
-
"model-value": a.value,
|
|
83
|
-
label: c.value,
|
|
84
|
-
sublabel: "Business",
|
|
85
|
-
onClick: o[1] || (o[1] = (u) => a.value = !0)
|
|
86
|
-
}, null, 8, ["model-value", "label"])) : k("", !0),
|
|
87
|
-
(n(!0), p(V, null, N(l.value, (u) => {
|
|
88
|
-
var F;
|
|
89
|
-
return n(), v(C, {
|
|
90
|
-
key: u.value,
|
|
91
|
-
"model-value": !a.value && ((F = r(t)._currentLocation) == null ? void 0 : F.dbName) === u.value,
|
|
92
|
-
label: `${u.label} (${u.code})`,
|
|
93
|
-
sublabel: "Restaurant",
|
|
94
|
-
onClick: (_) => M(u),
|
|
95
|
-
onVnodeMounted: (_) => {
|
|
96
|
-
var B, L, U;
|
|
97
|
-
return !a.value && ((B = r(t)._currentLocation) == null ? void 0 : B.dbName) === u.value && ((L = _.el) == null || L.scrollIntoView({ behavior: "instant", block: "end" }), (U = _.el) == null || U.scrollIntoView({ behavior: "smooth", block: "center" })), void 0;
|
|
98
|
-
}
|
|
99
|
-
}, null, 8, ["model-value", "label", "onClick", "onVnodeMounted"]);
|
|
100
|
-
}), 128)),
|
|
101
|
-
(n(!0), p(V, null, N(s.value, (u) => {
|
|
102
|
-
var F;
|
|
103
|
-
return n(), v(C, {
|
|
104
|
-
key: u.value,
|
|
105
|
-
"model-value": !a.value && ((F = r(t)._currentLocation) == null ? void 0 : F.dbName) === u.value,
|
|
106
|
-
label: u.label,
|
|
107
|
-
sublabel: "Warehouse",
|
|
108
|
-
onClick: (_) => M(u),
|
|
109
|
-
onVnodeMounted: (_) => {
|
|
110
|
-
var B, L;
|
|
111
|
-
return !a.value && ((B = r(t)._currentLocation) == null ? void 0 : B.dbName) === u.value && ((L = _.el) == null || L.scrollIntoView({ behavior: "smooth", block: "center" })), void 0;
|
|
112
|
-
}
|
|
113
|
-
}, null, 8, ["model-value", "label", "onClick", "onVnodeMounted"]);
|
|
114
|
-
}), 128)),
|
|
115
|
-
!e.showBusiness && !l.value.length && !s.value.length ? (n(), v(C, {
|
|
116
|
-
key: 1,
|
|
117
|
-
disabled: "",
|
|
118
|
-
label: r(f)("inventory.common.noResultFound")
|
|
119
|
-
}, null, 8, ["label"])) : k("", !0)
|
|
120
|
-
])
|
|
121
|
-
])
|
|
122
|
-
]),
|
|
123
|
-
_: 1
|
|
124
|
-
})
|
|
125
|
-
]);
|
|
126
|
-
};
|
|
127
|
-
}
|
|
128
|
-
});
|
|
129
|
-
function we() {
|
|
130
|
-
const i = /* @__PURE__ */ new Date();
|
|
131
|
-
return i.setDate(i.getDate() - 15), {
|
|
132
|
-
start: i,
|
|
133
|
-
end: /* @__PURE__ */ new Date()
|
|
134
|
-
};
|
|
135
|
-
}
|
|
136
|
-
function Y(i = 15) {
|
|
137
|
-
const t = /* @__PURE__ */ new Date();
|
|
138
|
-
t.setDate(t.getDate() - i);
|
|
139
|
-
const m = t, c = /* @__PURE__ */ new Date();
|
|
140
|
-
return {
|
|
141
|
-
startDate: `${T(m)}`,
|
|
142
|
-
endDate: `${T(c)}`
|
|
143
|
-
};
|
|
144
|
-
}
|
|
145
|
-
const ae = { 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" }, se = { class: "fm-typo-en-body-md-600 select-none text-ellipsis overflow-hidden whitespace-nowrap" }, re = /* @__PURE__ */ S({
|
|
146
|
-
__name: "FmDateRangePickerChip",
|
|
147
|
-
props: {
|
|
148
|
-
modelValue: { default: (i) => i.modelValue ?? Y() }
|
|
149
|
-
},
|
|
150
|
-
emits: ["update:modelValue"],
|
|
151
|
-
setup(i, { emit: t }) {
|
|
152
|
-
const m = t, c = P(Y());
|
|
153
|
-
O(c, (d) => {
|
|
154
|
-
m("update:modelValue", d);
|
|
155
|
-
});
|
|
156
|
-
const f = w(() => {
|
|
157
|
-
const { startDate: d, endDate: a } = c.value;
|
|
158
|
-
return !d && !a ? "" : `${d} - ${a}`;
|
|
159
|
-
});
|
|
160
|
-
return (d, a) => {
|
|
161
|
-
const y = h("FmIcon"), l = h("FmDateRangePicker");
|
|
162
|
-
return n(), v(l, {
|
|
163
|
-
"show-predefined-range": "",
|
|
164
|
-
modelValue: c.value,
|
|
165
|
-
"onUpdate:modelValue": a[0] || (a[0] = (s) => c.value = s),
|
|
166
|
-
"start-label": "",
|
|
167
|
-
"end-label": ""
|
|
168
|
-
}, {
|
|
169
|
-
"trigger-button": $(() => [
|
|
170
|
-
b("div", ae, [
|
|
171
|
-
x(y, {
|
|
172
|
-
name: "calendar_month",
|
|
173
|
-
size: "sm"
|
|
174
|
-
}),
|
|
175
|
-
b("div", se, D(f.value), 1)
|
|
176
|
-
])
|
|
177
|
-
]),
|
|
178
|
-
_: 1
|
|
179
|
-
}, 8, ["modelValue"]);
|
|
180
|
-
};
|
|
181
|
-
}
|
|
182
|
-
}), ue = { class: "flex-1 w-full flex items-center gap-4 xs:flex-col-reverse sm:flex-col-reverse" }, ie = {
|
|
183
|
-
key: 0,
|
|
184
|
-
class: "flex-1 xs:w-full sm:w-full"
|
|
185
|
-
}, de = {
|
|
186
|
-
key: 1,
|
|
187
|
-
class: "flex-1"
|
|
188
|
-
}, ce = { class: "w-full max-w-[343px] xs:max-w-[unset] sm:max-w-[unset]" }, ke = /* @__PURE__ */ S({
|
|
189
|
-
__name: "FmInventoryTableToolbar",
|
|
190
|
-
props: /* @__PURE__ */ H({
|
|
191
|
-
dateRangeQuery: { type: Boolean },
|
|
192
|
-
changeLocation: { type: Boolean },
|
|
193
|
-
searchable: { type: Boolean },
|
|
194
|
-
hideFilterOptions: { type: Boolean },
|
|
195
|
-
filterable: { type: Boolean },
|
|
196
|
-
filterAttributes: {},
|
|
197
|
-
actions: {},
|
|
198
|
-
usingBusinessHelperText: {},
|
|
199
|
-
showBusiness: { type: Boolean }
|
|
200
|
-
}, {
|
|
201
|
-
search: {},
|
|
202
|
-
searchModifiers: {},
|
|
203
|
-
filter: {},
|
|
204
|
-
filterModifiers: {},
|
|
205
|
-
dateRange: {},
|
|
206
|
-
dateRangeModifiers: {}
|
|
207
|
-
}),
|
|
208
|
-
emits: ["update:search", "update:filter", "update:dateRange"],
|
|
209
|
-
setup(i) {
|
|
210
|
-
const { breakpoints: t } = J(), m = w(() => t.value.xs || t.value.sm), c = I(i, "search"), f = I(i, "filter"), d = I(i, "dateRange"), { t: a } = Q(), y = K();
|
|
211
|
-
return (l, s) => {
|
|
212
|
-
const M = h("FmTextField"), e = h("FmButton");
|
|
213
|
-
return n(), p("div", {
|
|
214
|
-
class: "flex flex-col gap-8",
|
|
215
|
-
onVnodeMounted: s[4] || (s[4] = //@ts-ignore
|
|
216
|
-
(...o) => r(y).onMounted && r(y).onMounted(...o)),
|
|
217
|
-
onVnodeUnmounted: s[5] || (s[5] = //@ts-ignore
|
|
218
|
-
(...o) => r(y).onUnmounted && r(y).onUnmounted(...o))
|
|
219
|
-
}, [
|
|
220
|
-
W(l.$slots, "default"),
|
|
221
|
-
b("div", {
|
|
222
|
-
class: A([
|
|
223
|
-
"flex gap-8 items-center",
|
|
224
|
-
{
|
|
225
|
-
"px-8 flex-col-reverse h-[unset]": m.value,
|
|
226
|
-
"h-48": !m.value
|
|
227
|
-
}
|
|
228
|
-
])
|
|
229
|
-
}, [
|
|
230
|
-
l.changeLocation || l.dateRangeQuery ? (n(), p("div", {
|
|
231
|
-
key: 0,
|
|
232
|
-
class: A([
|
|
233
|
-
"flex gap-8 items-center",
|
|
234
|
-
{
|
|
235
|
-
"w-full overflow-x-auto": m.value
|
|
236
|
-
}
|
|
237
|
-
])
|
|
238
|
-
}, [
|
|
239
|
-
l.changeLocation ? (n(), v(le, {
|
|
240
|
-
key: 0,
|
|
241
|
-
"show-business": l.showBusiness
|
|
242
|
-
}, null, 8, ["show-business"])) : k("", !0),
|
|
243
|
-
l.dateRangeQuery ? (n(), v(re, {
|
|
244
|
-
key: 1,
|
|
245
|
-
"model-value": d.value,
|
|
246
|
-
"onUpdate:modelValue": s[0] || (s[0] = (o) => d.value = o)
|
|
247
|
-
}, null, 8, ["model-value"])) : k("", !0)
|
|
248
|
-
], 2)) : k("", !0),
|
|
249
|
-
b("div", ue, [
|
|
250
|
-
l.filterable && l.filterAttributes ? (n(), p("div", ie, [
|
|
251
|
-
l.hideFilterOptions ? (n(), v(X, { key: 1 }, {
|
|
252
|
-
default: $(() => [
|
|
253
|
-
x(r(z), {
|
|
254
|
-
modelValue: f.value,
|
|
255
|
-
"onUpdate:modelValue": s[2] || (s[2] = (o) => f.value = o),
|
|
256
|
-
attributes: l.filterAttributes
|
|
257
|
-
}, null, 8, ["modelValue", "attributes"])
|
|
258
|
-
]),
|
|
259
|
-
_: 1
|
|
260
|
-
})) : (n(), v(r(z), {
|
|
261
|
-
key: 0,
|
|
262
|
-
modelValue: f.value,
|
|
263
|
-
"onUpdate:modelValue": s[1] || (s[1] = (o) => f.value = o),
|
|
264
|
-
attributes: l.filterAttributes
|
|
265
|
-
}, null, 8, ["modelValue", "attributes"]))
|
|
266
|
-
])) : m.value ? k("", !0) : (n(), p("div", de)),
|
|
267
|
-
b("div", ce, [
|
|
268
|
-
l.searchable ? (n(), v(M, {
|
|
269
|
-
key: 0,
|
|
270
|
-
"model-value": c.value,
|
|
271
|
-
"onUpdate:modelValue": s[3] || (s[3] = (o) => c.value = o),
|
|
272
|
-
"prepend-icon": "search",
|
|
273
|
-
placeholder: r(a)("inventory.common.table.toolbar.filterItems"),
|
|
274
|
-
class: "w-full"
|
|
275
|
-
}, null, 8, ["model-value", "placeholder"])) : k("", !0)
|
|
276
|
-
]),
|
|
277
|
-
(n(!0), p(V, null, N(l.actions, (o, g) => (n(), v(e, {
|
|
278
|
-
key: g,
|
|
279
|
-
variant: "tertiary",
|
|
280
|
-
"prepend-icon": o.icon,
|
|
281
|
-
onClick: o.onClick
|
|
282
|
-
}, null, 8, ["prepend-icon", "onClick"]))), 128))
|
|
283
|
-
])
|
|
284
|
-
], 2)
|
|
285
|
-
], 512);
|
|
286
|
-
};
|
|
287
|
-
}
|
|
288
|
-
});
|
|
289
|
-
export {
|
|
290
|
-
ke as _,
|
|
291
|
-
we as a,
|
|
292
|
-
Y as i
|
|
293
|
-
};
|