@archbase/admin 3.0.6 → 3.0.8
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/ArchbaseAdminMainLayout.d.ts +3 -1
- package/dist/ArchbaseAdvancedSidebar.d.ts +1 -1
- package/dist/ArchbaseAliveAbleRoutes.d.ts +8 -1
- package/dist/archbase-admin-3.0.8.tgz +0 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1212 -1140
- package/package.json +20 -20
|
@@ -60,5 +60,7 @@ export interface ArchbaseAdminMainLayoutProps {
|
|
|
60
60
|
sideBarIconDarkColor?: string;
|
|
61
61
|
sideBarIconLightColor?: string;
|
|
62
62
|
sideBarCollapsedSubmenuWidth?: string | number;
|
|
63
|
+
/** Número máximo de abas keepAlive mantidas em cache (LRU). Padrão: 10 */
|
|
64
|
+
maxKeepAliveTabs?: number;
|
|
63
65
|
}
|
|
64
|
-
export declare function ArchbaseAdminMainLayout({ navigationRootLink, navigationData, user, children, header, footer, owner, company, sideBarWidth, sideBarCollapsedWidth, sideBarHiddenBreakPoint, sideBarFooterHeight, sideBarFooterContent, onCollapsedSideBar, onHiddenSidebar, sidebarDefaultGroupIcon, sidebarSelectedGroupName, sideBarHeaderHeight, sideBarHeaderContent, selectedGroupColor, groupColor, backgroundGroupColor, groupLabelDarkColor, groupLabelLightColor, headerColor, footerHeight, iconsWithBackground, menuItemHeight, showSideBar, showHeader, headerStyle, highlightActiveMenuItem, enableSecurity, securityOptions, customRenderSidebar, onNavigationDataChange, showCollapsedButton, initialSidebarCollapsed, sideBarBackgroundDarkColor, sideBarBackgroundLightColor, sideBarTextDarkColor, sideBarTextLightColor, sideBarIconDarkColor, sideBarIconLightColor, sideBarCollapsedSubmenuWidth, }: ArchbaseAdminMainLayoutProps): import("react/jsx-runtime").JSX.Element;
|
|
66
|
+
export declare function ArchbaseAdminMainLayout({ navigationRootLink, navigationData, user, children, header, footer, owner, company, sideBarWidth, sideBarCollapsedWidth, sideBarHiddenBreakPoint, sideBarFooterHeight, sideBarFooterContent, onCollapsedSideBar, onHiddenSidebar, sidebarDefaultGroupIcon, sidebarSelectedGroupName, sideBarHeaderHeight, sideBarHeaderContent, selectedGroupColor, groupColor, backgroundGroupColor, groupLabelDarkColor, groupLabelLightColor, headerColor, footerHeight, iconsWithBackground, menuItemHeight, showSideBar, showHeader, headerStyle, highlightActiveMenuItem, enableSecurity, securityOptions, customRenderSidebar, onNavigationDataChange, showCollapsedButton, initialSidebarCollapsed, sideBarBackgroundDarkColor, sideBarBackgroundLightColor, sideBarTextDarkColor, sideBarTextLightColor, sideBarIconDarkColor, sideBarIconLightColor, sideBarCollapsedSubmenuWidth, maxKeepAliveTabs, }: ArchbaseAdminMainLayoutProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -48,4 +48,4 @@ export interface ArchbaseAdvancedSidebarProps {
|
|
|
48
48
|
/** Número de grupos no skeleton durante loading */
|
|
49
49
|
skeletonGroupCount?: number;
|
|
50
50
|
}
|
|
51
|
-
export declare function ArchbaseAdvancedSidebar({ navigationData, sidebarGroupWidth, sidebarWidth, sidebarHeight, sidebarCollapsedWidth, selectedGroupColor, groupColor, backgroundGroupColor, isHidden, sideBarFooterHeight, sideBarFooterContent, groupLabelDarkColor, groupLabelLightColor, collapsed, onMenuItemClick, onClickActionIcon, withBorder, showGroupLabels, theme, sidebarRef, defaultGroupIcon, selectedGroupName, sideBarHeaderContent, iconsWithBackground, menuItemHeight, highlightActiveMenuItem, backgroundDarkColor, backgroundLightColor, textDarkColor, textLightColor, iconDarkColor, iconLightColor, collapsedSubmenuWidth, }: ArchbaseAdvancedSidebarProps): import("react/jsx-runtime").JSX.Element;
|
|
51
|
+
export declare function ArchbaseAdvancedSidebar({ navigationData, sidebarGroupWidth, sidebarWidth, sidebarHeight, sidebarCollapsedWidth, selectedGroupColor, groupColor, backgroundGroupColor, isHidden, sideBarFooterHeight, sideBarFooterContent, groupLabelDarkColor, groupLabelLightColor, collapsed, onMenuItemClick, onClickActionIcon, withBorder, showGroupLabels, theme, sidebarRef, defaultGroupIcon, selectedGroupName, sideBarHeaderContent, iconsWithBackground, menuItemHeight, highlightActiveMenuItem, backgroundDarkColor, backgroundLightColor, textDarkColor, textLightColor, iconDarkColor, iconLightColor, collapsedSubmenuWidth, isLoading, loadingError, loadingComponent, errorComponent, skeletonItemCount, skeletonGroupCount, }: ArchbaseAdvancedSidebarProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -59,6 +59,7 @@ export declare const useParams: <T extends Params<string> = Params<string>>() =>
|
|
|
59
59
|
interface CachedComponent {
|
|
60
60
|
element: ReactNode;
|
|
61
61
|
params: Params<string>;
|
|
62
|
+
lastAccessedAt: number;
|
|
62
63
|
}
|
|
63
64
|
interface KeepAliveCacheContextValue {
|
|
64
65
|
cache: Map<string, CachedComponent>;
|
|
@@ -67,11 +68,17 @@ interface KeepAliveCacheContextValue {
|
|
|
67
68
|
unregister: (cacheKey: string) => void;
|
|
68
69
|
updateParams: (cacheKey: string, params: Params<string>) => void;
|
|
69
70
|
requestUnregister: (path: string) => void;
|
|
71
|
+
touchAccess: (cacheKey: string) => void;
|
|
72
|
+
maxKeepAliveTabs: number;
|
|
70
73
|
}
|
|
71
74
|
export declare const useKeepAliveCache: () => KeepAliveCacheContextValue;
|
|
72
75
|
export interface ArchbaseKeepAliveRouteProps extends Omit<RouteProps, 'element'> {
|
|
73
76
|
component?: ReactNode | React.ComponentType;
|
|
74
77
|
}
|
|
75
78
|
export declare const ArchbaseKeepAliveRoute: (props: ArchbaseKeepAliveRouteProps) => any;
|
|
76
|
-
export
|
|
79
|
+
export interface ArchbaseAliveAbleRoutesProps extends RoutesProps {
|
|
80
|
+
/** Número máximo de abas keepAlive mantidas em cache. Padrão: 10 */
|
|
81
|
+
maxKeepAliveTabs?: number;
|
|
82
|
+
}
|
|
83
|
+
export declare const ArchbaseAliveAbleRoutes: ({ children, maxKeepAliveTabs, ...props }: ArchbaseAliveAbleRoutesProps) => import("react/jsx-runtime").JSX.Element;
|
|
77
84
|
export {};
|
|
Binary file
|
package/dist/index.d.ts
CHANGED
|
@@ -17,7 +17,7 @@ export type { ArchbaseNavigationContextValues, ArchbaseNavigationListenerType }
|
|
|
17
17
|
export { navigationDataSample } from './navigationData';
|
|
18
18
|
export type { ArchbaseNavigationItem, ArchbaseCommandColor, ArchbaseCommandMenu, ArchbaseOwner, ArchbaseCompany, ArchbaseTabItem, LocationDataItem, } from './types';
|
|
19
19
|
export { ArchbaseKeepAliveRoute, ArchbaseAliveAbleRoutes, useKeepAliveVisibility, useArchbaseRouteParams, useParams, useKeepAliveCache } from './ArchbaseAliveAbleRoutes';
|
|
20
|
-
export type { ArchbaseKeepAliveRouteProps } from './ArchbaseAliveAbleRoutes';
|
|
20
|
+
export type { ArchbaseKeepAliveRouteProps, ArchbaseAliveAbleRoutesProps } from './ArchbaseAliveAbleRoutes';
|
|
21
21
|
export type { CommandPaletteButtonProps, ArchbaseSpotlightActionData } from './CommandPaletteButton';
|
|
22
22
|
export { CommandPaletteButton } from './CommandPaletteButton';
|
|
23
23
|
export type { ArchbaseAdvancedSidebarProps } from './ArchbaseAdvancedSidebar';
|