xmlui 0.12.20 → 0.12.21
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/{index-DlL2LZda.js → index-CznbWBUF.js} +2675 -2691
- package/dist/lib/index.css +2 -2
- package/dist/lib/{initMock-oDPfoiEj.js → initMock-Dj__hABf.js} +1 -1
- package/dist/lib/testing.d.ts +1 -1
- package/dist/lib/xmlui-parser.d.ts +6 -1
- package/dist/lib/xmlui.d.ts +32 -19
- package/dist/lib/xmlui.js +24 -24
- package/dist/metadata/TextBox-B-GWiq0J.cjs +1 -0
- package/dist/metadata/{TextBox-CLfnmg0K.js → TextBox-DHSTy0g0.js} +3795 -3799
- package/dist/metadata/behaviors.cjs +1 -1
- package/dist/metadata/behaviors.js +1 -1
- package/dist/metadata/{initMock-gmVI0Sf9.js → initMock-SQIcDMzP.js} +1 -1
- package/dist/metadata/{initMock-C_24ZWrk.cjs → initMock-wSFvfKcr.cjs} +1 -1
- package/dist/metadata/xmlui-metadata.cjs +1 -1
- package/dist/metadata/xmlui-metadata.js +1 -1
- package/dist/metadata/xmlui.css +1 -1
- package/dist/nodejs/bin/index.mjs +0 -294
- package/dist/nodejs/server.cjs +1900 -1016
- package/dist/nodejs/server.mjs +1900 -1016
- package/dist/standalone/xmlui-standalone.es.d.ts +35 -24
- package/dist/standalone/xmlui-standalone.umd.js +32 -33
- package/package.json +1 -3
- package/dist/islands/xmlui-islands.es.d.ts +0 -3685
- package/dist/islands/xmlui-islands.umd.js +0 -422
- package/dist/metadata/TextBox-DZci5V1h.cjs +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { delay as delay$1, HttpResponse, matchRequestUrl } from "msw";
|
|
2
2
|
import { isArray, isObject, mapValues } from "lodash-es";
|
|
3
3
|
import { h as delay, o as orderBy, T as ThrowStatementError } from "./xmlui-serializer-C-Iuczzr.js";
|
|
4
|
-
import { r as runEventHandlerCode, g as getDate, m as miscellaneousUtils, d as dateFunctions } from "./index-
|
|
4
|
+
import { r as runEventHandlerCode, g as getDate, m as miscellaneousUtils, d as dateFunctions } from "./index-CznbWBUF.js";
|
|
5
5
|
import Dexie from "dexie";
|
|
6
6
|
var HttpStatusCode = /* @__PURE__ */ ((HttpStatusCode2) => {
|
|
7
7
|
HttpStatusCode2[HttpStatusCode2["Continue"] = 100] = "Continue";
|
package/dist/lib/testing.d.ts
CHANGED
|
@@ -114,7 +114,7 @@ declare interface BinaryExpression extends ExpressionBase {
|
|
|
114
114
|
right: Expression;
|
|
115
115
|
}
|
|
116
116
|
|
|
117
|
-
declare type BinaryOpSymbols = "**" | "*" | "/" | "%" | "+" | "-" | "<<" | ">>" | ">>>" | "<" | "<=" | ">" | ">=" | "==" | "===" | "!=" | "!==" | "&" | "|" | "^" | "&&" | "||" | "??" | "in";
|
|
117
|
+
declare type BinaryOpSymbols = "**" | "*" | "/" | "%" | "+" | "-" | "<<" | ">>" | ">>>" | "<" | "<=" | ">" | ">=" | "==" | "===" | "!=" | "!==" | "&" | "|" | "^" | "&&" | "||" | "??" | "in" | "instanceof";
|
|
118
118
|
|
|
119
119
|
declare type BLOCK_STATEMENT = typeof T_BLOCK_STATEMENT;
|
|
120
120
|
|
|
@@ -229,7 +229,7 @@ declare interface BinaryExpression extends ExpressionBase {
|
|
|
229
229
|
right: Expression;
|
|
230
230
|
}
|
|
231
231
|
|
|
232
|
-
declare type BinaryOpSymbols = "**" | "*" | "/" | "%" | "+" | "-" | "<<" | ">>" | ">>>" | "<" | "<=" | ">" | ">=" | "==" | "===" | "!=" | "!==" | "&" | "|" | "^" | "&&" | "||" | "??" | "in";
|
|
232
|
+
declare type BinaryOpSymbols = "**" | "*" | "/" | "%" | "+" | "-" | "<<" | ">>" | ">>>" | "<" | "<=" | ">" | ">=" | "==" | "===" | "!=" | "!==" | "&" | "|" | "^" | "&&" | "||" | "??" | "in" | "instanceof";
|
|
233
233
|
|
|
234
234
|
declare type BLOCK_STATEMENT = typeof T_BLOCK_STATEMENT;
|
|
235
235
|
|
|
@@ -244,6 +244,10 @@ declare interface BreakStatement extends ScripNodeBase {
|
|
|
244
244
|
type: BREAK_STATEMENT;
|
|
245
245
|
}
|
|
246
246
|
|
|
247
|
+
declare type ButtonThemeColor = (typeof buttonThemeValues)[number];
|
|
248
|
+
|
|
249
|
+
declare const buttonThemeValues: readonly ["attention", "primary", "secondary"];
|
|
250
|
+
|
|
247
251
|
declare type CALCULATED_MEMBER_ACCESS_EXPRESSION = typeof T_CALCULATED_MEMBER_ACCESS_EXPRESSION;
|
|
248
252
|
|
|
249
253
|
declare interface CalculatedMemberAccessExpression extends ExpressionBase {
|
|
@@ -611,6 +615,7 @@ declare type ConfirmOptions = {
|
|
|
611
615
|
actionLabel?: string;
|
|
612
616
|
cancelLabel?: string;
|
|
613
617
|
width?: string;
|
|
618
|
+
actionThemeColor?: ButtonThemeColor;
|
|
614
619
|
};
|
|
615
620
|
|
|
616
621
|
declare type CONST_STATEMENT = typeof T_CONST_STATEMENT;
|
package/dist/lib/xmlui.d.ts
CHANGED
|
@@ -172,7 +172,7 @@ declare type AppLayoutType = (typeof appLayoutNames)[number];
|
|
|
172
172
|
* from either code-behind files or inlined markup expressions) and executes
|
|
173
173
|
* the app accordingly.
|
|
174
174
|
*/
|
|
175
|
-
export declare function AppRoot({
|
|
175
|
+
export declare function AppRoot({ apiInterceptor, contributes, node, decorateComponentsWithTestId, debugEnabled, defaultTheme, defaultTone, resources, globalProps, globalVars, standalone, trackContainerHeight, routerBaseName, previewMode, resourceMap, sources, extensionManager, children, projectCompilation, isNested, onInit, icons, helmetContext, }: AppWrapperProps & {
|
|
176
176
|
extensionManager?: StandaloneExtensionManager;
|
|
177
177
|
isNested?: boolean;
|
|
178
178
|
}): JSX_2.Element;
|
|
@@ -211,7 +211,6 @@ declare type AppThemes = {
|
|
|
211
211
|
};
|
|
212
212
|
|
|
213
213
|
declare type AppWrapperProps = {
|
|
214
|
-
asIsland?: boolean;
|
|
215
214
|
node: ComponentLike;
|
|
216
215
|
previewMode?: boolean;
|
|
217
216
|
routerBaseName?: string;
|
|
@@ -340,7 +339,7 @@ declare interface BinaryExpression extends ExpressionBase {
|
|
|
340
339
|
right: Expression;
|
|
341
340
|
}
|
|
342
341
|
|
|
343
|
-
declare type BinaryOpSymbols = "**" | "*" | "/" | "%" | "+" | "-" | "<<" | ">>" | ">>>" | "<" | "<=" | ">" | ">=" | "==" | "===" | "!=" | "!==" | "&" | "|" | "^" | "&&" | "||" | "??" | "in";
|
|
342
|
+
declare type BinaryOpSymbols = "**" | "*" | "/" | "%" | "+" | "-" | "<<" | ">>" | ">>>" | "<" | "<=" | ">" | ">=" | "==" | "===" | "!=" | "!==" | "&" | "|" | "^" | "&&" | "||" | "??" | "in" | "instanceof";
|
|
344
343
|
|
|
345
344
|
declare type BLOCK_STATEMENT = typeof T_BLOCK_STATEMENT;
|
|
346
345
|
|
|
@@ -664,6 +663,7 @@ declare type ConfirmOptions = {
|
|
|
664
663
|
actionLabel?: string;
|
|
665
664
|
cancelLabel?: string;
|
|
666
665
|
width?: string;
|
|
666
|
+
actionThemeColor?: ButtonThemeColor;
|
|
667
667
|
};
|
|
668
668
|
|
|
669
669
|
declare type CONST_STATEMENT = typeof T_CONST_STATEMENT;
|
|
@@ -1295,6 +1295,7 @@ declare interface IconBaseProps extends default_2.SVGAttributes<SVGElement> {
|
|
|
1295
1295
|
style?: CSSProperties;
|
|
1296
1296
|
className?: string;
|
|
1297
1297
|
tabIndex?: number;
|
|
1298
|
+
onClick?: default_2.MouseEventHandler<any>;
|
|
1298
1299
|
onKeyDown?: default_2.KeyboardEventHandler<any>;
|
|
1299
1300
|
}
|
|
1300
1301
|
|
|
@@ -1567,6 +1568,31 @@ declare type Message = ValueOrFunction<Renderable, Toast>;
|
|
|
1567
1568
|
*/
|
|
1568
1569
|
declare type ModuleErrors = Record<string, ScriptParserErrorMessage[]>;
|
|
1569
1570
|
|
|
1571
|
+
export declare interface NavHierarchyNode {
|
|
1572
|
+
/** The type of navigation node - either a clickable link or a grouping container */
|
|
1573
|
+
type: "NavLink" | "NavGroup";
|
|
1574
|
+
/** The display label/text for this navigation item */
|
|
1575
|
+
label: string;
|
|
1576
|
+
/** The URL/route path for navigation (present for NavLink and optional for NavGroup) */
|
|
1577
|
+
to?: string;
|
|
1578
|
+
/** Child navigation nodes nested under this node (only present for NavGroup types) */
|
|
1579
|
+
children?: NavHierarchyNode[];
|
|
1580
|
+
/** Optional icon name associated with this navigation item */
|
|
1581
|
+
icon?: string;
|
|
1582
|
+
/** Reference to the immediate parent node in the hierarchy (undefined for root-level nodes) */
|
|
1583
|
+
parent?: NavHierarchyNode;
|
|
1584
|
+
/** Array of ancestor nodes from root to this node, excluding this node itself (empty for root-level nodes) */
|
|
1585
|
+
pathSegments?: NavHierarchyNode[];
|
|
1586
|
+
/** Reference to the previous NavLink in the flattened navigation order */
|
|
1587
|
+
prevLink?: NavHierarchyNode;
|
|
1588
|
+
/** Reference to the next NavLink in the flattened navigation order */
|
|
1589
|
+
nextLink?: NavHierarchyNode;
|
|
1590
|
+
/** True if this is the first NavLink within its immediate parent container */
|
|
1591
|
+
firstLink?: boolean;
|
|
1592
|
+
/** True if this is the last NavLink within its immediate parent container */
|
|
1593
|
+
lastLink?: boolean;
|
|
1594
|
+
}
|
|
1595
|
+
|
|
1570
1596
|
export declare const NavPanelCollapseButton: NamedExoticComponent<NavPanelCollapseButtonProps>;
|
|
1571
1597
|
|
|
1572
1598
|
declare type NavPanelCollapseButtonProps = {
|
|
@@ -1590,9 +1616,6 @@ declare type NestedAppProps = {
|
|
|
1590
1616
|
refreshVersion?: number;
|
|
1591
1617
|
withSplashScreen?: boolean;
|
|
1592
1618
|
className?: string;
|
|
1593
|
-
resolvedApp?: ComponentDef | CompoundComponentDef;
|
|
1594
|
-
resolvedComponents?: CompoundComponentDef[];
|
|
1595
|
-
asIsland?: boolean;
|
|
1596
1619
|
};
|
|
1597
1620
|
|
|
1598
1621
|
declare type NEW_EXPRESSION = typeof T_NEW_EXPRESSION;
|
|
@@ -2046,16 +2069,8 @@ declare const Stack_2: default_2.MemoExoticComponent<default_2.ForwardRefExoticC
|
|
|
2046
2069
|
* AppRoot is responsible for rendering the app (using an internal
|
|
2047
2070
|
* representation); ApiInterceptor can emulate some backend functionality
|
|
2048
2071
|
* running in the browser.
|
|
2049
|
-
*
|
|
2050
|
-
* Note: base styles (index.scss) are NOT imported here as a side-effect.
|
|
2051
|
-
* Instead, the `RootClasses` component (ThemeReact.tsx) injects them as a
|
|
2052
|
-
* `<style id="xmlui-base-styles">` tag prepended into the correct target
|
|
2053
|
-
* (document.head for normal apps, shadow root for islands). This ensures
|
|
2054
|
-
* the @layer declaration always evaluates first — before any Vite-injected
|
|
2055
|
-
* component styles — and that island styles are fully scoped to their
|
|
2056
|
-
* shadow root without leaking to the host page.
|
|
2057
2072
|
*/
|
|
2058
|
-
export declare function StandaloneApp({
|
|
2073
|
+
export declare function StandaloneApp({ appDef, appGlobals: globals, decorateComponentsWithTestId, debugEnabled, runtime, extensionManager, waitForApiInterceptor, helmetContext, children, }: StandaloneAppProps): JSX_2.Element;
|
|
2059
2074
|
|
|
2060
2075
|
export declare type StandaloneAppDescription = {
|
|
2061
2076
|
name?: string;
|
|
@@ -2075,7 +2090,6 @@ export declare type StandaloneAppDescription = {
|
|
|
2075
2090
|
|
|
2076
2091
|
declare type StandaloneAppProps = {
|
|
2077
2092
|
appDef?: StandaloneAppDescription;
|
|
2078
|
-
srcBase?: string;
|
|
2079
2093
|
appGlobals?: Record<string, any>;
|
|
2080
2094
|
decorateComponentsWithTestId?: boolean;
|
|
2081
2095
|
debugEnabled?: boolean;
|
|
@@ -2084,7 +2098,6 @@ declare type StandaloneAppProps = {
|
|
|
2084
2098
|
waitForApiInterceptor?: boolean;
|
|
2085
2099
|
helmetContext?: Record<string, unknown>;
|
|
2086
2100
|
children?: ReactNode;
|
|
2087
|
-
asIsland?: boolean;
|
|
2088
2101
|
};
|
|
2089
2102
|
|
|
2090
2103
|
export declare function StandaloneComponent({ node, children, functions, vars }: RootComponentProps): ReactNode;
|
|
@@ -2138,8 +2151,6 @@ export declare type StandaloneJsonConfig = {
|
|
|
2138
2151
|
*/
|
|
2139
2152
|
export declare function startApp(runtime: any, extensions?: Extension[] | Extension, extensionManager?: StandaloneExtensionManager): Root;
|
|
2140
2153
|
|
|
2141
|
-
export declare function startIslands(extensionManager?: StandaloneExtensionManager): () => void;
|
|
2142
|
-
|
|
2143
2154
|
declare type State = {
|
|
2144
2155
|
hasError: boolean;
|
|
2145
2156
|
error: Error | null;
|
|
@@ -2743,6 +2754,8 @@ declare interface UseEventOverload {
|
|
|
2743
2754
|
<TF extends callbackType>(callback: TF): any;
|
|
2744
2755
|
}
|
|
2745
2756
|
|
|
2757
|
+
export declare function useLinkInfo(): NavHierarchyNode | undefined;
|
|
2758
|
+
|
|
2746
2759
|
export declare const useLogger: () => LogContextType;
|
|
2747
2760
|
|
|
2748
2761
|
export declare function useOption(): OptionContextValue;
|
package/dist/lib/xmlui.js
CHANGED
|
@@ -1,52 +1,52 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a7, X, $, an, aE, aC, Y, am, al, ah, aK, Z, ai, af, as, aj, aF, aD, ar, ad, aM, aL, ao, aH, aG, a8, a0, _, S, ay, a, aw, ax, a2, ak, a3, ab, ac, az, aq, aA, aB, ae, aa, c, e, b, f, i, j, k, h, l, n, o, p, s, t, v, u, q, w, x, y, z, A, B, C, D, E, F, G, H, I, J, K, L, O, M, N, P, Q, R, T, a1, U, V, ap, au, a4, av, a5, ag, a6, aN, at, W, a9, aI, aJ } from "./index-CznbWBUF.js";
|
|
2
2
|
import { X as X2, q as q2, u as u2 } from "./xmlui-serializer-C-Iuczzr.js";
|
|
3
3
|
import { j as j2, x as x2 } from "./xmlui-parser-CtU8O3Av.js";
|
|
4
4
|
export {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
a7 as ApiInterceptorProvider,
|
|
6
|
+
X as AppRoot,
|
|
7
|
+
$ as Button,
|
|
8
8
|
an as COMPONENT_PART_KEY,
|
|
9
9
|
aE as ContentSeparator,
|
|
10
10
|
aC as DropdownMenu,
|
|
11
|
-
|
|
11
|
+
Y as ErrorBoundary,
|
|
12
12
|
am as FlowItemWrapper,
|
|
13
13
|
al as FlowLayout,
|
|
14
14
|
ah as Heading,
|
|
15
15
|
aK as HiddenOption,
|
|
16
|
-
|
|
16
|
+
Z as Icon,
|
|
17
17
|
ai as Image,
|
|
18
|
-
|
|
18
|
+
af as LinkNative,
|
|
19
19
|
as as Logo,
|
|
20
20
|
aj as Markdown,
|
|
21
21
|
aF as MemoizedItem,
|
|
22
22
|
aD as MenuItem,
|
|
23
23
|
ar as NavPanelCollapseButton,
|
|
24
|
-
|
|
24
|
+
ad as NestedApp,
|
|
25
25
|
aM as OptionContext,
|
|
26
26
|
aL as OptionTypeProvider,
|
|
27
27
|
ao as Part,
|
|
28
28
|
aH as SEARCH_CATEGORIES,
|
|
29
29
|
aG as SEARCH_DEFAULT_CATEGORY,
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
30
|
+
a8 as Spinner,
|
|
31
|
+
a0 as Splitter,
|
|
32
|
+
_ as Stack,
|
|
33
33
|
S as StandaloneApp,
|
|
34
34
|
ay as StandaloneComponent,
|
|
35
35
|
a as StandaloneExtensionManager,
|
|
36
36
|
aw as StyleProvider,
|
|
37
37
|
ax as StyleRegistry,
|
|
38
|
-
|
|
38
|
+
a2 as TabItem,
|
|
39
39
|
ak as TableOfContents,
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
40
|
+
a3 as Tabs,
|
|
41
|
+
ab as Text,
|
|
42
|
+
ac as TextBox,
|
|
43
43
|
az as Theme,
|
|
44
44
|
aq as ToneChangerButton,
|
|
45
45
|
aA as ToneSwitch,
|
|
46
46
|
aB as Tooltip,
|
|
47
|
-
|
|
47
|
+
ae as VisuallyHidden,
|
|
48
48
|
X2 as XmlUiHelper,
|
|
49
|
-
|
|
49
|
+
aa as builtInThemes,
|
|
50
50
|
c as createComponentRenderer,
|
|
51
51
|
e as createMetadata,
|
|
52
52
|
b as createUserDefinedComponentRenderer,
|
|
@@ -88,22 +88,22 @@ export {
|
|
|
88
88
|
R as dValue,
|
|
89
89
|
T as dValueApi,
|
|
90
90
|
j2 as errReportComponent,
|
|
91
|
-
|
|
91
|
+
a1 as getColor,
|
|
92
92
|
U as parseScssVar,
|
|
93
93
|
V as startApp,
|
|
94
|
-
W as startIslands,
|
|
95
94
|
q2 as toCssVar,
|
|
96
95
|
ap as useAppContext,
|
|
97
96
|
au as useAppLayoutContext,
|
|
98
|
-
|
|
97
|
+
a4 as useColors,
|
|
99
98
|
av as useComponentThemeClass,
|
|
100
|
-
|
|
99
|
+
a5 as useDevTools,
|
|
101
100
|
u2 as useEvent,
|
|
102
|
-
|
|
101
|
+
ag as useLinkInfo,
|
|
102
|
+
a6 as useLogger,
|
|
103
103
|
aN as useOption,
|
|
104
104
|
at as useSearchContextContent,
|
|
105
|
-
|
|
106
|
-
|
|
105
|
+
W as useTheme,
|
|
106
|
+
a9 as useThemes,
|
|
107
107
|
aI as wrapComponent,
|
|
108
108
|
aJ as wrapCompound,
|
|
109
109
|
x2 as xmlUiMarkupToComponent
|