@eintrek/erp-shell 0.1.49 → 0.1.51
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/index.esm.js +33 -14
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +33 -14
- package/dist/index.js.map +1 -1
- package/dist/lib/plan-features.d.ts +7 -1
- package/dist/navigation/app-sidebar.d.ts +3 -1
- package/dist/navigation/nav-main.d.ts +7 -1
- package/package.json +1 -1
|
@@ -19,7 +19,13 @@ export declare const PLAN_FEATURES: {
|
|
|
19
19
|
readonly MODULE_INVENTORY: "module.inventory";
|
|
20
20
|
readonly MODULE_PROJECT: "module.project";
|
|
21
21
|
readonly MODULE_SECRETARIAT: "module.secretariat";
|
|
22
|
+
/** AI pack (paid or trial): AI calls on AntNiti's key while credits remain. */
|
|
23
|
+
readonly AI: "ai";
|
|
22
24
|
};
|
|
23
25
|
export type PlanFeatureKey = (typeof PLAN_FEATURES)[keyof typeof PLAN_FEATURES];
|
|
24
|
-
/**
|
|
26
|
+
/**
|
|
27
|
+
* True when plan features include key. Aliases, mirroring the backend:
|
|
28
|
+
* legacy basic_accounting_hr → module.hr + module.accounting (+ its sub-keys);
|
|
29
|
+
* module.accounting → module.sales, module.purchasing, module.secretariat.
|
|
30
|
+
*/
|
|
25
31
|
export declare function hasPlanFeature(features: string[] | null | undefined, feature: string): boolean;
|
|
@@ -29,6 +29,8 @@ export interface AppSidebarProps {
|
|
|
29
29
|
bottom?: React.ReactNode;
|
|
30
30
|
/** Which look — match the `chrome` given to AppLayoutShell. */
|
|
31
31
|
chrome?: ShellChrome;
|
|
32
|
+
/** See NavMain: light a one-line item while its module is active. */
|
|
33
|
+
highlightActiveModule?: boolean;
|
|
32
34
|
className?: string;
|
|
33
35
|
}
|
|
34
|
-
export declare function AppSidebar({ modules, tools, activeModule, orgCode, approvalCounts, closeOnNavigation, header, footer, bottom, chrome, className, }: AppSidebarProps): import("react/jsx-runtime").JSX.Element | null;
|
|
36
|
+
export declare function AppSidebar({ modules, tools, activeModule, orgCode, approvalCounts, closeOnNavigation, highlightActiveModule, header, footer, bottom, chrome, className, }: AppSidebarProps): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -17,5 +17,11 @@ export interface NavMainProps {
|
|
|
17
17
|
approvalCounts?: Record<string, number>;
|
|
18
18
|
/** Workspace chrome draws icons, group headings and badges. */
|
|
19
19
|
chrome?: ShellChrome;
|
|
20
|
+
/**
|
|
21
|
+
* Light a one-line item (no sub-items) whenever it is the active module —
|
|
22
|
+
* `item.isActive` — not only on its own URL. For an app whose module pages
|
|
23
|
+
* are tabs on the page rather than sub-items here.
|
|
24
|
+
*/
|
|
25
|
+
highlightActiveModule?: boolean;
|
|
20
26
|
}
|
|
21
|
-
export declare function NavMain({ items, orgCode, closeOnNavigation, approvalCounts, chrome, }: NavMainProps): import("react/jsx-runtime").JSX.Element;
|
|
27
|
+
export declare function NavMain({ items, orgCode, closeOnNavigation, approvalCounts, chrome, highlightActiveModule, }: NavMainProps): import("react/jsx-runtime").JSX.Element;
|