@feedmepos/mf-inventory-portal 1.8.0-dev.1 → 1.8.0-dev.2
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-DVHgBTHP.js +1499 -0
- package/dist/{ApprovalView-C8_ax05b.js → ApprovalView-RaXuWWSu.js} +9 -9
- package/dist/{BindingsDialog-t0ZY9eh5.js → BindingsDialog-DomvXijP.js} +2 -2
- package/dist/{BindingsPicker-C0Qblmml.js → BindingsPicker-DGnzxEs7.js} +2 -2
- package/dist/{BindingsTable-CsqUBbRA.js → BindingsTable-DfG9kWrv.js} +4 -4
- package/dist/{BulkReceiveRequestView-DAG-TMox.js → BulkReceiveRequestView-DxHWrfbi.js} +21 -22
- package/dist/ChangeLocationComponent.vue_vue_type_script_setup_true_lang-CVekIoiN.js +151 -0
- package/dist/{ClosingDraftView-CdKp4Ny6.js → ClosingDraftView-C3n66bbh.js} +20 -20
- package/dist/{ClosingHistoryView-Blyq9-BS.js → ClosingHistoryView-kdpYGy1Y.js} +5 -5
- package/dist/{ClosingTemplateView-C326DL4q.js → ClosingTemplateView-DwGloYxn.js} +302 -291
- package/dist/{CustomPrintTemplatePreview.vue_vue_type_script_setup_true_lang-CXjubRbj.js → CustomPrintTemplatePreview.vue_vue_type_script_setup_true_lang-9eY_r8LF.js} +1 -1
- package/dist/{DefaultView-CsIMmQAY.js → DefaultView-JC_e4xgC.js} +2 -2
- package/dist/{DeliveryOrderPrintPreview-eTrMvJzA.js → DeliveryOrderPrintPreview-BBCvI67S.js} +2 -2
- package/dist/DeprecateSoonWarningDialog.vue_vue_type_script_setup_true_lang-5Cc08Svt.js +58 -0
- package/dist/{EmailDialog.vue_vue_type_script_setup_true_lang-B7nBbxMo.js → EmailDialog.vue_vue_type_script_setup_true_lang-H4FWc9ga.js} +1663 -1668
- package/dist/FeatureCapabilityBadge.vue_vue_type_script_setup_true_lang-C1C8aDA6.js +61 -0
- package/dist/{FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-CI2KTzDs.js → FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-Q8Mptiv3.js} +1 -1
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-Db_FiSRe.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CE1_yyHe.js} +2 -2
- package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CGJi3f86.js +120 -0
- package/dist/{FmMultiselectDialog-CYUxtxnS.js → FmMultiselectDialog-DCaRlBIy.js} +2 -2
- package/dist/{FmMultiselectDialog-BAw-gp5K.js → FmMultiselectDialog-yVPY5aBV.js} +1 -1
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-DOkV11NN.js → FmUnitInput.vue_vue_type_script_setup_true_lang-ClaLVtpK.js} +6 -6
- package/dist/{ImportView-BmotFC-3.js → ImportView-DQrVMzxN.js} +6 -6
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-DVCCpvS4.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-7lT5UZc8.js} +1 -1
- package/dist/IngredientGroupView-BMUnEaY7.js +1000 -0
- package/dist/{IngredientsView-CZ6E7cXf.js → IngredientsView-DPj9lBTK.js} +303 -296
- package/dist/{IntegrationExplorerView-B15ND4Fg.js → IntegrationExplorerView-CO2wpUR_.js} +4 -4
- package/dist/{IntegrationView-hkNhsqx2.js → IntegrationView-DIeZoey0.js} +2403 -2408
- package/dist/{InventoryBindingForm-SfuUF0_O.js → InventoryBindingForm-Cj4_Chue.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-Zq81p_MF.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-CaBOK7NC.js} +5 -5
- package/dist/{InventoryBindingSummary-DUcukkyJ.js → InventoryBindingSummary-yzGzd7jJ.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BmfROiLM.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DzzTPdyF.js} +1 -1
- package/dist/{ProductionRunDetailView-BwgRX-14.js → ProductionRunDetailView-Cw-ecaey.js} +4 -4
- package/dist/{ProductionRunLifecycleDialogs.vue_vue_type_script_setup_true_lang-BbNXNhpr.js → ProductionRunLifecycleDialogs.vue_vue_type_script_setup_true_lang-BYyiiAWb.js} +7 -7
- package/dist/{ProductionRunView-CZU7LY9-.js → ProductionRunView-C11eseXQ.js} +3 -3
- package/dist/{PublishView-DS2FZ66p.js → PublishView-CPK9NeVF.js} +3 -3
- package/dist/{PurchaseOrderPrintPreview-CZa0MVAs.js → PurchaseOrderPrintPreview-DosqWQeN.js} +2 -2
- package/dist/{ReceiveRequestView-Bk5b3nVB.js → ReceiveRequestView-BxSkpK2t.js} +15 -16
- package/dist/{RecipeView-DvI6X-uN.js → RecipeView-oHDWsT0P.js} +19 -20
- package/dist/SettingsView-QlUNwFhM.js +983 -0
- package/dist/{StockView-Z9wGihT7.js → StockView-a8LbVZ_7.js} +324 -322
- package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-DdZg9T4n.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-GdGJCuc0.js} +1 -1
- package/dist/{SupplierView-D8q6siZW.js → SupplierView-BKxKoi_0.js} +451 -447
- package/dist/{SurchargeView-Db_5YFoR.js → SurchargeView-Db4cwhZv.js} +7 -7
- package/dist/{SystemTrailDialog.vue_vue_type_script_setup_true_lang-WOVs4Fr1.js → SystemTrailDialog.vue_vue_type_script_setup_true_lang-CpkF77Ow.js} +2 -2
- package/dist/{TemplatePublishDialog.vue_vue_type_script_setup_true_lang-BtoP4XgE.js → TemplatePublishDialog.vue_vue_type_script_setup_true_lang-CCCj4WVF.js} +1 -1
- package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-Bljc4Vuy.js → TransferDetails.vue_vue_type_script_setup_true_lang-CFNPXqt5.js} +39 -40
- package/dist/{TransferTemplateView-DtsJzmUr.js → TransferTemplateView-CzwxOBMQ.js} +22 -23
- package/dist/{UnitCostHistoryView-BqDiQ4IE.js → UnitCostHistoryView-CqcyjCCd.js} +4 -4
- package/dist/{UnitDisplayControl.vue_vue_type_script_setup_true_lang-BjSmg5LX.js → UnitDisplayControl.vue_vue_type_script_setup_true_lang-DO80_8SZ.js} +4 -4
- package/dist/{UnitView-CM695-VI.js → UnitView-BqdK1AM_.js} +8 -8
- package/dist/{WarehouseView-BdidU4p6.js → WarehouseView-COJM9IXM.js} +193 -189
- package/dist/{WastageTemplateView-DdhwdXT6.js → WastageTemplateView-DW3viTHN.js} +15 -15
- package/dist/api/feature-flags.d.ts +10 -0
- package/dist/api/license.d.ts +9 -0
- package/dist/{app-Cb5s4jMu.js → app-yvK__CBL.js} +143 -106
- package/dist/app.d.ts +36 -0
- package/dist/app.js +1 -1
- package/dist/{closing-template-DnqnpXxn.js → closing-template-DezidSM0.js} +1 -1
- package/dist/components/ChangeLocationComponent.vue.d.ts +21 -14
- package/dist/components/DeprecateSoonWarningDialog.vue.d.ts +22 -0
- package/dist/components/FeatureCapabilityBadge.vue.d.ts +25 -0
- package/dist/components/{PreviewBadge.vue.d.ts → FeatureCapabilityGate.vue.d.ts} +10 -7
- package/dist/components/{PremiumBadge.vue.d.ts → PlanTierBadge.vue.d.ts} +5 -13
- package/dist/components/PlanUpgradeDialog.vue.d.ts +30 -0
- package/dist/composable/useNavigationMenu.d.ts +2 -1
- package/dist/{date2-BPhD_1Of.js → date2-2XjepIqc.js} +1 -1
- package/dist/{dayjs.min-Zbd6-uVD.js → dayjs.min-CNp5DLBB.js} +1 -1
- package/dist/{decimal-Df6a50Ld.js → decimal-Z7oJdGk8.js} +2 -2
- package/dist/{defineDeepModel-Brbsikbi.js → defineDeepModel-CMxJn_H2.js} +1 -1
- package/dist/{duplicate-template-B9kuShaF.js → duplicate-template-BetV5oy_.js} +1 -1
- package/dist/{inventory-core-dart.default-DDRxXXnt.js → feature-CkWaZ-5K.js} +3046 -1837
- package/dist/feature-flags/core.d.ts +27 -0
- package/dist/feature-flags/core.spec.d.ts +1 -0
- package/dist/feature-flags/navigation-capabilities.d.ts +23 -0
- package/dist/feature-flags/navigation-capabilities.spec.d.ts +1 -0
- package/dist/feature-flags/plan-tier.d.ts +6 -0
- package/dist/feature-flags/plan-tier.spec.d.ts +1 -0
- package/dist/feature-flags/portal-feature-catalog.d.ts +24 -0
- package/dist/feature-flags/vue.d.ts +14 -0
- package/dist/{format-time-from-id-DmUjUcVj.js → format-time-from-id-DatSI9uD.js} +1 -1
- package/dist/{format-unit-display-CsQA0SQd.js → format-unit-display-DM5We5cx.js} +13 -13
- package/dist/id-to-date-Dxw2jKhy.js +67 -0
- package/dist/{import-export.helper-DCQ6oX9s.js → import-export.helper-BOmADwUw.js} +6 -6
- package/dist/{index-C-mazZwS.js → index-7fz5sGDO.js} +3 -3
- package/dist/{index-UmM6gHJ1.js → index-CIH9NCvs.js} +1 -1
- package/dist/{index-BXaIMGnI.js → index-ClYgfwW7.js} +1 -1
- package/dist/{lz-string-Bibw5D_6.js → lz-string-CCsc2X7t.js} +1 -1
- package/dist/{netsuite-Bev0OtQT.js → netsuite-COumFXC2.js} +2 -2
- package/dist/{number-y_W4pn_d.js → number-gSLvxNqA.js} +3 -3
- package/dist/portal-feature-catalog-yGIESKTc.js +246 -0
- package/dist/{predefined-templates-BHvUnTk_.js → predefined-templates-Bw9A9LNA.js} +1 -1
- package/dist/{purchase-order-template-DgOKEzhS.js → purchase-order-template-BaZjdGq8.js} +1 -1
- package/dist/{recalculationUtils-Dv__DzZh.js → recalculationUtils-t32wAurN.js} +1 -1
- package/dist/{row-action.enum-ncgDYAjP.js → row-action.enum-BDeudY4d.js} +2 -2
- package/dist/{rules-CZTBvenw.js → rules-C1btu0Md.js} +2 -2
- package/dist/{stock-CxCRZo_D.js → stock-B59sfN28.js} +1 -1
- package/dist/{stock-XINW8JOM.js → stock-BF86TMW0.js} +3 -3
- package/dist/stores/feature.d.ts +12 -0
- package/dist/{supplier-CkZdeMcl.js → supplier-DnbLJ_cS.js} +2 -2
- package/dist/{surcharge-FRSFqjGl.js → surcharge-C1uE3uQa.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{uom-rules-Cm1styDr.js → uom-rules-DjfyrFHJ.js} +1 -1
- package/dist/{use-ingredient-select-dialog-ntAqHX04.js → use-ingredient-select-dialog-7A7fWyEH.js} +2 -2
- package/dist/{use-inventory-binding-dialog-DVIJO8Cl.js → use-inventory-binding-dialog-Cc1tjTfV.js} +2 -2
- package/dist/{use-template-enabled-locations-CIZqw-Z8.js → use-template-enabled-locations-C-Hqqgzt.js} +2 -2
- package/dist/{use-transfer-locations-CM5vNttA.js → use-transfer-locations-CqsXvOI2.js} +2 -2
- package/dist/{useHrmPermission-CslLuBoP.js → useHrmPermission-BzwD3Ctc.js} +1 -1
- package/dist/useNavigationMenu-PrZg9HS7.js +352 -0
- package/dist/{useSseClient-CCV4mPzD.js → useSseClient-FCyLWq8k.js} +1 -1
- package/dist/views/integration/components/IntegrationCard.vue.d.ts +38 -0
- package/dist/views/settings/FeatureFlagView.vue.d.ts +2 -0
- package/dist/{vue-i18n-C5j4EQhi.js → vue-i18n-C34f-Tph.js} +434 -434
- package/dist/{xlsx.util-B50OvX4z.js → xlsx.util-X4amwe_k.js} +2 -2
- package/package.json +6 -6
- package/dist/App-BXgpGzGR.js +0 -1476
- package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-zcEv1Swg.js +0 -243
- package/dist/IngredientGroupView-qrR9ksEn.js +0 -985
- package/dist/PremiumBadge.vue_vue_type_script_setup_true_lang-3e3kDsbN.js +0 -93
- package/dist/PreviewBadge.vue_vue_type_script_setup_true_lang-DX2MJqL4.js +0 -29
- package/dist/SettingsView-sThYErMz.js +0 -698
- package/dist/feature-Ckn5ra3z.js +0 -1136
- package/dist/useNavigationMenu-CSinmNCY.js +0 -172
- /package/dist/components/{FmFeatureFlagDialog.vue.d.ts → DeprecateSoonPill.vue.d.ts} +0 -0
package/dist/{use-ingredient-select-dialog-ntAqHX04.js → use-ingredient-select-dialog-7A7fWyEH.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineStore as S } from "pinia";
|
|
2
|
-
import { a as b } from "./app-
|
|
3
|
-
import { a as A } from "./FmMultiselectDialog-
|
|
2
|
+
import { a as b } from "./app-yvK__CBL.js";
|
|
3
|
+
import { a as A } from "./FmMultiselectDialog-DCaRlBIy.js";
|
|
4
4
|
import { useDialog as I } from "@feedmepos/ui-library";
|
|
5
5
|
import { useI18n as D } from "@feedmepos/mf-common";
|
|
6
6
|
const w = S(
|
package/dist/{use-inventory-binding-dialog-DVIJO8Cl.js → use-inventory-binding-dialog-Cc1tjTfV.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as g } from "./FmMultiselectDialog-
|
|
2
|
-
import { a as P } from "./app-
|
|
1
|
+
import { a as g } from "./FmMultiselectDialog-DCaRlBIy.js";
|
|
2
|
+
import { a as P } from "./app-yvK__CBL.js";
|
|
3
3
|
import { useDialog as E } from "@feedmepos/ui-library";
|
|
4
4
|
function A() {
|
|
5
5
|
const u = P(), _ = E();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as A } from "./FmMultiselectDialog-
|
|
2
|
-
import { u as S } from "./app-
|
|
1
|
+
import { a as A } from "./FmMultiselectDialog-DCaRlBIy.js";
|
|
2
|
+
import { u as S } from "./app-yvK__CBL.js";
|
|
3
3
|
import { useI18n as w, useCoreStore as i, useCustomAttributes as _ } from "@feedmepos/mf-common";
|
|
4
4
|
import { useDialog as C, components as p } from "@feedmepos/ui-library";
|
|
5
5
|
import { computed as r, h as c } from "vue";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { u as g, r as l, $ as w, a2 as R } from "./app-
|
|
2
|
-
import { u as E } from "./supplier-
|
|
1
|
+
import { u as g, r as l, $ as w, a2 as R } from "./app-yvK__CBL.js";
|
|
2
|
+
import { u as E } from "./supplier-DnbLJ_cS.js";
|
|
3
3
|
import { computed as u } from "vue";
|
|
4
4
|
function d(n) {
|
|
5
5
|
const c = R.safeParse(n);
|
|
@@ -0,0 +1,352 @@
|
|
|
1
|
+
import { computed as E, h as P } from "vue";
|
|
2
|
+
import { R as e, ac as C, ad as O, ab as f } from "./app-yvK__CBL.js";
|
|
3
|
+
import { useCoreStore as b, useI18n as _ } from "@feedmepos/mf-common";
|
|
4
|
+
import { u as U } from "./feature-CkWaZ-5K.js";
|
|
5
|
+
import { e as A, d as L, g as p } from "./portal-feature-catalog-yGIESKTc.js";
|
|
6
|
+
import { a as G } from "./FeatureCapabilityBadge.vue_vue_type_script_setup_true_lang-C1C8aDA6.js";
|
|
7
|
+
const S = [
|
|
8
|
+
{
|
|
9
|
+
route: e.STOCK,
|
|
10
|
+
module: "Stock",
|
|
11
|
+
tier: "standard",
|
|
12
|
+
description: "View current stock balances and inventory movement."
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
route: e.PRODUCTION_RUN,
|
|
16
|
+
module: "Stock",
|
|
17
|
+
tier: "standard",
|
|
18
|
+
description: "Record production items and consume their component stock.",
|
|
19
|
+
featureKey: "production-runs"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
route: e.UNIT_COST_HISTORY,
|
|
23
|
+
module: "Stock",
|
|
24
|
+
tier: "premium",
|
|
25
|
+
description: "Review unit-cost history and costing changes.",
|
|
26
|
+
featureKey: "total-cost"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
route: e.WASTAGE_TEMPLATE,
|
|
30
|
+
module: "Stock",
|
|
31
|
+
tier: "premium",
|
|
32
|
+
description: "Create reusable wastage-adjustment templates.",
|
|
33
|
+
featureKey: "wastage-template"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
route: e.CLOSING_HISTORY,
|
|
37
|
+
module: "Closing",
|
|
38
|
+
tier: "standard",
|
|
39
|
+
description: "Review completed inventory closings and their variances."
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
route: e.CLOSING_TEMPLATE,
|
|
43
|
+
module: "Closing",
|
|
44
|
+
tier: "premium",
|
|
45
|
+
description: "Set up reusable stock-closing templates.",
|
|
46
|
+
featureKey: "closing-template"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
route: e.CLOSING_DRAFT,
|
|
50
|
+
module: "Closing",
|
|
51
|
+
tier: "premium",
|
|
52
|
+
description: "Prepare and continue draft stock closings.",
|
|
53
|
+
featureKey: "closing-template"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
route: e.INGREDIENTS,
|
|
57
|
+
module: "Catalogue",
|
|
58
|
+
tier: "standard",
|
|
59
|
+
description: "Manage ingredients and SKUs."
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
route: e.INGREDIENT_GROUP,
|
|
63
|
+
module: "Catalogue",
|
|
64
|
+
tier: "standard",
|
|
65
|
+
description: "Organize ingredients into reusable groups.",
|
|
66
|
+
featureKey: "ingredient-group"
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
route: e.RECIPE,
|
|
70
|
+
module: "Catalogue",
|
|
71
|
+
tier: "standard",
|
|
72
|
+
description: "Create and maintain recipes and bills of materials."
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
route: e.UNIT,
|
|
76
|
+
module: "Catalogue",
|
|
77
|
+
tier: "standard",
|
|
78
|
+
description: "Manage inventory units of measure and conversions."
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
route: e.RECEIVE_REQUEST,
|
|
82
|
+
module: "Purchasing & transfers",
|
|
83
|
+
tier: "standard",
|
|
84
|
+
description: "Create, receive, and track purchase orders and transfers."
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
route: e.RECEIVE_REQUEST_BULK,
|
|
88
|
+
module: "Purchasing & transfers",
|
|
89
|
+
tier: "standard",
|
|
90
|
+
description: "Create and receive purchase orders across multiple locations.",
|
|
91
|
+
featureKey: "bulk-receive-transfer"
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
route: e.APPROVAL,
|
|
95
|
+
module: "Purchasing & transfers",
|
|
96
|
+
tier: "standard",
|
|
97
|
+
description: "Review and action stock-transfer approvals."
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
route: e.SURCHARGE,
|
|
101
|
+
module: "Purchasing & transfers",
|
|
102
|
+
tier: "standard",
|
|
103
|
+
description: "Configure purchase-order surcharges.",
|
|
104
|
+
featureKey: "surcharge"
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
route: e.TRANSFER_TEMPLATE,
|
|
108
|
+
module: "Purchasing & transfers",
|
|
109
|
+
tier: "premium",
|
|
110
|
+
description: "Create reusable purchase-order and transfer templates.",
|
|
111
|
+
featureKey: "purchase-order-template"
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
route: e.SUPPLIER,
|
|
115
|
+
module: "Suppliers",
|
|
116
|
+
tier: "standard",
|
|
117
|
+
description: "Manage supplier records and purchasing details."
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
route: e.WAREHOUSE,
|
|
121
|
+
module: "Warehouse",
|
|
122
|
+
tier: "standard",
|
|
123
|
+
description: "Manage warehouses; additional warehouse fees may apply."
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
route: e.PUBLISH,
|
|
127
|
+
module: "Publishing",
|
|
128
|
+
tier: "standard",
|
|
129
|
+
description: "Publish inventory catalogue changes to connected systems."
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
route: e.IMPORT,
|
|
133
|
+
module: "Data management",
|
|
134
|
+
tier: "standard",
|
|
135
|
+
description: "Bulk import units, ingredients, and recipes.",
|
|
136
|
+
featureKey: "bulk-import"
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
route: e.INTEGRATION,
|
|
140
|
+
module: "Integrations",
|
|
141
|
+
tier: "standard",
|
|
142
|
+
description: "Configure supported third-party inventory integrations."
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
route: e.INTEGRATION_EXPLORER,
|
|
146
|
+
module: "Integrations",
|
|
147
|
+
tier: "standard",
|
|
148
|
+
description: "Inspect and manage integration records and synchronization."
|
|
149
|
+
}
|
|
150
|
+
], y = Object.fromEntries(
|
|
151
|
+
S.map((s) => {
|
|
152
|
+
var n, u;
|
|
153
|
+
return [
|
|
154
|
+
s.route,
|
|
155
|
+
L({
|
|
156
|
+
key: s.route,
|
|
157
|
+
minimumTier: s.tier,
|
|
158
|
+
release: s.release ?? ((u = (n = p(s.featureKey ?? "")) == null ? void 0 : n.definition) == null ? void 0 : u.release)
|
|
159
|
+
})
|
|
160
|
+
];
|
|
161
|
+
})
|
|
162
|
+
);
|
|
163
|
+
function H(s) {
|
|
164
|
+
return S.find((n) => n.route === s) ?? null;
|
|
165
|
+
}
|
|
166
|
+
function M(s) {
|
|
167
|
+
return s ? y[s] ?? null : null;
|
|
168
|
+
}
|
|
169
|
+
function w(s, n) {
|
|
170
|
+
const u = M(s);
|
|
171
|
+
return u ? A(u, n) : { enabled: !0, disabled: !1, stage: "ga", eligible: !0 };
|
|
172
|
+
}
|
|
173
|
+
const K = O.reduce(
|
|
174
|
+
(s, n) => {
|
|
175
|
+
var u;
|
|
176
|
+
return n.name && (s[n.name] = (u = n.meta) == null ? void 0 : u.validationManifest), s;
|
|
177
|
+
},
|
|
178
|
+
{}
|
|
179
|
+
);
|
|
180
|
+
function Q() {
|
|
181
|
+
const s = b(), n = U(), { t: u } = _(), t = (i) => C(i, u), g = E(
|
|
182
|
+
() => {
|
|
183
|
+
var i;
|
|
184
|
+
return ((i = s.sessionUser.value) == null ? void 0 : i.permissions) ?? [];
|
|
185
|
+
}
|
|
186
|
+
), h = (i = []) => i.length === 0 ? !0 : f(i, g.value).granted, a = (i) => {
|
|
187
|
+
const r = K[i];
|
|
188
|
+
return h(r == null ? void 0 : r.requiredCaslPermissions);
|
|
189
|
+
}, R = (i) => i.filter((r) => !r.hide).map((r) => r.children ? { ...r, children: R(r.children) } : r).filter((r) => !r.children || r.children.length > 0), T = (i) => i.map((r) => {
|
|
190
|
+
const { hide: d, children: o, ...l } = r, c = { ...l };
|
|
191
|
+
return o && (c.children = T(o)), c;
|
|
192
|
+
}), I = (i) => i.map((r) => {
|
|
193
|
+
const d = r.value, o = H(d), l = p((o == null ? void 0 : o.featureKey) ?? ""), c = l == null ? void 0 : l.category, v = o && (o.tier === "premium" || c === "beta" || l != null && l.deprecateSoon) ? () => P(G, {
|
|
194
|
+
tier: o.tier,
|
|
195
|
+
category: c,
|
|
196
|
+
deprecateSoon: l == null ? void 0 : l.deprecateSoon
|
|
197
|
+
}) : void 0;
|
|
198
|
+
return {
|
|
199
|
+
...r,
|
|
200
|
+
badge: v,
|
|
201
|
+
children: r.children ? I(r.children) : void 0
|
|
202
|
+
};
|
|
203
|
+
}), m = E(() => {
|
|
204
|
+
var d;
|
|
205
|
+
const i = [
|
|
206
|
+
{
|
|
207
|
+
label: t(e.STOCK),
|
|
208
|
+
children: [
|
|
209
|
+
{
|
|
210
|
+
label: u("inventory.stock.stock_balance.title"),
|
|
211
|
+
value: e.STOCK,
|
|
212
|
+
hide: !a(e.STOCK)
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
label: t(e.PRODUCTION_RUN),
|
|
216
|
+
value: e.PRODUCTION_RUN,
|
|
217
|
+
hide: !a(e.PRODUCTION_RUN) || !n.enableProductionRun
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
label: t(e.UNIT_COST_HISTORY),
|
|
221
|
+
value: e.UNIT_COST_HISTORY,
|
|
222
|
+
hide: !a(e.UNIT_COST_HISTORY) || !n.enableTotalCost
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
label: t(e.WASTAGE_TEMPLATE),
|
|
226
|
+
value: e.WASTAGE_TEMPLATE,
|
|
227
|
+
hide: !a(e.WASTAGE_TEMPLATE) || !n.enableWastageTemplate
|
|
228
|
+
}
|
|
229
|
+
]
|
|
230
|
+
},
|
|
231
|
+
{
|
|
232
|
+
label: u("inventory.closing.title"),
|
|
233
|
+
children: [
|
|
234
|
+
{
|
|
235
|
+
label: t(e.CLOSING_HISTORY),
|
|
236
|
+
value: e.CLOSING_HISTORY,
|
|
237
|
+
hide: !a(e.CLOSING_HISTORY)
|
|
238
|
+
},
|
|
239
|
+
{
|
|
240
|
+
label: t(e.CLOSING_TEMPLATE),
|
|
241
|
+
value: e.CLOSING_TEMPLATE,
|
|
242
|
+
hide: !a(e.CLOSING_TEMPLATE) || !n.enableClosingTemplate
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
label: t(e.CLOSING_DRAFT),
|
|
246
|
+
value: e.CLOSING_DRAFT,
|
|
247
|
+
hide: !a(e.CLOSING_DRAFT) || !n.enableClosingTemplate
|
|
248
|
+
}
|
|
249
|
+
]
|
|
250
|
+
},
|
|
251
|
+
{
|
|
252
|
+
label: t(e.INGREDIENTS),
|
|
253
|
+
value: e.INGREDIENTS,
|
|
254
|
+
hide: !a(e.INGREDIENTS)
|
|
255
|
+
},
|
|
256
|
+
{
|
|
257
|
+
label: t(e.INGREDIENT_GROUP),
|
|
258
|
+
value: e.INGREDIENT_GROUP,
|
|
259
|
+
hide: !a(e.INGREDIENT_GROUP) || !n.enableIngredientGroup
|
|
260
|
+
},
|
|
261
|
+
{
|
|
262
|
+
label: t(e.RECIPE),
|
|
263
|
+
value: e.RECIPE,
|
|
264
|
+
hide: !a(e.RECIPE)
|
|
265
|
+
},
|
|
266
|
+
{
|
|
267
|
+
label: t(e.UNIT),
|
|
268
|
+
value: e.UNIT,
|
|
269
|
+
hide: !a(e.UNIT)
|
|
270
|
+
},
|
|
271
|
+
{
|
|
272
|
+
label: u("inventory.transfer.title"),
|
|
273
|
+
children: [
|
|
274
|
+
{
|
|
275
|
+
label: t(e.RECEIVE_REQUEST),
|
|
276
|
+
value: e.RECEIVE_REQUEST,
|
|
277
|
+
hide: !a(e.RECEIVE_REQUEST)
|
|
278
|
+
},
|
|
279
|
+
{
|
|
280
|
+
label: t(e.RECEIVE_REQUEST_BULK),
|
|
281
|
+
value: e.RECEIVE_REQUEST_BULK,
|
|
282
|
+
hide: !a(e.RECEIVE_REQUEST_BULK) || !n.enableReceiveRequestBeta
|
|
283
|
+
},
|
|
284
|
+
{
|
|
285
|
+
label: t(e.APPROVAL),
|
|
286
|
+
value: e.APPROVAL,
|
|
287
|
+
hide: !a(e.APPROVAL)
|
|
288
|
+
},
|
|
289
|
+
{
|
|
290
|
+
label: t(e.SURCHARGE),
|
|
291
|
+
value: e.SURCHARGE,
|
|
292
|
+
hide: !a(e.SURCHARGE) || !n.enableSurcharge
|
|
293
|
+
},
|
|
294
|
+
{
|
|
295
|
+
label: t(e.TRANSFER_TEMPLATE),
|
|
296
|
+
value: e.TRANSFER_TEMPLATE,
|
|
297
|
+
hide: !a(e.TRANSFER_TEMPLATE) || !n.enablePoTemplate
|
|
298
|
+
}
|
|
299
|
+
]
|
|
300
|
+
},
|
|
301
|
+
{
|
|
302
|
+
label: t(e.SUPPLIER),
|
|
303
|
+
value: e.SUPPLIER,
|
|
304
|
+
hide: !a(e.SUPPLIER)
|
|
305
|
+
},
|
|
306
|
+
{
|
|
307
|
+
label: t(e.WAREHOUSE),
|
|
308
|
+
value: e.WAREHOUSE,
|
|
309
|
+
hide: !a(e.WAREHOUSE)
|
|
310
|
+
},
|
|
311
|
+
{
|
|
312
|
+
label: t(e.PUBLISH),
|
|
313
|
+
value: e.PUBLISH,
|
|
314
|
+
hide: !a(e.PUBLISH)
|
|
315
|
+
},
|
|
316
|
+
{
|
|
317
|
+
label: t(e.IMPORT),
|
|
318
|
+
value: e.IMPORT,
|
|
319
|
+
hide: !a(e.IMPORT) || !n.enableBulkImport
|
|
320
|
+
},
|
|
321
|
+
{
|
|
322
|
+
label: t(e.INTEGRATION),
|
|
323
|
+
value: e.INTEGRATION,
|
|
324
|
+
hide: !a(e.INTEGRATION)
|
|
325
|
+
},
|
|
326
|
+
{
|
|
327
|
+
label: t(e.SETTINGS),
|
|
328
|
+
value: e.SETTINGS,
|
|
329
|
+
hide: !a(e.SETTINGS)
|
|
330
|
+
}
|
|
331
|
+
], r = I(T(R(i)));
|
|
332
|
+
return ((d = s.currentBusiness.value) == null ? void 0 : d.menuVersion) === "v3" ? r.filter(
|
|
333
|
+
(o) => o.value !== e.INGREDIENTS && o.value !== e.RECIPE && o.value !== e.UNIT && o.value !== e.PUBLISH
|
|
334
|
+
) : r;
|
|
335
|
+
}), N = E(() => {
|
|
336
|
+
function i(d) {
|
|
337
|
+
for (const o of d)
|
|
338
|
+
if (o.children && o.children.length > 0) {
|
|
339
|
+
const l = i(o.children);
|
|
340
|
+
if (l) return l;
|
|
341
|
+
} else if (o.value)
|
|
342
|
+
return o.value;
|
|
343
|
+
}
|
|
344
|
+
return i(m.value) ?? null;
|
|
345
|
+
});
|
|
346
|
+
return { menuItems: m, firstAccessibleRouteName: N };
|
|
347
|
+
}
|
|
348
|
+
export {
|
|
349
|
+
w as e,
|
|
350
|
+
S as n,
|
|
351
|
+
Q as u
|
|
352
|
+
};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
2
|
+
capability?: "premium" | "beta" | undefined;
|
|
3
|
+
}>, {
|
|
4
|
+
capability: undefined;
|
|
5
|
+
}>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
6
|
+
capability?: "premium" | "beta" | undefined;
|
|
7
|
+
}>, {
|
|
8
|
+
capability: undefined;
|
|
9
|
+
}>>> & Readonly<{}>, {
|
|
10
|
+
capability: "premium" | "beta";
|
|
11
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, Readonly<{
|
|
12
|
+
default(): unknown;
|
|
13
|
+
}> & {
|
|
14
|
+
default(): unknown;
|
|
15
|
+
}>;
|
|
16
|
+
export default _default;
|
|
17
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
18
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
19
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
20
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
21
|
+
} : {
|
|
22
|
+
type: import('vue').PropType<T[K]>;
|
|
23
|
+
required: true;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
type __VLS_WithDefaults<P, D> = {
|
|
27
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
28
|
+
default: D[K];
|
|
29
|
+
}> : P[K];
|
|
30
|
+
};
|
|
31
|
+
type __VLS_Prettify<T> = {
|
|
32
|
+
[K in keyof T]: T[K];
|
|
33
|
+
} & {};
|
|
34
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
35
|
+
new (): {
|
|
36
|
+
$slots: S;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|