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.
- package/dist/lib/{apiInterceptorWorker-DzZYVTsV.mjs → apiInterceptorWorker-D_OwtjcQ.mjs} +1 -1
- package/dist/lib/{index-erPY1EdW.mjs → index-_koqcHz7.mjs} +3053 -3029
- package/dist/lib/index.css +1 -1
- package/dist/lib/xmlui.d.ts +27 -0
- package/dist/lib/xmlui.mjs +27 -26
- package/dist/metadata/style.css +1 -1
- package/dist/metadata/xmlui-metadata.mjs +2428 -2408
- package/dist/metadata/xmlui-metadata.umd.js +10 -10
- package/dist/scripts/package.json +1 -1
- package/dist/scripts/src/components/App/App.js +3 -2
- package/dist/scripts/src/components/App/SearchContext.js +1 -1
- package/dist/scripts/src/components/AppHeader/AppHeader.js +1 -1
- package/dist/scripts/src/components/DatePicker/DatePickerNative.js +34 -2
- package/dist/scripts/src/components/Markdown/MarkdownNative.js +1 -1
- package/dist/scripts/src/components/Select/Select.js +3 -3
- package/dist/scripts/src/components/Text/Text.js +0 -1
- package/dist/scripts/src/components/TextBox/TextBoxNative.js +2 -2
- package/dist/scripts/src/components-core/theming/themes/root.js +2 -2
- package/dist/standalone/xmlui-standalone.es.d.ts +31 -1
- package/dist/standalone/xmlui-standalone.umd.js +176 -176
- package/package.json +1 -1
package/dist/lib/xmlui.d.ts
CHANGED
|
@@ -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(): {
|
package/dist/lib/xmlui.mjs
CHANGED
|
@@ -1,39 +1,40 @@
|
|
|
1
|
-
import { y as e, A as
|
|
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
|
-
|
|
6
|
-
|
|
5
|
+
t as AppRoot,
|
|
6
|
+
o as Button,
|
|
7
7
|
r as ErrorBoundary,
|
|
8
8
|
n as Icon,
|
|
9
9
|
p as LinkNative,
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
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
|
-
|
|
21
|
-
|
|
20
|
+
A as TextBox,
|
|
21
|
+
g as ToneChangerButton,
|
|
22
22
|
h as VisuallyHidden,
|
|
23
|
-
|
|
23
|
+
j as XmlUiHelper,
|
|
24
24
|
B as builtInThemes,
|
|
25
25
|
I as createComponentRenderer,
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
E as
|
|
34
|
-
H as
|
|
35
|
-
M as
|
|
36
|
-
N as
|
|
37
|
-
R as
|
|
38
|
-
D as
|
|
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
|
};
|