@feedmepos/mf-inventory-portal 1.3.14-dev.2 → 1.3.14
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-BQZQFNKG.js +411 -0
- package/dist/{ApprovalView-CfF2FqsE.js → ApprovalView-BVszC4Cw.js} +12 -12
- package/dist/{BindingsDialog-H-juP-az.js → BindingsDialog-B3L_3xdo.js} +13 -13
- package/dist/{BindingsPicker-ClruHF7p.js → BindingsPicker-A4togB2v.js} +2 -2
- package/dist/{BindingsTable-Bx9pbFOO.js → BindingsTable-DacoMdY6.js} +3 -3
- package/dist/{ClosingDraftView-DN97Tao5.js → ClosingDraftView-C9tvMgLl.js} +16 -16
- package/dist/{ClosingHistoryView-DsRYUqa2.js → ClosingHistoryView-CqqzqSqU.js} +5 -5
- package/dist/{ClosingTemplateView-f9zfsxCu.js → ClosingTemplateView-CLi0XE8S.js} +15 -15
- package/dist/{DeliveryOrderPrintPreview-BMK4kBCQ.js → DeliveryOrderPrintPreview-DEHEfd80.js} +11 -11
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-Bqj_Ygmo.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BDZVaj3l.js} +16 -16
- package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CK1ha_AY.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-xxS4P6uo.js} +2 -2
- package/dist/{FmMultiselectDialog-BazT9oUX.js → FmMultiselectDialog-CR2peMEL.js} +1 -1
- package/dist/{FmMultiselectDialog-_gUuhudi.js → FmMultiselectDialog-FGR8t9rz.js} +16 -16
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-BBtAgdsA.js → FmUnitInput.vue_vue_type_script_setup_true_lang-DgXOsVLe.js} +4 -4
- package/dist/{ImportView-jpkwuCXO.js → ImportView-CEI0QqGz.js} +6 -6
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-DLJnF4do.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-cRgKjHY0.js} +1 -1
- package/dist/{IngredientGroupView-x3t1hyNn.js → IngredientGroupView-DEELNMpl.js} +6 -6
- package/dist/{IngredientsView-BzWTnlb4.js → IngredientsView-D3OcjZdT.js} +16 -16
- package/dist/{IntegrationExplorerView-Bca3owbx.js → IntegrationExplorerView-ByPpT3hC.js} +5 -5
- package/dist/{IntegrationView-Dh1c4Qyo.js → IntegrationView-BSqlJBp-.js} +81 -81
- package/dist/{InventoryBindingForm-B1sI1TGZ.js → InventoryBindingForm-SgmyJvCs.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-7NeE7Xos.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-GLipe2bO.js} +5 -5
- package/dist/{InventoryBindingSummary-R8zHPc52.js → InventoryBindingSummary-D6deGR6B.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DMJVh7Nt.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DGDL-t7m.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-ChC9sEIk.js → PremiumBadge.vue_vue_type_script_setup_true_lang-ff1rPUJW.js} +7 -7
- package/dist/{PublishView-Bqp8Ww4J.js → PublishView-7TAa2QQB.js} +15 -15
- package/dist/{PurchaseOrderPrintPreview-D7TCn8U-.js → PurchaseOrderPrintPreview-DhcnInSW.js} +11 -11
- package/dist/ReceiveRequestView-Z3JYH3gf.js +36203 -0
- package/dist/{RecipeView-D8Mvgji9.js → RecipeView--ALwYD-O.js} +16 -16
- package/dist/{SettingsView-BJScLK9z.js → SettingsView-F_BWUxoq.js} +4 -4
- package/dist/StockView-BLrquJf2.js +2406 -0
- package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-DUKv_LV6.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-CxNgi5uv.js} +1 -1
- package/dist/{SupplierView-DdBBIV8W.js → SupplierView-DklOXwHD.js} +13 -13
- package/dist/{SurchargeView-DisBUPIs.js → SurchargeView-DcImorUr.js} +17 -17
- package/dist/{SystemTrailDialog.vue_vue_type_script_setup_true_lang-CZ3Q3BAf.js → SystemTrailDialog.vue_vue_type_script_setup_true_lang-xdLxGAOM.js} +2 -2
- package/dist/{TemplatePublishDialog.vue_vue_type_script_setup_true_lang-CC7F5HVc.js → TemplatePublishDialog.vue_vue_type_script_setup_true_lang-Bu4XKhII.js} +1 -1
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-DMrRfwKD.js +3890 -0
- package/dist/{TransferTemplateView-7ICJMF9z.js → TransferTemplateView-DTdlSI2b.js} +18 -18
- package/dist/{UnitCostHistoryView-BMRDBQ58.js → UnitCostHistoryView-CQ_DJE-t.js} +243 -246
- package/dist/{UnitDisplayControl.vue_vue_type_script_setup_true_lang-mNXHzLN3.js → UnitDisplayControl.vue_vue_type_script_setup_true_lang-QuejzcCL.js} +4 -4
- package/dist/{UnitView-uUUYOjYn.js → UnitView-DzcCdCGw.js} +8 -8
- package/dist/{WarehouseView-BfMf_iuj.js → WarehouseView-BYj9DD1N.js} +26 -26
- package/dist/{WastageTemplateView-BQYjJGZ-.js → WastageTemplateView--w6an2Ar.js} +15 -15
- package/dist/api/email.d.ts +54 -0
- package/dist/{app-B_zMegJc.js → app-CPlgHGkC.js} +22314 -23519
- package/dist/app.d.ts +14 -22
- package/dist/app.js +2 -2
- package/dist/{closing-template-9vhx5Ji1.js → closing-template-B9JOB9ah.js} +1 -1
- package/dist/components/row-action.enum.d.ts +2 -1
- package/dist/{date2-BMCS_Dsc.js → date2-Ci9tlLMJ.js} +1 -1
- package/dist/{dayjs.min-Dl26OaXo.js → dayjs.min-DTx2lmq6.js} +26 -26
- package/dist/{decimal-e6OK2jkR.js → decimal-iKhH_VJO.js} +2 -2
- package/dist/{defineDeepModel-BvLlwxnd.js → defineDeepModel-C25T8oyP.js} +1 -1
- package/dist/{duplicate-template-Cnhu8Rxw.js → duplicate-template-BptIBRQ3.js} +1 -1
- package/dist/{empty-placeholder-B0QU467o.js → empty-placeholder-wf6-BWE8.js} +1 -1
- package/dist/{export-CGvyGmeo.js → export-CKuVd5pP.js} +1 -1
- package/dist/{feature-Do41WWzx.js → feature-CXMSo4z7.js} +121 -116
- package/dist/{format-time-from-id-CqX_KaUG.js → format-time-from-id-Bk60g6lh.js} +1 -1
- package/dist/{format-unit-display-D8qWmRXP.js → format-unit-display-C4nf8hG8.js} +12 -12
- package/dist/{import-export.helper-85V8Ib5e.js → import-export.helper-BDzsQcYD.js} +6 -6
- package/dist/{index-C-CwnjUn.js → index-CUVlQagt.js} +3 -3
- package/dist/{index-CtUF9Nsv.js → index-DTszDSPO.js} +1 -1
- package/dist/{index-Cg3aLEhT.js → index-DiKOwY5C.js} +1 -1
- package/dist/{inventory-core-dart.default-B64FzAla.js → inventory-core-dart.default-Cn3sonot.js} +10 -10
- package/dist/{lodash-U9ycVPlv.js → lodash-DGOK6ZkA.js} +1 -1
- package/dist/{lz-string-0CgVsQoC.js → lz-string-QrWbdmw6.js} +21 -21
- package/dist/{netsuite-Du7-sXJt.js → netsuite-DglgyKcZ.js} +37 -37
- package/dist/{number-iJAzDfmj.js → number-Ut7u2ZEE.js} +11 -11
- package/dist/{predefined-templates-LlSrXOXm.js → predefined-templates-DZtFebPU.js} +1 -1
- package/dist/{purchase-order-template-DFuXb0rr.js → purchase-order-template-DhNVhXmD.js} +1 -1
- package/dist/{recalculationUtils-DWPnMW1G.js → recalculationUtils-CqJRd9B2.js} +1 -1
- package/dist/router/name.d.ts +0 -1
- package/dist/{row-action.enum-Co_O4qD9.js → row-action.enum-DQ9bJ_uv.js} +7 -1
- package/dist/{rules-DefSKiUN.js → rules-BIm67nl_.js} +2 -2
- package/dist/{stock-BfF6peMd.js → stock-CzdMn9n8.js} +3 -3
- package/dist/{stock-Cx1BwdWs.js → stock-Dc4_U69J.js} +27 -28
- package/dist/stores/feature.d.ts +2 -0
- package/dist/{supplier-CU3iqdGr.js → supplier-De5G6CeF.js} +2 -2
- package/dist/{surcharge-D77J5opH.js → surcharge-CN5FtDZq.js} +8 -8
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-ingredient-select-dialog-B-jxV-79.js → use-ingredient-select-dialog-Wy4CtYcZ.js} +2 -2
- package/dist/{use-inventory-binding-dialog-BdTd5qPl.js → use-inventory-binding-dialog-C1LCH0jV.js} +2 -2
- package/dist/{use-template-enabled-locations-vFvaCjlH.js → use-template-enabled-locations-BfZFcXZ_.js} +2 -2
- package/dist/views/receive-request/components/email-dialog/EmailDialog.vue.d.ts +20 -0
- package/dist/views/receive-request/components/email-dialog/EmailDialogProps.d.ts +13 -0
- package/dist/views/receive-request/composables/use-order-draft-permission.d.ts +5 -2
- package/dist/views/receive-request/composables/use-receive-request-form.d.ts +3 -0
- package/dist/vue-i18n-CvVV4Xof.js +2365 -0
- package/dist/{xlsx-o7n1whCa.js → xlsx-lawW6Hwh.js} +570 -570
- package/dist/{xlsx.util-D6nPboPW.js → xlsx.util-DSCqPt8v.js} +1 -1
- package/package.json +2 -2
- package/dist/App-D1_jkD6L.js +0 -309
- package/dist/DefaultView-COVVxOrF.js +0 -31
- package/dist/ReceiveRequestView-oNBVAMYu.js +0 -2817
- package/dist/StockView-CRRdVCcD.js +0 -2439
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-BLlg1Vka.js +0 -3837
- package/dist/components/HrmPermissionGuard.vue.d.ts +0 -54
- package/dist/composable/useHrmPermission.d.ts +0 -17
- package/dist/composable/useInventoryAccess.d.ts +0 -11
- package/dist/composable/useNavigationMenu.d.ts +0 -14
- package/dist/router/route-permission.d.ts +0 -10
- package/dist/useHrmPermission-CekUhyck.js +0 -16
- package/dist/useNavigationMenu-BiLWMIip.js +0 -162
- package/dist/views/DefaultView.vue.d.ts +0 -2
- package/dist/vue-i18n-C3_OsgSl.js +0 -2365
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import type { CaslPermission } from '@feedmepos/hrm-permission';
|
|
2
|
-
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
3
|
-
/** Single CASL permission to check */
|
|
4
|
-
permission?: CaslPermission | undefined;
|
|
5
|
-
/** Multiple CASL permissions to check */
|
|
6
|
-
permissions?: CaslPermission[] | undefined;
|
|
7
|
-
/** Check mode: 'all' requires every permission, 'any' requires at least one */
|
|
8
|
-
mode?: "all" | "any" | undefined;
|
|
9
|
-
}>, {
|
|
10
|
-
permission: undefined;
|
|
11
|
-
permissions: undefined;
|
|
12
|
-
mode: string;
|
|
13
|
-
}>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
14
|
-
/** Single CASL permission to check */
|
|
15
|
-
permission?: CaslPermission | undefined;
|
|
16
|
-
/** Multiple CASL permissions to check */
|
|
17
|
-
permissions?: CaslPermission[] | undefined;
|
|
18
|
-
/** Check mode: 'all' requires every permission, 'any' requires at least one */
|
|
19
|
-
mode?: "all" | "any" | undefined;
|
|
20
|
-
}>, {
|
|
21
|
-
permission: undefined;
|
|
22
|
-
permissions: undefined;
|
|
23
|
-
mode: string;
|
|
24
|
-
}>>> & Readonly<{}>, {
|
|
25
|
-
permissions: CaslPermission[];
|
|
26
|
-
mode: "all" | "any";
|
|
27
|
-
permission: CaslPermission;
|
|
28
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {
|
|
29
|
-
default?(_: {}): any;
|
|
30
|
-
fallback?(_: {}): any;
|
|
31
|
-
}>;
|
|
32
|
-
export default _default;
|
|
33
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
34
|
-
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
35
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
36
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
37
|
-
} : {
|
|
38
|
-
type: import('vue').PropType<T[K]>;
|
|
39
|
-
required: true;
|
|
40
|
-
};
|
|
41
|
-
};
|
|
42
|
-
type __VLS_WithDefaults<P, D> = {
|
|
43
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
44
|
-
default: D[K];
|
|
45
|
-
}> : P[K];
|
|
46
|
-
};
|
|
47
|
-
type __VLS_Prettify<T> = {
|
|
48
|
-
[K in keyof T]: T[K];
|
|
49
|
-
} & {};
|
|
50
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
51
|
-
new (): {
|
|
52
|
-
$slots: S;
|
|
53
|
-
};
|
|
54
|
-
};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import type { MaybeRefOrGetter, ComputedRef } from 'vue';
|
|
2
|
-
import type { CaslPermission } from '@feedmepos/hrm-permission';
|
|
3
|
-
/**
|
|
4
|
-
* Reactively checks HRM permissions against the current session user.
|
|
5
|
-
*
|
|
6
|
-
* @param permissions CASL permission objects to check.
|
|
7
|
-
* @param mode Permission matching mode: `all` requires every permission, `any` requires at least one.
|
|
8
|
-
* @returns Object containing a computed `hasPermission` boolean.
|
|
9
|
-
*
|
|
10
|
-
* @example
|
|
11
|
-
* const { hasPermission } = useHrmPermission([
|
|
12
|
-
* { action: Permission.read, subject: 'inventory' }
|
|
13
|
-
* ])
|
|
14
|
-
*/
|
|
15
|
-
export declare function useHrmPermission(permissions: MaybeRefOrGetter<CaslPermission[]>, mode?: MaybeRefOrGetter<'all' | 'any'>): {
|
|
16
|
-
hasPermission: ComputedRef<boolean>;
|
|
17
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { ComputedRef } from 'vue';
|
|
2
|
-
/**
|
|
3
|
-
* Checks whether the current session user has at least one reachable
|
|
4
|
-
* inventory route in the current app configuration.
|
|
5
|
-
*
|
|
6
|
-
* This is intentionally aligned with navigation routing so feature-gated
|
|
7
|
-
* routes do not count as accessible entry points.
|
|
8
|
-
*/
|
|
9
|
-
export declare function useInventoryAccess(): {
|
|
10
|
-
hasAnyAccessibleInventoryRoute: ComputedRef<boolean>;
|
|
11
|
-
};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { ComputedRef } from 'vue';
|
|
2
|
-
import { RouteName } from '@/router/name';
|
|
3
|
-
export interface NavigationMenuItem {
|
|
4
|
-
label: string;
|
|
5
|
-
value?: string;
|
|
6
|
-
icon?: string;
|
|
7
|
-
disabled?: boolean;
|
|
8
|
-
children?: NavigationMenuItem[];
|
|
9
|
-
}
|
|
10
|
-
export interface UseNavigationMenuReturn {
|
|
11
|
-
menuItems: ComputedRef<NavigationMenuItem[]>;
|
|
12
|
-
firstAccessibleRouteName: ComputedRef<RouteName | null>;
|
|
13
|
-
}
|
|
14
|
-
export declare function useNavigationMenu(): UseNavigationMenuReturn;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { RouteMeta } from 'vue-router';
|
|
2
|
-
import type { PermissionSubjectBusinessNamespace } from '@feedmepos/hrm-permission';
|
|
3
|
-
/**
|
|
4
|
-
* Creates route meta for read-only inventory resource access.
|
|
5
|
-
*
|
|
6
|
-
* vue-router's RouteMeta augmentation comes from @feedmepos/mf-common, which
|
|
7
|
-
* does not accept inventory manifest resources directly, so the final shape is
|
|
8
|
-
* cast at the boundary after the local payload is type-checked.
|
|
9
|
-
*/
|
|
10
|
-
export declare function canView(subject: PermissionSubjectBusinessNamespace): RouteMeta;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { computed as p, toValue as o } from "vue";
|
|
2
|
-
import { a1 as n } from "./app-B_zMegJc.js";
|
|
3
|
-
import { useCoreStore as c } from "@feedmepos/mf-common";
|
|
4
|
-
function g(t, i = "all") {
|
|
5
|
-
const m = c();
|
|
6
|
-
return { hasPermission: p(() => {
|
|
7
|
-
var e;
|
|
8
|
-
const r = o(t), u = o(i);
|
|
9
|
-
if (r.length === 0) return !0;
|
|
10
|
-
const s = ((e = m.sessionUser.value) == null ? void 0 : e.permissions) ?? [];
|
|
11
|
-
return u === "any" ? r.some((a) => n([a], s).granted) : n(r, s).granted;
|
|
12
|
-
}) };
|
|
13
|
-
}
|
|
14
|
-
export {
|
|
15
|
-
g as u
|
|
16
|
-
};
|
|
@@ -1,162 +0,0 @@
|
|
|
1
|
-
import { computed as T } from "vue";
|
|
2
|
-
import { al as P, R as e, b, am as A, a1 as O } from "./app-B_zMegJc.js";
|
|
3
|
-
import { useCoreStore as C, useI18n as L } from "@feedmepos/mf-common";
|
|
4
|
-
import { u as _ } from "./feature-Do41WWzx.js";
|
|
5
|
-
const G = P.reduce(
|
|
6
|
-
(o, i) => {
|
|
7
|
-
var s;
|
|
8
|
-
return i.name && (o[i.name] = (s = i.meta) == null ? void 0 : s.validationManifest), o;
|
|
9
|
-
},
|
|
10
|
-
{}
|
|
11
|
-
);
|
|
12
|
-
function p() {
|
|
13
|
-
const o = C(), i = _(), { t: s } = L(), { isDev: c } = b(), l = (r) => A(r, s), N = T(
|
|
14
|
-
() => {
|
|
15
|
-
var r;
|
|
16
|
-
return ((r = o.sessionUser.value) == null ? void 0 : r.permissions) ?? [];
|
|
17
|
-
}
|
|
18
|
-
), h = (r = []) => r.length === 0 ? !0 : O(r, N.value).granted, a = (r) => {
|
|
19
|
-
const n = G[r];
|
|
20
|
-
return h(n == null ? void 0 : n.requiredCaslPermissions);
|
|
21
|
-
}, R = (r) => r.filter((n) => !n.hide).map((n) => n.children ? { ...n, children: R(n.children) } : n).filter((n) => !n.children || n.children.length > 0), I = (r) => r.map((n) => {
|
|
22
|
-
const { hide: E, children: t, ...u } = n, S = { ...u };
|
|
23
|
-
return t && (S.children = I(t)), S;
|
|
24
|
-
}), d = T(() => {
|
|
25
|
-
var E;
|
|
26
|
-
const r = [
|
|
27
|
-
{
|
|
28
|
-
label: "Non-Production Environment",
|
|
29
|
-
icon: "logo_dev",
|
|
30
|
-
disabled: !0,
|
|
31
|
-
hide: !c
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
label: l(e.STOCK),
|
|
35
|
-
children: [
|
|
36
|
-
{
|
|
37
|
-
label: s("inventory.stock.stock_balance.title"),
|
|
38
|
-
value: e.STOCK,
|
|
39
|
-
hide: !a(e.STOCK)
|
|
40
|
-
},
|
|
41
|
-
{
|
|
42
|
-
label: l(e.UNIT_COST_HISTORY),
|
|
43
|
-
value: e.UNIT_COST_HISTORY,
|
|
44
|
-
hide: !a(e.UNIT_COST_HISTORY) || !i.enableTotalCost
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
label: l(e.WASTAGE_TEMPLATE),
|
|
48
|
-
value: e.WASTAGE_TEMPLATE,
|
|
49
|
-
hide: !a(e.WASTAGE_TEMPLATE) || !i.enableWastageTemplate
|
|
50
|
-
}
|
|
51
|
-
]
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
label: s("inventory.closing.title"),
|
|
55
|
-
children: [
|
|
56
|
-
{
|
|
57
|
-
label: l(e.CLOSING_HISTORY),
|
|
58
|
-
value: e.CLOSING_HISTORY,
|
|
59
|
-
hide: !a(e.CLOSING_HISTORY)
|
|
60
|
-
},
|
|
61
|
-
{
|
|
62
|
-
label: l(e.CLOSING_TEMPLATE),
|
|
63
|
-
value: e.CLOSING_TEMPLATE,
|
|
64
|
-
hide: !a(e.CLOSING_TEMPLATE) || !i.enableClosingTemplate
|
|
65
|
-
},
|
|
66
|
-
{
|
|
67
|
-
label: l(e.CLOSING_DRAFT),
|
|
68
|
-
value: e.CLOSING_DRAFT,
|
|
69
|
-
hide: !a(e.CLOSING_DRAFT) || !i.enableClosingTemplate
|
|
70
|
-
}
|
|
71
|
-
]
|
|
72
|
-
},
|
|
73
|
-
{
|
|
74
|
-
label: l(e.INGREDIENTS),
|
|
75
|
-
value: e.INGREDIENTS,
|
|
76
|
-
hide: !a(e.INGREDIENTS)
|
|
77
|
-
},
|
|
78
|
-
{
|
|
79
|
-
label: l(e.INGREDIENT_GROUP),
|
|
80
|
-
value: e.INGREDIENT_GROUP,
|
|
81
|
-
hide: !a(e.INGREDIENT_GROUP) || !i.enableIngredientGroup
|
|
82
|
-
},
|
|
83
|
-
{
|
|
84
|
-
label: l(e.RECIPE),
|
|
85
|
-
value: e.RECIPE,
|
|
86
|
-
hide: !a(e.RECIPE)
|
|
87
|
-
},
|
|
88
|
-
{
|
|
89
|
-
label: l(e.UNIT),
|
|
90
|
-
value: e.UNIT,
|
|
91
|
-
hide: !a(e.UNIT)
|
|
92
|
-
},
|
|
93
|
-
{
|
|
94
|
-
label: s("inventory.transfer.title"),
|
|
95
|
-
children: [
|
|
96
|
-
{
|
|
97
|
-
label: l(e.RECEIVE_REQUEST),
|
|
98
|
-
value: e.RECEIVE_REQUEST,
|
|
99
|
-
hide: !a(e.RECEIVE_REQUEST)
|
|
100
|
-
},
|
|
101
|
-
{
|
|
102
|
-
label: l(e.APPROVAL),
|
|
103
|
-
value: e.APPROVAL,
|
|
104
|
-
hide: !a(e.APPROVAL)
|
|
105
|
-
},
|
|
106
|
-
{
|
|
107
|
-
label: l(e.SURCHARGE),
|
|
108
|
-
value: e.SURCHARGE,
|
|
109
|
-
hide: !a(e.SURCHARGE) || !i.enableSurcharge
|
|
110
|
-
},
|
|
111
|
-
{
|
|
112
|
-
label: l(e.TRANSFER_TEMPLATE),
|
|
113
|
-
value: e.TRANSFER_TEMPLATE,
|
|
114
|
-
hide: !a(e.TRANSFER_TEMPLATE) || !i.enablePoTemplate
|
|
115
|
-
}
|
|
116
|
-
]
|
|
117
|
-
},
|
|
118
|
-
{
|
|
119
|
-
label: l(e.SUPPLIER),
|
|
120
|
-
value: e.SUPPLIER,
|
|
121
|
-
hide: !a(e.SUPPLIER)
|
|
122
|
-
},
|
|
123
|
-
{
|
|
124
|
-
label: l(e.WAREHOUSE),
|
|
125
|
-
value: e.WAREHOUSE,
|
|
126
|
-
hide: !a(e.WAREHOUSE)
|
|
127
|
-
},
|
|
128
|
-
{
|
|
129
|
-
label: l(e.PUBLISH),
|
|
130
|
-
value: e.PUBLISH,
|
|
131
|
-
hide: !a(e.PUBLISH)
|
|
132
|
-
},
|
|
133
|
-
{
|
|
134
|
-
label: l(e.IMPORT),
|
|
135
|
-
value: e.IMPORT,
|
|
136
|
-
hide: !a(e.IMPORT) || !i.enableBulkImport
|
|
137
|
-
},
|
|
138
|
-
{
|
|
139
|
-
label: l(e.INTEGRATION),
|
|
140
|
-
value: e.INTEGRATION,
|
|
141
|
-
hide: !a(e.INTEGRATION)
|
|
142
|
-
}
|
|
143
|
-
], n = I(R(r));
|
|
144
|
-
return ((E = o.currentBusiness.value) == null ? void 0 : E.menuVersion) === "v3" ? n.filter(
|
|
145
|
-
(t) => t.value !== e.INGREDIENTS && t.value !== e.RECIPE && t.value !== e.UNIT && t.value !== e.PUBLISH
|
|
146
|
-
) : n;
|
|
147
|
-
}), v = T(() => {
|
|
148
|
-
function r(E) {
|
|
149
|
-
for (const t of E)
|
|
150
|
-
if (t.children && t.children.length > 0) {
|
|
151
|
-
const u = r(t.children);
|
|
152
|
-
if (u) return u;
|
|
153
|
-
} else if (t.value)
|
|
154
|
-
return t.value;
|
|
155
|
-
}
|
|
156
|
-
return r(d.value) ?? null;
|
|
157
|
-
});
|
|
158
|
-
return { menuItems: d, firstAccessibleRouteName: v };
|
|
159
|
-
}
|
|
160
|
-
export {
|
|
161
|
-
p as u
|
|
162
|
-
};
|
|
@@ -1,2 +0,0 @@
|
|
|
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;
|