@lambda-development/erp-core 1.3.1 → 1.3.3
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/components/ui/sortable.d.ts +23 -0
- package/dist/i18n/locales/de.json.d.ts +14 -1
- package/dist/i18n/locales/en.json.d.ts +14 -1
- package/dist/i18n/locales/fr.json.d.ts +14 -1
- package/dist/index.js +3811 -3536
- package/dist/index.js.map +1 -1
- package/dist/lib/nav-layout.d.ts +31 -0
- package/dist/pages/settings/menu-layout.d.ts +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { NavGroup } from './nav';
|
|
2
|
+
export interface NavLayout {
|
|
3
|
+
order: string[];
|
|
4
|
+
items: Record<string, string[]>;
|
|
5
|
+
hidden: string[];
|
|
6
|
+
}
|
|
7
|
+
export interface CatalogGroup {
|
|
8
|
+
key: string;
|
|
9
|
+
label: string;
|
|
10
|
+
title: string;
|
|
11
|
+
items: {
|
|
12
|
+
key: string;
|
|
13
|
+
label: string;
|
|
14
|
+
title: string;
|
|
15
|
+
}[];
|
|
16
|
+
}
|
|
17
|
+
/** Sidebar groups that are components rather than registry entries. */
|
|
18
|
+
export declare const BUILTIN_GROUPS: readonly ["Chats", "Custom Analytics"];
|
|
19
|
+
/** The page that edits the menu: never hideable (nor is its group). */
|
|
20
|
+
export declare const MENU_SETTINGS_PATH = "/settings/menu";
|
|
21
|
+
export declare const EMPTY_LAYOUT: NavLayout;
|
|
22
|
+
export declare function parseLayout(raw: string | undefined): NavLayout;
|
|
23
|
+
/** Keys named in `preferred` first, in that order; the rest keep their default order. */
|
|
24
|
+
export declare function ordered<T>(entries: T[], key: (entry: T) => string, preferred?: string[]): T[];
|
|
25
|
+
/** The groups a user can see, as the catalog the server validates against. */
|
|
26
|
+
export declare function buildCatalog(groups: NavGroup[], t: (key: string, opts: {
|
|
27
|
+
defaultValue: string;
|
|
28
|
+
}) => string): CatalogGroup[];
|
|
29
|
+
export declare function isLocked(groupItems: {
|
|
30
|
+
key: string;
|
|
31
|
+
}[]): boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function MenuLayoutPage(): import("react/jsx-runtime").JSX.Element;
|
package/package.json
CHANGED