xmlui 0.12.19 → 0.12.20

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.
Files changed (39) hide show
  1. package/dist/islands/xmlui-islands.es.d.ts +3685 -0
  2. package/dist/islands/xmlui-islands.umd.js +422 -0
  3. package/dist/lib/{index-WVT6bIgM.js → index-DlL2LZda.js} +3034 -3860
  4. package/dist/lib/index.css +2 -2
  5. package/dist/lib/{initMock-r2IRBsLf.js → initMock-oDPfoiEj.js} +2 -2
  6. package/dist/lib/{parser-DpwXEUNb.js → parser-zOoMLvLx.js} +120 -139
  7. package/dist/lib/testing.d.ts +17 -18
  8. package/dist/lib/testing.js +2 -2
  9. package/dist/lib/{xmlui-parser-Cs8kB0VK.js → xmlui-parser-CtU8O3Av.js} +43 -19
  10. package/dist/lib/xmlui-parser.d.ts +17 -18
  11. package/dist/lib/xmlui-parser.js +2 -2
  12. package/dist/lib/{xmlui-serializer-3MPLSsOp.js → xmlui-serializer-C-Iuczzr.js} +9 -8
  13. package/dist/lib/xmlui.d.ts +118 -126
  14. package/dist/lib/xmlui.js +60 -58
  15. package/dist/metadata/{TextBox-CwicjBJI.js → TextBox-CLfnmg0K.js} +3422 -4267
  16. package/dist/metadata/TextBox-DZci5V1h.cjs +1 -0
  17. package/dist/metadata/behaviors.cjs +1 -1
  18. package/dist/metadata/behaviors.js +1 -1
  19. package/dist/metadata/{initMock-BKBkbEgr.cjs → initMock-C_24ZWrk.cjs} +1 -1
  20. package/dist/metadata/{initMock-BMq6JN4I.js → initMock-gmVI0Sf9.js} +1 -1
  21. package/dist/metadata/metadata-utils.cjs +1 -1
  22. package/dist/metadata/metadata-utils.js +1 -1
  23. package/dist/metadata/transform-BOf-UbgP.cjs +1 -0
  24. package/dist/metadata/{transform-D0SWbm8g.js → transform-fGDqiHwH.js} +120 -139
  25. package/dist/metadata/xmlui-metadata.cjs +1 -1
  26. package/dist/metadata/xmlui-metadata.js +12 -8
  27. package/dist/metadata/xmlui.css +2 -2
  28. package/dist/nodejs/bin/index.mjs +357 -79
  29. package/dist/nodejs/index.cjs +63 -79
  30. package/dist/nodejs/index.mjs +63 -79
  31. package/dist/nodejs/server.cjs +0 -51
  32. package/dist/nodejs/server.mjs +0 -51
  33. package/dist/nodejs/vite-xmlui-plugin.cjs +63 -79
  34. package/dist/nodejs/vite-xmlui-plugin.mjs +63 -79
  35. package/dist/standalone/xmlui-standalone.es.d.ts +182 -180
  36. package/dist/standalone/xmlui-standalone.umd.js +33 -32
  37. package/package.json +3 -1
  38. package/dist/metadata/TextBox-C-4gnBpw.cjs +0 -1
  39. package/dist/metadata/transform-CkTQ-Bfe.cjs +0 -1
@@ -0,0 +1,3685 @@
1
+ import { AlignmentOptions as AlignmentOptions_2 } from './components/abstractions';
2
+ import { AsyncFunction as AsyncFunction_2 } from './abstractions/FunctionDefs';
3
+ import { BreakMode as BreakMode_2 } from './components/abstractions';
4
+ import { ButtonThemeColor as ButtonThemeColor_2 } from './components/abstractions';
5
+ import { ButtonType as ButtonType_2 } from './components/abstractions';
6
+ import { ButtonVariant as ButtonVariant_2 } from './components/abstractions';
7
+ import { CodeHighlighter as CodeHighlighter_2 } from './components/CodeBlock/highlight-code';
8
+ import { ComponentType } from 'react';
9
+ import { Context } from 'react';
10
+ import { CSSProperties } from 'react';
11
+ import { default as default_2 } from 'react';
12
+ import { default as default_3 } from 'react/jsx-runtime';
13
+ import { DefaultToastOptions } from 'react-hot-toast';
14
+ import { DelayMode } from 'msw';
15
+ import { Dispatch } from 'react';
16
+ import { ErrorInfo } from 'react';
17
+ import { ForwardedRef } from 'react';
18
+ import { ForwardRefExoticComponent } from 'react';
19
+ import { HeadingProps as HeadingProps_2 } from './components/Heading/HeadingReact';
20
+ import { HTMLAttributes } from 'react';
21
+ import { IconBaseProps as IconBaseProps_2 } from './components/Icon/IconReact';
22
+ import { IconPosition as IconPosition_2 } from './components/abstractions';
23
+ import { JSX as JSX_2 } from 'react/jsx-runtime';
24
+ import { LayoutContext as LayoutContext_2 } from './abstractions/RendererDefs';
25
+ import { MemoExoticComponent } from 'react';
26
+ import { NamedExoticComponent } from 'react';
27
+ import { NavigateOptions } from 'react-router-dom';
28
+ import { OrientationOptions as OrientationOptions_2 } from './components/abstractions';
29
+ import { OverflowMode as OverflowMode_2 } from './components/abstractions';
30
+ import { QueryClient } from '@tanstack/react-query';
31
+ import { ReactNode } from 'react';
32
+ import { RefAttributes } from 'react';
33
+ import { RefObject } from 'react';
34
+ import { RegisterComponentApiFn as RegisterComponentApiFn_2 } from '../..';
35
+ import { Renderable } from 'react-hot-toast';
36
+ import { RenderChildFn as RenderChildFn_2 } from './abstractions/RendererDefs';
37
+ import { Root } from 'react-dom/client';
38
+ import { ScrollStyle as ScrollStyle_2 } from '../ScrollViewer/Scroller';
39
+ import { ScrollStyle as ScrollStyle_3 } from './components/ScrollViewer/Scroller';
40
+ import { SetStateAction } from 'react';
41
+ import { SetupWorker } from 'msw/browser';
42
+ import { SizeType as SizeType_2 } from './components/abstractions';
43
+ import { Tab } from '../abstractions';
44
+ import { Tab as Tab_2 } from './components/abstractions';
45
+ import { TextVariant as TextVariant_2 } from './components/abstractions';
46
+ import { To } from 'react-router-dom';
47
+ import { Toast } from 'react-hot-toast';
48
+ import { ToastOptions } from 'react-hot-toast';
49
+ import { ToneSwitchProps as ToneSwitchProps_2 } from './components/ToneSwitch/ToneSwitchReact';
50
+ import { TooltipOptions as TooltipOptions_2 } from './components/Tooltip/TooltipReact';
51
+ import { UpdateStateFn as UpdateStateFn_2 } from './abstractions/RendererDefs';
52
+ import { UseEventOverload as UseEventOverload_2 } from './components-core/utils/misc';
53
+ import { ValidationStatus as ValidationStatus_2 } from './components/abstractions';
54
+ import { ValueOrFunction } from 'react-hot-toast';
55
+
56
+ declare interface ActionExecutionContext {
57
+ uid: symbol;
58
+ state: ContainerState;
59
+ getCurrentState: () => ContainerState;
60
+ appContext: AppContextObject;
61
+ apiInstance?: IApiInterceptor;
62
+ lookupAction: LookupAsyncFnInner;
63
+ navigate: any;
64
+ location: any;
65
+ }
66
+
67
+ declare type ActionFunction = (executionContext: ActionExecutionContext, ...args: any[]) => any;
68
+
69
+ declare type AlignmentOptions = (typeof alignmentOptionValues)[number];
70
+
71
+ declare const alignmentOptionValues: readonly ["start", "center", "end"];
72
+
73
+ declare interface AndCondition extends ConditionBase {
74
+ type: "and";
75
+ conditions: BehaviorCondition[];
76
+ }
77
+
78
+ declare type ApiInterceptorDefinition = {
79
+ type?: string;
80
+ config?: Record<string, any>;
81
+ artificialDelay?: number | DelayMode;
82
+ schemaDescriptor?: SchemaDescriptor;
83
+ apiUrl?: string;
84
+ initialData?: Record<string, any[]> | (() => Promise<Record<string, any[]>>);
85
+ helpers?: Record<string, any>;
86
+ initialize?: string;
87
+ operations?: Record<string, InterceptorOperationDef>;
88
+ auth?: AuthDefinition;
89
+ useWorker?: boolean;
90
+ };
91
+
92
+ declare function ApiInterceptorProvider({ interceptor, children, parentInterceptorContext, waitForApiInterceptor, }: Props_2): JSX_2.Element;
93
+
94
+ declare type AppContextObject = {
95
+ [x: string]: unknown;
96
+ version: string;
97
+ Actions: Record<string, ActionFunction>;
98
+ apiInterceptorContext: IApiInterceptorContext;
99
+ appGlobals?: Record<string, any>;
100
+ debugEnabled?: boolean;
101
+ decorateComponentsWithTestId?: boolean;
102
+ environment: {
103
+ isWindowFocused: boolean;
104
+ };
105
+ mediaSize: MediaSize;
106
+ queryClient: QueryClient | null;
107
+ standalone?: boolean;
108
+ appIsInShadowDom?: boolean;
109
+ formatDate: (date: string | Date) => string | undefined;
110
+ formatDateTime: (date: any) => string | undefined;
111
+ formatDateWithoutYear: (date: string | Date) => string | undefined;
112
+ formatTime: (date: any) => string | undefined;
113
+ formatTimeWithoutSeconds: (date: string | Date) => string | undefined;
114
+ getDate: (date?: string | number | Date) => Date;
115
+ getDateUntilNow: (date?: string | number | Date, nowLabel?: string, time?: string) => string;
116
+ isoDateString: (date?: string) => string;
117
+ isToday: (date: string | Date) => boolean;
118
+ isTomorrow: (date: string | Date) => boolean;
119
+ isYesterday: (date: string | Date) => boolean;
120
+ smartFormatDate: (date?: string | number | Date) => string;
121
+ smartFormatDateTime: (date: string | Date) => string | undefined;
122
+ differenceInMinutes: (date1: number | Date, date2: number | Date) => number;
123
+ isSameDay: (dateLeft: number | Date, dateRight: number | Date) => boolean;
124
+ isThisYear: (date: Date | number) => boolean;
125
+ formatHumanElapsedTime: (date: string | Date) => string;
126
+ avg: (values: number[], decimals?: number) => number;
127
+ sum: (values: number[]) => number;
128
+ formatFileSizeInBytes: (bytes: number) => string | undefined;
129
+ getFileExtension: (fileName: string) => string | undefined;
130
+ navigate: (url: To, options?: NavigateOptions & {
131
+ queryParams?: Record<string, any>;
132
+ }) => void;
133
+ routerBaseName: string;
134
+ pathname: string | undefined;
135
+ setNavigationHandlers?: (onWillNavigate?: (to: string | number, queryParams?: Record<string, any>) => false | void | null | undefined, onDidNavigate?: (to: string | number, queryParams?: Record<string, any>) => void) => void;
136
+ confirm: {
137
+ (options: ConfirmOptions): Promise<boolean>;
138
+ (title?: string, message?: string, actionLabel?: string, cancelLabel?: string, width?: string): Promise<boolean>;
139
+ };
140
+ signError(error: Error | string): void;
141
+ toast: {
142
+ (message: Message, opts?: ToastOptions): string;
143
+ error: ToastHandler;
144
+ success: ToastHandler;
145
+ loading: ToastHandler;
146
+ custom: ToastHandler;
147
+ dismiss(toastId?: string): void;
148
+ remove(toastId?: string): void;
149
+ promise<T>(promise: Promise<T>, msgs: {
150
+ loading: Renderable;
151
+ success: ValueOrFunction<Renderable, T>;
152
+ error: ValueOrFunction<Renderable, any>;
153
+ }, opts?: DefaultToastOptions): Promise<T>;
154
+ };
155
+ activeThemeId: string;
156
+ activeThemeTone: "light" | "dark";
157
+ availableThemeIds: string[];
158
+ setTheme: (themId: string) => void;
159
+ setThemeTone: (newTone: "light" | "dark") => void;
160
+ toggleThemeTone: () => void;
161
+ getThemeVar: (themeVar: string) => string | undefined;
162
+ loggedInUser: LoggedInUserDto | null;
163
+ setLoggedInUser: (loggedInUser: any) => void;
164
+ readonly resources?: Record<string, string>;
165
+ capitalize: (s?: string) => string;
166
+ pluralize: (number: number, singular: string, plural: string) => string;
167
+ delay: (timeInMs: number, callback?: any) => Promise<void>;
168
+ debounce: <F extends (...args: any[]) => any>(delayMs: number, func: F, ...args: any[]) => void;
169
+ toHashObject: (arr: any[], keyProp: string, valueProp: string) => any;
170
+ findByField: (arr: any[], field: string, value: any) => any;
171
+ readonly embed: {
172
+ isInIFrame: boolean;
173
+ };
174
+ distinct: (arr: any[]) => any[];
175
+ forceRefreshAnchorScroll: () => void;
176
+ scrollBookmarkIntoView: (bookmarkId: string, smoothScrolling?: boolean) => void;
177
+ readLocalStorage: (key: string, fallback?: any) => any;
178
+ writeLocalStorage: (key: string, value: any) => void;
179
+ deleteLocalStorage: (key: string) => void;
180
+ clearLocalStorage: (prefix?: string) => void;
181
+ resetLocalStorage: (prefix?: string) => void;
182
+ getAllLocalStorage: () => Record<string, any>;
183
+ storageTimestamp: number;
184
+ AppState: AppState;
185
+ pubSubService: PubSubService;
186
+ publishTopic: (topic: string | number, data?: any) => void;
187
+ };
188
+
189
+ declare const appLayoutNames: readonly ["vertical", "vertical-sticky", "vertical-full-header", "condensed", "condensed-sticky", "horizontal", "horizontal-sticky", "desktop"];
190
+
191
+ declare type AppLayoutType = (typeof appLayoutNames)[number];
192
+
193
+ /**
194
+ * This component is responsible for running a pre-compiled xmlui app. It
195
+ * receives the internal representation of the app markup and code (coming
196
+ * from either code-behind files or inlined markup expressions) and executes
197
+ * the app accordingly.
198
+ */
199
+ declare function AppRoot({ asIsland, mainSrc, apiInterceptor, contributes, node, decorateComponentsWithTestId, debugEnabled, defaultTheme, defaultTone, resources, globalProps, globalVars, standalone, trackContainerHeight, routerBaseName, previewMode, resourceMap, sources, extensionManager, children, projectCompilation, isNested, onInit, icons, helmetContext, }: AppWrapperProps & {
200
+ extensionManager?: StandaloneExtensionManager;
201
+ isNested?: boolean;
202
+ }): JSX_2.Element;
203
+
204
+ /**
205
+ * AppState type definition for global state management
206
+ */
207
+ declare type AppState = {
208
+ define(bucket: string, initialState: any): any;
209
+ get(bucket: string, path?: string): any;
210
+ set(bucket: string, pathOrValue: string | any, value?: any): any;
211
+ update(bucket: string, pathOrUpdater: string | Function | any, updater?: Function | ((prev: any) => any | Promise<any>)): Promise<any>;
212
+ updateWith(bucket: string, updater: (prev: any) => any | Promise<any>): Promise<any>;
213
+ remove(bucket: string, value: any): void;
214
+ removeBy(bucket: string, predicate: (item: any) => boolean | Promise<boolean>): Promise<void>;
215
+ removeAt(bucket: string, index: number): any;
216
+ append(bucket: string, value: any): any;
217
+ push(bucket: string, value: any): any;
218
+ pop(bucket: string): any;
219
+ shift(bucket: string): any;
220
+ unshift(bucket: string, value: any): any;
221
+ insertAt(bucket: string, index: number, value: any): any;
222
+ };
223
+
224
+ declare type AppThemes = {
225
+ setActiveThemeId: (newThemeId: string) => void;
226
+ setActiveThemeTone: (newTone: ThemeTone) => void;
227
+ toggleThemeTone: () => void;
228
+ activeThemeId: string;
229
+ activeThemeTone: ThemeTone;
230
+ themes: Array<ThemeDefinition>;
231
+ resources: Record<string, string>;
232
+ resourceMap: Record<string, string>;
233
+ availableThemeIds: Array<string>;
234
+ activeTheme: ThemeDefinition;
235
+ };
236
+
237
+ declare type AppWrapperProps = {
238
+ asIsland?: boolean;
239
+ node: ComponentLike;
240
+ previewMode?: boolean;
241
+ routerBaseName?: string;
242
+ contributes?: ContributesDefinition;
243
+ globalProps?: GlobalProps;
244
+ globalVars?: Record<string, any>;
245
+ resources?: Record<string, string>;
246
+ standalone?: boolean;
247
+ trackContainerHeight?: TrackContainerHeight;
248
+ decorateComponentsWithTestId?: boolean;
249
+ debugEnabled?: boolean;
250
+ apiInterceptor?: ApiInterceptorDefinition;
251
+ defaultTheme?: string;
252
+ defaultTone?: ThemeTone;
253
+ resourceMap?: Record<string, string>;
254
+ sources?: Record<string, string>;
255
+ projectCompilation?: ProjectCompilation;
256
+ children?: ReactNode;
257
+ onInit?: () => void;
258
+ icons?: Record<string, string>;
259
+ helmetContext?: Record<string, unknown>;
260
+ };
261
+
262
+ declare type ARRAY_DESTRUCTURE = typeof T_ARRAY_DESTRUCTURE;
263
+
264
+ declare type ARRAY_LITERAL = typeof T_ARRAY_LITERAL;
265
+
266
+ declare interface ArrayDestructure extends DestructureBase {
267
+ type: ARRAY_DESTRUCTURE;
268
+ }
269
+
270
+ declare interface ArrayLiteral extends ExpressionBase {
271
+ type: ARRAY_LITERAL;
272
+ items: Expression[];
273
+ loose?: boolean;
274
+ }
275
+
276
+ declare type ARROW_EXPRESSION = typeof T_ARROW_EXPRESSION;
277
+
278
+ declare type ARROW_EXPRESSION_STATEMENT = typeof T_ARROW_EXPRESSION_STATEMENT;
279
+
280
+ declare interface ArrowExpression extends ExpressionBase {
281
+ type: ARROW_EXPRESSION;
282
+ name?: string;
283
+ args: Expression[];
284
+ statement: Statement;
285
+ async?: boolean;
286
+ }
287
+
288
+ declare interface ArrowExpressionStatement extends ScripNodeBase {
289
+ type: ARROW_EXPRESSION_STATEMENT;
290
+ expr: ArrowExpression;
291
+ }
292
+
293
+ declare type ASSIGNMENT_EXPRESSION = typeof T_ASSIGNMENT_EXPRESSION;
294
+
295
+ declare interface AssignmentExpression extends ExpressionBase {
296
+ type: ASSIGNMENT_EXPRESSION;
297
+ leftValue: Expression;
298
+ op: AssignmentSymbols;
299
+ expr: Expression;
300
+ }
301
+
302
+ declare type AssignmentSymbols = "=" | "+=" | "-=" | "**=" | "*=" | "/=" | "%=" | "<<=" | ">>=" | ">>>=" | "&=" | "^=" | "|=" | "&&=" | "||=" | "??=";
303
+
304
+ declare type ASYNC_FUNCTION_DECLARATION = typeof T_ASYNC_FUNCTION_DECLARATION;
305
+
306
+ declare type AsyncFunction = (...args: any) => Promise<any> | any;
307
+
308
+ declare type AuthDefinition = {
309
+ defaultLoggedInUser?: any;
310
+ };
311
+
312
+ declare type AWAIT_EXPRESSION = typeof T_AWAIT_EXPRESSION;
313
+
314
+ declare interface AwaitExpression extends ExpressionBase {
315
+ type: AWAIT_EXPRESSION;
316
+ expr: Expression;
317
+ }
318
+
319
+ /**
320
+ * Defines the shape of a component behavior that can wrap a component with
321
+ * additional functionality.
322
+ */
323
+ declare interface Behavior {
324
+ /**
325
+ * The metadata that describes the behavior, including its trigger properties and
326
+ */
327
+ metadata: BehaviorMetadata;
328
+ /**
329
+ * A function that determines if the behavior should be applied based on the
330
+ * component's context and props.
331
+ * @param context The renderer context of the component.
332
+ * @param node The component definition.
333
+ * @param metadata The metadata of the component.
334
+ * @returns True if the behavior can be attached, otherwise false.
335
+ */
336
+ canAttach: (context: RendererContext<any>, node: ComponentDef, metadata: ComponentMetadata) => boolean;
337
+ /**
338
+ * A function that attaches the behavior to the component's React node.
339
+ * @param context The renderer context of the component.
340
+ * @param node The React node to attach.
341
+ * @param metadata The metadata of the component.
342
+ * @returns The attached React node.
343
+ */
344
+ attach: (context: RendererContext<any>, node: ReactNode, metadata?: ComponentMetadata) => ReactNode;
345
+ }
346
+
347
+ declare type BehaviorCondition = AndCondition | OrCondition | NotCondition | VisualCondition | NonVisualCondition | hasPropCondition | hasNoPropCondition | PropEqualsCondition | PropContainsCondition | PropNotEqualsCondition | hasApiCondition | hasNoApiCondition | hasContextVarCondition | hasNoContextVarCondition | hasEventCondition | hasNoEventCondition | isTypeCondition | isNotTypeCondition;
348
+
349
+ declare type BehaviorMetadata = {
350
+ name: string;
351
+ friendlyName?: string;
352
+ description: string;
353
+ triggerProps: string[];
354
+ props: Record<string, ComponentPropertyMetadata>;
355
+ condition?: BehaviorCondition;
356
+ };
357
+
358
+ declare type BINARY_EXPRESSION = typeof T_BINARY_EXPRESSION;
359
+
360
+ declare interface BinaryExpression extends ExpressionBase {
361
+ type: BINARY_EXPRESSION;
362
+ op: BinaryOpSymbols;
363
+ left: Expression;
364
+ right: Expression;
365
+ }
366
+
367
+ declare type BinaryOpSymbols = "**" | "*" | "/" | "%" | "+" | "-" | "<<" | ">>" | ">>>" | "<" | "<=" | ">" | ">=" | "==" | "===" | "!=" | "!==" | "&" | "|" | "^" | "&&" | "||" | "??" | "in";
368
+
369
+ declare type BLOCK_STATEMENT = typeof T_BLOCK_STATEMENT;
370
+
371
+ declare interface BlockStatement extends ScripNodeBase {
372
+ type: BLOCK_STATEMENT;
373
+ stmts: Statement[];
374
+ }
375
+
376
+ declare type BREAK_STATEMENT = typeof T_BREAK_STATEMENT;
377
+
378
+ declare type BreakMode = (typeof BreakModeKeys)[number];
379
+
380
+ declare const BreakModeKeys: readonly ["normal", "word", "anywhere", "keep", "hyphenate"];
381
+
382
+ declare interface BreakStatement extends ScripNodeBase {
383
+ type: BREAK_STATEMENT;
384
+ }
385
+
386
+ declare const builtInThemes: Array<ThemeDefinition>;
387
+
388
+ declare const Button: default_2.MemoExoticComponent<default_2.ForwardRefExoticComponent<Omit<default_2.ButtonHTMLAttributes<HTMLButtonElement>, "type" | "form"> & {
389
+ type?: ButtonType;
390
+ variant?: ButtonVariant;
391
+ themeColor?: ButtonThemeColor;
392
+ size?: SizeType;
393
+ icon?: default_2.ReactNode;
394
+ iconPosition?: IconPosition;
395
+ contentPosition?: AlignmentOptions;
396
+ orientation?: OrientationOptions;
397
+ formId?: string;
398
+ contextualLabel?: string;
399
+ classes?: Record<string, string>;
400
+ } & default_2.RefAttributes<HTMLButtonElement>>>;
401
+
402
+ declare type ButtonThemeColor = (typeof buttonThemeValues)[number];
403
+
404
+ declare const buttonThemeValues: readonly ["attention", "primary", "secondary"];
405
+
406
+ declare type ButtonType = (typeof buttonTypeValues)[number];
407
+
408
+ declare const buttonTypeValues: readonly ["button", "submit", "reset"];
409
+
410
+ declare type ButtonVariant = (typeof buttonVariantValues)[number];
411
+
412
+ declare const buttonVariantValues: readonly ["solid", "outlined", "ghost"];
413
+
414
+ declare type CALCULATED_MEMBER_ACCESS_EXPRESSION = typeof T_CALCULATED_MEMBER_ACCESS_EXPRESSION;
415
+
416
+ declare interface CalculatedMemberAccessExpression extends ExpressionBase {
417
+ type: CALCULATED_MEMBER_ACCESS_EXPRESSION;
418
+ obj: Expression;
419
+ member: Expression;
420
+ }
421
+
422
+ declare type callbackType = (...args: Array<any>) => any;
423
+
424
+ declare type CodeDeclaration = {
425
+ source?: string;
426
+ tree: Expression;
427
+ [x: string]: unknown;
428
+ };
429
+
430
+ declare type CodeHighlighter = {
431
+ highlight: (code: string, language: string, meta?: CodeHighlighterMeta, themeTone?: string) => string;
432
+ availableLangs: string[];
433
+ };
434
+
435
+ declare type CodeHighlighterMeta = {
436
+ language?: string;
437
+ copy?: boolean;
438
+ filename?: string;
439
+ rowNumbers?: boolean;
440
+ highlightRows?: DecorationItem[];
441
+ highlightSubstrings?: DecorationItem[];
442
+ };
443
+
444
+ declare type CollectedDeclarations = {
445
+ vars: Record<string, CodeDeclaration>;
446
+ functions: Record<string, CodeDeclaration>;
447
+ moduleErrors?: ModuleErrors;
448
+ hasInvalidStatements?: boolean;
449
+ };
450
+
451
+ declare type ColorDef = {
452
+ name: string;
453
+ format: "hex" | "rgb" | "hsl";
454
+ };
455
+
456
+ declare type CompilationUnit = {
457
+ /** The file name */
458
+ filename: string;
459
+ /** Optional markup source (used in dev mode) */
460
+ markupSource?: string;
461
+ /** Optional code behind source (used in dev mode) */
462
+ codeBehindSource?: string;
463
+ /** Other (non-core) component names this component depends on */
464
+ dependencies: Set<string>;
465
+ };
466
+
467
+ /** The key used for the outermost DOM element (no part). */
468
+ declare const COMPONENT_PART_KEY = "-component";
469
+
470
+ /**
471
+ * Components can provide an API that other components can invoke (using
472
+ * the host component ID). This type defines the shape of a hash object that
473
+ * stores the API endpoints.
474
+ */
475
+ declare type ComponentApi = Record<string, ((...args: any[]) => any) | boolean | number | string>;
476
+
477
+ declare type ComponentApiMetadata = {
478
+ readonly description: string;
479
+ readonly signature?: string;
480
+ readonly parameters?: Record<string, string>;
481
+ };
482
+
483
+ declare type ComponentCompilation = CompilationUnit & {
484
+ /** The compiled markup of the component file */
485
+ definition: CompoundComponentDef;
486
+ };
487
+
488
+ declare interface ComponentDef<TMd extends ComponentMetadata = ComponentMetadata> extends ComponentDefCore, Scriptable {
489
+ props?: Record<keyof TMd["props"], any>;
490
+ events?: Record<keyof TMd["events"], any>;
491
+ api?: Record<keyof TMd["apis"], any>;
492
+ contextVars?: Record<keyof TMd["contextVars"], string>;
493
+ }
494
+
495
+ /**
496
+ * This interface represents the core properties of a component definition
497
+ * (independent of component metadata).
498
+ */
499
+ declare interface ComponentDefCore {
500
+ /**
501
+ * The type discriminator field of the component; it defines the unique ID of the component type.
502
+ */
503
+ type: string;
504
+ /**
505
+ * Unique identifier of a component-like object
506
+ */
507
+ uid?: string;
508
+ /**
509
+ * An optional identifier we use for e2e tests; it does not influence the rendering of a component.
510
+ */
511
+ testId?: string;
512
+ /**
513
+ * Though components manage their state internally, the app logic may require user
514
+ * state management. Components may have user *variables*, which the UI logic uses to
515
+ * manage the application state. This property holds the variables (name and value
516
+ * pairs) associated with this component definition.
517
+ */
518
+ vars?: Record<string, any>;
519
+ /**
520
+ * Global variables that flow down to all child containers regardless of the `uses`
521
+ * property. These variables are shared across the entire application and updates
522
+ * to them propagate back to the root container where they are defined.
523
+ * Only the root container should define globalVars.
524
+ */
525
+ globalVars?: Record<string, any>;
526
+ /**
527
+ * Each component may have child components to constitute a hierarchy of components.
528
+ * This property holds the definition of these nested children.
529
+ */
530
+ children?: ComponentDef[];
531
+ /**
532
+ * Components may have slots that can be filled with other components. This property
533
+ * holds the contents of the slots.
534
+ */
535
+ slots?: Record<string, ComponentDef[]>;
536
+ /**
537
+ * This property is evaluated to a Boolean value during run time. When this value is
538
+ * `true`, the component with its children chain is rendered; otherwise, the entire
539
+ * component hierarchy is omitted from the rendered tree.
540
+ */
541
+ when?: string | boolean;
542
+ /**
543
+ * Per-breakpoint visibility conditions (Tailwind mobile-first style).
544
+ * Keys are breakpoint names ("xs" | "sm" | "md" | "lg" | "xl" | "xxl").
545
+ * When any responsiveWhen entries are defined, they become the exclusive source of truth
546
+ * for visiblity, overriding the base `when` value. For a given screen size, the resolution
547
+ * walks from the current breakpoint down to "xs", returning the first defined responsive
548
+ * value. If no responsive rule matches, the component is hidden (false). If no responsiveWhen
549
+ * entries are defined at all, the base `when` property is used (backward compatibility).
550
+ * Example: `<Button when-md="true" />` shows only at md and above, hidden at xs/sm.
551
+ */
552
+ responsiveWhen?: Partial<Record<MediaBreakpointType, string | boolean>>;
553
+ /**
554
+ * Some components work with data obtained asynchronously. Fetching this data requires
555
+ * some state management handling the complexity (including error handling) of data
556
+ * access. A *loader* is responsible for managing this logic. This property holds the
557
+ * loaders associated with this component definition.
558
+ */
559
+ loaders?: ComponentDef[];
560
+ /**
561
+ * Components may have functions that are used to perform some logic. This property
562
+ * holds the functions (name and function body) associated with this component
563
+ * definition.
564
+ */
565
+ functions?: Record<string, any>;
566
+ /**
567
+ * Components managing state through variables or loaders are wrapped with containers
568
+ * responsible for this job. Just as components, containers form a hierarchy. While
569
+ * working with this hierarchy, parent components may flow state values (key and value
570
+ * pairs) to their child containers. This property holds the name of state values to
571
+ * flow down to the direct child containers.
572
+ */
573
+ uses?: string[];
574
+ /**
575
+ * Arbitrary debug information that can be attached to a component definition.
576
+ * Current usage:
577
+ * - `debug: { source: { start: number, end: number } }` The start and end
578
+ * positions of the source belonging to the particular component definition.
579
+ */
580
+ debug?: Record<string, any>;
581
+ }
582
+
583
+ declare type ComponentEventMetadata = {
584
+ readonly description: string;
585
+ readonly signature?: string;
586
+ readonly parameters?: Record<string, string>;
587
+ };
588
+
589
+ declare type ComponentExtension = ComponentRendererDef | CompoundComponentRendererInfo;
590
+
591
+ declare type ComponentLike = ComponentDef | CompoundComponentDef;
592
+
593
+ declare type ComponentMetadata<TProps extends Record<string, ComponentPropertyMetadata> = Record<string, any>, TEvents extends Record<string, ComponentEventMetadata> = Record<string, any>, TContextValues extends Record<string, ComponentPropertyMetadata> = Record<string, any>, TApis extends Record<string, ComponentApiMetadata> = Record<string, any>> = {
594
+ status?: "stable" | "experimental" | "deprecated" | "in progress" | "internal";
595
+ description?: string;
596
+ shortDescription?: string;
597
+ props?: TProps;
598
+ events?: TEvents;
599
+ contextVars?: TContextValues;
600
+ apis?: TApis;
601
+ nonVisual?: boolean;
602
+ childrenAsTemplate?: string;
603
+ opaque?: boolean;
604
+ themeVars?: Record<string, string>;
605
+ themeVarDescriptions?: Record<string, string>;
606
+ defaultThemeVars?: DefaultThemeVars;
607
+ toneSpecificThemeVars?: Record<string, Record<string, string>>;
608
+ limitThemeVarsToComponent?: boolean;
609
+ themeVarContributorComponents?: string[];
610
+ allowArbitraryProps?: boolean;
611
+ specializedFrom?: string;
612
+ docFolder?: string;
613
+ isHtmlTag?: boolean;
614
+ parts?: Record<string, ComponentPartMetadata>;
615
+ defaultPart?: string;
616
+ excludeBehaviors?: string[];
617
+ compactInlineLabel?: boolean;
618
+ deprecationMessage?: string;
619
+ defaultAriaLabel?: string;
620
+ };
621
+
622
+ declare type ComponentPartMetadata = {
623
+ description: string;
624
+ };
625
+
626
+ declare type ComponentPropertyMetadata = {
627
+ readonly description: string;
628
+ readonly valueType?: PropertyValueType;
629
+ readonly isResourceUrl?: boolean;
630
+ readonly availableValues?: readonly PropertyValueDescription[];
631
+ defaultValue?: any;
632
+ isValid?: IsValidFunction<any>;
633
+ isInternal?: boolean;
634
+ isRequired?: boolean;
635
+ deprecationMessage?: string;
636
+ };
637
+
638
+ declare interface ComponentRendererContextBase<TMd extends ComponentMetadata = ComponentMetadata> {
639
+ node: ComponentDef<TMd>;
640
+ state: ContainerState;
641
+ globalVars?: Record<string, any>;
642
+ appContext?: AppContextObject;
643
+ renderChild: RenderChildFn;
644
+ layoutContext?: LayoutContext;
645
+ }
646
+
647
+ declare type ComponentRendererDef<T extends ComponentDef = any> = {
648
+ type: string;
649
+ renderer: ComponentRendererFn<T>;
650
+ metadata?: ComponentMetadata;
651
+ };
652
+
653
+ declare type ComponentRendererFn<T extends ComponentDef> = (context: RendererContext<T>) => ReactNode;
654
+
655
+ declare interface CompoundComponentDef extends Scriptable {
656
+ name: string;
657
+ component: ComponentDef;
658
+ api?: Record<string, any>;
659
+ vars?: Record<string, any>;
660
+ namespaces?: Record<string, string>;
661
+ debug?: Record<string, any>;
662
+ codeBehind?: string;
663
+ }
664
+
665
+ declare type CompoundComponentRendererInfo = {
666
+ compoundComponentDef: CompoundComponentDef;
667
+ metadata?: ComponentMetadata;
668
+ };
669
+
670
+ declare type CONDITIONAL_EXPRESSION = typeof T_CONDITIONAL_EXPRESSION;
671
+
672
+ declare interface ConditionalExpression extends ExpressionBase {
673
+ type: CONDITIONAL_EXPRESSION;
674
+ cond: Expression;
675
+ thenE: Expression;
676
+ elseE: Expression;
677
+ }
678
+
679
+ declare interface ConditionBase {
680
+ type: BehaviorCondition["type"];
681
+ }
682
+
683
+ declare type ConfirmOptions = {
684
+ title?: string;
685
+ message?: string;
686
+ actionLabel?: string;
687
+ cancelLabel?: string;
688
+ width?: string;
689
+ };
690
+
691
+ declare type CONST_STATEMENT = typeof T_CONST_STATEMENT;
692
+
693
+ declare interface ConstStatement extends ScripNodeBase {
694
+ type: CONST_STATEMENT;
695
+ decls: VarDeclaration[];
696
+ }
697
+
698
+ declare type ContainerState = Record<string | symbol, any>;
699
+
700
+ declare const ContentSeparator: MemoExoticComponent<ForwardRefExoticComponent<ContentSeparatorProps & RefAttributes<HTMLDivElement>>>;
701
+
702
+ declare type ContentSeparatorProps = {
703
+ thickness?: number | string;
704
+ length?: number | string;
705
+ orientation?: string;
706
+ hasExplicitLength?: boolean;
707
+ style?: CSSProperties;
708
+ classes?: Record<string, string>;
709
+ className?: string;
710
+ };
711
+
712
+ declare type CONTINUE_STATEMENT = typeof T_CONTINUE_STATEMENT;
713
+
714
+ declare interface ContinueStatement extends ScripNodeBase {
715
+ type: CONTINUE_STATEMENT;
716
+ }
717
+
718
+ /**
719
+ * Applications can contribute to the registry with their custom (third-party)
720
+ * and application-specific components and others. This type holds the
721
+ * definitions of these extra artifacts.
722
+ */
723
+ declare type ContributesDefinition = {
724
+ /**
725
+ * Native xmlui components that come with the app.
726
+ */
727
+ components?: ComponentRendererDef[];
728
+ /**
729
+ * Application-specific compound components that come with the app.
730
+ */
731
+ compoundComponents?: CompoundComponentDef[];
732
+ /**
733
+ * Themes that come with the app.
734
+ */
735
+ themes?: ThemeDefinition[];
736
+ /**
737
+ * Custom behaviors that come with the app.
738
+ */
739
+ behaviors?: Behavior[];
740
+ };
741
+
742
+ /**
743
+ * This helper function creates a component renderer definition from its arguments.
744
+ * @param type The unique identifier of the component definition
745
+ * @param renderer The function that renders the component definition into a React node
746
+ * @param metadata Optional hints to help fix the rendering errors coming from invalid component property definitions
747
+ * @returns The view renderer definition composed of the arguments
748
+ */
749
+ declare function createComponentRenderer<TMd extends ComponentMetadata>(type: string, metadata: TMd, renderer: ComponentRendererFn<ComponentDef<any>>): ComponentRendererDef;
750
+
751
+ declare function createMetadata<TProps extends Record<string, ComponentPropertyMetadata>, TEvents extends Record<string, ComponentPropertyMetadata>, TContextVars extends Record<string, ComponentPropertyMetadata> = Record<string, any>, TApis extends Record<string, ComponentPropertyMetadata> = Record<string, any>>(metadata: ComponentMetadata<TProps, TEvents, TContextVars, TApis>): ComponentMetadata<TProps, TEvents, TContextVars, TApis>;
752
+
753
+ /**
754
+ * This helper function creates a user defined component renderer definition from its arguments.
755
+ * @param metadata The metadata of the user-defined component
756
+ * @param componentMarkup The XMLUI markup that defines the user-defined component
757
+ * @param codeBehind Optional code-behind script that contains variable and function definitions
758
+ * used by the component
759
+ * @returns The view renderer definition composed of the arguments
760
+ */
761
+ declare function createUserDefinedComponentRenderer<TMd extends ComponentMetadata>(metadata: TMd, def: any, codeBehind?: any): CompoundComponentRendererInfo;
762
+
763
+ declare function d(description: string, availableValues?: readonly PropertyValueDescription[], valueType?: PropertyValueType, defaultValue?: any, isValid?: IsValidFunction<any>, isRequired?: boolean): ComponentPropertyMetadata;
764
+
765
+ declare function dAutoFocus(): ComponentPropertyMetadata;
766
+
767
+ declare function dClick(comp: string): ComponentEventMetadata;
768
+
769
+ declare function dCollapse(comp: string): ComponentPropertyMetadata;
770
+
771
+ declare function dComponent(description: string): ComponentPropertyMetadata;
772
+
773
+ declare function dDidChange(comp: string): ComponentEventMetadata;
774
+
775
+ declare function dDidClose(comp: string): ComponentPropertyMetadata;
776
+
777
+ declare function dDidOpen(comp: string): ComponentPropertyMetadata;
778
+
779
+ declare type DecorationItem = {
780
+ start: number;
781
+ end: number;
782
+ properties: {
783
+ class?: string;
784
+ style?: string;
785
+ };
786
+ };
787
+
788
+ declare type DefaultThemeVars = Record<string | ThemeTone, string | Record<string, string>>;
789
+
790
+ declare type DefaultValueDescriptor = (string | ThemeIdDescriptor)[];
791
+
792
+ declare function dEnabled(isEnabled?: boolean): ComponentPropertyMetadata;
793
+
794
+ declare function dEndIcon(): ComponentPropertyMetadata;
795
+
796
+ declare function dEndText(): ComponentPropertyMetadata;
797
+
798
+ declare type DESTRUCTURE = typeof T_DESTRUCTURE;
799
+
800
+ declare interface Destructure extends DestructureBase {
801
+ type: DESTRUCTURE;
802
+ aDestr?: ArrayDestructure[];
803
+ oDestr?: ObjectDestructure[];
804
+ }
805
+
806
+ declare interface DestructureBase extends ExpressionBase {
807
+ id?: string;
808
+ aDestr?: ArrayDestructure[];
809
+ oDestr?: ObjectDestructure[];
810
+ }
811
+
812
+ declare function dExpand(comp: string): ComponentPropertyMetadata;
813
+
814
+ declare function dExpanded(comp: string): ComponentPropertyMetadata;
815
+
816
+ declare function dFocus(comp: string): ComponentPropertyMetadata;
817
+
818
+ declare function dGotFocus(comp: string): ComponentEventMetadata;
819
+
820
+ declare function dIndeterminate(defaultValue?: boolean): ComponentPropertyMetadata;
821
+
822
+ declare function dInit(comp: string): ComponentEventMetadata;
823
+
824
+ declare function dInitialValue(value?: any): ComponentPropertyMetadata;
825
+
826
+ declare function dInternal(description?: string): ComponentPropertyMetadata;
827
+
828
+ declare function dLabel(): ComponentPropertyMetadata;
829
+
830
+ declare function dLabelBreak(comp: string): ComponentPropertyMetadata;
831
+
832
+ declare function dLabelPosition(def?: string): ComponentPropertyMetadata;
833
+
834
+ declare function dLabelWidth(comp: string): ComponentPropertyMetadata;
835
+
836
+ declare function dLostFocus(comp: string): ComponentEventMetadata;
837
+
838
+ declare function dMaxLength(): ComponentPropertyMetadata;
839
+
840
+ declare function dMulti(): ComponentPropertyMetadata;
841
+
842
+ declare type DO_WHILE_STATEMENT = typeof T_DO_WHILE_STATEMENT;
843
+
844
+ declare function dOrientation(defaultValue: string, isRequired?: boolean): ComponentPropertyMetadata;
845
+
846
+ declare interface DoWhileStatement extends ScripNodeBase {
847
+ type: DO_WHILE_STATEMENT;
848
+ cond: Expression;
849
+ body: Statement;
850
+ }
851
+
852
+ declare function dPlaceholder(): ComponentPropertyMetadata;
853
+
854
+ declare function dReadonly(readOnly?: boolean): ComponentPropertyMetadata;
855
+
856
+ declare function dRequired(): ComponentPropertyMetadata;
857
+
858
+ declare const DropdownMenu: MemoExoticComponent<ForwardRefExoticComponent<DropdownMenuProps & RefAttributes<HTMLButtonElement>>>;
859
+
860
+ declare type DropdownMenuProps = {
861
+ triggerTemplate?: ReactNode;
862
+ children?: ReactNode;
863
+ label?: string;
864
+ registerComponentApi?: RegisterComponentApiFn;
865
+ style?: CSSProperties;
866
+ className?: string;
867
+ contentClassName?: string;
868
+ classes?: Record<string, string>;
869
+ alignment?: AlignmentOptions;
870
+ onWillOpen?: () => Promise<boolean | undefined>;
871
+ disabled?: boolean;
872
+ triggerButtonVariant?: string;
873
+ triggerButtonThemeColor?: string;
874
+ triggerButtonIcon?: string;
875
+ triggerButtonIconPosition?: IconPosition;
876
+ compact?: boolean;
877
+ modal?: boolean;
878
+ };
879
+
880
+ declare function dSetValueApi(): ComponentPropertyMetadata;
881
+
882
+ declare function dStartIcon(): ComponentPropertyMetadata;
883
+
884
+ declare function dStartText(): ComponentPropertyMetadata;
885
+
886
+ declare function dTriggerTemplate(comp: string): ComponentPropertyMetadata;
887
+
888
+ declare function dValidationStatus(value?: string): ComponentPropertyMetadata;
889
+
890
+ declare function dValue(): ComponentPropertyMetadata;
891
+
892
+ declare function dValueApi(): ComponentPropertyMetadata;
893
+
894
+ declare interface DynamicChildComponentDef extends ComponentDef {
895
+ renderChild: RenderChildFn;
896
+ childToRender: ComponentDef;
897
+ }
898
+
899
+ declare type EMPTY_STATEMENT = typeof T_EMPTY_STATEMENT;
900
+
901
+ declare interface EmptyStatement extends ScripNodeBase {
902
+ type: EMPTY_STATEMENT;
903
+ }
904
+
905
+ declare type EntrypointCompilation = CompilationUnit & {
906
+ /** The compiled markup of the main file */
907
+ definition: ComponentDef;
908
+ };
909
+
910
+ declare enum ErrCodesParser {
911
+ onlyOneElem = "U002",
912
+ expTagOpen = "U003",
913
+ expTagName = "U004",
914
+ expCloseStart = "U005",
915
+ expEndOrClose = "U006",
916
+ tagNameMismatch = "U007",
917
+ expEnd = "U008",
918
+ expAttrName = "U009",
919
+ expEq = "U010",
920
+ expAttrValue = "U011",
921
+ duplAttr = "U012",
922
+ uppercaseAttr = "U013",
923
+ expTagNameAfterNamespace = "U014",
924
+ expCloseStartWithName = "U015",
925
+ expAttrNameAfterNamespace = "U016",
926
+ unexpectedCloseTag = "U017",
927
+ expTagNameAfterCloseStart = "U019",
928
+ expAttrNameBeforeEq = "U020",
929
+ nestedCompDefs = "U021",
930
+ invalidNodeName = "U022",
931
+ multipleScriptTags = "U023",
932
+ compDefNameExp = "U024",
933
+ compDefNameUppercase = "U025",
934
+ globalNotAllowedInComponent = "U026",
935
+ invalidReusableCompAttr = "U027",
936
+ eventNoOnPrefix = "U028",
937
+ onlyNameValueAttrs = "U029",
938
+ nameAttrRequired = "U030",
939
+ usesValueOnly = "U031",
940
+ cantHaveNameAttr = "U032",
941
+ onlyFieldOrItemChild = "U033",
942
+ cannotMixFieldItem = "U034",
943
+ singleRootElem = "U035",
944
+ compDefNesedElem = "U036",
945
+ duplXmlns = "U037",
946
+ rootCompNoNamespace = "U038",
947
+ nsNotFound = "U039",
948
+ nsValueIncorrect = "U040",
949
+ nsSchemeIncorrect = "U041",
950
+ invalidChar = "W001",
951
+ untermStr = "W002",
952
+ untermComment = "W007",
953
+ untermCData = "W008",
954
+ untermScript = "W009"
955
+ }
956
+
957
+ declare const ErrCodesTransform: {
958
+ readonly expressionExpected: "W001";
959
+ readonly unexpectedToken: "W002";
960
+ readonly identifierExpected: "W003";
961
+ readonly closeBraceExpected: "W004";
962
+ readonly closeBracketExpected: "W005";
963
+ readonly closeParenExpected: "W006";
964
+ readonly invalidPropName: "W007";
965
+ readonly colonExpected: "W008";
966
+ readonly equalExpected: "W009";
967
+ readonly invalidArgList: "W010";
968
+ readonly forLoopVarRequired: "W011";
969
+ readonly openBraceExpected: "W012";
970
+ readonly catchOrFinallyExpected: "W013";
971
+ readonly openParenExpected: "W014";
972
+ readonly caseOrDefaultExpected: "W015";
973
+ readonly defaultCaseOnce: "W016";
974
+ readonly invalidSequence: "W017";
975
+ readonly invalidObjLiteral: "W018";
976
+ readonly alreadyImported: "W019";
977
+ readonly funcAlreadyDefined: "W020";
978
+ readonly alreadyExported: "W021";
979
+ readonly moduleNotFound: "W022";
980
+ readonly exportNotFound: "W023";
981
+ readonly functionExpected: "W024";
982
+ readonly fromExpected: "W025";
983
+ readonly stringLiteralExpected: "W026";
984
+ readonly varInImportedModule: "W027";
985
+ readonly invalidModuleStatement: "W028";
986
+ readonly moduleOnlyExports: "W029";
987
+ readonly nestedExport: "W030";
988
+ readonly dollarIdentifier: "W031";
989
+ readonly openBraceImportExpected: "W032";
990
+ readonly identifierInImportExpected: "W033";
991
+ readonly identifierAfterAsExpected: "W034";
992
+ readonly commaOrCloseBraceExpected: "W035";
993
+ readonly importFromExpected: "W036";
994
+ readonly importPathExpected: "W037";
995
+ readonly importNotAtTop: "W040";
996
+ readonly importedFunctionNotFound: "W039";
997
+ readonly circularImport: "W041";
998
+ readonly circularImportDetailed: "W042";
999
+ readonly reactiveVarInImportedModule: "W043";
1000
+ readonly constLetInImportedModule: "W044";
1001
+ readonly invalidStatementInImportedModule: "W045";
1002
+ readonly invalidAttrName: "T007";
1003
+ readonly noTextChild: "T010";
1004
+ readonly loaderIdRequired: "T013";
1005
+ readonly loaderCantHave: "T014";
1006
+ readonly valueAttrRequired: "T019";
1007
+ readonly cannotMixCompNonComp: "T020";
1008
+ readonly scriptNoAttrs: "T022";
1009
+ readonly cantPutReusableDefInSlot: "T024";
1010
+ readonly scriptParse: "T030";
1011
+ readonly globalNotAllowedInNested: "T031";
1012
+ };
1013
+
1014
+ declare type ErrCodesTransform = (typeof ErrCodesTransform)[keyof typeof ErrCodesTransform];
1015
+
1016
+ /**
1017
+ * This React component serves as an error boundary; it catches any errors within
1018
+ * the nested components
1019
+ */
1020
+ declare class ErrorBoundary extends default_2.Component<Props, State> {
1021
+ state: State;
1022
+ /**
1023
+ * This method implements the Error Boundaries for the React application.
1024
+ * It is invoked if errors occur during the rendering phase of any lifecycle
1025
+ * methods or children components.
1026
+ *
1027
+ * DO NOT DELETE this method! Though it is not referenced directly from the code,
1028
+ * it is a required part of the React component lifecycle.
1029
+ */
1030
+ static getDerivedStateFromError(error: Error): State;
1031
+ /**
1032
+ * Display any error in the console and trace it
1033
+ * @param error Error object
1034
+ * @param errorInfo Extra information about the error
1035
+ */
1036
+ componentDidCatch(error: Error, errorInfo: ErrorInfo): void;
1037
+ /**
1038
+ * Whenever the `restoreOnChangeOf` property of this component instance
1039
+ * changes, we reset the state to "no error".
1040
+ * @param prevProps Previous property values
1041
+ * @param prevState Previous state
1042
+ * @param snapshot Optional snapshot (not used in this component)
1043
+ */
1044
+ componentDidUpdate(prevProps: Readonly<Props>, prevState: Readonly<State>, snapshot?: any): void;
1045
+ /**
1046
+ * Display an error message if an error occurred during rendering.
1047
+ */
1048
+ render(): string | number | boolean | Iterable<default_2.ReactNode> | JSX_2.Element;
1049
+ }
1050
+
1051
+ declare interface ErrorForDisplay extends GeneralDiag {
1052
+ contextStartLine: number;
1053
+ contextSource: string;
1054
+ errPosLine: number;
1055
+ errPosCol: number;
1056
+ }
1057
+
1058
+ declare function errReportComponent(errors: ErrorForDisplay[], fileName: number | string, compoundCompName: string | undefined): any;
1059
+
1060
+ declare type Expression = UnaryExpression | BinaryExpression | SequenceExpression | ConditionalExpression | FunctionInvocationExpression | MemberAccessExpression | CalculatedMemberAccessExpression | Identifier | TemplateLiteralExpression | Literal | ArrayLiteral | ObjectLiteral | SpreadExpression | AssignmentExpression | NoArgExpression | ArrowExpression | PrefixOpExpression | PostfixOpExpression | ReactiveVarDeclaration | AwaitExpression | NewExpression | VarDeclaration | Destructure | ObjectDestructure | ArrayDestructure | SwitchCase;
1061
+
1062
+ declare type EXPRESSION_STATEMENT = typeof T_EXPRESSION_STATEMENT;
1063
+
1064
+ declare interface ExpressionBase extends ScripNodeBase {
1065
+ parenthesized?: number;
1066
+ source?: string;
1067
+ }
1068
+
1069
+ declare interface ExpressionStatement extends ScripNodeBase {
1070
+ type: EXPRESSION_STATEMENT;
1071
+ expr: Expression;
1072
+ }
1073
+
1074
+ declare interface Extension {
1075
+ namespace?: string;
1076
+ components?: ComponentExtension[];
1077
+ themes?: ThemeDefinition[];
1078
+ /** Optional global functions merged into app globalVars when the extension is registered. */
1079
+ functions?: Record<string, (...args: any[]) => any>;
1080
+ }
1081
+
1082
+ declare type ExtensionRegisteredCallbackFn = (extension: Extension) => void;
1083
+
1084
+ declare type FlowItemProps = {
1085
+ children: ReactNode;
1086
+ width?: string | number;
1087
+ minWidth?: string | number;
1088
+ maxWidth?: string | number;
1089
+ responsiveWidthProps?: Record<string, any>;
1090
+ forceBreak?: boolean;
1091
+ };
1092
+
1093
+ declare const FlowItemWrapper: ForwardRefExoticComponent<FlowItemProps & RefAttributes<unknown>>;
1094
+
1095
+ declare type FontDef = {
1096
+ fontFamily: string;
1097
+ fontStyle?: string;
1098
+ fontWeight?: string;
1099
+ fontDisplay?: string;
1100
+ format?: string;
1101
+ src: string;
1102
+ } | string;
1103
+
1104
+ declare type FOR_IN_STATEMENT = typeof T_FOR_IN_STATEMENT;
1105
+
1106
+ declare type FOR_OF_STATEMENT = typeof T_FOR_OF_STATEMENT;
1107
+
1108
+ declare type FOR_STATEMENT = typeof T_FOR_STATEMENT;
1109
+
1110
+ declare interface ForInStatement extends ScripNodeBase {
1111
+ type: FOR_IN_STATEMENT;
1112
+ varB: ForVarBinding;
1113
+ id: Identifier;
1114
+ expr: Expression;
1115
+ body: Statement;
1116
+ }
1117
+
1118
+ declare interface ForOfStatement extends ScripNodeBase {
1119
+ type: FOR_OF_STATEMENT;
1120
+ varB: ForVarBinding;
1121
+ id: Identifier;
1122
+ expr: Expression;
1123
+ body: Statement;
1124
+ }
1125
+
1126
+ declare interface ForStatement extends ScripNodeBase {
1127
+ type: FOR_STATEMENT;
1128
+ init?: ExpressionStatement | LetStatement;
1129
+ cond?: Expression;
1130
+ upd?: Expression;
1131
+ body: Statement;
1132
+ }
1133
+
1134
+ declare type ForVarBinding = "let" | "const" | "none";
1135
+
1136
+ declare type FUNCTION_DECLARATION = typeof T_FUNCTION_DECLARATION;
1137
+
1138
+ declare type FUNCTION_INVOCATION_EXPRESSION = typeof T_FUNCTION_INVOCATION_EXPRESSION;
1139
+
1140
+ declare interface FunctionDeclaration extends ScripNodeBase {
1141
+ type: FUNCTION_DECLARATION | ASYNC_FUNCTION_DECLARATION;
1142
+ id: Identifier;
1143
+ args: Expression[];
1144
+ stmt: BlockStatement;
1145
+ async?: boolean;
1146
+ }
1147
+
1148
+ declare interface FunctionInvocationExpression extends ExpressionBase {
1149
+ type: FUNCTION_INVOCATION_EXPRESSION;
1150
+ obj: Expression;
1151
+ arguments: Expression[];
1152
+ }
1153
+
1154
+ declare interface GeneralDiag {
1155
+ readonly code: ErrCodesParser | ErrCodesTransform;
1156
+ readonly message: string;
1157
+ readonly pos: number;
1158
+ readonly end: number;
1159
+ readonly contextPos: number;
1160
+ readonly contextEnd: number;
1161
+ }
1162
+
1163
+ declare type GenericToken<T> = {
1164
+ text: string;
1165
+ type: T;
1166
+ startPosition: number;
1167
+ endPosition: number;
1168
+ startLine: number;
1169
+ endLine: number;
1170
+ startColumn: number;
1171
+ endColumn: number;
1172
+ };
1173
+
1174
+ declare function getColor(varName: string, format?: "hex" | "rgb" | "hsl"): string;
1175
+
1176
+ declare type GlobalProps = Record<string, any>;
1177
+
1178
+ declare interface hasApiCondition extends ConditionBase {
1179
+ type: "hasApi";
1180
+ apiName: string;
1181
+ }
1182
+
1183
+ declare interface hasContextVarCondition extends ConditionBase {
1184
+ type: "hasContextVar";
1185
+ contextVarName: string;
1186
+ }
1187
+
1188
+ declare interface hasEventCondition extends ConditionBase {
1189
+ type: "hasEvent";
1190
+ eventName: string;
1191
+ }
1192
+
1193
+ declare interface hasNoApiCondition extends ConditionBase {
1194
+ type: "hasNoApi";
1195
+ apiName: string;
1196
+ }
1197
+
1198
+ declare interface hasNoContextVarCondition extends ConditionBase {
1199
+ type: "hasNoContextVar";
1200
+ contextVarName: string;
1201
+ }
1202
+
1203
+ declare interface hasNoEventCondition extends ConditionBase {
1204
+ type: "hasNoEvent";
1205
+ eventName: string;
1206
+ }
1207
+
1208
+ declare interface hasNoPropCondition extends ConditionBase {
1209
+ type: "hasNoProp";
1210
+ propName: string;
1211
+ }
1212
+
1213
+ declare interface hasPropCondition extends ConditionBase {
1214
+ type: "hasProp";
1215
+ propName: string;
1216
+ }
1217
+
1218
+ declare const Heading: default_2.MemoExoticComponent<default_2.ForwardRefExoticComponent<Omit<HeadingProps, "ref"> & default_2.RefAttributes<HTMLHeadingElement>>>;
1219
+
1220
+ declare type HeadingLevel = typeof headingLevels[number];
1221
+
1222
+ declare const headingLevels: readonly ["h1", "h2", "h3", "h4", "h5", "h6"];
1223
+
1224
+ declare type HeadingProps = {
1225
+ uid?: string;
1226
+ level?: HeadingLevel;
1227
+ children: ReactNode;
1228
+ sx?: CSSProperties;
1229
+ style?: CSSProperties;
1230
+ maxLines?: number;
1231
+ preserveLinebreaks?: boolean;
1232
+ ellipses?: boolean;
1233
+ title?: string;
1234
+ className?: string;
1235
+ classes?: Record<string, string>;
1236
+ showAnchor?: boolean;
1237
+ anchorRenderer?: (anchorId: string, anchorHref: string) => ReactNode;
1238
+ registerComponentApi?: RegisterComponentApiFn;
1239
+ [furtherProps: string]: any;
1240
+ };
1241
+
1242
+ declare function HiddenOption(option: Option_2): JSX_2.Element;
1243
+
1244
+ declare interface IApiInterceptor<TRequestInit = any> {
1245
+ hasMockForRequest(url: string, options: TRequestInit): boolean;
1246
+ executeMockedFetch(url: string, options: TRequestInit): Promise<any>;
1247
+ }
1248
+
1249
+ declare interface IApiInterceptorContext {
1250
+ isMocked: (url: string) => boolean;
1251
+ initialized: boolean;
1252
+ forceInitialize: () => void;
1253
+ interceptorWorker: SetupWorker | null;
1254
+ apiInstance: IApiInterceptor | null;
1255
+ }
1256
+
1257
+ declare interface IAppLayoutContext {
1258
+ layout: AppLayoutType;
1259
+ navPanelVisible: boolean;
1260
+ navPanelCollapsed: boolean;
1261
+ setNavPanelCollapsed: (collapsed: boolean) => void;
1262
+ toggleNavPanelCollapsed: () => void;
1263
+ drawerVisible: boolean;
1264
+ showDrawer: () => void;
1265
+ hideDrawer: () => void;
1266
+ toggleDrawer: () => void;
1267
+ hasRegisteredNavPanel: boolean;
1268
+ hasRegisteredHeader: boolean;
1269
+ navPanelDef?: ComponentDef;
1270
+ logoContentDef?: ComponentDef;
1271
+ logo?: string;
1272
+ logoDark?: string;
1273
+ logoLight?: string;
1274
+ registerSubNavPanelSlot?: (slot: HTMLElement) => void;
1275
+ subNavPanelSlot?: HTMLElement;
1276
+ scrollWholePage?: boolean;
1277
+ isFullVerticalWidth?: boolean;
1278
+ isNested?: boolean;
1279
+ setScrollRestorationEnabled?: (enabled: boolean) => void;
1280
+ }
1281
+
1282
+ declare interface IconBaseProps extends default_2.SVGAttributes<SVGElement> {
1283
+ children?: default_2.ReactNode;
1284
+ color?: string;
1285
+ title?: string;
1286
+ size?: string;
1287
+ isInline?: boolean;
1288
+ fallback?: string;
1289
+ style?: CSSProperties;
1290
+ className?: string;
1291
+ tabIndex?: number;
1292
+ onKeyDown?: default_2.KeyboardEventHandler<any>;
1293
+ }
1294
+
1295
+ declare type IconPosition = (typeof iconPositionValues)[number];
1296
+
1297
+ declare const iconPositionValues: readonly ["start", "end"];
1298
+
1299
+ declare type IDENTIFIER = typeof T_IDENTIFIER;
1300
+
1301
+ declare interface Identifier extends ExpressionBase {
1302
+ type: IDENTIFIER;
1303
+ name: string;
1304
+ }
1305
+
1306
+ declare type IF_STATEMENT = typeof T_IF_STATEMENT;
1307
+
1308
+ declare interface IfStatement extends ScripNodeBase {
1309
+ type: IF_STATEMENT;
1310
+ cond: Expression;
1311
+ thenB: Statement;
1312
+ elseB?: Statement;
1313
+ }
1314
+
1315
+ declare type IMPORT_DECLARATION = typeof T_IMPORT_DECLARATION;
1316
+
1317
+ declare type IMPORT_SPECIFIER = typeof T_IMPORT_SPECIFIER;
1318
+
1319
+ declare interface ImportDeclaration extends ScripNodeBase {
1320
+ type: IMPORT_DECLARATION;
1321
+ specifiers: ImportSpecifier[];
1322
+ source: Literal;
1323
+ }
1324
+
1325
+ declare interface ImportSpecifier extends ExpressionBase {
1326
+ type: IMPORT_SPECIFIER;
1327
+ imported: Identifier;
1328
+ local?: Identifier;
1329
+ }
1330
+
1331
+ declare interface InteractionDetail {
1332
+ [key: string]: any;
1333
+ }
1334
+
1335
+ declare type InterceptorOperationDef = {
1336
+ method: "get" | "post" | "put" | "delete" | "patch" | "head" | "options";
1337
+ url: string | Array<string>;
1338
+ handler: string;
1339
+ requestShape?: any;
1340
+ responseShape?: any;
1341
+ pathParamTypes?: Record<string, string>;
1342
+ queryParamTypes?: Record<string, string>;
1343
+ successStatusCode?: number;
1344
+ };
1345
+
1346
+ declare interface isNotTypeCondition extends ConditionBase {
1347
+ type: "isNotType";
1348
+ nodeType: string;
1349
+ }
1350
+
1351
+ declare interface isTypeCondition extends ConditionBase {
1352
+ type: "isType";
1353
+ nodeType: string;
1354
+ }
1355
+
1356
+ declare type IsValidFunction<T> = (propKey: string, propValue: T) => string | string[] | undefined | null;
1357
+
1358
+ declare type LayoutContext<T extends ComponentDef = ComponentDef> = {
1359
+ type?: string;
1360
+ depth?: number;
1361
+ parent?: LayoutContext<T>;
1362
+ orientation?: string;
1363
+ itemWidth?: string;
1364
+ ignoreLayoutProps?: string[];
1365
+ wrapChild?: (context: RendererContext<T>, renderedChild: ReactNode, metadata?: ComponentMetadata) => ReactNode;
1366
+ [key: string]: any;
1367
+ };
1368
+
1369
+ declare type LET_STATEMENT = typeof T_LET_STATEMENT;
1370
+
1371
+ declare interface LetStatement extends ScripNodeBase {
1372
+ type: LET_STATEMENT;
1373
+ decls: VarDeclaration[];
1374
+ }
1375
+
1376
+ declare const LinkNative: MemoExoticComponent<ForwardRefExoticComponent< {
1377
+ to: string | {
1378
+ pathname: string;
1379
+ queryParams?: Record<string, any>;
1380
+ };
1381
+ children?: ReactNode;
1382
+ label?: string;
1383
+ icon?: string;
1384
+ active?: boolean;
1385
+ enabled?: boolean;
1386
+ horizontalAlignment?: string;
1387
+ verticalAlignment?: string;
1388
+ onClick?: () => void;
1389
+ style?: CSSProperties;
1390
+ className?: string;
1391
+ classes?: Record<string, string>;
1392
+ noIndicator?: boolean;
1393
+ maxLines?: number;
1394
+ preserveLinebreaks?: boolean;
1395
+ ellipses?: boolean;
1396
+ overflowMode?: OverflowMode;
1397
+ breakMode?: BreakMode;
1398
+ } & Partial<Pick<HTMLAnchorElement, "type" | "rel" | "target" | "download" | "referrerPolicy" | "ping" | "hreflang">> & RefAttributes<HTMLDivElement>>>;
1399
+
1400
+ declare type LITERAL = typeof T_LITERAL;
1401
+
1402
+ declare interface Literal extends ExpressionBase {
1403
+ type: LITERAL;
1404
+ value: any;
1405
+ }
1406
+
1407
+ declare type LogContextType = {
1408
+ logs: LogEntry[];
1409
+ addLog: (args: any[]) => void;
1410
+ };
1411
+
1412
+ declare type LogEntry = {
1413
+ timestamp: Date;
1414
+ args: any[];
1415
+ };
1416
+
1417
+ declare type LoggedInUserDto = {
1418
+ id: number;
1419
+ email: string;
1420
+ name: string;
1421
+ imageRelativeUrl: string;
1422
+ permissions: Record<string, string>;
1423
+ };
1424
+
1425
+ declare type LogInteractionFn = (interaction: string, detail?: InteractionDetail) => void;
1426
+
1427
+ declare const Logo: MemoExoticComponent<ForwardRefExoticComponent<LogoProps & RefAttributes<HTMLImageElement>>>;
1428
+
1429
+ declare type LogoProps = {
1430
+ alt?: string;
1431
+ style?: CSSProperties;
1432
+ className?: string;
1433
+ classes?: Record<string, string>;
1434
+ inline?: boolean;
1435
+ };
1436
+
1437
+ declare type LookupActionOptions = {
1438
+ signError?: boolean;
1439
+ eventName?: string;
1440
+ ephemeral?: boolean;
1441
+ defaultHandler?: string;
1442
+ context?: any;
1443
+ componentType?: string;
1444
+ componentLabel?: string;
1445
+ componentId?: string;
1446
+ sourceFileId?: string | number;
1447
+ sourceRange?: {
1448
+ start: number;
1449
+ end: number;
1450
+ };
1451
+ };
1452
+
1453
+ declare type LookupAsyncFn = (action: string | undefined, actionOptions?: LookupActionOptions) => AsyncFunction | undefined;
1454
+
1455
+ declare type LookupAsyncFnInner = (action: string | undefined, uid: symbol, actionOptions?: LookupActionOptions) => AsyncFunction | undefined;
1456
+
1457
+ declare type LookupEventHandlerFn<TMd extends ComponentMetadata = ComponentMetadata> = (eventName: keyof NonNullable<TMd["events"]>, actionOptions?: LookupActionOptions) => AsyncFunction | undefined;
1458
+
1459
+ declare type LookupSyncFn = (action: string | undefined) => SyncFunction | undefined;
1460
+
1461
+ declare const MediaBreakpointKeys: readonly ["xs", "sm", "md", "lg", "xl", "xxl"];
1462
+
1463
+ declare type MediaBreakpointType = (typeof MediaBreakpointKeys)[number];
1464
+
1465
+ declare type MediaSize = {
1466
+ phone: boolean;
1467
+ landscapePhone: boolean;
1468
+ tablet: boolean;
1469
+ desktop: boolean;
1470
+ largeDesktop: boolean;
1471
+ xlDesktop: boolean;
1472
+ smallScreen: boolean;
1473
+ largeScreen: boolean;
1474
+ size: MediaBreakpointType;
1475
+ sizeIndex: number;
1476
+ };
1477
+
1478
+ declare type MEMBER_ACCESS_EXPRESSION = typeof T_MEMBER_ACCESS_EXPRESSION;
1479
+
1480
+ declare interface MemberAccessExpression extends ExpressionBase {
1481
+ type: MEMBER_ACCESS_EXPRESSION;
1482
+ obj: Expression;
1483
+ member: string;
1484
+ opt?: boolean;
1485
+ }
1486
+
1487
+ declare const MemoizedItem: MemoExoticComponent<({ node, renderChild, layoutContext, contextVars, vars, functions, }: MemoizedItemProps) => JSX_2.Element>;
1488
+
1489
+ declare type MemoizedItemProps = {
1490
+ node: ComponentDef | Array<ComponentDef>;
1491
+ renderChild: RenderChildFn;
1492
+ layoutContext?: LayoutContext;
1493
+ contextVars?: Record<string, any>;
1494
+ /** Optional variable definitions to include on the Container wrapper so they can
1495
+ * be resolved in the new context (e.g. with $param available). */
1496
+ vars?: Record<string, any>;
1497
+ /** Optional function definitions to include on the Container wrapper. */
1498
+ functions?: Record<string, any>;
1499
+ };
1500
+
1501
+ declare const MenuItem: MemoExoticComponent<ForwardRefExoticComponent<Omit<MenuItemProps, "ref"> & RefAttributes<unknown>>>;
1502
+
1503
+ declare type MenuItemProps = {
1504
+ icon?: ReactNode;
1505
+ iconPosition?: IconPosition;
1506
+ onClick?: (event: any) => void;
1507
+ children?: ReactNode;
1508
+ label?: string;
1509
+ style?: CSSProperties;
1510
+ className?: string;
1511
+ classes?: Record<string, string>;
1512
+ to?: string;
1513
+ active?: boolean;
1514
+ enabled?: boolean;
1515
+ compact?: boolean;
1516
+ [key: string]: any;
1517
+ };
1518
+
1519
+ declare type Message = ValueOrFunction<Renderable, Toast>;
1520
+
1521
+ /**
1522
+ * Represents a module error
1523
+ */
1524
+ declare type ModuleErrors = Record<string, ScriptParserErrorMessage[]>;
1525
+
1526
+ declare const NavPanelCollapseButton: NamedExoticComponent<NavPanelCollapseButtonProps>;
1527
+
1528
+ declare type NavPanelCollapseButtonProps = {
1529
+ icon?: string;
1530
+ iconCollapsed?: string;
1531
+ "aria-label"?: string;
1532
+ "aria-labelCollapsed"?: string;
1533
+ };
1534
+
1535
+ declare const NestedApp: NamedExoticComponent<NestedAppProps>;
1536
+
1537
+ declare type NestedAppProps = {
1538
+ api?: any;
1539
+ app: string;
1540
+ components?: any[];
1541
+ config?: any;
1542
+ activeTone?: ThemeTone;
1543
+ activeTheme?: string;
1544
+ height?: string | number;
1545
+ style?: CSSProperties;
1546
+ refreshVersion?: number;
1547
+ withSplashScreen?: boolean;
1548
+ className?: string;
1549
+ resolvedApp?: ComponentDef | CompoundComponentDef;
1550
+ resolvedComponents?: CompoundComponentDef[];
1551
+ asIsland?: boolean;
1552
+ };
1553
+
1554
+ declare type NEW_EXPRESSION = typeof T_NEW_EXPRESSION;
1555
+
1556
+ declare interface NewExpression extends ExpressionBase {
1557
+ type: NEW_EXPRESSION;
1558
+ callee: Expression;
1559
+ arguments: Expression[];
1560
+ }
1561
+
1562
+ declare type NO_ARG_EXPRESSION = typeof T_NO_ARG_EXPRESSION;
1563
+
1564
+ declare interface NoArgExpression extends ExpressionBase {
1565
+ type: NO_ARG_EXPRESSION;
1566
+ }
1567
+
1568
+ declare interface NonVisualCondition extends ConditionBase {
1569
+ type: "nonVisual";
1570
+ }
1571
+
1572
+ declare interface NotCondition extends ConditionBase {
1573
+ type: "not";
1574
+ condition: BehaviorCondition;
1575
+ }
1576
+
1577
+ declare type NotificationPosition = "top-start" | "top-center" | "top-end" | "bottom-start" | "bottom-center" | "bottom-end";
1578
+
1579
+ declare type OBJECT_DESTRUCTURE = typeof T_OBJECT_DESTRUCTURE;
1580
+
1581
+ declare type OBJECT_LITERAL = typeof T_OBJECT_LITERAL;
1582
+
1583
+ declare interface ObjectDestructure extends DestructureBase {
1584
+ type: OBJECT_DESTRUCTURE;
1585
+ id: string;
1586
+ alias?: string;
1587
+ }
1588
+
1589
+ declare interface ObjectLiteral extends ExpressionBase {
1590
+ type: OBJECT_LITERAL;
1591
+ props: (SpreadExpression | [Expression, Expression])[];
1592
+ }
1593
+
1594
+ /**
1595
+ * Several components offer a list of options to select from. This type describes such an option.
1596
+ */
1597
+ declare type Option_2 = {
1598
+ label: string;
1599
+ value: string;
1600
+ enabled?: boolean;
1601
+ style?: CSSProperties;
1602
+ className?: string;
1603
+ readOnly?: boolean;
1604
+ keywords?: string[];
1605
+ children?: ReactNode;
1606
+ optionRenderer?: (contextVars: any) => ReactNode;
1607
+ [key: string]: any;
1608
+ };
1609
+
1610
+ declare const OptionContext: Context<OptionContextValue>;
1611
+
1612
+ declare type OptionContextValue = {
1613
+ onOptionAdd: (option: Option_2) => void;
1614
+ onOptionRemove: (option: Option_2) => void;
1615
+ };
1616
+
1617
+ declare function OptionTypeProvider({ children, Component, }: {
1618
+ children: ReactNode;
1619
+ Component: ComponentType<Option_2>;
1620
+ }): JSX_2.Element;
1621
+
1622
+ declare interface OrCondition extends ConditionBase {
1623
+ type: "or";
1624
+ conditions: BehaviorCondition[];
1625
+ }
1626
+
1627
+ declare type OrientationOptions = (typeof orientationOptionValues)[number];
1628
+
1629
+ declare const orientationOptionValues: readonly ["horizontal", "vertical"];
1630
+
1631
+ declare type OverflowMode = (typeof OverflowModeKeys)[number];
1632
+
1633
+ declare const OverflowModeKeys: readonly ["none", "ellipsis", "scroll", "flow"];
1634
+
1635
+ declare interface ParentRenderContext {
1636
+ renderChild: RenderChildFn;
1637
+ children?: ComponentDef[];
1638
+ props?: Record<string, any>;
1639
+ }
1640
+
1641
+ declare type ParserResult = {
1642
+ component: null | ComponentDef | CompoundComponentDef;
1643
+ errors: ErrorForDisplay[];
1644
+ erroneousCompoundComponentName?: string;
1645
+ };
1646
+
1647
+ /**
1648
+ * This function extracts CSS variables from the specified SCSS input. It uses a hack to convert the CSS input to JSON
1649
+ * and then calls a JSON parser to create the desired object.
1650
+ * @param scssStr The scss input
1651
+ */
1652
+ declare function parseScssVar(scssStr: any): any;
1653
+
1654
+ declare const Part: NamedExoticComponent<Props_4>;
1655
+
1656
+ declare type POSTFIX_OP_EXPRESSION = typeof T_POSTFIX_OP_EXPRESSION;
1657
+
1658
+ declare interface PostfixOpExpression extends ExpressionBase {
1659
+ type: POSTFIX_OP_EXPRESSION;
1660
+ op: PrefixOpSymbol;
1661
+ expr: Expression;
1662
+ }
1663
+
1664
+ declare type PREFIX_OP_EXPRESSION = typeof T_PREFIX_OP_EXPRESSION;
1665
+
1666
+ declare interface PrefixOpExpression extends ExpressionBase {
1667
+ type: PREFIX_OP_EXPRESSION;
1668
+ op: PrefixOpSymbol;
1669
+ expr: Expression;
1670
+ }
1671
+
1672
+ declare type PrefixOpSymbol = "++" | "--";
1673
+
1674
+ /** Contains the compilation result of a project */
1675
+ declare type ProjectCompilation = {
1676
+ /** The compiled Main.xmlui file (with its optional code behind) */
1677
+ entrypoint: EntrypointCompilation;
1678
+ /** The compiled component files (with their optional code behind) */
1679
+ components: ComponentCompilation[];
1680
+ /** The compiled theme files */
1681
+ themes: Record<string, ThemeDefinition>;
1682
+ };
1683
+
1684
+ declare interface PropContainsCondition extends ConditionBase {
1685
+ type: "propContains";
1686
+ propName: string;
1687
+ }
1688
+
1689
+ declare interface PropEqualsCondition extends ConditionBase {
1690
+ type: "propEquals";
1691
+ propName: string;
1692
+ }
1693
+
1694
+ declare type PropertyValueDescription<T = string | number> = T | {
1695
+ value: T;
1696
+ description: string;
1697
+ };
1698
+
1699
+ declare type PropertyValueType = "boolean" | "string" | "number" | "any" | "ComponentDef";
1700
+
1701
+ declare interface PropNotEqualsCondition extends ConditionBase {
1702
+ type: "propNotEquals";
1703
+ propName: string;
1704
+ }
1705
+
1706
+ declare interface Props {
1707
+ children: ReactNode;
1708
+ node?: ComponentLike;
1709
+ location?: string;
1710
+ }
1711
+
1712
+ declare type Props_2 = {
1713
+ interceptor?: ApiInterceptorDefinition;
1714
+ children: ReactNode;
1715
+ parentInterceptorContext?: IApiInterceptorContext;
1716
+ waitForApiInterceptor?: boolean;
1717
+ useHashBasedRouting?: boolean;
1718
+ };
1719
+
1720
+ /**
1721
+ * TextBox component that supports text input with various configurations.
1722
+ * Features:
1723
+ * - Standard text, password, and search input types
1724
+ * - Input validation states
1725
+ * - Start/end adornments (icons and text)
1726
+ * - Password visibility toggle option
1727
+ */
1728
+ declare type Props_3 = {
1729
+ id?: string;
1730
+ type?: "text" | "password" | "search";
1731
+ value?: string;
1732
+ updateState?: UpdateStateFn;
1733
+ initialValue?: string;
1734
+ style?: CSSProperties;
1735
+ classes?: Record<string, string>;
1736
+ className?: string;
1737
+ maxLength?: number;
1738
+ enabled?: boolean;
1739
+ placeholder?: string;
1740
+ validationStatus?: ValidationStatus;
1741
+ onDidChange?: (newValue: string) => void;
1742
+ onFocus?: () => void;
1743
+ onBlur?: () => void;
1744
+ onKeyDown?: (event: default_2.KeyboardEvent<HTMLInputElement>) => void;
1745
+ registerComponentApi?: RegisterComponentApiFn;
1746
+ startText?: string;
1747
+ startIcon?: string;
1748
+ endText?: string;
1749
+ endIcon?: string;
1750
+ gap?: string;
1751
+ autoFocus?: boolean;
1752
+ readOnly?: boolean;
1753
+ tabIndex?: number;
1754
+ required?: boolean;
1755
+ /**
1756
+ * When true and type is "password", displays a toggle icon to show/hide password text
1757
+ * Default: false
1758
+ */
1759
+ showPasswordToggle?: boolean;
1760
+ /**
1761
+ * The icon to show when the password is visible
1762
+ * Default: "eye"
1763
+ */
1764
+ passwordVisibleIcon?: string;
1765
+ /**
1766
+ * The icon to show when the password is hidden
1767
+ * Default: "eye-off"
1768
+ */
1769
+ passwordHiddenIcon?: string;
1770
+ verboseValidationFeedback?: boolean;
1771
+ validationIconSuccess?: string;
1772
+ validationIconError?: string;
1773
+ invalidMessages?: string[];
1774
+ };
1775
+
1776
+ declare type Props_4 = {
1777
+ children: ReactNode;
1778
+ partId?: string;
1779
+ };
1780
+
1781
+ declare type Props_5 = {
1782
+ id?: string;
1783
+ isRoot?: boolean;
1784
+ applyIf?: boolean;
1785
+ disableInlineStyle?: boolean;
1786
+ layoutContext?: LayoutContext;
1787
+ renderChild?: RenderChildFn;
1788
+ node?: ComponentDef;
1789
+ tone?: ThemeTone;
1790
+ toastDuration?: number;
1791
+ notificationPosition?: NotificationPosition;
1792
+ themeVars?: Record<string, string>;
1793
+ children?: ReactNode;
1794
+ };
1795
+
1796
+ /**
1797
+ * PubSub service interface for managing topic subscriptions and publications.
1798
+ */
1799
+ declare interface PubSubService {
1800
+ /**
1801
+ * Publishes a topic with optional data to all subscribers.
1802
+ * @param topic The topic to publish (string or number)
1803
+ * @param data Optional data payload to send to subscribers
1804
+ */
1805
+ publishTopic: (topic: string | number, data?: any) => void;
1806
+ /**
1807
+ * Subscribes a callback to one or more topics.
1808
+ * @param topics Single topic or array of topics to subscribe to
1809
+ * @param callback Function to call when any subscribed topic is published
1810
+ */
1811
+ subscribe: (topics: string | number | (string | number)[], callback: TopicCallback) => void;
1812
+ /**
1813
+ * Unsubscribes a callback from all topics it was subscribed to.
1814
+ * @param callback The callback to unsubscribe
1815
+ */
1816
+ unsubscribe: (callback: TopicCallback) => void;
1817
+ }
1818
+
1819
+ declare type REACTIVE_VAR_DECLARATION = typeof T_REACTIVE_VAR_DECLARATION;
1820
+
1821
+ declare interface ReactiveVarDeclaration extends ExpressionBase {
1822
+ type: REACTIVE_VAR_DECLARATION;
1823
+ id: Identifier;
1824
+ expr: Expression;
1825
+ }
1826
+
1827
+ declare type RegisterComponentApiFn = (componentApi: ComponentApi) => void;
1828
+
1829
+ declare type RenderChildFn<L extends ComponentDef = ComponentDef> = (children?: ComponentDef | ComponentDef[] | DynamicChildComponentDef | DynamicChildComponentDef[] | string, layoutContext?: LayoutContext<L>, parentRenderContext?: ParentRenderContext, uidInfoRef?: RefObject<Record<string, any>>, ref?: ForwardedRef<any>, rest?: Record<string, any>) => ReactNode | ReactNode[];
1830
+
1831
+ /**
1832
+ * Configuration for a render-prop template.
1833
+ */
1834
+ declare type RendererConfig = {
1835
+ /**
1836
+ * The React prop name on the native component.
1837
+ * Defaults to replacing "Template" with "Renderer" in the XMLUI prop name
1838
+ * (e.g., optionTemplate → optionRenderer).
1839
+ */
1840
+ reactProp?: string;
1841
+ /**
1842
+ * Maps callback arguments to context variables injected into the template.
1843
+ *
1844
+ * - Array form: positional mapping, e.g. ["$item", "$selectedValue"]
1845
+ * Each entry maps args[i] to the named context variable.
1846
+ * Use null to skip a position.
1847
+ * - Function form: receives all callback args, returns context vars object.
1848
+ * Use for computed vars (e.g., $isFirst: rowIndex === 0).
1849
+ */
1850
+ contextVars: (string | null)[] | ((...args: any[]) => Record<string, any>);
1851
+ };
1852
+
1853
+ declare interface RendererContext<TMd extends ComponentMetadata = ComponentMetadata> extends ComponentRendererContextBase<TMd> {
1854
+ uid: symbol;
1855
+ updateState: UpdateStateFn;
1856
+ contextVars: Record<string, any>;
1857
+ extractValue: ValueExtractor;
1858
+ extractResourceUrl: (url?: string) => string | undefined;
1859
+ lookupEventHandler: LookupEventHandlerFn<TMd>;
1860
+ registerComponentApi: RegisterComponentApiFn;
1861
+ lookupAction: LookupAsyncFn;
1862
+ lookupSyncCallback: LookupSyncFn;
1863
+ className?: string;
1864
+ classes?: Record<string, string>;
1865
+ logInteraction: LogInteractionFn;
1866
+ }
1867
+
1868
+ declare type RETURN_STATEMENT = typeof T_RETURN_STATEMENT;
1869
+
1870
+ declare interface ReturnStatement extends ScripNodeBase {
1871
+ type: RETURN_STATEMENT;
1872
+ expr?: Expression;
1873
+ }
1874
+
1875
+ declare type RootComponentProps = {
1876
+ node: ComponentDef;
1877
+ children?: ReactNode;
1878
+ functions?: Record<string, any>;
1879
+ vars?: Record<string, any>;
1880
+ };
1881
+
1882
+ declare type RuntimeProps = {
1883
+ default?: any;
1884
+ component?: ComponentDef | CompoundComponentDef;
1885
+ file?: string;
1886
+ src?: string;
1887
+ };
1888
+
1889
+ declare type SchemaDescriptor = {
1890
+ tables: Array<TableDescriptor>;
1891
+ relationships?: any;
1892
+ dtos?: any;
1893
+ };
1894
+
1895
+ declare interface ScripNodeBase {
1896
+ type: ScriptNode["type"];
1897
+ nodeId: number;
1898
+ startToken?: ScriptingToken;
1899
+ endToken?: ScriptingToken;
1900
+ }
1901
+
1902
+ declare interface Scriptable {
1903
+ script?: string;
1904
+ scriptCollected?: CollectedDeclarations;
1905
+ scriptError?: any;
1906
+ }
1907
+
1908
+ declare type ScriptingToken = GenericToken<TokenType>;
1909
+
1910
+ declare type ScriptNode = Statement | Expression;
1911
+
1912
+ declare interface ScriptParserErrorMessage {
1913
+ code: ScriptParsingErrorCodes;
1914
+ text: string;
1915
+ position?: number;
1916
+ line?: number;
1917
+ column?: number;
1918
+ }
1919
+
1920
+ declare type ScriptParsingErrorCodes = "W001" | "W002" | "W003" | "W004" | "W005" | "W006" | "W007" | "W008" | "W009" | "W010" | "W011" | "W012" | "W013" | "W014" | "W015" | "W016" | "W017" | "W018" | "W019" | "W020" | "W021" | "W022" | "W023" | "W024" | "W025" | "W026" | "W027" | "W028" | "W029" | "W030" | "W031" | "W032" | "W033" | "W034" | "W035" | "W036" | "W037" | "W040" | "W038" | "W039" | "W041" | "W042" | "W043" | "W044" | "W045";
1921
+
1922
+ declare type ScrollStyle = "normal" | "overlay" | "whenMouseOver" | "whenScrolling";
1923
+
1924
+ declare const SEARCH_CATEGORIES: readonly ["docs", "blog", "news", "get-started"];
1925
+
1926
+ declare const SEARCH_DEFAULT_CATEGORY = "other";
1927
+
1928
+ declare type SearchItemData = {
1929
+ path: string;
1930
+ title: string;
1931
+ content: string;
1932
+ category?: string;
1933
+ };
1934
+
1935
+ declare type SEQUENCE_EXPRESSION = typeof T_SEQUENCE_EXPRESSION;
1936
+
1937
+ declare interface SequenceExpression extends ExpressionBase {
1938
+ type: SEQUENCE_EXPRESSION;
1939
+ exprs: Expression[];
1940
+ loose?: boolean;
1941
+ }
1942
+
1943
+ declare type SizeType = (typeof sizeValues)[number];
1944
+
1945
+ declare const sizeValues: readonly ["xs", "sm", "md", "lg", "xl"];
1946
+
1947
+ declare const Spinner: MemoExoticComponent<ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & {
1948
+ delay?: number;
1949
+ fullScreen?: boolean;
1950
+ classes?: Record<string, string>;
1951
+ } & RefAttributes<HTMLDivElement>>>;
1952
+
1953
+ declare const Splitter: default_2.MemoExoticComponent<default_2.ForwardRefExoticComponent<Omit<default_2.HTMLAttributes<HTMLDivElement>, "children"> & {
1954
+ children?: default_2.ReactNode;
1955
+ classes?: Record<string, string>;
1956
+ splitterTemplate?: default_2.ReactNode;
1957
+ orientation?: OrientationOptions;
1958
+ floating?: boolean;
1959
+ resize?: (sizes: [number, number]) => void;
1960
+ swapped?: boolean;
1961
+ initialPrimarySize?: string;
1962
+ minPrimarySize?: string;
1963
+ maxPrimarySize?: string;
1964
+ visibleChildCount?: number;
1965
+ } & default_2.RefAttributes<HTMLDivElement>>>;
1966
+
1967
+ declare type SPREAD_EXPRESSION = typeof T_SPREAD_EXPRESSION;
1968
+
1969
+ declare interface SpreadExpression extends ExpressionBase {
1970
+ type: SPREAD_EXPRESSION;
1971
+ expr: Expression;
1972
+ }
1973
+
1974
+ declare const Stack: default_2.MemoExoticComponent<default_2.ForwardRefExoticComponent<Omit<default_2.HTMLAttributes<HTMLDivElement>, "onClick" | "onContextMenu"> & {
1975
+ orientation?: string;
1976
+ uid?: string;
1977
+ horizontalAlignment?: string;
1978
+ verticalAlignment?: string;
1979
+ classes?: Record<string, string>;
1980
+ reverse?: boolean;
1981
+ hoverContainer?: boolean;
1982
+ visibleOnHover?: boolean;
1983
+ scrollStyle?: ScrollStyle;
1984
+ showScrollerFade?: boolean;
1985
+ onClick?: AsyncFunction;
1986
+ onContextMenu?: AsyncFunction;
1987
+ onMount?: AsyncFunction;
1988
+ desktopOnly?: boolean;
1989
+ registerComponentApi?: (api: any) => void;
1990
+ } & default_2.RefAttributes<HTMLDivElement>>>;
1991
+
1992
+ /**
1993
+ * This React component represents a standalone app that implements a web
1994
+ * application with xmlui components. A StandaloneApp instance uses a
1995
+ * AppRoot wrapped into an ApiInterceptor.
1996
+ *
1997
+ * AppRoot is responsible for rendering the app (using an internal
1998
+ * representation); ApiInterceptor can emulate some backend functionality
1999
+ * running in the browser.
2000
+ *
2001
+ * Note: base styles (index.scss) are NOT imported here as a side-effect.
2002
+ * Instead, the `RootClasses` component (ThemeReact.tsx) injects them as a
2003
+ * `<style id="xmlui-base-styles">` tag prepended into the correct target
2004
+ * (document.head for normal apps, shadow root for islands). This ensures
2005
+ * the @layer declaration always evaluates first — before any Vite-injected
2006
+ * component styles — and that island styles are fully scoped to their
2007
+ * shadow root without leaking to the host page.
2008
+ */
2009
+ declare function StandaloneApp({ srcBase, asIsland, appDef, appGlobals: globals, decorateComponentsWithTestId, debugEnabled, runtime, extensionManager, waitForApiInterceptor, helmetContext, children, }: StandaloneAppProps): JSX_2.Element;
2010
+
2011
+ declare type StandaloneAppDescription = {
2012
+ name?: string;
2013
+ version?: string;
2014
+ entryPoint?: ComponentLike;
2015
+ components?: CompoundComponentDef[];
2016
+ themes?: ThemeDefinition[];
2017
+ defaultTheme?: string;
2018
+ defaultTone?: string;
2019
+ resources?: Record<string, string>;
2020
+ resourceMap?: Record<string, string>;
2021
+ appGlobals?: Record<string, any>;
2022
+ apiInterceptor?: ApiInterceptorDefinition;
2023
+ sources?: Record<string, string>;
2024
+ icons?: Record<string, string>;
2025
+ };
2026
+
2027
+ declare type StandaloneAppProps = {
2028
+ appDef?: StandaloneAppDescription;
2029
+ srcBase?: string;
2030
+ appGlobals?: Record<string, any>;
2031
+ decorateComponentsWithTestId?: boolean;
2032
+ debugEnabled?: boolean;
2033
+ runtime?: RuntimeProps;
2034
+ extensionManager?: StandaloneExtensionManager;
2035
+ waitForApiInterceptor?: boolean;
2036
+ helmetContext?: Record<string, unknown>;
2037
+ children?: ReactNode;
2038
+ asIsland?: boolean;
2039
+ };
2040
+
2041
+ declare function StandaloneComponent({ node, children, functions, vars }: RootComponentProps): ReactNode;
2042
+
2043
+ declare const standaloneExports: {
2044
+ standalone: StandaloneExtensionManager;
2045
+ StandaloneApp: typeof xmluiExports.StandaloneApp;
2046
+ StandaloneExtensionManager: typeof StandaloneExtensionManager;
2047
+ createComponentRenderer: typeof xmluiExports.createComponentRenderer;
2048
+ createUserDefinedComponentRenderer: typeof xmluiExports.createUserDefinedComponentRenderer;
2049
+ createMetadata: typeof xmluiExports.createMetadata;
2050
+ d: typeof xmluiExports.d;
2051
+ dComponent: typeof xmluiExports.dComponent;
2052
+ dAutoFocus: typeof xmluiExports.dAutoFocus;
2053
+ dClick: typeof xmluiExports.dClick;
2054
+ dCollapse: typeof xmluiExports.dCollapse;
2055
+ dDidChange: typeof xmluiExports.dDidChange;
2056
+ dDidClose: typeof xmluiExports.dDidClose;
2057
+ dDidOpen: typeof xmluiExports.dDidOpen;
2058
+ dEnabled: typeof xmluiExports.dEnabled;
2059
+ dFocus: typeof xmluiExports.dFocus;
2060
+ dEndIcon: typeof xmluiExports.dEndIcon;
2061
+ dEndText: typeof xmluiExports.dEndText;
2062
+ dExpanded: typeof xmluiExports.dExpanded;
2063
+ dExpand: typeof xmluiExports.dExpand;
2064
+ dGotFocus: typeof xmluiExports.dGotFocus;
2065
+ dIndeterminate: typeof xmluiExports.dIndeterminate;
2066
+ dInit: typeof xmluiExports.dInit;
2067
+ dInitialValue: typeof xmluiExports.dInitialValue;
2068
+ dInternal: typeof xmluiExports.dInternal;
2069
+ dLabel: typeof xmluiExports.dLabel;
2070
+ dLabelBreak: typeof xmluiExports.dLabelBreak;
2071
+ dLabelPosition: typeof xmluiExports.dLabelPosition;
2072
+ dLabelWidth: typeof xmluiExports.dLabelWidth;
2073
+ dLostFocus: typeof xmluiExports.dLostFocus;
2074
+ dMaxLength: typeof xmluiExports.dMaxLength;
2075
+ dMulti: typeof xmluiExports.dMulti;
2076
+ dOrientation: typeof xmluiExports.dOrientation;
2077
+ dPlaceholder: typeof xmluiExports.dPlaceholder;
2078
+ dReadonly: typeof xmluiExports.dReadonly;
2079
+ dRequired: typeof xmluiExports.dRequired;
2080
+ dStartIcon: typeof xmluiExports.dStartIcon;
2081
+ dStartText: typeof xmluiExports.dStartText;
2082
+ dSetValueApi: typeof xmluiExports.dSetValueApi;
2083
+ dTriggerTemplate: typeof xmluiExports.dTriggerTemplate;
2084
+ dValidationStatus: typeof xmluiExports.dValidationStatus;
2085
+ dValue: typeof xmluiExports.dValue;
2086
+ dValueApi: typeof xmluiExports.dValueApi;
2087
+ parseScssVar: typeof xmluiExports.parseScssVar;
2088
+ startApp: typeof xmluiExports.startApp;
2089
+ startIslands: typeof startIslands;
2090
+ useTheme: typeof xmluiExports.useTheme;
2091
+ AppRoot: typeof xmluiExports.AppRoot;
2092
+ ErrorBoundary: typeof xmluiExports.ErrorBoundary;
2093
+ Icon: default_2.ForwardRefExoticComponent<IconBaseProps_2 & {
2094
+ className?: string;
2095
+ classes?: Record<string, string>;
2096
+ tooltip?: string;
2097
+ onClick?: default_2.MouseEventHandler;
2098
+ } & default_2.RefAttributes<HTMLElement>>;
2099
+ Stack: default_2.ForwardRefExoticComponent<Omit<Omit<default_2.HTMLAttributes<HTMLDivElement>, "onClick" | "onContextMenu"> & {
2100
+ orientation?: string;
2101
+ uid?: string;
2102
+ horizontalAlignment?: string;
2103
+ verticalAlignment?: string;
2104
+ classes?: Record<string, string>;
2105
+ reverse?: boolean;
2106
+ hoverContainer?: boolean;
2107
+ visibleOnHover?: boolean;
2108
+ scrollStyle?: ScrollStyle_3;
2109
+ showScrollerFade?: boolean;
2110
+ onClick?: AsyncFunction_2;
2111
+ onContextMenu?: AsyncFunction_2;
2112
+ onMount?: AsyncFunction_2;
2113
+ desktopOnly?: boolean;
2114
+ registerComponentApi?: (api: any) => void;
2115
+ } & default_2.RefAttributes<HTMLDivElement> & {
2116
+ className?: string;
2117
+ }, "ref"> & default_2.RefAttributes<HTMLDivElement>>;
2118
+ Button: default_2.ForwardRefExoticComponent<Omit<Omit<default_2.ButtonHTMLAttributes<HTMLButtonElement>, "type" | "form"> & {
2119
+ type?: ButtonType_2;
2120
+ variant?: ButtonVariant_2;
2121
+ themeColor?: ButtonThemeColor_2;
2122
+ size?: SizeType_2;
2123
+ icon?: default_2.ReactNode;
2124
+ iconPosition?: IconPosition_2;
2125
+ contentPosition?: AlignmentOptions_2;
2126
+ orientation?: OrientationOptions_2;
2127
+ formId?: string;
2128
+ contextualLabel?: string;
2129
+ classes?: Record<string, string>;
2130
+ } & default_2.RefAttributes<HTMLButtonElement> & {
2131
+ className?: string;
2132
+ }, "ref"> & default_2.RefAttributes<HTMLButtonElement>>;
2133
+ Splitter: default_2.MemoExoticComponent<default_2.ForwardRefExoticComponent<Omit<default_2.HTMLAttributes<HTMLDivElement>, "children"> & {
2134
+ children?: default_2.ReactNode;
2135
+ classes?: Record<string, string>;
2136
+ splitterTemplate?: default_2.ReactNode;
2137
+ orientation?: OrientationOptions_2;
2138
+ floating?: boolean;
2139
+ resize?: (sizes: [number, number]) => void;
2140
+ swapped?: boolean;
2141
+ initialPrimarySize?: string;
2142
+ minPrimarySize?: string;
2143
+ maxPrimarySize?: string;
2144
+ visibleChildCount?: number;
2145
+ } & default_2.RefAttributes<HTMLDivElement>>>;
2146
+ getColor: typeof xmluiExports.getColor;
2147
+ TabItem: default_2.ForwardRefExoticComponent<Omit<Tab_2 & default_2.RefAttributes<HTMLDivElement>, "ref"> & default_2.RefAttributes<HTMLDivElement>>;
2148
+ Tabs: default_2.ForwardRefExoticComponent<Omit<Omit<default_2.HTMLAttributes<HTMLDivElement>, "onContextMenu"> & {
2149
+ id?: string;
2150
+ activeTab?: number;
2151
+ orientation?: "horizontal" | "vertical";
2152
+ tabAlignment?: "start" | "end" | "center" | "stretch";
2153
+ accordionView?: boolean;
2154
+ headerRenderer?: (item: {
2155
+ id?: string;
2156
+ index: number;
2157
+ label: string;
2158
+ isActive: boolean;
2159
+ }) => default_2.ReactNode;
2160
+ registerComponentApi?: xmluiExports.RegisterComponentApiFn;
2161
+ classes?: Record<string, string>;
2162
+ distributeEvenly?: boolean;
2163
+ onDidChange?: (index: number, id: string, label: string) => void;
2164
+ onContextMenu?: any;
2165
+ keepMounted?: boolean;
2166
+ gap?: string;
2167
+ } & default_2.RefAttributes<HTMLDivElement>, "ref"> & default_2.RefAttributes<HTMLDivElement>>;
2168
+ useColors: typeof xmluiExports.useColors;
2169
+ toCssVar: typeof xmluiExports.toCssVar;
2170
+ useDevTools: typeof xmluiExports.useDevTools;
2171
+ useLogger: () => {
2172
+ logs: {
2173
+ timestamp: Date;
2174
+ args: any[];
2175
+ }[];
2176
+ addLog: (args: any[]) => void;
2177
+ };
2178
+ errReportComponent: typeof xmluiExports.errReportComponent;
2179
+ xmlUiMarkupToComponent: typeof xmluiExports.xmlUiMarkupToComponent;
2180
+ ApiInterceptorProvider: typeof xmluiExports.ApiInterceptorProvider;
2181
+ Spinner: default_2.ForwardRefExoticComponent<Omit<Omit<default_2.HTMLAttributes<HTMLDivElement> & {
2182
+ delay?: number;
2183
+ fullScreen?: boolean;
2184
+ classes?: Record<string, string>;
2185
+ } & default_2.RefAttributes<HTMLDivElement>, "classes"> & {
2186
+ className?: string;
2187
+ }, "ref"> & default_2.RefAttributes<HTMLDivElement>>;
2188
+ useThemes: typeof xmluiExports.useThemes;
2189
+ builtInThemes: xmluiExports.ThemeDefinition[];
2190
+ XmlUiHelper: typeof xmluiExports.XmlUiHelper;
2191
+ Text: default_2.ForwardRefExoticComponent<Omit<Omit<Omit<default_2.HTMLAttributes<HTMLElement>, "onContextMenu"> & {
2192
+ [variantSpecificProps: string]: any;
2193
+ uid?: string;
2194
+ variant?: TextVariant_2;
2195
+ maxLines?: number;
2196
+ preserveLinebreaks?: boolean;
2197
+ ellipses?: boolean;
2198
+ overflowMode?: OverflowMode_2;
2199
+ breakMode?: BreakMode_2;
2200
+ classes?: Record<string, string>;
2201
+ onContextMenu?: any;
2202
+ registerComponentApi?: xmluiExports.RegisterComponentApiFn;
2203
+ }, "ref"> & default_2.RefAttributes<HTMLElement> & {
2204
+ className?: string;
2205
+ }, "ref"> & default_2.RefAttributes<HTMLElement>>;
2206
+ TextBox: default_2.ForwardRefExoticComponent<Omit<{
2207
+ id?: string;
2208
+ type?: "text" | "password" | "search";
2209
+ value?: string;
2210
+ updateState?: UpdateStateFn_2;
2211
+ initialValue?: string;
2212
+ style?: default_2.CSSProperties;
2213
+ classes?: Record<string, string>;
2214
+ className?: string;
2215
+ maxLength?: number;
2216
+ enabled?: boolean;
2217
+ placeholder?: string;
2218
+ validationStatus?: ValidationStatus_2;
2219
+ onDidChange?: (newValue: string) => void;
2220
+ onFocus?: () => void;
2221
+ onBlur?: () => void;
2222
+ onKeyDown?: (event: default_2.KeyboardEvent<HTMLInputElement>) => void;
2223
+ registerComponentApi?: xmluiExports.RegisterComponentApiFn;
2224
+ startText?: string;
2225
+ startIcon?: string;
2226
+ endText?: string;
2227
+ endIcon?: string;
2228
+ gap?: string;
2229
+ autoFocus?: boolean;
2230
+ readOnly?: boolean;
2231
+ tabIndex?: number;
2232
+ required?: boolean;
2233
+ showPasswordToggle?: boolean;
2234
+ passwordVisibleIcon?: string;
2235
+ passwordHiddenIcon?: string;
2236
+ verboseValidationFeedback?: boolean;
2237
+ validationIconSuccess?: string;
2238
+ validationIconError?: string;
2239
+ invalidMessages?: string[];
2240
+ } & default_2.RefAttributes<HTMLDivElement> & {
2241
+ className?: string;
2242
+ }, "ref"> & default_2.RefAttributes<HTMLDivElement>>;
2243
+ NestedApp: default_2.NamedExoticComponent<{
2244
+ api?: any;
2245
+ app: string;
2246
+ components?: any[];
2247
+ config?: any;
2248
+ activeTone?: xmluiExports.ThemeTone;
2249
+ activeTheme?: string;
2250
+ height?: string | number;
2251
+ style?: default_2.CSSProperties;
2252
+ refreshVersion?: number;
2253
+ withSplashScreen?: boolean;
2254
+ className?: string;
2255
+ resolvedApp?: xmluiExports.ComponentDef | xmluiExports.CompoundComponentDef;
2256
+ resolvedComponents?: xmluiExports.CompoundComponentDef[];
2257
+ asIsland?: boolean;
2258
+ }>;
2259
+ VisuallyHidden: ({ children, ...props }: {
2260
+ children: default_2.ReactNode;
2261
+ }) => default_3.JSX.Element;
2262
+ LinkNative: default_2.ForwardRefExoticComponent<Omit<{
2263
+ to: string | {
2264
+ pathname: string;
2265
+ queryParams?: Record<string, any>;
2266
+ };
2267
+ children?: default_2.ReactNode;
2268
+ label?: string;
2269
+ icon?: string;
2270
+ active?: boolean;
2271
+ enabled?: boolean;
2272
+ horizontalAlignment?: string;
2273
+ verticalAlignment?: string;
2274
+ onClick?: () => void;
2275
+ style?: default_2.CSSProperties;
2276
+ className?: string;
2277
+ classes?: Record<string, string>;
2278
+ noIndicator?: boolean;
2279
+ maxLines?: number;
2280
+ preserveLinebreaks?: boolean;
2281
+ ellipses?: boolean;
2282
+ overflowMode?: OverflowMode_2;
2283
+ breakMode?: BreakMode_2;
2284
+ } & Partial<Pick<HTMLAnchorElement, "type" | "rel" | "target" | "download" | "referrerPolicy" | "ping" | "hreflang">> & default_2.RefAttributes<HTMLDivElement> & {
2285
+ className?: string;
2286
+ }, "ref"> & default_2.RefAttributes<HTMLDivElement>>;
2287
+ Heading: default_2.ForwardRefExoticComponent<Omit<Omit<HeadingProps_2, "ref"> & default_2.RefAttributes<HTMLHeadingElement> & {
2288
+ className?: string;
2289
+ }, "ref"> & default_2.RefAttributes<HTMLHeadingElement>>;
2290
+ Image: default_2.ForwardRefExoticComponent<Omit<{
2291
+ src?: string;
2292
+ alt?: string;
2293
+ imageData?: Blob | any;
2294
+ fit?: "cover" | "contain";
2295
+ style?: default_2.CSSProperties;
2296
+ className?: string;
2297
+ lazyLoad?: boolean;
2298
+ aspectRatio?: string;
2299
+ animation?: object;
2300
+ inline?: boolean;
2301
+ grayscale?: boolean;
2302
+ } & Pick<default_2.HTMLAttributes<HTMLImageElement>, "onClick"> & default_2.RefAttributes<HTMLImageElement>, "ref"> & {
2303
+ classes?: Record<string, string>;
2304
+ } & default_2.RefAttributes<HTMLImageElement>>;
2305
+ Markdown: default_2.ForwardRefExoticComponent<Omit<{
2306
+ removeIndents?: boolean;
2307
+ removeBr?: boolean;
2308
+ children: default_2.ReactNode;
2309
+ style?: default_2.CSSProperties;
2310
+ className?: string;
2311
+ classes?: Record<string, string>;
2312
+ codeHighlighter?: CodeHighlighter_2;
2313
+ showHeadingAnchors?: boolean;
2314
+ grayscale?: boolean;
2315
+ truncateLinks?: boolean;
2316
+ openLinkInNewTab?: boolean;
2317
+ overflowMode?: OverflowMode_2;
2318
+ breakMode?: BreakMode_2;
2319
+ anchorRenderer?: (anchorId: string, anchorHref: string) => default_2.ReactNode;
2320
+ } & default_2.RefAttributes<HTMLDivElement>, "ref"> & default_2.RefAttributes<HTMLDivElement>>;
2321
+ TableOfContents: default_2.ForwardRefExoticComponent<Omit<Omit<default_2.HTMLAttributes<HTMLElement>, "onContextMenu"> & {
2322
+ smoothScrolling?: boolean;
2323
+ maxHeadingLevel?: number;
2324
+ omitH1?: boolean;
2325
+ onContextMenu?: any;
2326
+ scrollStyle?: ScrollStyle_3;
2327
+ showScrollerFade?: boolean;
2328
+ } & default_2.RefAttributes<HTMLDivElement>, "ref"> & default_2.RefAttributes<HTMLDivElement>>;
2329
+ FlowLayout: default_2.ForwardRefExoticComponent<Omit<{
2330
+ style?: default_2.CSSProperties;
2331
+ className?: string;
2332
+ classes?: Record<string, string>;
2333
+ columnGap: string | number;
2334
+ rowGap: string | number;
2335
+ itemWidth?: string;
2336
+ verticalAlignment?: string;
2337
+ scrollStyle?: ScrollStyle_3;
2338
+ showScrollerFade?: boolean;
2339
+ children: default_2.ReactNode;
2340
+ onContextMenu?: any;
2341
+ registerComponentApi?: (api: any) => void;
2342
+ } & default_2.RefAttributes<HTMLDivElement>, "ref"> & {
2343
+ classes?: Record<string, string>;
2344
+ } & default_2.RefAttributes<HTMLDivElement>>;
2345
+ FlowItemWrapper: default_2.ForwardRefExoticComponent<{
2346
+ children: default_2.ReactNode;
2347
+ width?: string | number;
2348
+ minWidth?: string | number;
2349
+ maxWidth?: string | number;
2350
+ responsiveWidthProps?: Record<string, any>;
2351
+ forceBreak?: boolean;
2352
+ } & default_2.RefAttributes<unknown>>;
2353
+ COMPONENT_PART_KEY: "-component";
2354
+ Part: default_2.NamedExoticComponent<{
2355
+ children: default_2.ReactNode;
2356
+ partId?: string;
2357
+ }>;
2358
+ useAppContext: typeof xmluiExports.useAppContext;
2359
+ ToneChangerButton: default_2.NamedExoticComponent<{
2360
+ lightToDarkIcon?: string;
2361
+ darkToLightIcon?: string;
2362
+ onClick?: (tone: string) => void;
2363
+ }>;
2364
+ NavPanelCollapseButton: default_2.NamedExoticComponent<{
2365
+ icon?: string;
2366
+ iconCollapsed?: string;
2367
+ "aria-label"?: string;
2368
+ "aria-labelCollapsed"?: string;
2369
+ }>;
2370
+ Logo: default_2.MemoExoticComponent<default_2.ForwardRefExoticComponent<{
2371
+ alt?: string;
2372
+ style?: default_2.CSSProperties;
2373
+ className?: string;
2374
+ classes?: Record<string, string>;
2375
+ inline?: boolean;
2376
+ } & default_2.RefAttributes<HTMLImageElement>>>;
2377
+ useSearchContextContent: () => Record<string, xmluiExports.SearchItemData>;
2378
+ useAppLayoutContext: typeof xmluiExports.useAppLayoutContext;
2379
+ useComponentThemeClass: typeof xmluiExports.useComponentThemeClass;
2380
+ StyleProvider: typeof xmluiExports.StyleProvider;
2381
+ StyleRegistry: typeof xmluiExports.StyleRegistry;
2382
+ useEvent: UseEventOverload_2;
2383
+ StandaloneComponent: typeof xmluiExports.StandaloneComponent;
2384
+ Theme: typeof xmluiExports.Theme;
2385
+ ToneSwitch: default_2.MemoExoticComponent<default_2.ForwardRefExoticComponent<ToneSwitchProps_2 & default_2.RefAttributes<HTMLDivElement>>>;
2386
+ Tooltip: default_2.MemoExoticComponent<default_2.ForwardRefExoticComponent<TooltipOptions_2 & default_2.HTMLAttributes<HTMLDivElement> & {
2387
+ open?: boolean;
2388
+ text: string;
2389
+ markdown?: string;
2390
+ tooltipTemplate?: default_2.ReactNode;
2391
+ classes?: Record<string, string>;
2392
+ } & default_2.RefAttributes<HTMLDivElement>>>;
2393
+ DropdownMenu: default_2.ForwardRefExoticComponent<Omit<{
2394
+ triggerTemplate?: default_2.ReactNode;
2395
+ children?: default_2.ReactNode;
2396
+ label?: string;
2397
+ registerComponentApi?: xmluiExports.RegisterComponentApiFn;
2398
+ style?: default_2.CSSProperties;
2399
+ className?: string;
2400
+ contentClassName?: string;
2401
+ classes?: Record<string, string>;
2402
+ alignment?: AlignmentOptions_2;
2403
+ onWillOpen?: () => Promise<boolean | undefined>;
2404
+ disabled?: boolean;
2405
+ triggerButtonVariant?: string;
2406
+ triggerButtonThemeColor?: string;
2407
+ triggerButtonIcon?: string;
2408
+ triggerButtonIconPosition?: IconPosition_2;
2409
+ compact?: boolean;
2410
+ modal?: boolean;
2411
+ } & default_2.RefAttributes<HTMLButtonElement> & {
2412
+ className?: string;
2413
+ }, "ref"> & default_2.RefAttributes<HTMLButtonElement>>;
2414
+ MenuItem: default_2.ForwardRefExoticComponent<Omit<Omit<{
2415
+ [key: string]: any;
2416
+ icon?: default_2.ReactNode;
2417
+ iconPosition?: IconPosition_2;
2418
+ onClick?: (event: any) => void;
2419
+ children?: default_2.ReactNode;
2420
+ label?: string;
2421
+ style?: default_2.CSSProperties;
2422
+ className?: string;
2423
+ classes?: Record<string, string>;
2424
+ to?: string;
2425
+ active?: boolean;
2426
+ enabled?: boolean;
2427
+ compact?: boolean;
2428
+ }, "ref"> & default_2.RefAttributes<unknown> & {
2429
+ className?: string;
2430
+ }, "ref"> & default_2.RefAttributes<HTMLDivElement>>;
2431
+ ContentSeparator: default_2.MemoExoticComponent<default_2.ForwardRefExoticComponent<{
2432
+ thickness?: number | string;
2433
+ length?: number | string;
2434
+ orientation?: string;
2435
+ hasExplicitLength?: boolean;
2436
+ style?: default_2.CSSProperties;
2437
+ classes?: Record<string, string>;
2438
+ className?: string;
2439
+ } & default_2.RefAttributes<HTMLDivElement>>>;
2440
+ MemoizedItem: default_2.MemoExoticComponent<({ node, renderChild, layoutContext, contextVars, vars, functions, }: {
2441
+ node: xmluiExports.ComponentDef | Array<xmluiExports.ComponentDef>;
2442
+ renderChild: RenderChildFn_2;
2443
+ layoutContext?: LayoutContext_2;
2444
+ contextVars?: Record<string, any>;
2445
+ vars?: Record<string, any>;
2446
+ functions?: Record<string, any>;
2447
+ }) => default_3.JSX.Element>;
2448
+ SEARCH_DEFAULT_CATEGORY: "other";
2449
+ SEARCH_CATEGORIES: readonly ["docs", "blog", "news", "get-started"];
2450
+ wrapComponent: typeof xmluiExports.wrapComponent;
2451
+ wrapCompound: typeof xmluiExports.wrapCompound;
2452
+ HiddenOption: typeof xmluiExports.HiddenOption;
2453
+ OptionTypeProvider: typeof xmluiExports.OptionTypeProvider;
2454
+ OptionContext: default_2.Context<{
2455
+ onOptionAdd: (option: xmluiExports.Option) => void;
2456
+ onOptionRemove: (option: xmluiExports.Option) => void;
2457
+ }>;
2458
+ useOption: typeof xmluiExports.useOption;
2459
+ };
2460
+ export default standaloneExports;
2461
+
2462
+ /**
2463
+ * This class allows external component libraries to add their components to
2464
+ * the xmlui component registry. The framework resolves the components used
2465
+ * in an application markup with this registry.
2466
+ */
2467
+ declare class StandaloneExtensionManager {
2468
+ subscriptions: Set<ExtensionRegisteredCallbackFn>;
2469
+ registeredExtensions: Array<Extension>;
2470
+ constructor();
2471
+ /**
2472
+ * You can add a callback function invoked whenever a new component is added
2473
+ * to the registry. When you register a new callback function, the component
2474
+ * manager automatically invokes it for all components already in the
2475
+ * registry.
2476
+ * @param cb Function to call when a new component is registered
2477
+ */
2478
+ subscribeToRegistrations(cb: ExtensionRegisteredCallbackFn): void;
2479
+ /**
2480
+ * You can remove a function added by `subscribeToRegistrations`. After
2481
+ * calling this method, the particular callback function won't be invoked
2482
+ * for a new component registration.
2483
+ * @param cb Function to call when a new component is registered
2484
+ */
2485
+ unSubscribeFromRegistrations(cb: ExtensionRegisteredCallbackFn): void;
2486
+ registerExtension(component: Extension | Extension[]): void;
2487
+ }
2488
+
2489
+ declare type StandaloneJsonConfig = {
2490
+ name?: string;
2491
+ appGlobals?: Record<string, any>;
2492
+ entryPoint?: string;
2493
+ components?: string[];
2494
+ themes?: string[];
2495
+ defaultTheme?: string;
2496
+ resources?: Record<string, string>;
2497
+ resourceMap?: Record<string, string>;
2498
+ apiInterceptor?: ApiInterceptorDefinition;
2499
+ };
2500
+
2501
+ /**
2502
+ * This function injects the StandaloneApp component into a React app. It looks
2503
+ * up a component with the "root" id as the host of the standalone app. If such
2504
+ * an element does not exist, it creates a `<div id="root">` element.
2505
+ * @param runtime The app's runtime representation
2506
+ * @param components The related component's runtime representation
2507
+ * @returns The content's root element
2508
+ */
2509
+ declare function startApp(runtime: any, extensions?: Extension[] | Extension, extensionManager?: StandaloneExtensionManager): Root;
2510
+
2511
+ declare function startIslands(extensionManager?: StandaloneExtensionManager): () => void;
2512
+
2513
+ declare type State = {
2514
+ hasError: boolean;
2515
+ error: Error | null;
2516
+ };
2517
+
2518
+ declare type Statement = BlockStatement | EmptyStatement | ExpressionStatement | ArrowExpressionStatement | LetStatement | ConstStatement | VarStatement | IfStatement | ReturnStatement | BreakStatement | ContinueStatement | WhileStatement | DoWhileStatement | ForStatement | ForInStatement | ForOfStatement | ThrowStatement | TryStatement | SwitchStatement | FunctionDeclaration | ImportDeclaration | ImportSpecifier;
2519
+
2520
+ declare interface StyleCacheEntry {
2521
+ className: string;
2522
+ styleHash: string;
2523
+ css: string;
2524
+ layer: string;
2525
+ }
2526
+
2527
+ declare type StyleObjectType = CSSProperties & {
2528
+ [selectorOrAtRule: string]: StyleObjectType | CSSProperties[keyof CSSProperties];
2529
+ };
2530
+
2531
+ /**
2532
+ * A "smart" provider that creates a StyleRegistry only if one doesn't
2533
+ * already exist in the context.
2534
+ */
2535
+ declare function StyleProvider({ children, styleRegistry, forceNew, }: StyleProviderProps): JSX_2.Element;
2536
+
2537
+ declare type StyleProviderProps = {
2538
+ children: default_2.ReactNode;
2539
+ styleRegistry?: StyleRegistry;
2540
+ forceNew?: boolean;
2541
+ };
2542
+
2543
+ declare class StyleRegistry {
2544
+ cache: Map<string, StyleCacheEntry>;
2545
+ rootClasses: Set<string>;
2546
+ injected: Set<string>;
2547
+ refCounts: Map<string, number>;
2548
+ ssrHashes: Set<string>;
2549
+ register(styles: StyleObjectType, layer?: string): StyleCacheEntry;
2550
+ /**
2551
+ * [PRIVATE] Recursively generates CSS rules from a style object.
2552
+ * This is the new, more powerful engine.
2553
+ * @param selector - The CSS selector for the current context (e.g., '.css-123' or '&:hover').
2554
+ * @param styles - The style object to process.
2555
+ * @returns A string of CSS rules.
2556
+ */
2557
+ private _generateCss;
2558
+ private _processNestedRule;
2559
+ getSsrStyles(): string;
2560
+ /**
2561
+ * Adds a class name to be applied to the <html> tag.
2562
+ */
2563
+ addRootClasses(classNames: Array<string>): void;
2564
+ /**
2565
+ * Returns a space-separated string of all collected html classes.
2566
+ */
2567
+ getRootClasses(): string;
2568
+ getRefCount(styleHash: string): number;
2569
+ /**
2570
+ * Increments the reference count for a given style hash.
2571
+ */
2572
+ incrementRef(styleHash: string): void;
2573
+ /**
2574
+ * Decrements the reference count for a given style hash.
2575
+ * @returns {number} The new reference count.
2576
+ */
2577
+ decrementRef(styleHash: string): number;
2578
+ }
2579
+
2580
+ declare type SWITCH_CASE = typeof T_SWITCH_CASE;
2581
+
2582
+ declare type SWITCH_STATEMENT = typeof T_SWITCH_STATEMENT;
2583
+
2584
+ declare interface SwitchCase extends ExpressionBase {
2585
+ type: SWITCH_CASE;
2586
+ caseE?: Expression;
2587
+ stmts?: Statement[];
2588
+ }
2589
+
2590
+ declare interface SwitchStatement extends ScripNodeBase {
2591
+ type: SWITCH_STATEMENT;
2592
+ expr: Expression;
2593
+ cases: SwitchCase[];
2594
+ }
2595
+
2596
+ declare type SyncFunction = (...args: any) => any;
2597
+
2598
+ declare const T_ARRAY_DESTRUCTURE: number;
2599
+
2600
+ declare const T_ARRAY_LITERAL: number;
2601
+
2602
+ declare const T_ARROW_EXPRESSION: number;
2603
+
2604
+ declare const T_ARROW_EXPRESSION_STATEMENT: number;
2605
+
2606
+ declare const T_ASSIGNMENT_EXPRESSION: number;
2607
+
2608
+ declare const T_ASYNC_FUNCTION_DECLARATION: number;
2609
+
2610
+ declare const T_AWAIT_EXPRESSION: number;
2611
+
2612
+ declare const T_BINARY_EXPRESSION: number;
2613
+
2614
+ declare const T_BLOCK_STATEMENT: number;
2615
+
2616
+ declare const T_BREAK_STATEMENT: number;
2617
+
2618
+ declare const T_CALCULATED_MEMBER_ACCESS_EXPRESSION: number;
2619
+
2620
+ declare const T_CONDITIONAL_EXPRESSION: number;
2621
+
2622
+ declare const T_CONST_STATEMENT: number;
2623
+
2624
+ declare const T_CONTINUE_STATEMENT: number;
2625
+
2626
+ declare const T_DESTRUCTURE: number;
2627
+
2628
+ declare const T_DO_WHILE_STATEMENT: number;
2629
+
2630
+ declare const T_EMPTY_STATEMENT: number;
2631
+
2632
+ declare const T_EXPRESSION_STATEMENT: number;
2633
+
2634
+ declare const T_FOR_IN_STATEMENT: number;
2635
+
2636
+ declare const T_FOR_OF_STATEMENT: number;
2637
+
2638
+ declare const T_FOR_STATEMENT: number;
2639
+
2640
+ declare const T_FUNCTION_DECLARATION: number;
2641
+
2642
+ declare const T_FUNCTION_INVOCATION_EXPRESSION: number;
2643
+
2644
+ declare const T_IDENTIFIER: number;
2645
+
2646
+ declare const T_IF_STATEMENT: number;
2647
+
2648
+ declare const T_IMPORT_DECLARATION: number;
2649
+
2650
+ declare const T_IMPORT_SPECIFIER: number;
2651
+
2652
+ declare const T_LET_STATEMENT: number;
2653
+
2654
+ declare const T_LITERAL: number;
2655
+
2656
+ declare const T_MEMBER_ACCESS_EXPRESSION: number;
2657
+
2658
+ declare const T_NEW_EXPRESSION: number;
2659
+
2660
+ declare const T_NO_ARG_EXPRESSION: number;
2661
+
2662
+ declare const T_OBJECT_DESTRUCTURE: number;
2663
+
2664
+ declare const T_OBJECT_LITERAL: number;
2665
+
2666
+ declare const T_POSTFIX_OP_EXPRESSION: number;
2667
+
2668
+ declare const T_PREFIX_OP_EXPRESSION: number;
2669
+
2670
+ declare const T_REACTIVE_VAR_DECLARATION: number;
2671
+
2672
+ declare const T_RETURN_STATEMENT: number;
2673
+
2674
+ declare const T_SEQUENCE_EXPRESSION: number;
2675
+
2676
+ declare const T_SPREAD_EXPRESSION: number;
2677
+
2678
+ declare const T_SWITCH_CASE: number;
2679
+
2680
+ declare const T_SWITCH_STATEMENT: number;
2681
+
2682
+ declare const T_TEMPLATE_LITERAL_EXPRESSION: number;
2683
+
2684
+ declare const T_THROW_STATEMENT: number;
2685
+
2686
+ declare const T_TRY_STATEMENT: number;
2687
+
2688
+ declare const T_UNARY_EXPRESSION: number;
2689
+
2690
+ declare const T_VAR_DECLARATION: number;
2691
+
2692
+ declare const T_VAR_STATEMENT: number;
2693
+
2694
+ declare const T_WHILE_STATEMENT: number;
2695
+
2696
+ declare type TableDescriptor = {
2697
+ name: string;
2698
+ fields?: Record<string, any>;
2699
+ pk: Array<string>;
2700
+ indexes?: Array<string>;
2701
+ };
2702
+
2703
+ declare type TEMPLATE_LITERAL_EXPRESSION = typeof T_TEMPLATE_LITERAL_EXPRESSION;
2704
+
2705
+ declare interface TemplateLiteralExpression extends ExpressionBase {
2706
+ type: TEMPLATE_LITERAL_EXPRESSION;
2707
+ segments: (Literal | Expression)[];
2708
+ }
2709
+
2710
+ declare const Text_2: default_2.MemoExoticComponent<default_2.ForwardRefExoticComponent<Omit<TextProps, "ref"> & default_2.RefAttributes<HTMLElement>>>;
2711
+
2712
+ declare const TextBox: default_2.MemoExoticComponent<default_2.ForwardRefExoticComponent<Props_3 & default_2.RefAttributes<HTMLDivElement>>>;
2713
+
2714
+ declare type TextProps = Omit<default_2.HTMLAttributes<HTMLElement>, "onContextMenu"> & {
2715
+ uid?: string;
2716
+ variant?: TextVariant;
2717
+ maxLines?: number;
2718
+ preserveLinebreaks?: boolean;
2719
+ ellipses?: boolean;
2720
+ overflowMode?: OverflowMode;
2721
+ breakMode?: BreakMode;
2722
+ classes?: Record<string, string>;
2723
+ onContextMenu?: any;
2724
+ registerComponentApi?: RegisterComponentApiFn;
2725
+ [variantSpecificProps: string]: any;
2726
+ };
2727
+
2728
+ declare type TextVariant = (typeof TextVariantKeys)[number];
2729
+
2730
+ declare const TextVariantKeys: readonly ["abbr", "cite", "code", "deleted", "inherit", "inserted", "keyboard", "marked", "sample", "sub", "sup", "var", "strong", "em", "mono", "title", "subtitle", "small", "caption", "placeholder", "paragraph", "subheading", "tableheading", "secondary"];
2731
+
2732
+ declare function Theme({ id, isRoot, applyIf, disableInlineStyle, renderChild, node, tone, toastDuration, notificationPosition, themeVars, layoutContext, children, }: Props_5): string | number | boolean | Iterable<ReactNode> | JSX_2.Element;
2733
+
2734
+ declare const ThemedButton: default_2.ForwardRefExoticComponent<Omit<ThemedButtonProps, "ref"> & default_2.RefAttributes<HTMLButtonElement>>;
2735
+
2736
+ declare type ThemedButtonProps = default_2.ComponentProps<typeof Button> & {
2737
+ className?: string;
2738
+ };
2739
+
2740
+ declare const ThemedDropdownMenu: default_2.ForwardRefExoticComponent<Omit<ThemedDropdownMenuProps, "ref"> & default_2.RefAttributes<HTMLButtonElement>>;
2741
+
2742
+ declare type ThemedDropdownMenuProps = default_2.ComponentProps<typeof DropdownMenu> & {
2743
+ className?: string;
2744
+ };
2745
+
2746
+ declare interface ThemeDefinition extends ThemeDefinitionDetails {
2747
+ id: string;
2748
+ name?: string;
2749
+ extends?: string | Array<string>;
2750
+ tones?: Record<string | ThemeTone, ThemeDefinitionDetails>;
2751
+ color?: string;
2752
+ }
2753
+
2754
+ declare interface ThemeDefinitionDetails {
2755
+ themeVars?: Record<string, string>;
2756
+ resources?: Record<string, string | FontDef>;
2757
+ }
2758
+
2759
+ declare const ThemedFlowLayout: default_2.ForwardRefExoticComponent<Omit<{
2760
+ style?: default_2.CSSProperties;
2761
+ className?: string;
2762
+ classes?: Record<string, string>;
2763
+ columnGap: string | number;
2764
+ rowGap: string | number;
2765
+ itemWidth?: string;
2766
+ verticalAlignment?: string;
2767
+ scrollStyle?: ScrollStyle_2;
2768
+ showScrollerFade?: boolean;
2769
+ children: default_2.ReactNode;
2770
+ onContextMenu?: any;
2771
+ registerComponentApi?: (api: any) => void;
2772
+ } & default_2.RefAttributes<HTMLDivElement>, "ref"> & {
2773
+ classes?: Record<string, string>;
2774
+ } & default_2.RefAttributes<HTMLDivElement>>;
2775
+
2776
+ declare const ThemedHeading: default_2.ForwardRefExoticComponent<Omit<ThemedHeadingProps, "ref"> & default_2.RefAttributes<HTMLHeadingElement>>;
2777
+
2778
+ declare type ThemedHeadingProps = default_2.ComponentProps<typeof Heading> & {
2779
+ className?: string;
2780
+ };
2781
+
2782
+ declare const ThemedIcon: default_2.ForwardRefExoticComponent<IconBaseProps & {
2783
+ className?: string;
2784
+ classes?: Record<string, string>;
2785
+ tooltip?: string;
2786
+ onClick?: default_2.MouseEventHandler;
2787
+ } & default_2.RefAttributes<HTMLElement>>;
2788
+
2789
+ declare const ThemedImage: default_2.ForwardRefExoticComponent<Omit<{
2790
+ src?: string;
2791
+ alt?: string;
2792
+ imageData?: Blob | any;
2793
+ fit?: "cover" | "contain";
2794
+ style?: default_2.CSSProperties;
2795
+ className?: string;
2796
+ lazyLoad?: boolean;
2797
+ aspectRatio?: string;
2798
+ animation?: object;
2799
+ inline?: boolean;
2800
+ grayscale?: boolean;
2801
+ } & Pick<default_2.HTMLAttributes<HTMLImageElement>, "onClick"> & default_2.RefAttributes<HTMLImageElement>, "ref"> & {
2802
+ classes?: Record<string, string>;
2803
+ } & default_2.RefAttributes<HTMLImageElement>>;
2804
+
2805
+ declare const ThemedLinkNative: default_2.ForwardRefExoticComponent<Omit<ThemedLinkNativeProps, "ref"> & default_2.RefAttributes<HTMLDivElement>>;
2806
+
2807
+ /**
2808
+ * This function defines the renderer for the Link component.
2809
+ */
2810
+ declare type ThemedLinkNativeProps = default_2.ComponentProps<typeof LinkNative> & {
2811
+ className?: string;
2812
+ };
2813
+
2814
+ declare const ThemedMarkdown: default_2.ForwardRefExoticComponent<Omit<{
2815
+ removeIndents?: boolean;
2816
+ removeBr?: boolean;
2817
+ children: default_2.ReactNode;
2818
+ style?: default_2.CSSProperties;
2819
+ className?: string;
2820
+ classes?: Record<string, string>;
2821
+ codeHighlighter?: CodeHighlighter;
2822
+ showHeadingAnchors?: boolean;
2823
+ grayscale?: boolean;
2824
+ truncateLinks?: boolean;
2825
+ openLinkInNewTab?: boolean;
2826
+ overflowMode?: OverflowMode;
2827
+ breakMode?: BreakMode;
2828
+ anchorRenderer?: (anchorId: string, anchorHref: string) => default_2.ReactNode;
2829
+ } & default_2.RefAttributes<HTMLDivElement>, "ref"> & default_2.RefAttributes<HTMLDivElement>>;
2830
+
2831
+ declare const ThemedMenuItem: default_2.ForwardRefExoticComponent<Omit<ThemedMenuItemProps, "ref"> & default_2.RefAttributes<HTMLDivElement>>;
2832
+
2833
+ declare type ThemedMenuItemProps = default_2.ComponentProps<typeof MenuItem> & {
2834
+ className?: string;
2835
+ };
2836
+
2837
+ declare const ThemedSpinner: default_2.ForwardRefExoticComponent<Omit<ThemedSpinnerProps, "ref"> & default_2.RefAttributes<HTMLDivElement>>;
2838
+
2839
+ declare type ThemedSpinnerProps = Omit<default_2.ComponentProps<typeof Spinner>, "classes"> & {
2840
+ className?: string;
2841
+ };
2842
+
2843
+ declare const ThemedStack: default_2.ForwardRefExoticComponent<Omit<ThemedStackProps, "ref"> & default_2.RefAttributes<HTMLDivElement>>;
2844
+
2845
+ declare type ThemedStackProps = default_2.ComponentProps<typeof Stack> & {
2846
+ className?: string;
2847
+ };
2848
+
2849
+ declare const ThemedTabItem: default_2.ForwardRefExoticComponent<Omit<Tab & default_2.RefAttributes<HTMLDivElement>, "ref"> & default_2.RefAttributes<HTMLDivElement>>;
2850
+
2851
+ declare const ThemedTableOfContents: default_2.ForwardRefExoticComponent<Omit<Omit<default_2.HTMLAttributes<HTMLElement>, "onContextMenu"> & {
2852
+ smoothScrolling?: boolean;
2853
+ maxHeadingLevel?: number;
2854
+ omitH1?: boolean;
2855
+ onContextMenu?: any;
2856
+ scrollStyle?: ScrollStyle_2;
2857
+ showScrollerFade?: boolean;
2858
+ } & default_2.RefAttributes<HTMLDivElement>, "ref"> & default_2.RefAttributes<HTMLDivElement>>;
2859
+
2860
+ declare const ThemedTabs: default_2.ForwardRefExoticComponent<Omit<Omit<default_2.HTMLAttributes<HTMLDivElement>, "onContextMenu"> & {
2861
+ id?: string;
2862
+ activeTab?: number;
2863
+ orientation?: "horizontal" | "vertical";
2864
+ tabAlignment?: "start" | "end" | "center" | "stretch";
2865
+ accordionView?: boolean;
2866
+ headerRenderer?: (item: {
2867
+ id?: string;
2868
+ index: number;
2869
+ label: string;
2870
+ isActive: boolean;
2871
+ }) => default_2.ReactNode;
2872
+ registerComponentApi?: RegisterComponentApiFn_2;
2873
+ classes?: Record<string, string>;
2874
+ distributeEvenly?: boolean;
2875
+ onDidChange?: (index: number, id: string, label: string) => void;
2876
+ onContextMenu?: any;
2877
+ keepMounted?: boolean;
2878
+ gap?: string;
2879
+ } & default_2.RefAttributes<HTMLDivElement>, "ref"> & default_2.RefAttributes<HTMLDivElement>>;
2880
+
2881
+ declare const ThemedText: default_2.ForwardRefExoticComponent<Omit<ThemedTextProps, "ref"> & default_2.RefAttributes<HTMLElement>>;
2882
+
2883
+ declare const ThemedTextBox: default_2.ForwardRefExoticComponent<Omit<ThemedTextBoxProps, "ref"> & default_2.RefAttributes<HTMLDivElement>>;
2884
+
2885
+ declare type ThemedTextBoxProps = default_2.ComponentProps<typeof TextBox> & {
2886
+ className?: string;
2887
+ };
2888
+
2889
+ declare type ThemedTextProps = default_2.ComponentProps<typeof Text_2> & {
2890
+ className?: string;
2891
+ };
2892
+
2893
+ declare type ThemeIdDescriptor = {
2894
+ id: string;
2895
+ defaultValue?: DefaultValueDescriptor;
2896
+ };
2897
+
2898
+ declare type ThemeScope = {
2899
+ activeThemeId: string;
2900
+ activeThemeTone: ThemeTone;
2901
+ root: HTMLElement | undefined;
2902
+ setRoot: Dispatch<SetStateAction<HTMLElement | undefined>>;
2903
+ activeTheme: ThemeDefinition;
2904
+ themeStyles: Record<string, string>;
2905
+ themeVars: Record<string, string>;
2906
+ getResourceUrl: (resourceString?: string) => string | undefined;
2907
+ getThemeVar: (themeVar: string) => string | undefined;
2908
+ disableInlineStyle?: boolean;
2909
+ };
2910
+
2911
+ declare type ThemeTone = "light" | "dark";
2912
+
2913
+ declare type THROW_STATEMENT = typeof T_THROW_STATEMENT;
2914
+
2915
+ declare interface ThrowStatement extends ScripNodeBase {
2916
+ type: THROW_STATEMENT;
2917
+ expr: Expression;
2918
+ }
2919
+
2920
+ declare type ToastHandler = (message: Message, options?: ToastOptions) => string;
2921
+
2922
+ /**
2923
+ * Converts the specified themeID to a CSS var string
2924
+ * @param c segment to convert
2925
+ */
2926
+ declare function toCssVar(c: string | ThemeIdDescriptor): string;
2927
+
2928
+ declare enum TokenType {
2929
+ Eof = -1,
2930
+ Ws = -2,
2931
+ BlockComment = -3,
2932
+ EolComment = -4,
2933
+ Unknown = 0,
2934
+ LParent = 1,
2935
+ RParent = 2,
2936
+ Identifier = 3,
2937
+ Exponent = 4,
2938
+ Divide = 5,
2939
+ Multiply = 6,
2940
+ Remainder = 7,
2941
+ Plus = 8,
2942
+ Minus = 9,
2943
+ BitwiseXor = 10,
2944
+ BitwiseOr = 11,
2945
+ LogicalOr = 12,
2946
+ BitwiseAnd = 13,
2947
+ LogicalAnd = 14,
2948
+ IncOp = 15,
2949
+ DecOp = 16,
2950
+ Assignment = 17,
2951
+ AddAssignment = 18,
2952
+ SubtractAssignment = 19,
2953
+ ExponentAssignment = 20,
2954
+ MultiplyAssignment = 21,
2955
+ DivideAssignment = 22,
2956
+ RemainderAssignment = 23,
2957
+ ShiftLeftAssignment = 24,
2958
+ ShiftRightAssignment = 25,
2959
+ SignedShiftRightAssignment = 26,
2960
+ BitwiseAndAssignment = 27,
2961
+ BitwiseXorAssignment = 28,
2962
+ BitwiseOrAssignment = 29,
2963
+ LogicalAndAssignment = 30,
2964
+ LogicalOrAssignment = 31,
2965
+ NullCoalesceAssignment = 32,
2966
+ Semicolon = 33,
2967
+ Comma = 34,
2968
+ Colon = 35,
2969
+ LSquare = 36,
2970
+ RSquare = 37,
2971
+ QuestionMark = 38,
2972
+ NullCoalesce = 39,
2973
+ OptionalChaining = 40,
2974
+ BinaryNot = 41,
2975
+ LBrace = 42,
2976
+ RBrace = 43,
2977
+ Equal = 44,
2978
+ StrictEqual = 45,
2979
+ LogicalNot = 46,
2980
+ NotEqual = 47,
2981
+ StrictNotEqual = 48,
2982
+ LessThan = 49,
2983
+ LessThanOrEqual = 50,
2984
+ ShiftLeft = 51,
2985
+ GreaterThan = 52,
2986
+ GreaterThanOrEqual = 53,
2987
+ ShiftRight = 54,
2988
+ SignedShiftRight = 55,
2989
+ Dot = 56,
2990
+ Spread = 57,
2991
+ Backtick = 58,
2992
+ DollarLBrace = 59,
2993
+ Arrow = 60,
2994
+ DecimalLiteral = 61,
2995
+ HexadecimalLiteral = 62,
2996
+ BinaryLiteral = 63,
2997
+ RealLiteral = 64,
2998
+ StringLiteral = 65,
2999
+ Infinity = 66,
3000
+ NaN = 67,
3001
+ True = 68,
3002
+ False = 69,
3003
+ Typeof = 70,
3004
+ Null = 71,
3005
+ Undefined = 72,
3006
+ In = 73,
3007
+ Instanceof = 74,
3008
+ Let = 75,
3009
+ Const = 76,
3010
+ Var = 77,
3011
+ If = 78,
3012
+ Else = 79,
3013
+ Return = 80,
3014
+ Break = 81,
3015
+ Continue = 82,
3016
+ Do = 83,
3017
+ While = 84,
3018
+ For = 85,
3019
+ Of = 86,
3020
+ Try = 87,
3021
+ Catch = 88,
3022
+ Finally = 89,
3023
+ Throw = 90,
3024
+ Switch = 91,
3025
+ Case = 92,
3026
+ Default = 93,
3027
+ Delete = 94,
3028
+ Function = 95,
3029
+ New = 96,
3030
+ As = 97,
3031
+ Import = 98,
3032
+ From = 99
3033
+ }
3034
+
3035
+ declare const ToneChangerButton: NamedExoticComponent< {
3036
+ lightToDarkIcon?: string;
3037
+ darkToLightIcon?: string;
3038
+ onClick?: (tone: string) => void;
3039
+ }>;
3040
+
3041
+ declare const ToneSwitch: MemoExoticComponent<ForwardRefExoticComponent<ToneSwitchProps & RefAttributes<HTMLDivElement>>>;
3042
+
3043
+ declare type ToneSwitchProps = {
3044
+ iconLight?: string;
3045
+ iconDark?: string;
3046
+ className?: string;
3047
+ classes?: Record<string, string>;
3048
+ onDidChange?: (tone: "light" | "dark") => void;
3049
+ };
3050
+
3051
+ declare const Tooltip: default_2.MemoExoticComponent<default_2.ForwardRefExoticComponent<TooltipOptions & default_2.HTMLAttributes<HTMLDivElement> & {
3052
+ /**
3053
+ * The open state of the tooltip externally controlled
3054
+ */
3055
+ open?: boolean;
3056
+ /**
3057
+ * The text content to display in the tooltip
3058
+ */
3059
+ text: string;
3060
+ /**
3061
+ * The markdown content to display in the tooltip
3062
+ */
3063
+ markdown?: string;
3064
+ /**
3065
+ * The template for the tooltip content
3066
+ */
3067
+ tooltipTemplate?: default_2.ReactNode;
3068
+ classes?: Record<string, string>;
3069
+ } & default_2.RefAttributes<HTMLDivElement>>>;
3070
+
3071
+ declare type TooltipOptions = {
3072
+ /**
3073
+ * The duration from when the mouse enters a tooltip trigger until the tooltip opens
3074
+ */
3075
+ delayDuration?: number;
3076
+ /**
3077
+ * How much time a user has to enter another trigger without incurring a delay again
3078
+ */
3079
+ skipDelayDuration?: number;
3080
+ /**
3081
+ * The open state of the tooltip when it is initially rendered
3082
+ */
3083
+ defaultOpen?: boolean;
3084
+ /**
3085
+ * Whether to show the arrow pointing to the trigger element
3086
+ */
3087
+ showArrow?: boolean;
3088
+ /**
3089
+ * The preferred side of the trigger to render against when open
3090
+ */
3091
+ side?: "top" | "right" | "bottom" | "left";
3092
+ /**
3093
+ * The preferred alignment against the trigger
3094
+ */
3095
+ align?: "start" | "center" | "end";
3096
+ /**
3097
+ * The distance in pixels from the trigger
3098
+ */
3099
+ sideOffset?: number;
3100
+ /**
3101
+ * An offset in pixels from the "start" or "end" alignment options
3102
+ */
3103
+ alignOffset?: number;
3104
+ /**
3105
+ * When true, overrides the side and align preferences to prevent collisions with boundary edges
3106
+ */
3107
+ avoidCollisions?: boolean;
3108
+ };
3109
+
3110
+ /**
3111
+ * Type definition for a topic subscription callback.
3112
+ * @param topic The topic that was published
3113
+ * @param data The data payload sent with the topic
3114
+ */
3115
+ declare type TopicCallback = (topic: string | number, data: any) => void;
3116
+
3117
+ declare type TrackContainerHeight = "auto" | "fixed";
3118
+
3119
+ declare interface TreeNode {
3120
+ id: string | number;
3121
+ key: string | number;
3122
+ path: any[];
3123
+ displayName?: string;
3124
+ children?: TreeNode[];
3125
+ parentIds: (string | number)[];
3126
+ selectable: boolean;
3127
+ loaded?: boolean;
3128
+ [x: string]: any;
3129
+ }
3130
+
3131
+ declare type TRY_STATEMENT = typeof T_TRY_STATEMENT;
3132
+
3133
+ declare interface TryStatement extends ScripNodeBase {
3134
+ type: TRY_STATEMENT;
3135
+ tryB: BlockStatement;
3136
+ catchB?: BlockStatement;
3137
+ catchV?: Identifier;
3138
+ finallyB?: BlockStatement;
3139
+ }
3140
+
3141
+ declare type UNARY_EXPRESSION = typeof T_UNARY_EXPRESSION;
3142
+
3143
+ declare interface UnaryExpression extends ExpressionBase {
3144
+ type: UNARY_EXPRESSION;
3145
+ op: UnaryOpSymbols;
3146
+ expr: Expression;
3147
+ }
3148
+
3149
+ declare type UnaryOpSymbols = "+" | "-" | "~" | "!" | "typeof" | "delete";
3150
+
3151
+ declare type UpdateStateFn = (componentState: any, options?: any) => void;
3152
+
3153
+ /**
3154
+ * This React hook makes the current context of application services available
3155
+ * within any component logic using the hook.
3156
+ */
3157
+ declare function useAppContext(): AppContextObject;
3158
+
3159
+ declare function useAppLayoutContext(): IAppLayoutContext;
3160
+
3161
+ declare function useColors(...colorNames: (string | ColorDef)[]): Record<string, string>;
3162
+
3163
+ declare function useComponentThemeClass(descriptor: ComponentMetadata): string;
3164
+
3165
+ declare function useDevTools(): {
3166
+ projectCompilation: ProjectCompilation;
3167
+ inspectedNode: any;
3168
+ sources: Record<string, string>;
3169
+ isOpen: boolean;
3170
+ setIsOpen: (isOpen: boolean) => void;
3171
+ devToolsEnabled: boolean;
3172
+ mockApi: any;
3173
+ clickPosition: {
3174
+ x: number;
3175
+ y: number;
3176
+ };
3177
+ };
3178
+
3179
+ declare const useEvent: UseEventOverload;
3180
+
3181
+ declare interface UseEventOverload {
3182
+ <TF extends callbackType>(callback: TF): TF;
3183
+ <TF extends callbackType>(callback: TF): any;
3184
+ }
3185
+
3186
+ declare const useLogger: () => LogContextType;
3187
+
3188
+ declare function useOption(): OptionContextValue;
3189
+
3190
+ declare const useSearchContextContent: () => Record<string, SearchItemData>;
3191
+
3192
+ declare function useTheme(): ThemeScope;
3193
+
3194
+ declare function useThemes(): AppThemes;
3195
+
3196
+ declare type ValidationStatus = (typeof validationStatusValues)[number];
3197
+
3198
+ declare const validationStatusValues: readonly ["none", "error", "warning", "valid"];
3199
+
3200
+ declare type ValueExtractor = {
3201
+ (expression?: any, strict?: boolean): any;
3202
+ asString(expression?: any): string;
3203
+ asOptionalString<T extends string>(expression?: any, defValue?: string): T | undefined;
3204
+ asOptionalStringArray(expression?: any): (string | undefined)[];
3205
+ asDisplayText(expression?: any): string;
3206
+ asNumber(expression?: any): number;
3207
+ asOptionalNumber(expression?: any, defValue?: number): number | undefined;
3208
+ asBoolean(expression?: any): boolean;
3209
+ asOptionalBoolean(expression?: any, defValue?: boolean): boolean | undefined;
3210
+ asSize(expression?: any): string;
3211
+ };
3212
+
3213
+ declare type VAR_DECLARATION = typeof T_VAR_DECLARATION;
3214
+
3215
+ declare type VAR_STATEMENT = typeof T_VAR_STATEMENT;
3216
+
3217
+ declare interface VarDeclaration extends ExpressionBase {
3218
+ type: VAR_DECLARATION;
3219
+ id?: string;
3220
+ aDestr?: ArrayDestructure[];
3221
+ oDestr?: ObjectDestructure[];
3222
+ expr?: Expression;
3223
+ }
3224
+
3225
+ declare interface VarStatement extends ScripNodeBase {
3226
+ type: VAR_STATEMENT;
3227
+ decls: ReactiveVarDeclaration[];
3228
+ }
3229
+
3230
+ declare interface VisualCondition extends ConditionBase {
3231
+ type: "visual";
3232
+ }
3233
+
3234
+ declare const VisuallyHidden: ({ children, ...props }: {
3235
+ children: React.ReactNode;
3236
+ }) => JSX_2.Element;
3237
+
3238
+ declare type WHILE_STATEMENT = typeof T_WHILE_STATEMENT;
3239
+
3240
+ declare interface WhileStatement extends ScripNodeBase {
3241
+ type: WHILE_STATEMENT;
3242
+ cond: Expression;
3243
+ body: Statement;
3244
+ }
3245
+
3246
+ /**
3247
+ * Extract a human-readable display label from a native library event object.
3248
+ * Tries common fields in order of specificity. Returns undefined if nothing
3249
+ * useful can be extracted, in which case the trace will just show the event type.
3250
+ */
3251
+ /**
3252
+ * Creates a complete XMLUI component renderer by automatically bridging
3253
+ * XMLUI markup props to React component props.
3254
+ *
3255
+ * Instead of manually mapping every prop through extractValue, lookupEventHandler,
3256
+ * etc., wrapComponent handles the plumbing automatically. You only need to declare
3257
+ * the exceptions — which props are booleans, which are events, which need renaming.
3258
+ *
3259
+ * Everything in node.props that isn't explicitly handled gets forwarded via
3260
+ * extractValue() by default, so new props on the native component "just work"
3261
+ * without touching the wrapper.
3262
+ *
3263
+ * @param type - The XMLUI component type name (e.g., "Slider")
3264
+ * @param Component - The native React component
3265
+ * @param metadata - The component metadata (from createMetadata)
3266
+ * @param config - Configuration for prop mapping
3267
+ * @returns A ComponentRendererDef ready for registration
3268
+ */
3269
+ declare function wrapComponent<TMd extends ComponentMetadata>(type: string, Component: default_2.ComponentType<any>, metadata: TMd, config?: WrapComponentConfig): ComponentRendererDef;
3270
+
3271
+ /**
3272
+ * Configuration for wrapComponent. Only specify what can't be inferred
3273
+ * from conventions.
3274
+ */
3275
+ declare type WrapComponentConfig = {
3276
+ /**
3277
+ * Props that should be extracted with extractValue.asOptionalBoolean
3278
+ * instead of the default extractValue.
3279
+ */
3280
+ booleans?: string[];
3281
+ /**
3282
+ * Props that should be extracted with extractValue.asOptionalNumber.
3283
+ */
3284
+ numbers?: string[];
3285
+ /**
3286
+ * Props that should be extracted with extractValue.asOptionalString.
3287
+ */
3288
+ strings?: string[];
3289
+ /**
3290
+ * Event mappings. Maps XMLUI event names to React prop names.
3291
+ *
3292
+ * - Array form: ["click"] assumes onClick (on + capitalize convention)
3293
+ * - Object form: { didChange: "onDidChange" } for non-standard mappings
3294
+ */
3295
+ events?: string[] | Record<string, string>;
3296
+ /**
3297
+ * Props that should use lookupSyncCallback instead of extractValue.
3298
+ * Maps XMLUI prop name to React prop name (or same name if identical).
3299
+ */
3300
+ callbacks?: string[] | Record<string, string>;
3301
+ /**
3302
+ * Rename XMLUI prop names to different React prop names.
3303
+ * e.g., { minValue: "min", maxValue: "max" }
3304
+ */
3305
+ rename?: Record<string, string>;
3306
+ /**
3307
+ * Props to exclude from automatic forwarding.
3308
+ */
3309
+ exclude?: string[];
3310
+ /**
3311
+ * Whether this component uses state.value / updateState / initialValue.
3312
+ * Defaults to true if the metadata has events.didChange or props.initialValue.
3313
+ */
3314
+ stateful?: boolean;
3315
+ /**
3316
+ * Props that should be resolved via extractResourceUrl instead of extractValue.
3317
+ * Use for props that contain logical resource URLs (e.g., image src, avatar url).
3318
+ */
3319
+ resourceUrls?: string[];
3320
+ /**
3321
+ * When true, passes an `onNativeEvent` callback to the render component.
3322
+ * The render component can call this with any native library event object.
3323
+ * The wrapper will automatically trace it using the event's `type` field.
3324
+ *
3325
+ * This enables "let everything through" event capture for components that
3326
+ * wrap libraries with their own event systems (e.g., ECharts, Monaco, etc.).
3327
+ */
3328
+ captureNativeEvents?: boolean;
3329
+ /**
3330
+ * Optional layout context passed to renderChild when rendering node.children.
3331
+ * Use this when the component needs to wrap its children in a specific layout,
3332
+ * e.g. { type: "Stack", orientation: "vertical" }.
3333
+ */
3334
+ childrenLayoutContext?: LayoutContext;
3335
+ /**
3336
+ * When true, passes `registerComponentApi` to the native component so
3337
+ * it can register runtime APIs (e.g., focus(), setValue()). Defaults to false.
3338
+ * Only set this for components that actually call registerComponentApi.
3339
+ */
3340
+ exposeRegisterApi?: boolean;
3341
+ /**
3342
+ * When true, passes `node.uid` as the `uid` prop to the native component.
3343
+ * Use for components that need their XMLUI id as an HTML anchor / DOM id
3344
+ * (e.g., Bookmark).
3345
+ */
3346
+ passUid?: boolean;
3347
+ /**
3348
+ * Props holding XMLUI component definitions (valueType: "ComponentDef")
3349
+ * that should be rendered as React nodes via renderChild and passed to
3350
+ * the native component.
3351
+ *
3352
+ * - Array form: ["emptyListTemplate"] — prop name stays the same.
3353
+ * - Object form: { emptyListTemplate: "emptyList" } — maps XMLUI prop to React prop name.
3354
+ *
3355
+ * ComponentDef props not listed here or in `renderers` are auto-detected
3356
+ * from metadata and treated as static templates with the same prop name.
3357
+ */
3358
+ templates?: string[] | Record<string, string>;
3359
+ /**
3360
+ * Template props (valueType: "ComponentDef") that should be converted to
3361
+ * render-prop callbacks. The callback wraps the template in MemoizedItem
3362
+ * with context variables derived from the callback's runtime arguments.
3363
+ *
3364
+ * Maps XMLUI prop name → RendererConfig.
3365
+ */
3366
+ renderers?: Record<string, RendererConfig>;
3367
+ /**
3368
+ * When true, passes classes[COMPONENT_PART_KEY] as contentClassName
3369
+ * to the native component. Used by portal-rendering components
3370
+ * (e.g., Select, AutoComplete, DatePicker).
3371
+ */
3372
+ contentClassName?: boolean;
3373
+ /**
3374
+ * Custom render function. When provided, called instead of `<Component {...props} />`.
3375
+ * Receives the already-extracted props and the raw renderer context.
3376
+ *
3377
+ * Use for components where the rendered output or children layout depends on
3378
+ * runtime prop values (e.g., different layout modes based on orientation).
3379
+ * Auto children rendering is skipped when customRender is provided.
3380
+ */
3381
+ customRender?: (props: Record<string, any>, context: any) => default_2.ReactNode;
3382
+ deriveAriaLabel?: (props: Record<string, any>) => string | undefined;
3383
+ };
3384
+
3385
+ /**
3386
+ * Creates a complete XMLUI component renderer that also manages value state
3387
+ * lifecycle. Unlike wrapComponent (which passes updateState to the native
3388
+ * component), wrapCompound handles local state, initialValue parsing, value
3389
+ * syncing, and updateState calls internally via a StateWrapper.
3390
+ *
3391
+ * The RenderComponent receives:
3392
+ * - `value` — current value (already parsed, synced)
3393
+ * - `onChange(newValue)` — call to update value
3394
+ * - `registerApi(apis)` — call to register component APIs
3395
+ * - All other forwarded props (min, max, className, etc.)
3396
+ *
3397
+ * No XMLUI imports needed in the render component.
3398
+ */
3399
+ declare function wrapCompound<TMd extends ComponentMetadata>(type: string, RenderComponent: default_2.ComponentType<any>, metadata: TMd, config?: WrapCompoundConfig): ComponentRendererDef;
3400
+
3401
+ /**
3402
+ * Extended configuration for wrapCompound.
3403
+ */
3404
+ declare type WrapCompoundConfig = WrapComponentConfig & {
3405
+ /** Parse raw initialValue into the component's native format. */
3406
+ parseInitialValue?: (raw: any, props: Record<string, any>) => any;
3407
+ /** Format external value changes (e.g., clamp to min/max). Defaults to identity. */
3408
+ formatExternalValue?: (value: any, props: Record<string, any>) => any;
3409
+ };
3410
+
3411
+ declare interface XmlUiAttribute extends XmlUiNodeBase {
3412
+ type: "XmlUiAttribute";
3413
+ name: string;
3414
+ namespace?: string;
3415
+ value?: string;
3416
+ preserveQuotes?: boolean;
3417
+ preserveSpaces?: boolean;
3418
+ }
3419
+
3420
+ declare interface XmlUiComment extends XmlUiNodeBase {
3421
+ type: "XmlUiComment";
3422
+ text?: string;
3423
+ }
3424
+
3425
+ declare interface XmlUiElement extends XmlUiNodeBase {
3426
+ type: "XmlUiElement";
3427
+ name: string;
3428
+ namespace?: string;
3429
+ attributes?: XmlUiAttribute[];
3430
+ text?: string;
3431
+ preserveSpaces?: boolean;
3432
+ childNodes?: XmlUiNode[];
3433
+ }
3434
+
3435
+ declare namespace xmluiExports {
3436
+ export {
3437
+ ThemeDefinition,
3438
+ ComponentDef,
3439
+ ComponentRendererDef,
3440
+ CompoundComponentDef,
3441
+ CompoundComponentRendererInfo,
3442
+ PropertyValueDescription,
3443
+ ComponentLike,
3444
+ StandaloneAppDescription,
3445
+ StandaloneJsonConfig,
3446
+ ApiInterceptorDefinition,
3447
+ RegisterComponentApiFn,
3448
+ TreeNode,
3449
+ RendererContext,
3450
+ ComponentMetadata,
3451
+ ThemeTone,
3452
+ XmlUiNode,
3453
+ SearchItemData,
3454
+ StandaloneApp,
3455
+ StandaloneExtensionManager,
3456
+ createComponentRenderer,
3457
+ createUserDefinedComponentRenderer,
3458
+ createMetadata,
3459
+ d,
3460
+ dComponent,
3461
+ dAutoFocus,
3462
+ dClick,
3463
+ dCollapse,
3464
+ dDidChange,
3465
+ dDidClose,
3466
+ dDidOpen,
3467
+ dEnabled,
3468
+ dFocus,
3469
+ dEndIcon,
3470
+ dEndText,
3471
+ dExpanded,
3472
+ dExpand,
3473
+ dGotFocus,
3474
+ dIndeterminate,
3475
+ dInit,
3476
+ dInitialValue,
3477
+ dInternal,
3478
+ dLabel,
3479
+ dLabelBreak,
3480
+ dLabelPosition,
3481
+ dLabelWidth,
3482
+ dLostFocus,
3483
+ dMaxLength,
3484
+ dMulti,
3485
+ dOrientation,
3486
+ dPlaceholder,
3487
+ dReadonly,
3488
+ dRequired,
3489
+ dStartIcon,
3490
+ dStartText,
3491
+ dSetValueApi,
3492
+ dTriggerTemplate,
3493
+ dValidationStatus,
3494
+ dValue,
3495
+ dValueApi,
3496
+ parseScssVar,
3497
+ startApp,
3498
+ startIslands,
3499
+ useTheme,
3500
+ AppRoot,
3501
+ ErrorBoundary,
3502
+ ThemedIcon as Icon,
3503
+ ThemedStack as Stack,
3504
+ ThemedButton as Button,
3505
+ Splitter,
3506
+ getColor,
3507
+ ThemedTabItem as TabItem,
3508
+ ThemedTabs as Tabs,
3509
+ useColors,
3510
+ toCssVar,
3511
+ useDevTools,
3512
+ useLogger,
3513
+ errReportComponent,
3514
+ xmlUiMarkupToComponent,
3515
+ ApiInterceptorProvider,
3516
+ ThemedSpinner as Spinner,
3517
+ useThemes,
3518
+ builtInThemes,
3519
+ XmlUiHelper,
3520
+ ThemedText as Text,
3521
+ ThemedTextBox as TextBox,
3522
+ NestedApp,
3523
+ VisuallyHidden,
3524
+ ThemedLinkNative as LinkNative,
3525
+ ThemedHeading as Heading,
3526
+ ThemedImage as Image,
3527
+ ThemedMarkdown as Markdown,
3528
+ ThemedTableOfContents as TableOfContents,
3529
+ ThemedFlowLayout as FlowLayout,
3530
+ FlowItemWrapper,
3531
+ COMPONENT_PART_KEY,
3532
+ Part,
3533
+ useAppContext,
3534
+ ToneChangerButton,
3535
+ NavPanelCollapseButton,
3536
+ Logo,
3537
+ useSearchContextContent,
3538
+ useAppLayoutContext,
3539
+ useComponentThemeClass,
3540
+ StyleProvider,
3541
+ StyleRegistry,
3542
+ useEvent,
3543
+ StandaloneComponent,
3544
+ Theme,
3545
+ ToneSwitch,
3546
+ Tooltip,
3547
+ ThemedDropdownMenu as DropdownMenu,
3548
+ ThemedMenuItem as MenuItem,
3549
+ ContentSeparator,
3550
+ MemoizedItem,
3551
+ SEARCH_DEFAULT_CATEGORY,
3552
+ SEARCH_CATEGORIES,
3553
+ wrapComponent,
3554
+ wrapCompound,
3555
+ HiddenOption,
3556
+ OptionTypeProvider,
3557
+ Option_2 as Option,
3558
+ OptionContext,
3559
+ useOption
3560
+ }
3561
+ }
3562
+
3563
+ declare type XmlUiFragment = XmlUiNode | XmlUiNode[];
3564
+
3565
+ /**
3566
+ * Helper class for XMLUI serialization and parsing
3567
+ */
3568
+ declare class XmlUiHelper {
3569
+ /**
3570
+ * Serialize the specified XML fragment into a string
3571
+ * @param xml XML fragment to serialize
3572
+ * @param options Formatting options to use
3573
+ */
3574
+ serialize(xml: XmlUiFragment, options?: XmluiSerializationOptions): string;
3575
+ /**
3576
+ * Transform the specified component definition into an XMLUI node
3577
+ * @param def Component definitions
3578
+ * @param options Transformation options
3579
+ */
3580
+ transformComponentDefinition(def: ComponentDef | CompoundComponentDef, options?: XmlUiTransformOptions): XmlUiFragment;
3581
+ /**
3582
+ * Transform the specified object into an XMLUI nodes
3583
+ * @param def Object definition
3584
+ * @param options Transformation options
3585
+ */
3586
+ transformObject(def: Record<string, any>, options?: XmlUiTransformOptions): XmlUiNode[] | null;
3587
+ /**
3588
+ * Transforms the specified simple component definition into an XMLUI node
3589
+ * @param def Component definition
3590
+ * @param options Transformation options
3591
+ */
3592
+ private transformSimpleComponentDefinition;
3593
+ /**
3594
+ * Transforms the specified simple component definition into an Xml node
3595
+ * @param def Compound component definition
3596
+ * @param options Transformation options
3597
+ */
3598
+ private transformCompoundComponentDefinition;
3599
+ /**
3600
+ * Transforms a value into an XMLUI element
3601
+ * @param nodeName Name of the value node
3602
+ * @param name Optional (property) name
3603
+ * @param value Value to transform
3604
+ * @param options Transformation options
3605
+ */
3606
+ private transformValue;
3607
+ /**
3608
+ * Transforms the specified simple component definition into an Xml node
3609
+ * @param name Element name
3610
+ * @param value Value to transform
3611
+ * @param options Transformation options
3612
+ */
3613
+ private transformObjectValue;
3614
+ /**
3615
+ * Add a property to the specified XMLUI element
3616
+ * @param element XML element
3617
+ * @param name Element name
3618
+ * @param value Element value
3619
+ * @param options Transformation options
3620
+ */
3621
+ private addProperty;
3622
+ private addComponentElement;
3623
+ /**
3624
+ * Adds a list to the specified XML element
3625
+ * @param element XML element
3626
+ * @param name Name of the list (child in `element`)
3627
+ * @param prefix Prefix to use for the list
3628
+ * @param list List with items
3629
+ * @param options Transformation options
3630
+ */
3631
+ private addList;
3632
+ /**
3633
+ * Adds a component list to the specified element
3634
+ * @param element XML element
3635
+ * @param name Name to use for the wrapper element
3636
+ * @param list List with component items
3637
+ * @private
3638
+ */
3639
+ private addComponentList;
3640
+ }
3641
+
3642
+ declare function xmlUiMarkupToComponent(source: string, fileId?: string | number, preResolvedImports?: CollectedDeclarations): ParserResult;
3643
+
3644
+ declare type XmlUiNode = XmlUiComment | XmlUiAttribute | XmlUiElement;
3645
+
3646
+ declare interface XmlUiNodeBase {
3647
+ type: XmlUiNode["type"];
3648
+ }
3649
+
3650
+ declare type XmluiSerializationOptions = {
3651
+ prettify?: boolean;
3652
+ indents?: number;
3653
+ lineLength?: number;
3654
+ useQuotes?: boolean;
3655
+ useSpaceBeforeClose?: boolean;
3656
+ breakClosingTag?: boolean;
3657
+ };
3658
+
3659
+ /**
3660
+ * Options to use with markup transformation from memory format to XMLUI structure
3661
+ */
3662
+ declare type XmlUiTransformOptions = {
3663
+ preserveLineBreaks?: boolean;
3664
+ preserveSpecialChars?: boolean;
3665
+ removeQuotes?: boolean;
3666
+ extractProps?: boolean;
3667
+ preferTextToValue?: boolean;
3668
+ };
3669
+
3670
+ export { }
3671
+
3672
+
3673
+ declare module "@tanstack/table-core" {
3674
+ interface TableMeta<TData extends RowData> {
3675
+ cellRenderer: (...args: any[]) => any;
3676
+ }
3677
+ interface ColumnMeta<TData extends RowData, TValue> {
3678
+ style?: CSSProperties;
3679
+ className?: string;
3680
+ starSizedWidth?: string;
3681
+ accessorKey?: string;
3682
+ pinTo?: string;
3683
+ cellRenderer?: (row: any, rowIdx: number, colIdx: number, value?: any) => ReactNode;
3684
+ }
3685
+ }