@vef-framework-react/starter 2.4.3 → 2.5.0
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/cjs/components/access-denied/index.cjs +1 -1
- package/dist/cjs/components/error/index.cjs +1 -1
- package/dist/cjs/components/layout/components/contour-pattern.cjs +1 -1
- package/dist/cjs/components/layout/components/header/app-switcher.cjs +1 -1
- package/dist/cjs/components/layout/components/header/header-pattern.cjs +1 -1
- package/dist/cjs/components/layout/components/logo.cjs +1 -1
- package/dist/cjs/components/layout/components/search/keyboard.cjs +1 -1
- package/dist/cjs/components/layout/components/sidebar.cjs +1 -1
- package/dist/cjs/components/layout/components/tabs/index.cjs +1 -1
- package/dist/cjs/components/layout/components/tabs/tabs-container.cjs +1 -1
- package/dist/cjs/components/layout/components/theme-config/color-scheme-switcher.cjs +1 -1
- package/dist/cjs/components/layout/components/theme-config/color-scheme.cjs +1 -1
- package/dist/cjs/components/layout/components/theme-config/config-item.cjs +1 -1
- package/dist/cjs/components/layout/components/theme-config/index.cjs +1 -1
- package/dist/cjs/components/layout/components/theme-config/menu-layout-card.cjs +1 -1
- package/dist/cjs/components/layout/components/theme-config/menu-layout.cjs +1 -1
- package/dist/cjs/components/layout/components/theme-config/theme-colors.cjs +1 -1
- package/dist/cjs/components/layout/hooks/use-menu-navigate.cjs +1 -1
- package/dist/cjs/components/login/icon-login.cjs +1 -1
- package/dist/cjs/components/login/index.cjs +1 -1
- package/dist/cjs/components/n-progress/components/bar.cjs +2 -2
- package/dist/cjs/components/n-progress/components/container.cjs +1 -1
- package/dist/cjs/components/not-found/index.cjs +1 -1
- package/dist/cjs/components/router-provider/context.cjs +1 -1
- package/dist/cjs/helpers/menu-key.cjs +1 -1
- package/dist/es/components/access-denied/access-denied-icon.js +1 -1
- package/dist/es/components/access-denied/index.js +2 -2
- package/dist/es/components/app/index.js +1 -1
- package/dist/es/components/base-layout/index.js +1 -1
- package/dist/es/components/base-layout/styles.js +1 -1
- package/dist/es/components/base-layout/use-base-layout.js +1 -1
- package/dist/es/components/error/error-icon.js +1 -1
- package/dist/es/components/error/index.js +3 -3
- package/dist/es/components/index.js +1 -1
- package/dist/es/components/layout/components/contour-pattern.js +4 -4
- package/dist/es/components/layout/components/footer.js +1 -1
- package/dist/es/components/layout/components/header/app-switcher.js +67 -61
- package/dist/es/components/layout/components/header/boy-icon.js +1 -1
- package/dist/es/components/layout/components/header/color-scheme.js +1 -1
- package/dist/es/components/layout/components/header/fullscreen.js +1 -1
- package/dist/es/components/layout/components/header/girl-icon.js +1 -1
- package/dist/es/components/layout/components/header/header-pattern.js +3 -3
- package/dist/es/components/layout/components/header/index.js +1 -1
- package/dist/es/components/layout/components/header/menu-burger.js +1 -1
- package/dist/es/components/layout/components/header/menu-fold-left-icon.js +1 -1
- package/dist/es/components/layout/components/header/menu-unfold-left-icon.js +1 -1
- package/dist/es/components/layout/components/header/mixed-menu.js +1 -1
- package/dist/es/components/layout/components/header/search.js +1 -1
- package/dist/es/components/layout/components/header/theme-config.js +1 -1
- package/dist/es/components/layout/components/header/user-avatar.js +1 -1
- package/dist/es/components/layout/components/index.js +1 -1
- package/dist/es/components/layout/components/logo.js +8 -8
- package/dist/es/components/layout/components/menu.js +1 -1
- package/dist/es/components/layout/components/search/index.js +1 -1
- package/dist/es/components/layout/components/search/keyboard-arrow-down-icon.js +1 -1
- package/dist/es/components/layout/components/search/keyboard-arrow-up-icon.js +1 -1
- package/dist/es/components/layout/components/search/keyboard-control-icon.js +1 -1
- package/dist/es/components/layout/components/search/keyboard-esc-icon.js +1 -1
- package/dist/es/components/layout/components/search/keyboard-help.js +1 -1
- package/dist/es/components/layout/components/search/keyboard-return-icon.js +1 -1
- package/dist/es/components/layout/components/search/keyboard-shift-icon.js +1 -1
- package/dist/es/components/layout/components/search/keyboard.js +2 -2
- package/dist/es/components/layout/components/search/letter-s-icon.js +1 -1
- package/dist/es/components/layout/components/search/search-result-item.js +1 -1
- package/dist/es/components/layout/components/search/search-result.js +1 -1
- package/dist/es/components/layout/components/sidebar.js +4 -4
- package/dist/es/components/layout/components/tabs/context-menu.js +1 -1
- package/dist/es/components/layout/components/tabs/index.js +3 -3
- package/dist/es/components/layout/components/tabs/main-content-maximum.js +1 -1
- package/dist/es/components/layout/components/tabs/reload.js +1 -1
- package/dist/es/components/layout/components/tabs/tab-item.js +1 -1
- package/dist/es/components/layout/components/tabs/tab-list.js +1 -1
- package/dist/es/components/layout/components/tabs/tabs-container.js +2 -2
- package/dist/es/components/layout/components/theme-config/color-scheme-switcher.js +2 -2
- package/dist/es/components/layout/components/theme-config/color-scheme.js +2 -2
- package/dist/es/components/layout/components/theme-config/config-item.js +2 -2
- package/dist/es/components/layout/components/theme-config/index.js +3 -3
- package/dist/es/components/layout/components/theme-config/menu-layout-card.js +7 -7
- package/dist/es/components/layout/components/theme-config/menu-layout.js +2 -2
- package/dist/es/components/layout/components/theme-config/operations.js +1 -1
- package/dist/es/components/layout/components/theme-config/theme-color-picker.js +1 -1
- package/dist/es/components/layout/components/theme-config/theme-colors.js +2 -2
- package/dist/es/components/layout/hooks/index.js +1 -1
- package/dist/es/components/layout/hooks/use-color-scheme-updater.js +1 -1
- package/dist/es/components/layout/hooks/use-menu-navigate.js +2 -2
- package/dist/es/components/layout/hooks/use-mixed-menu.js +1 -1
- package/dist/es/components/layout/hooks/use-tab-navigate.js +1 -1
- package/dist/es/components/layout/index.js +1 -1
- package/dist/es/components/layout/store.js +1 -1
- package/dist/es/components/layout/styles.js +1 -1
- package/dist/es/components/login/icon-login.js +87 -86
- package/dist/es/components/login/index.js +22 -23
- package/dist/es/components/login/styles.js +1 -1
- package/dist/es/components/login/welcome-messages.js +1 -1
- package/dist/es/components/n-progress/components/bar.js +3 -3
- package/dist/es/components/n-progress/components/container.js +2 -2
- package/dist/es/components/n-progress/components/index.js +1 -1
- package/dist/es/components/n-progress/event.js +1 -1
- package/dist/es/components/n-progress/index.js +1 -1
- package/dist/es/components/not-found/index.js +2 -2
- package/dist/es/components/not-found/not-found-icon.js +1 -1
- package/dist/es/components/router-provider/context.js +2 -1
- package/dist/es/components/router-provider/index.js +1 -1
- package/dist/es/components/theme-config-provider/global-style.js +1 -1
- package/dist/es/components/theme-config-provider/index.js +1 -1
- package/dist/es/components/theme-config-provider/use-color-mode-effect.js +1 -1
- package/dist/es/components/theme-config-provider/use-theme-config.js +1 -1
- package/dist/es/constants/event.js +1 -1
- package/dist/es/constants/index.js +1 -1
- package/dist/es/constants/router.js +1 -1
- package/dist/es/constants/storage.js +1 -1
- package/dist/es/helpers/api.js +1 -1
- package/dist/es/helpers/app-version.js +1 -1
- package/dist/es/helpers/app.js +1 -1
- package/dist/es/helpers/auth.js +1 -1
- package/dist/es/helpers/event.js +1 -1
- package/dist/es/helpers/index.js +1 -1
- package/dist/es/helpers/menu-key.js +18 -21
- package/dist/es/helpers/query.js +1 -1
- package/dist/es/helpers/router.js +1 -1
- package/dist/es/hooks/index.js +1 -1
- package/dist/es/hooks/use-active-menu-key.js +1 -1
- package/dist/es/hooks/use-route-full-path.js +1 -1
- package/dist/es/index.js +1 -1
- package/dist/es/routes/access-denied.js +1 -1
- package/dist/es/routes/index.js +1 -1
- package/dist/es/routes/layout.js +1 -1
- package/dist/es/routes/login.js +1 -1
- package/dist/es/routes/root.js +1 -1
- package/dist/es/stores/app.js +1 -1
- package/dist/es/stores/index.js +1 -1
- package/dist/es/stores/tab.js +1 -1
- package/dist/es/stores/theme.js +1 -1
- package/dist/types/components/access-denied/index.d.ts +2 -1
- package/dist/types/components/app/index.d.ts +2 -1
- package/dist/types/components/base-layout/index.d.ts +2 -1
- package/dist/types/components/error/index.d.ts +2 -1
- package/dist/types/components/layout/components/contour-pattern.d.ts +2 -1
- package/dist/types/components/layout/components/header/app-switcher.d.ts +2 -1
- package/dist/types/components/layout/components/header/color-scheme.d.ts +2 -1
- package/dist/types/components/layout/components/header/fullscreen.d.ts +2 -1
- package/dist/types/components/layout/components/header/header-pattern.d.ts +2 -1
- package/dist/types/components/layout/components/header/menu-burger.d.ts +2 -1
- package/dist/types/components/layout/components/header/mixed-menu.d.ts +2 -1
- package/dist/types/components/layout/components/header/search.d.ts +2 -1
- package/dist/types/components/layout/components/header/theme-config.d.ts +2 -1
- package/dist/types/components/layout/components/logo.d.ts +2 -1
- package/dist/types/components/layout/components/search/keyboard.d.ts +2 -2
- package/dist/types/components/layout/components/sidebar.d.ts +2 -1
- package/dist/types/components/layout/components/tabs/index.d.ts +2 -1
- package/dist/types/components/layout/components/tabs/main-content-maximum.d.ts +2 -1
- package/dist/types/components/layout/components/tabs/reload.d.ts +2 -1
- package/dist/types/components/layout/components/tabs/tabs-container.d.ts +2 -1
- package/dist/types/components/layout/components/theme-config/color-scheme-switcher.d.ts +2 -1
- package/dist/types/components/layout/components/theme-config/color-scheme.d.ts +2 -1
- package/dist/types/components/layout/components/theme-config/config-item.d.ts +2 -2
- package/dist/types/components/layout/components/theme-config/index.d.ts +2 -1
- package/dist/types/components/layout/components/theme-config/menu-layout-card.d.ts +2 -2
- package/dist/types/components/layout/components/theme-config/menu-layout.d.ts +2 -1
- package/dist/types/components/layout/components/theme-config/operations.d.ts +2 -1
- package/dist/types/components/layout/components/theme-config/theme-color-picker.d.ts +2 -1
- package/dist/types/components/layout/components/theme-config/theme-colors.d.ts +2 -1
- package/dist/types/components/layout/props.d.ts +7 -6
- package/dist/types/components/n-progress/components/bar.d.ts +2 -1
- package/dist/types/components/n-progress/components/container.d.ts +2 -2
- package/dist/types/components/n-progress/index.d.ts +2 -1
- package/dist/types/components/not-found/index.d.ts +2 -1
- package/dist/types/components/router-provider/index.d.ts +2 -1
- package/dist/types/components/theme-config-provider/index.d.ts +2 -2
- package/dist/types/helpers/menu-key.d.ts +8 -6
- package/dist/types/helpers/menu-key.test.d.ts +1 -0
- package/dist/types/types/common.d.ts +23 -3
- package/package.json +29 -29
|
@@ -1,34 +1,31 @@
|
|
|
1
|
-
/*! @vef-framework-react/starter v2.
|
|
2
|
-
import { hashKey as e
|
|
1
|
+
/*! @vef-framework-react/starter v2.5.0 made by Venus | 2026-06-25T04:03:24.780Z */
|
|
2
|
+
import { hashKey as e } from "@vef-framework-react/shared";
|
|
3
3
|
//#region src/helpers/menu-key.ts
|
|
4
|
-
function
|
|
5
|
-
return
|
|
4
|
+
function t(e) {
|
|
5
|
+
return e && Object.keys(e).length > 0 ? e : void 0;
|
|
6
6
|
}
|
|
7
|
-
function
|
|
8
|
-
|
|
9
|
-
return `${r}|${e(n(a?.params))}|${e(n(a?.search))}`;
|
|
7
|
+
function n(n, r) {
|
|
8
|
+
return `${n}|${e(t(r?.params))}|${e(t(r?.search))}`;
|
|
10
9
|
}
|
|
11
|
-
function
|
|
10
|
+
function r(e, t) {
|
|
12
11
|
if (e === t) return !0;
|
|
13
12
|
if (!e || !t) return !1;
|
|
14
13
|
let n = Object.keys(e);
|
|
15
14
|
return n.length === Object.keys(t).length && n.every((n) => e[n] === t[n]);
|
|
16
15
|
}
|
|
17
|
-
function
|
|
16
|
+
function i(e, t) {
|
|
18
17
|
return t ? e ? Object.keys(t).every((n) => e[n] === t[n]) : !1 : !0;
|
|
19
18
|
}
|
|
20
|
-
function
|
|
21
|
-
let
|
|
22
|
-
for (let
|
|
23
|
-
if (
|
|
24
|
-
let e = t(
|
|
25
|
-
if (!i(
|
|
26
|
-
let
|
|
27
|
-
|
|
28
|
-
let p = f ? Object.keys(f).length : 0;
|
|
29
|
-
p > u && (u = p, l = r(d.path, d.meta));
|
|
19
|
+
function a(e, a) {
|
|
20
|
+
let o = t(a.params), s = t(a.search), c, l = -1;
|
|
21
|
+
for (let u of e) {
|
|
22
|
+
if (u.path !== a.fullPath || !r(t(u.meta?.params), o)) continue;
|
|
23
|
+
let e = t(u.meta?.search);
|
|
24
|
+
if (!i(s, e)) continue;
|
|
25
|
+
let d = e ? Object.keys(e).length : 0;
|
|
26
|
+
d > l && (l = d, c = n(u.path, u.meta));
|
|
30
27
|
}
|
|
31
|
-
return
|
|
28
|
+
return c;
|
|
32
29
|
}
|
|
33
30
|
//#endregion
|
|
34
|
-
export {
|
|
31
|
+
export { n as menuKeyOf, a as resolveActiveMenuKey };
|
package/dist/es/helpers/query.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/starter v2.
|
|
1
|
+
/*! @vef-framework-react/starter v2.5.0 made by Venus | 2026-06-25T04:03:24.780Z */
|
|
2
2
|
import { SYMBOL_PAGINATION as e, SYMBOL_SORT as t } from "@vef-framework-react/components";
|
|
3
3
|
//#region src/helpers/query.ts
|
|
4
4
|
function n(...e) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/starter v2.
|
|
1
|
+
/*! @vef-framework-react/starter v2.5.0 made by Venus | 2026-06-25T04:03:24.780Z */
|
|
2
2
|
import { ACCESS_DENIED_ROUTE_PATH as e } from "../constants/router.js";
|
|
3
3
|
import { useAppStore as t } from "../stores/app.js";
|
|
4
4
|
import { useTabStore as n } from "../stores/tab.js";
|
package/dist/es/hooks/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/starter v2.
|
|
1
|
+
/*! @vef-framework-react/starter v2.5.0 made by Venus | 2026-06-25T04:03:24.780Z */
|
|
2
2
|
import { useAppStore as e } from "../stores/app.js";
|
|
3
3
|
import { resolveActiveMenuKey as t } from "../helpers/menu-key.js";
|
|
4
4
|
import { useMemo as n } from "react";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/starter v2.
|
|
1
|
+
/*! @vef-framework-react/starter v2.5.0 made by Venus | 2026-06-25T04:03:24.780Z */
|
|
2
2
|
import { useMemo as e } from "react";
|
|
3
3
|
import { useLocation as t, useRouter as n } from "@tanstack/react-router";
|
|
4
4
|
//#region src/hooks/use-route-full-path.ts
|
package/dist/es/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/starter v2.
|
|
1
|
+
/*! @vef-framework-react/starter v2.5.0 made by Venus | 2026-06-25T04:03:24.780Z */
|
|
2
2
|
import { ACCESS_DENIED_ROUTE_ID as e, ACCESS_DENIED_ROUTE_PATH as t, INDEX_ROUTE_ID as n, INDEX_ROUTE_PATH as r, LOGIN_ROUTE_ID as i, LOGIN_ROUTE_PATH as a } from "./constants/router.js";
|
|
3
3
|
import { useAppStore as o } from "./stores/app.js";
|
|
4
4
|
import { useTabStore as s } from "./stores/tab.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/starter v2.
|
|
1
|
+
/*! @vef-framework-react/starter v2.5.0 made by Venus | 2026-06-25T04:03:24.780Z */
|
|
2
2
|
import "../constants/router.js";
|
|
3
3
|
import { AccessDenied as e } from "../components/access-denied/index.js";
|
|
4
4
|
//#region src/routes/access-denied.ts
|
package/dist/es/routes/index.js
CHANGED
package/dist/es/routes/layout.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/starter v2.
|
|
1
|
+
/*! @vef-framework-react/starter v2.5.0 made by Venus | 2026-06-25T04:03:24.780Z */
|
|
2
2
|
import { ACCESS_DENIED_ROUTE_PATH as e, LOGIN_ROUTE_PATH as t } from "../constants/router.js";
|
|
3
3
|
import { useAppStore as n } from "../stores/app.js";
|
|
4
4
|
import { Error as r } from "../components/error/index.js";
|
package/dist/es/routes/login.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/starter v2.
|
|
1
|
+
/*! @vef-framework-react/starter v2.5.0 made by Venus | 2026-06-25T04:03:24.780Z */
|
|
2
2
|
import "../constants/router.js";
|
|
3
3
|
import { useAppStore as e } from "../stores/app.js";
|
|
4
4
|
import { Login as t } from "../components/login/index.js";
|
package/dist/es/routes/root.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/starter v2.
|
|
1
|
+
/*! @vef-framework-react/starter v2.5.0 made by Venus | 2026-06-25T04:03:24.780Z */
|
|
2
2
|
import { useAppStore as e } from "../stores/app.js";
|
|
3
3
|
import { useActiveMenuKey as t } from "../hooks/use-active-menu-key.js";
|
|
4
4
|
import { jsx as n } from "@emotion/react/jsx-runtime";
|
package/dist/es/stores/app.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/starter v2.
|
|
1
|
+
/*! @vef-framework-react/starter v2.5.0 made by Venus | 2026-06-25T04:03:24.780Z */
|
|
2
2
|
import { createPersistedStore as e } from "@vef-framework-react/core";
|
|
3
3
|
//#region src/stores/app.ts
|
|
4
4
|
var t = e(() => ({
|
package/dist/es/stores/index.js
CHANGED
package/dist/es/stores/tab.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/starter v2.
|
|
1
|
+
/*! @vef-framework-react/starter v2.5.0 made by Venus | 2026-06-25T04:03:24.780Z */
|
|
2
2
|
import "../constants/router.js";
|
|
3
3
|
import { createPersistedStore as e, originalState as t } from "@vef-framework-react/core";
|
|
4
4
|
//#region src/stores/tab.ts
|
package/dist/es/stores/theme.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/starter v2.
|
|
1
|
+
/*! @vef-framework-react/starter v2.5.0 made by Venus | 2026-06-25T04:03:24.780Z */
|
|
2
2
|
import { createPersistedStore as e } from "@vef-framework-react/core";
|
|
3
3
|
import { omit as t } from "@vef-framework-react/shared";
|
|
4
4
|
//#region src/stores/theme.ts
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export declare function AccessDenied(): ReactNode;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { AnyRouter, RegisteredRouter } from '@tanstack/react-router';
|
|
2
|
+
import { ReactElement } from 'react';
|
|
2
3
|
import { AppProps } from './props';
|
|
3
|
-
export declare function App<TRouter extends AnyRouter = RegisteredRouter, TDehydrated extends Record<string, unknown> = Record<string, unknown>>({ apiClient, appContext, appVersionNotification, router }: AppProps<TRouter, TDehydrated>):
|
|
4
|
+
export declare function App<TRouter extends AnyRouter = RegisteredRouter, TDehydrated extends Record<string, unknown> = Record<string, unknown>>({ apiClient, appContext, appVersionNotification, router }: AppProps<TRouter, TDehydrated>): ReactElement;
|
|
4
5
|
export { type AppProps } from './props';
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { JSX } from 'react';
|
|
1
2
|
import { BaseLayoutProps } from './props';
|
|
2
|
-
export declare function BaseLayout(props: BaseLayoutProps):
|
|
3
|
+
export declare function BaseLayout(props: BaseLayoutProps): JSX.Element;
|
|
3
4
|
export { type BaseLayoutProps } from './props';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { JSX } from 'react';
|
|
1
2
|
interface ContourPatternProps {
|
|
2
3
|
isSidebarCollapsed?: boolean;
|
|
3
4
|
}
|
|
4
|
-
export declare function ContourPattern({ isSidebarCollapsed }: ContourPatternProps):
|
|
5
|
+
export declare function ContourPattern({ isSidebarCollapsed }: ContourPatternProps): JSX.Element;
|
|
5
6
|
export {};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Awaitable } from '@vef-framework-react/shared';
|
|
2
|
+
import { JSX } from 'react';
|
|
2
3
|
import { AppItem } from '../../props';
|
|
3
4
|
interface AppSwitcherProps {
|
|
4
5
|
apps: AppItem[];
|
|
@@ -6,5 +7,5 @@ interface AppSwitcherProps {
|
|
|
6
7
|
onAppChange?: (appId: string) => Awaitable<void>;
|
|
7
8
|
className?: string;
|
|
8
9
|
}
|
|
9
|
-
export declare function AppSwitcher({ apps, currentAppId, onAppChange, className }: AppSwitcherProps):
|
|
10
|
+
export declare function AppSwitcher({ apps, currentAppId, onAppChange, className }: AppSwitcherProps): JSX.Element;
|
|
10
11
|
export {};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { JSX } from 'react';
|
|
1
2
|
interface ColorSchemeProps {
|
|
2
3
|
className?: string;
|
|
3
4
|
}
|
|
4
|
-
export declare function ColorScheme({ className }: ColorSchemeProps):
|
|
5
|
+
export declare function ColorScheme({ className }: ColorSchemeProps): JSX.Element;
|
|
5
6
|
export {};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { JSX } from 'react';
|
|
1
2
|
interface FullscreenProps {
|
|
2
3
|
className?: string;
|
|
3
4
|
}
|
|
4
|
-
export declare function Fullscreen({ className }: FullscreenProps):
|
|
5
|
+
export declare function Fullscreen({ className }: FullscreenProps): JSX.Element;
|
|
5
6
|
export {};
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { JSX } from 'react';
|
|
2
|
+
export declare function HeaderPattern(): JSX.Element;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { JSX } from 'react';
|
|
1
2
|
interface MenuBurgerProps {
|
|
2
3
|
className?: string;
|
|
3
4
|
}
|
|
4
|
-
export declare function MenuBurger({ className }: MenuBurgerProps):
|
|
5
|
+
export declare function MenuBurger({ className }: MenuBurgerProps): JSX.Element;
|
|
5
6
|
export {};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { JSX } from 'react';
|
|
1
2
|
/**
|
|
2
3
|
* Top header menu for the mixed layout: renders only the first-level entries
|
|
3
4
|
* and switches the active section (and thus the sidebar) on select.
|
|
4
5
|
*/
|
|
5
|
-
export declare function MixedMenu():
|
|
6
|
+
export declare function MixedMenu(): JSX.Element;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { JSX } from 'react';
|
|
1
2
|
interface ThemeConfigProps {
|
|
2
3
|
className?: string;
|
|
3
4
|
}
|
|
4
|
-
export declare function ThemeConfig({ className }: ThemeConfigProps):
|
|
5
|
+
export declare function ThemeConfig({ className }: ThemeConfigProps): JSX.Element;
|
|
5
6
|
export {};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { LinkComponentProps } from '@tanstack/react-router';
|
|
2
2
|
import { Except } from '@vef-framework-react/shared';
|
|
3
|
+
import { JSX } from 'react';
|
|
3
4
|
import { LayoutProps } from '../props';
|
|
4
5
|
interface LogoProps extends Except<LinkComponentProps, "to" | "title">, Pick<LayoutProps, "title" | "logo"> {
|
|
5
6
|
isTitleVisible?: boolean;
|
|
@@ -8,5 +9,5 @@ interface LogoProps extends Except<LinkComponentProps, "to" | "title">, Pick<Lay
|
|
|
8
9
|
*/
|
|
9
10
|
inverted?: boolean;
|
|
10
11
|
}
|
|
11
|
-
export declare function Logo({ isTitleVisible, inverted, title, logo, ...props }: LogoProps):
|
|
12
|
+
export declare function Logo({ isTitleVisible, inverted, title, logo, ...props }: LogoProps): JSX.Element;
|
|
12
13
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { PropsWithChildren, ReactNode } from 'react';
|
|
1
|
+
import { JSX, PropsWithChildren, ReactNode } from 'react';
|
|
2
2
|
interface KeyboardProps extends PropsWithChildren {
|
|
3
3
|
icon: ReactNode;
|
|
4
4
|
}
|
|
5
|
-
export declare function Keyboard({ icon, children }: KeyboardProps):
|
|
5
|
+
export declare function Keyboard({ icon, children }: KeyboardProps): JSX.Element;
|
|
6
6
|
export {};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { MenuItem } from '@vef-framework-react/components';
|
|
2
|
+
import { JSX } from 'react';
|
|
2
3
|
import { LayoutProps } from '../props';
|
|
3
4
|
interface SidebarProps extends Pick<LayoutProps, "logo" | "title"> {
|
|
4
5
|
/**
|
|
@@ -17,5 +18,5 @@ interface SidebarProps extends Pick<LayoutProps, "logo" | "title"> {
|
|
|
17
18
|
*/
|
|
18
19
|
showLogo?: boolean;
|
|
19
20
|
}
|
|
20
|
-
export declare function Sidebar({ isDark, isSidebarCollapsed, logo, title, items, showLogo }: SidebarProps):
|
|
21
|
+
export declare function Sidebar({ isDark, isSidebarCollapsed, logo, title, items, showLogo }: SidebarProps): JSX.Element;
|
|
21
22
|
export {};
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { JSX } from 'react';
|
|
2
|
+
export declare function Tabs(): JSX.Element;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { JSX } from 'react';
|
|
1
2
|
interface MainContentMaximumProps {
|
|
2
3
|
className?: string;
|
|
3
4
|
}
|
|
4
|
-
export declare function MainContentMaximum({ className }: MainContentMaximumProps):
|
|
5
|
+
export declare function MainContentMaximum({ className }: MainContentMaximumProps): JSX.Element;
|
|
5
6
|
export {};
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { JSX } from 'react';
|
|
2
|
+
export declare function TabsContainer(): JSX.Element;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { JSX } from 'react';
|
|
2
|
+
export declare function ColorSchemeSwitcher(): JSX.Element;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { JSX } from 'react';
|
|
2
|
+
export declare function ColorScheme(): JSX.Element;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { PropsWithChildren, ReactNode } from 'react';
|
|
1
|
+
import { JSX, PropsWithChildren, ReactNode } from 'react';
|
|
2
2
|
interface ConfigItemProps extends PropsWithChildren {
|
|
3
3
|
className?: string;
|
|
4
4
|
label: ReactNode;
|
|
5
5
|
}
|
|
6
|
-
export declare function ConfigItem({ className, label, children }: ConfigItemProps):
|
|
6
|
+
export declare function ConfigItem({ className, label, children }: ConfigItemProps): JSX.Element;
|
|
7
7
|
export {};
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { JSX } from 'react';
|
|
2
|
+
export declare function ThemeConfig(): JSX.Element;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ComponentProps } from 'react';
|
|
1
|
+
import { ComponentProps, JSX } from 'react';
|
|
2
2
|
import { MenuLayoutMode } from '../../../../stores';
|
|
3
3
|
interface MenuLayoutCardProps extends ComponentProps<"div"> {
|
|
4
4
|
mode: MenuLayoutMode;
|
|
5
5
|
}
|
|
6
|
-
export declare function MenuLayoutCard({ mode, ...props }: MenuLayoutCardProps):
|
|
6
|
+
export declare function MenuLayoutCard({ mode, ...props }: MenuLayoutCardProps): JSX.Element;
|
|
7
7
|
export {};
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { JSX } from 'react';
|
|
2
|
+
export declare function MenuLayout(): JSX.Element;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { JSX } from 'react';
|
|
2
|
+
export declare function Operations(): JSX.Element;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { SemanticColor } from '@vef-framework-react/components';
|
|
2
|
+
import { JSX } from 'react';
|
|
2
3
|
interface ThemeColorPickerProps {
|
|
3
4
|
color: SemanticColor;
|
|
4
5
|
}
|
|
5
|
-
export declare function ThemeColorPicker({ color }: ThemeColorPickerProps):
|
|
6
|
+
export declare function ThemeColorPicker({ color }: ThemeColorPickerProps): JSX.Element;
|
|
6
7
|
export {};
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { JSX } from 'react';
|
|
2
|
+
export declare function ThemeColors(): JSX.Element;
|
|
@@ -8,8 +8,9 @@ import { PropsWithChildren, ReactNode } from 'react';
|
|
|
8
8
|
*/
|
|
9
9
|
export type UserMenuItem = DistributedOmit<DropdownMenuItem, "onClick" | "onTitleClick">;
|
|
10
10
|
/**
|
|
11
|
-
* A selectable sub-application shown in the Layout's app switcher.
|
|
12
|
-
*
|
|
11
|
+
* A selectable sub-application shown in the Layout's app switcher. The project
|
|
12
|
+
* maps its own API data into this shape; `icon` is a ready-to-render node, so
|
|
13
|
+
* the consumer decides how to render it (an `<img>`, a `DynamicIcon`, etc.).
|
|
13
14
|
*/
|
|
14
15
|
export interface AppItem {
|
|
15
16
|
/**
|
|
@@ -25,11 +26,11 @@ export interface AppItem {
|
|
|
25
26
|
*/
|
|
26
27
|
description?: string;
|
|
27
28
|
/**
|
|
28
|
-
* Optional icon
|
|
29
|
-
*
|
|
30
|
-
*
|
|
29
|
+
* Optional icon node, rendered as-is in the switcher tile. Supply whatever
|
|
30
|
+
* fits the data — an `<img>` for an uploaded image, a `DynamicIcon` for a
|
|
31
|
+
* lucide glyph, etc.
|
|
31
32
|
*/
|
|
32
|
-
icon?:
|
|
33
|
+
icon?: ReactNode;
|
|
33
34
|
}
|
|
34
35
|
/**
|
|
35
36
|
* The props for the Layout component.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { PropsWithChildren } from 'react';
|
|
1
|
+
import { PropsWithChildren, ReactNode } from 'react';
|
|
2
2
|
interface ContainerProps {
|
|
3
3
|
animationDuration: number;
|
|
4
4
|
isFinished: boolean;
|
|
5
5
|
}
|
|
6
|
-
export declare function Container({ animationDuration, children, isFinished }: PropsWithChildren<ContainerProps>):
|
|
6
|
+
export declare function Container({ animationDuration, children, isFinished }: PropsWithChildren<ContainerProps>): ReactNode;
|
|
7
7
|
export {};
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export declare function NotFound(): ReactNode;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { AnyRouter, RegisteredRouter } from '@tanstack/react-router';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
2
3
|
import { RouterProviderProps } from './props';
|
|
3
|
-
export declare function RouterProvider<TRouter extends AnyRouter = RegisteredRouter, TDehydrated extends Record<string, any> = Record<string, any>>({ router }: RouterProviderProps<TRouter, TDehydrated>):
|
|
4
|
+
export declare function RouterProvider<TRouter extends AnyRouter = RegisteredRouter, TDehydrated extends Record<string, any> = Record<string, any>>({ router }: RouterProviderProps<TRouter, TDehydrated>): ReactNode;
|
|
4
5
|
export { RouterContextHookProvider, type RouterContext, type UseRouterContext } from './context';
|
|
5
6
|
export { type RouterProviderProps } from './props';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { PropsWithChildren } from 'react';
|
|
2
|
-
export declare function ThemeConfigProvider({ children }: PropsWithChildren):
|
|
1
|
+
import { JSX, PropsWithChildren } from 'react';
|
|
2
|
+
export declare function ThemeConfigProvider({ children }: PropsWithChildren): JSX.Element;
|
|
@@ -1,12 +1,14 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { MaybeUndefined } from '@vef-framework-react/shared';
|
|
2
|
+
import { UserMenu, UserMenuMeta } from '../types';
|
|
2
3
|
/**
|
|
3
4
|
* The active route exposed by the router match, projected to the dimensions a
|
|
4
|
-
* menu
|
|
5
|
+
* menu binds — both flat string maps, matching the `params` / `search` a menu
|
|
6
|
+
* pins in `meta`.
|
|
5
7
|
*/
|
|
6
8
|
export interface ActiveRoute {
|
|
7
9
|
fullPath: string;
|
|
8
|
-
params?:
|
|
9
|
-
search?:
|
|
10
|
+
params?: Record<string, string>;
|
|
11
|
+
search?: Record<string, string>;
|
|
10
12
|
}
|
|
11
13
|
/**
|
|
12
14
|
* Stable, unique identity for a menu entry: its route template plus the params
|
|
@@ -14,7 +16,7 @@ export interface ActiveRoute {
|
|
|
14
16
|
* that differ only by their `key` param get distinct identities, which is what
|
|
15
17
|
* lets exactly one of them highlight, carry its own tab, and resolve its title.
|
|
16
18
|
*/
|
|
17
|
-
export declare function menuKeyOf(path: string, meta?:
|
|
19
|
+
export declare function menuKeyOf(path: string, meta?: UserMenuMeta): string;
|
|
18
20
|
/**
|
|
19
21
|
* Resolve which menu the active route should highlight. A candidate must share
|
|
20
22
|
* the route template, bind exactly the route's params, and pin only search the
|
|
@@ -22,4 +24,4 @@ export declare function menuKeyOf(path: string, meta?: UserMenu["meta"]): string
|
|
|
22
24
|
* variant) the most search-specific one wins. Returns its {@link menuKeyOf}, or
|
|
23
25
|
* `undefined` when no menu owns the route.
|
|
24
26
|
*/
|
|
25
|
-
export declare function resolveActiveMenuKey(menus: Iterable<Readonly<UserMenu>>, route: ActiveRoute): string
|
|
27
|
+
export declare function resolveActiveMenuKey(menus: Iterable<Readonly<UserMenu>>, route: ActiveRoute): MaybeUndefined<string>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,13 +1,32 @@
|
|
|
1
1
|
import { AnyObject, LiteralUnion, MaybeNull } from '@vef-framework-react/shared';
|
|
2
2
|
export type Gender = "male" | "female" | "unknown";
|
|
3
3
|
export type UserMenuType = LiteralUnion<"directory" | "menu" | "view" | "report", string>;
|
|
4
|
+
/**
|
|
5
|
+
* App-specific extra metadata a menu may carry beyond `params` / `search`.
|
|
6
|
+
* Defaults to an open record; augment `Register['menuMeta']` to type the extra
|
|
7
|
+
* keys exactly (which also closes `meta` to them).
|
|
8
|
+
*/
|
|
9
|
+
type MenuMetaExtra = Register extends {
|
|
10
|
+
menuMeta: infer T extends AnyObject;
|
|
11
|
+
} ? T : Record<string, unknown>;
|
|
12
|
+
/**
|
|
13
|
+
* Metadata a menu binds for navigation and active-menu resolution. `params` and
|
|
14
|
+
* `search` are flat string maps — both serialize into the URL, where non-string
|
|
15
|
+
* values carry no meaning, and each menu binds its own keys, so they are fixed
|
|
16
|
+
* rather than globally typed. Host apps type any extra `meta` keys via
|
|
17
|
+
* `Register['menuMeta']`.
|
|
18
|
+
*/
|
|
19
|
+
export type UserMenuMeta = {
|
|
20
|
+
params?: Record<string, string>;
|
|
21
|
+
search?: Record<string, string>;
|
|
22
|
+
} & MenuMetaExtra;
|
|
4
23
|
export interface UserMenu {
|
|
5
24
|
type: UserMenuType;
|
|
6
25
|
path: string;
|
|
7
26
|
name: string;
|
|
8
|
-
icon?:
|
|
9
|
-
meta?:
|
|
10
|
-
children?:
|
|
27
|
+
icon?: string;
|
|
28
|
+
meta?: UserMenuMeta;
|
|
29
|
+
children?: UserMenu[];
|
|
11
30
|
}
|
|
12
31
|
/**
|
|
13
32
|
* Extension registry for framework types.
|
|
@@ -22,6 +41,7 @@ export interface UserMenu {
|
|
|
22
41
|
* appCustomState: {
|
|
23
42
|
* appId?: string;
|
|
24
43
|
* };
|
|
44
|
+
* menuMeta: { badge?: number };
|
|
25
45
|
* userDetails: {
|
|
26
46
|
* department: string;
|
|
27
47
|
* organization: string;
|