xmlui 0.9.45 → 0.9.46

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.
@@ -320,6 +320,10 @@ declare type AppContextObject = {
320
320
  forceRefreshAnchorScroll: () => void;
321
321
  };
322
322
 
323
+ declare const appLayoutNames: readonly ["vertical", "vertical-sticky", "vertical-full-header", "condensed", "condensed-sticky", "horizontal", "horizontal-sticky"];
324
+
325
+ declare type AppLayoutType = (typeof appLayoutNames)[number];
326
+
323
327
  /**
324
328
  * This component is responsible for running a pre-compiled xmlui app. It
325
329
  * receives the internal representation of the app markup and code (coming
@@ -1064,6 +1068,26 @@ declare interface IApiInterceptorContext {
1064
1068
  isMocked: (url: string) => boolean;
1065
1069
  }
1066
1070
 
1071
+ declare interface IAppLayoutContext {
1072
+ layout: AppLayoutType;
1073
+ navPanelVisible: boolean;
1074
+ drawerVisible: boolean;
1075
+ showDrawer: () => void;
1076
+ hideDrawer: () => void;
1077
+ toggleDrawer: () => void;
1078
+ hasRegisteredNavPanel: boolean;
1079
+ hasRegisteredHeader: boolean;
1080
+ navPanelDef?: ComponentDef;
1081
+ logoContentDef?: ComponentDef;
1082
+ logo?: string;
1083
+ logoDark?: string;
1084
+ logoLight?: string;
1085
+ registerSubNavPanelSlot?: (slot: HTMLElement) => void;
1086
+ subNavPanelSlot?: HTMLElement;
1087
+ scrollWholePage?: boolean;
1088
+ isFullVerticalWidth?: boolean;
1089
+ }
1090
+
1067
1091
  export declare const Icon: default_2.ForwardRefExoticComponent<IconBaseProps & default_2.RefAttributes<unknown>>;
1068
1092
 
1069
1093
  declare interface IconBaseProps extends default_2.SVGAttributes<SVGElement> {
@@ -1410,6 +1434,7 @@ declare type Props_4 = {
1410
1434
  onDidChange?: (newValue: string) => void;
1411
1435
  onFocus?: () => void;
1412
1436
  onBlur?: () => void;
1437
+ onKeyDown?: (event: default_2.KeyboardEvent<HTMLInputElement>) => void;
1413
1438
  registerComponentApi?: RegisterComponentApiFn;
1414
1439
  startText?: string;
1415
1440
  startIcon?: string;
@@ -2084,6 +2109,8 @@ declare type UnaryOpSymbols = "+" | "-" | "~" | "!" | "typeof" | "delete";
2084
2109
  */
2085
2110
  declare type UpdateStateFn = (componentState: any, options?: any) => void;
2086
2111
 
2112
+ export declare function useAppLayoutContext(): IAppLayoutContext;
2113
+
2087
2114
  export declare function useColors(...colorNames: (string | ColorDef)[]): Record<string, string>;
2088
2115
 
2089
2116
  export declare function useDevTools(): {
@@ -1,39 +1,40 @@
1
- import { y as e, A as o, B as t, E as r, I as n, L as p, H as i, N as l, z as u, i as d, h as m, S as C, b as x, k as T, l as c, D as S, F as g, G as A, V as h, C as B, c as I, e as b, f as k, w as v, j as L, p as V, s as f, t as y, n as E, q as H, v as M, J as N, u as R, x as D } from "./index-erPY1EdW.mjs";
2
- import { X } from "./xmlui-serializer-B3OkRzrr.mjs";
1
+ import { y as e, A as t, B as o, E as r, I as n, L as p, H as u, N as i, z as l, i as C, h as d, S as m, b as x, k as T, l as c, D as S, F as A, G as g, V as h, C as B, c as I, e as L, f as b, w as k, j as v, p as y, s as V, t as f, K as E, n as H, q as M, v as N, J as R, u as D, x as U } from "./index-_koqcHz7.mjs";
2
+ import { X as j } from "./xmlui-serializer-B3OkRzrr.mjs";
3
3
  export {
4
4
  e as ApiInterceptorProvider,
5
- o as AppRoot,
6
- t as Button,
5
+ t as AppRoot,
6
+ o as Button,
7
7
  r as ErrorBoundary,
8
8
  n as Icon,
9
9
  p as LinkNative,
10
- i as Logo,
11
- l as NestedApp,
12
- u as Spinner,
13
- d as Splitter,
14
- m as Stack,
15
- C as StandaloneApp,
10
+ u as Logo,
11
+ i as NestedApp,
12
+ l as Spinner,
13
+ C as Splitter,
14
+ d as Stack,
15
+ m as StandaloneApp,
16
16
  x as StandaloneExtensionManager,
17
17
  T as TabItem,
18
18
  c as Tabs,
19
19
  S as Text,
20
- g as TextBox,
21
- A as ToneChangerButton,
20
+ A as TextBox,
21
+ g as ToneChangerButton,
22
22
  h as VisuallyHidden,
23
- X as XmlUiHelper,
23
+ j as XmlUiHelper,
24
24
  B as builtInThemes,
25
25
  I as createComponentRenderer,
26
- b as createMetadata,
27
- k as d,
28
- v as errReportComponent,
29
- L as getColor,
30
- V as parseScssVar,
31
- f as startApp,
32
- y as toCssVar,
33
- E as useColors,
34
- H as useDevTools,
35
- M as useLogger,
36
- N as useSearchContextContent,
37
- R as useTheme,
38
- D as xmlUiMarkupToComponent
26
+ L as createMetadata,
27
+ b as d,
28
+ k as errReportComponent,
29
+ v as getColor,
30
+ y as parseScssVar,
31
+ V as startApp,
32
+ f as toCssVar,
33
+ E as useAppLayoutContext,
34
+ H as useColors,
35
+ M as useDevTools,
36
+ N as useLogger,
37
+ R as useSearchContextContent,
38
+ D as useTheme,
39
+ U as xmlUiMarkupToComponent
39
40
  };