xmlui 0.9.60 → 0.9.62

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 (184) hide show
  1. package/dist/lib/{apiInterceptorWorker-CNiXy9XE.mjs → apiInterceptorWorker-BXyXjzpe.mjs} +1 -1
  2. package/dist/lib/{index-B1V2vJWh.mjs → index-BRbUXnCk.mjs} +13541 -12973
  3. package/dist/lib/index.css +1 -1
  4. package/dist/lib/language-server-web-worker.mjs +1 -1
  5. package/dist/lib/language-server.mjs +1 -1
  6. package/dist/lib/{metadata-utils-4EQ6kQIM.mjs → metadata-utils-DJM8orNd.mjs} +40 -31
  7. package/dist/lib/{server-common-SNl_47nE.mjs → server-common-D0VA8gIv.mjs} +1450 -858
  8. package/dist/lib/{transform-CgRMkbb0.mjs → transform-BdB0APqE.mjs} +1543 -1384
  9. package/dist/lib/xmlui-parser.d.ts +76 -253
  10. package/dist/lib/xmlui-parser.mjs +49 -42
  11. package/dist/lib/{xmlui-serializer-EDw51UFN.mjs → xmlui-serializer-COAfRndx.mjs} +1 -1
  12. package/dist/lib/xmlui.d.ts +88 -670
  13. package/dist/lib/xmlui.mjs +2 -2
  14. package/dist/metadata/{apiInterceptorWorker-DsjW46f_.mjs → apiInterceptorWorker-8ismUE1H.mjs} +1 -1
  15. package/dist/metadata/{collectedComponentMetadata-CBiI_eDf.mjs → collectedComponentMetadata-xeEJhtEt.mjs} +13617 -12870
  16. package/dist/metadata/style.css +1 -1
  17. package/dist/metadata/xmlui-metadata.mjs +1 -1
  18. package/dist/metadata/xmlui-metadata.umd.js +116 -116
  19. package/dist/scripts/package.json +5 -5
  20. package/dist/scripts/src/abstractions/ComponentDefs.js +0 -8
  21. package/dist/scripts/src/abstractions/ThemingDefs.js +0 -9
  22. package/dist/scripts/src/components/APICall/APICall.js +30 -18
  23. package/dist/scripts/src/components/Accordion/Accordion.js +5 -4
  24. package/dist/scripts/src/components/Accordion/AccordionItem.js +10 -4
  25. package/dist/scripts/src/components/App/App.js +9 -4
  26. package/dist/scripts/src/components/App/AppNative.js +11 -1
  27. package/dist/scripts/src/components/AppHeader/AppHeader.js +1 -2
  28. package/dist/scripts/src/components/AppState/AppState.js +3 -3
  29. package/dist/scripts/src/components/AutoComplete/AutoComplete.js +6 -7
  30. package/dist/scripts/src/components/Avatar/Avatar.js +3 -3
  31. package/dist/scripts/src/components/Backdrop/Backdrop.js +1 -2
  32. package/dist/scripts/src/components/Badge/Badge.js +1 -2
  33. package/dist/scripts/src/components/Bookmark/Bookmark.js +2 -2
  34. package/dist/scripts/src/components/Breakout/Breakout.js +2 -2
  35. package/dist/scripts/src/components/Button/Button.js +1 -2
  36. package/dist/scripts/src/components/Card/Card.js +2 -3
  37. package/dist/scripts/src/components/Card/CardNative.js +2 -1
  38. package/dist/scripts/src/components/Carousel/Carousel.js +6 -7
  39. package/dist/scripts/src/components/Carousel/CarouselItem.js +2 -2
  40. package/dist/scripts/src/components/ChangeListener/ChangeListener.js +1 -2
  41. package/dist/scripts/src/components/Charts/BarChart/BarChart.js +2 -2
  42. package/dist/scripts/src/components/Charts/DonutChart/DonutChart.js +8 -7
  43. package/dist/scripts/src/components/Charts/LabelList/LabelList.js +2 -2
  44. package/dist/scripts/src/components/Charts/Legend/Legend.js +2 -2
  45. package/dist/scripts/src/components/Charts/LineChart/LineChart.js +6 -6
  46. package/dist/scripts/src/components/Charts/PieChart/PieChart.js +14 -10
  47. package/dist/scripts/src/components/Charts/PieChart/PieChartNative.js +9 -4
  48. package/dist/scripts/src/components/Checkbox/Checkbox.js +1 -2
  49. package/dist/scripts/src/components/CodeBlock/CodeBlock.js +6 -3
  50. package/dist/scripts/src/components/CodeBlock/CodeBlockNative.js +1 -1
  51. package/dist/scripts/src/components/ColorPicker/ColorPicker.js +1 -2
  52. package/dist/scripts/src/components/ColorPicker/ColorPickerNative.js +2 -2
  53. package/dist/scripts/src/components/Column/Column.js +2 -2
  54. package/dist/scripts/src/components/ComponentProvider.js +4 -0
  55. package/dist/scripts/src/components/ContentSeparator/ContentSeparator.js +2 -2
  56. package/dist/scripts/src/components/DatePicker/DatePicker.js +2 -3
  57. package/dist/scripts/src/components/DropdownMenu/DropdownMenu.js +6 -7
  58. package/dist/scripts/src/components/EmojiSelector/EmojiSelector.js +2 -3
  59. package/dist/scripts/src/components/ExpandableItem/ExpandableItem.js +9 -10
  60. package/dist/scripts/src/components/FileInput/FileInput.js +14 -15
  61. package/dist/scripts/src/components/FileUploadDropZone/FileUploadDropZone.js +4 -4
  62. package/dist/scripts/src/components/FlowLayout/FlowLayout.js +2 -2
  63. package/dist/scripts/src/components/FlowLayout/FlowLayoutNative.js +35 -6
  64. package/dist/scripts/src/components/Footer/Footer.js +4 -3
  65. package/dist/scripts/src/components/Form/Form.js +12 -9
  66. package/dist/scripts/src/components/Form/FormNative.js +12 -4
  67. package/dist/scripts/src/components/FormItem/FormItem.js +7 -8
  68. package/dist/scripts/src/components/FormItem/ItemWithLabel.js +1 -1
  69. package/dist/scripts/src/components/FormSection/FormSection.js +2 -2
  70. package/dist/scripts/src/components/Heading/Heading.js +11 -11
  71. package/dist/scripts/src/components/HelloWorld/HelloWorld.js +102 -0
  72. package/dist/scripts/src/components/HelloWorld/HelloWorldNative.js +92 -0
  73. package/dist/scripts/src/components/HoverCard/HoverCard.js +1 -2
  74. package/dist/scripts/src/components/HtmlTags/HtmlTags.js +297 -297
  75. package/dist/scripts/src/components/Icon/Icon.js +5 -5
  76. package/dist/scripts/src/components/Image/Image.js +4 -5
  77. package/dist/scripts/src/components/InspectButton/InspectButton.js +2 -2
  78. package/dist/scripts/src/components/Items/Items.js +2 -3
  79. package/dist/scripts/src/components/Link/Link.js +3 -4
  80. package/dist/scripts/src/components/Link/LinkNative.js +46 -1
  81. package/dist/scripts/src/components/List/List.js +15 -16
  82. package/dist/scripts/src/components/Logo/Logo.js +2 -2
  83. package/dist/scripts/src/components/Markdown/Markdown.js +6 -6
  84. package/dist/scripts/src/components/Markdown/MarkdownNative.js +2 -4
  85. package/dist/scripts/src/components/Markdown/parse-binding-expr.js +1 -1
  86. package/dist/scripts/src/components/Markdown/utils.js +32 -13
  87. package/dist/scripts/src/components/ModalDialog/ModalDialog.js +9 -9
  88. package/dist/scripts/src/components/NavGroup/NavGroup.js +2 -3
  89. package/dist/scripts/src/components/NavGroup/NavGroupContext.js +1 -0
  90. package/dist/scripts/src/components/NavGroup/NavGroupNative.js +6 -2
  91. package/dist/scripts/src/components/NavLink/NavLink.js +3 -4
  92. package/dist/scripts/src/components/NavLink/NavLinkNative.js +10 -9
  93. package/dist/scripts/src/components/NavPanel/NavPanel.js +4 -4
  94. package/dist/scripts/src/components/NavPanel/NavPanelNative.js +132 -3
  95. package/dist/scripts/src/components/NestedApp/AppWithCodeView.js +24 -5
  96. package/dist/scripts/src/components/NestedApp/AppWithCodeViewNative.js +64 -7
  97. package/dist/scripts/src/components/NestedApp/NestedApp.js +19 -9
  98. package/dist/scripts/src/components/NestedApp/NestedAppNative.js +11 -7
  99. package/dist/scripts/src/components/NoResult/NoResult.js +1 -2
  100. package/dist/scripts/src/components/NumberBox/NumberBox.js +5 -6
  101. package/dist/scripts/src/components/NumberBox/NumberBox2.js +5 -6
  102. package/dist/scripts/src/components/Option/Option.js +5 -5
  103. package/dist/scripts/src/components/PageMetaTitle/PageMetaTitle.js +2 -2
  104. package/dist/scripts/src/components/Pages/Pages.js +7 -8
  105. package/dist/scripts/src/components/Pages/PagesNative.js +8 -3
  106. package/dist/scripts/src/components/PositionedContainer/PositionedContainer.js +3 -3
  107. package/dist/scripts/src/components/ProgressBar/ProgressBar.js +2 -2
  108. package/dist/scripts/src/components/Queue/Queue.js +16 -16
  109. package/dist/scripts/src/components/RadioGroup/RadioGroup.js +13 -13
  110. package/dist/scripts/src/components/RadioGroup/RadioGroupNative.js +13 -28
  111. package/dist/scripts/src/components/RadioGroup/RadioItem.js +2 -2
  112. package/dist/scripts/src/components/RealTimeAdapter/RealTimeAdapter.js +3 -3
  113. package/dist/scripts/src/components/Redirect/Redirect.js +2 -2
  114. package/dist/scripts/src/components/Select/Select.js +8 -8
  115. package/dist/scripts/src/components/Select/SelectNative.js +1 -1
  116. package/dist/scripts/src/components/SelectionStore/SelectionStore.js +2 -2
  117. package/dist/scripts/src/components/Slider/Slider.js +4 -5
  118. package/dist/scripts/src/components/SpaceFiller/SpaceFiller.js +2 -2
  119. package/dist/scripts/src/components/Spinner/Spinner.js +2 -2
  120. package/dist/scripts/src/components/Splitter/Splitter.js +2 -3
  121. package/dist/scripts/src/components/Stack/Stack.js +1 -2
  122. package/dist/scripts/src/components/StickyBox/StickyBox.js +2 -2
  123. package/dist/scripts/src/components/StickyBox/StickyBoxNative.js +2 -0
  124. package/dist/scripts/src/components/Switch/Switch.js +7 -4
  125. package/dist/scripts/src/components/Table/Table.js +19 -20
  126. package/dist/scripts/src/components/Table/TableNative.js +6 -2
  127. package/dist/scripts/src/components/Table/useRowSelection.js +6 -2
  128. package/dist/scripts/src/components/TableOfContents/TableOfContents.js +2 -2
  129. package/dist/scripts/src/components/Tabs/TabItem.js +1 -2
  130. package/dist/scripts/src/components/Tabs/Tabs.js +9 -6
  131. package/dist/scripts/src/components/Text/Text.js +6 -6
  132. package/dist/scripts/src/components/TextArea/TextArea.js +4 -5
  133. package/dist/scripts/src/components/TextBox/TextBox.js +4 -5
  134. package/dist/scripts/src/components/Theme/NotificationToast.js +11 -0
  135. package/dist/scripts/src/components/Theme/Theme.js +4 -4
  136. package/dist/scripts/src/components/Theme/ThemeNative.js +4 -4
  137. package/dist/scripts/src/components/ToneChangerButton/ToneChangerButton.js +2 -2
  138. package/dist/scripts/src/components/Tree/TreeComponent.js +1 -2
  139. package/dist/scripts/src/components/TreeDisplay/TreeDisplay.js +4 -2
  140. package/dist/scripts/src/components/metadata-helpers.js +8 -0
  141. package/dist/scripts/src/components-core/Fragment.js +7 -4
  142. package/dist/scripts/src/components-core/LoaderComponent.js +1 -1
  143. package/dist/scripts/src/components-core/RestApiProxy.js +11 -8
  144. package/dist/scripts/src/components-core/Slot.js +3 -3
  145. package/dist/scripts/src/components-core/appContext/date-functions.js +1 -0
  146. package/dist/scripts/src/components-core/descriptorHelper.js +9 -0
  147. package/dist/scripts/src/components-core/interception/ApiInterceptorProvider.js +2 -2
  148. package/dist/scripts/src/components-core/loader/ApiLoader.js +4 -4
  149. package/dist/scripts/src/components-core/loader/DataLoader.js +20 -20
  150. package/dist/scripts/src/components-core/loader/ExternalDataLoader.js +6 -6
  151. package/dist/scripts/src/components-core/loader/MockLoaderRenderer.js +4 -4
  152. package/dist/scripts/src/components-core/rendering/AppContent.js +8 -4
  153. package/dist/scripts/src/components-core/rendering/AppRoot.js +4 -2
  154. package/dist/scripts/src/components-core/rendering/ComponentAdapter.js +1 -1
  155. package/dist/scripts/src/components-core/rendering/Container.js +2 -2
  156. package/dist/scripts/src/components-core/rendering/StateContainer.js +8 -2
  157. package/dist/scripts/src/components-core/rendering/reducer.js +1 -1
  158. package/dist/scripts/src/components-core/script-runner/ScriptingSourceTree.js +45 -0
  159. package/dist/scripts/src/components-core/script-runner/eval-tree-async.js +1 -1
  160. package/dist/scripts/src/components-core/script-runner/eval-tree-common.js +1 -1
  161. package/dist/scripts/src/components-core/script-runner/eval-tree-sync.js +1 -1
  162. package/dist/scripts/src/components-core/script-runner/process-statement-async.js +1 -1
  163. package/dist/scripts/src/components-core/script-runner/process-statement-common.js +1 -1
  164. package/dist/scripts/src/components-core/script-runner/process-statement-sync.js +1 -1
  165. package/dist/scripts/src/components-core/script-runner/visitors.js +1 -1
  166. package/dist/scripts/src/components-core/theming/ThemeProvider.js +2 -2
  167. package/dist/scripts/src/components-core/theming/layout-resolver.js +18 -0
  168. package/dist/scripts/src/components-core/theming/themes/root.js +3 -0
  169. package/dist/scripts/src/components-core/theming/utils.js +31 -0
  170. package/dist/scripts/src/components-core/utils/date-utils.js +60 -0
  171. package/dist/scripts/src/components-core/utils/statementUtils.js +1 -1
  172. package/dist/scripts/src/parsers/scripting/Parser.js +1 -1
  173. package/dist/scripts/src/parsers/scripting/code-behind-collect.js +1 -1
  174. package/dist/scripts/src/parsers/scripting/modules.js +1 -1
  175. package/dist/scripts/src/parsers/scripting/tree-visitor.js +1 -1
  176. package/dist/scripts/src/parsers/xmlui-parser/parser.js +42 -39
  177. package/dist/scripts/src/parsers/xmlui-parser/syntax-node.js +65 -0
  178. package/dist/scripts/src/parsers/xmlui-parser/transform.js +10 -8
  179. package/dist/scripts/src/parsers/xmlui-parser/utils.js +1 -2
  180. package/dist/standalone/xmlui-standalone.es.d.ts +88 -670
  181. package/dist/standalone/xmlui-standalone.umd.js +257 -257
  182. package/package.json +5 -5
  183. /package/dist/scripts/src/components-core/{abstractions → rendering}/containers.js +0 -0
  184. /package/dist/scripts/src/{abstractions/scripting/ScriptingSourceTree.js → parsers/scripting/ScriptingNodeTypes.js} +0 -0
@@ -51,8 +51,17 @@ declare interface AssignmentExpression extends ExpressionBase {
51
51
 
52
52
  declare type AssignmentSymbols = "=" | "+=" | "-=" | "**=" | "*=" | "/=" | "%=" | "<<=" | ">>=" | ">>>=" | "&=" | "^=" | "|=" | "&&=" | "||=" | "??=";
53
53
 
54
+ export declare class AttributeKeyNode extends Node_2 {
55
+ }
56
+
54
57
  declare type AttributeKind = "prop" | "event" | "api" | "implicit" | "layout";
55
58
 
59
+ export declare class AttributeListNode extends Node_2 {
60
+ }
61
+
62
+ export declare class AttributeNode extends Node_2 {
63
+ }
64
+
56
65
  declare type AuthDefinition = {
57
66
  defaultLoggedInUser?: any;
58
67
  };
@@ -232,94 +241,30 @@ declare type CollectedDeclarations = {
232
241
  moduleErrors?: ModuleErrors;
233
242
  };
234
243
 
235
- /**
236
- * This interface represents the properties of a component definition.
237
- */
238
244
  declare interface ComponentDef<TMd extends ComponentMetadata = ComponentMetadata> extends ComponentDefCore, Scriptable {
239
245
  props?: Record<keyof TMd["props"], any>;
240
246
  events?: Record<keyof TMd["events"], any>;
241
- /**
242
- * Components may have an API that other components can use to interact with them. This property holds
243
- * the API methods associated with this component definition.
244
- */
245
247
  api?: Record<keyof TMd["apis"], any>;
246
- /**
247
- * Components may provide context variables that can be used to in expressions and event handlers
248
- * within the component.
249
- * REVIEW: This property can be removed after migration to the new componend definition type.
250
- */
251
248
  contextVars?: Record<keyof TMd["contextVars"], string>;
252
249
  }
253
250
 
254
- /**
255
- * This interface represents the core properties of a component definition (independent
256
- * of component metadata).
257
- */
258
251
  declare interface ComponentDefCore {
259
252
  type: string;
260
253
  uid?: string;
261
254
  testId?: string;
262
- /**
263
- * A component can define namespaces on it, with the <ComponentName xmlns:KEY="VALUE" /> syntax
264
- * these are used later to resolve the `type` of the componentDef.
265
- * <KEY:Button/> will have type `VALUE.Button` (joined with a "." (dot) )
266
- */
267
255
  namespaces?: Record<string, string>;
268
- /**
269
- * Though components manage their state internally, the app logic may require user state management.
270
- * Components may have user *variables*, which the UI logic uses to manage the application state.
271
- * This property holds the variables (name and value pairs) associated with this component definition.
272
- */
273
256
  vars?: Record<string, any>;
274
- /**
275
- * Each component may have child components to constitute a hierarchy of components. This property
276
- * holds the definition of these nested children.
277
- */
278
257
  children?: ComponentDef[];
279
- /**
280
- * Components may have slots that can be filled with other components. This property holds the
281
- * contents of the slots
282
- */
283
258
  slots?: Record<string, ComponentDef[]>;
284
- /**
285
- * This property is evaluated to a Boolean value during run time. When this value is `true`, the
286
- * component with its children chain is rendered; otherwise, the entire component hierarchy is omitted
287
- * from the rendered tree.
288
- */
289
259
  when?: string | boolean;
290
- /**
291
- * Some components work with data obtained asynchronously. Fetching this data requires some state
292
- * management handling the complexity (including error handling) of data access. A *loader* is
293
- * responsible for managing this logic. This property holds the loaders associated with this component
294
- * definition.
295
- */
296
260
  loaders?: ComponentDef[];
297
- /**
298
- * Components may have functions that are used to perform some logic. This property holds the functions
299
- * (name and function body) associated with this component definition.
300
- */
301
261
  functions?: Record<string, any>;
302
- /**
303
- * Components managing state through variables or loaders are wrapped with containers responsible
304
- * for this job. Just as components, containers form a hierarchy. While working with this hierarchy,
305
- * parent components may flow state values (key and value pairs) to their child containers. This
306
- * property holds the name of state values to flow down to the direct child containers.
307
- */
308
262
  uses?: string[];
309
- /**
310
- * Arbitrary debug information that can be attached to a component definition.
311
- * Current usage:
312
- * - `debug: { source: { start: number, end: number } }` Ther start and end positions of of the source
313
- * belonging to the particular component definition.
314
- */
315
263
  debug?: Record<string, any>;
316
264
  }
317
265
 
318
266
  export declare const componentFileExtension = "xmlui";
319
267
 
320
- /**
321
- * Sometimes, components and compound components can both be used
322
- */
323
268
  declare type ComponentLike = ComponentDef | CompoundComponentDef;
324
269
 
325
270
  export declare type ComponentLints = {
@@ -330,14 +275,6 @@ export declare type ComponentLints = {
330
275
  componentName: string;
331
276
  };
332
277
 
333
- /**
334
- * Components have metadata that the rendering engine uses to render the
335
- * component. This type defines the structure of such metadata.
336
- *
337
- * The type has generic parameters to ensure that type-checking works with
338
- * the metadata defined here in concert with the renderer object using the
339
- * same metadata type.
340
- */
341
278
  declare type ComponentMetadata<TProps extends Record<string, ComponentPropertyMetadata> = Record<string, any>, TEvents extends Record<string, ComponentPropertyMetadata> = Record<string, any>, TContextValues extends Record<string, ComponentPropertyMetadata> = Record<string, any>, TApis extends Record<string, ComponentPropertyMetadata> = Record<string, any>> = {
342
279
  status?: "stable" | "experimental" | "deprecated" | "in progress";
343
280
  description?: string;
@@ -384,88 +321,24 @@ declare class ComponentMetadataProvider {
384
321
  getMetadata(): RestrictedComponentMetadata;
385
322
  }
386
323
 
387
- /**
388
- * Components have properties, events, context values, and exposed API
389
- * endpoints, each holding metadata the rendering engine uses at run time.
390
- * This type defines the structure of such metadata.
391
- */
392
324
  declare type ComponentPropertyMetadata = {
393
- /**
394
- * This field defines the description explaining the property. You can use
395
- * markdown, as the UI may display this value.
396
- */
397
325
  readonly description: string;
398
- /**
399
- * This field defines the type of the property. The rendering engine uses this
400
- * information to validate the property value.
401
- */
402
326
  readonly valueType?: PropertyValueType;
403
- /**
404
- * This field defines the available values of the property. The rendering engine
405
- * uses this information to validate the property value.
406
- */
407
327
  readonly availableValues?: readonly PropertyValueDescription[];
408
- /**
409
- * This field defines the default value of the property. The rendering engine uses
410
- * this information to set the default value of the property.
411
- */
412
328
  defaultValue?: any;
413
- /**
414
- * This field defines a validation function that the rendering engine uses to validate
415
- * the property value. The function returns one or more hinst if the property value is
416
- * invalid.
417
- */
418
329
  isValid?: IsValidFunction<any>;
419
- /**
420
- * Indicates that a particular property is internal and should not be exposed in the
421
- * documentation
422
- */
423
330
  isInternal?: boolean;
424
- /**
425
- * Indicates that a particular property is required for the component to essentially function.
426
- */
427
331
  isRequired?: boolean;
428
332
  };
429
333
 
430
334
  export declare const COMPOUND_COMP_ID = "Component";
431
335
 
432
- /**
433
- * XMLUI allows the creation of reusable components assembled from other XMLUI components (with markup).
434
- * This type represents such components. The name `CompoundComponent` refers to the assembled nature
435
- * of reusable components.
436
- */
437
336
  declare interface CompoundComponentDef extends Scriptable {
438
- /**
439
- * Each compound component must have a unique name. The markup uses this name to refer to the
440
- * particular compound component.
441
- */
442
337
  name: string;
443
- /**
444
- * Each compound component must have a single root component defining the component contents.
445
- */
446
338
  component: ComponentDef;
447
- /**
448
- * Compound components may provide an API that other components can use to interact with them. This
449
- * property holds the API methods associated with this compound component definition.
450
- */
451
339
  api?: Record<string, any>;
452
- /**
453
- * This property holds the variables (name and value pairs) associated with this compound component
454
- * definition.
455
- */
456
340
  vars?: Record<string, any>;
457
- /**
458
- * A component can define namespaces on it, with the <ComponentName xmlns:KEY="VALUE" /> syntax
459
- * these are used later to resolve the `type` of the componentDef.
460
- * <KEY:Button/> will have type `VALUE.Button` (joined with a "." (dot) )
461
- */
462
341
  namespaces?: Record<string, string>;
463
- /**
464
- * Arbitrary debug information that can be attached to a component definition.
465
- * Current usage:
466
- * - `debug: { source: { start: number, end: number } }` Ther start and end positions of of the source
467
- * belonging to the particular component definition.
468
- */
469
342
  debug?: Record<string, any>;
470
343
  codeBehind?: string;
471
344
  }
@@ -486,6 +359,9 @@ declare interface ConstStatement extends ScripNodeBase {
486
359
  decls: VarDeclaration[];
487
360
  }
488
361
 
362
+ export declare class ContentListNode extends Node_2 {
363
+ }
364
+
489
365
  declare type CONTINUE_STATEMENT = typeof T_CONTINUE_STATEMENT;
490
366
 
491
367
  declare interface ContinueStatement extends ScripNodeBase {
@@ -644,6 +520,10 @@ declare interface DoWhileStatement extends ScripNodeBase {
644
520
  body: Statement;
645
521
  }
646
522
 
523
+ export declare class ElementNode extends Node_2 {
524
+ getAttributeListNode(): Node_2;
525
+ }
526
+
647
527
  declare type EMPTY_STATEMENT = typeof T_EMPTY_STATEMENT;
648
528
 
649
529
  declare interface EmptyStatement extends ScripNodeBase {
@@ -719,36 +599,12 @@ export declare type FindTokenSuccess = {
719
599
  sharedParents: undefined;
720
600
  };
721
601
 
722
- /**
723
- * This type describes a font definition resource.
724
- */
725
602
  declare type FontDef = {
726
- /**
727
- * Specifies a name that will be used as the font face value for font properties
728
- */
729
603
  fontFamily: string;
730
- /**
731
- * A fontStyle value. Accepts two values to specify a range that is supported by a font-face,
732
- * for example `fontStyle: oblique 20deg 50deg`
733
- */
734
604
  fontStyle?: string;
735
- /**
736
- * A font-weight value. Accepts two values to specify a range that is supported by a font-face,
737
- * for example `font-weight: 100 900`
738
- */
739
605
  fontWeight?: string;
740
- /**
741
- * This property determines how a font face is displayed based on whether and when it is downloaded
742
- * and ready to use.
743
- */
744
606
  fontDisplay?: string;
745
- /**
746
- * The mime type of the font file
747
- */
748
607
  format?: string;
749
- /**
750
- * Specifies references to font resources.
751
- */
752
608
  src: string;
753
609
  } | string;
754
610
 
@@ -930,11 +786,22 @@ declare interface NoArgExpression extends ExpressionBase {
930
786
  type: NO_ARG_EXPRESSION;
931
787
  }
932
788
 
933
- declare interface Node_2 extends ReadonlyTextRange {
789
+ declare class Node_2 {
934
790
  readonly kind: SyntaxKind;
791
+ /** Start position of the node including it's trivia */
935
792
  readonly start: number;
793
+ readonly pos: number;
794
+ readonly end: number;
936
795
  readonly triviaBefore?: Node_2[];
937
796
  readonly children?: Node_2[];
797
+ constructor(kind: SyntaxKind, pos: number, end: number, triviaBefore?: Node_2[], children?: Node_2[]);
798
+ isElementNode(): this is ElementNode;
799
+ isAttributeNode(): this is AttributeNode;
800
+ isAttributeKeyNode(): this is AttributeKeyNode;
801
+ isContentListNode(): this is ContentListNode;
802
+ isAttributeListNode(): this is AttributeListNode;
803
+ isTagNameNode(): this is TagNameNode;
804
+ findTokenAtPos(position: number): FindTokenSuccess;
938
805
  }
939
806
  export { Node_2 as Node }
940
807
 
@@ -997,10 +864,6 @@ declare type PrefixOpSymbol = "++" | "--";
997
864
 
998
865
  export declare function printComponentLints(lintDiags: ComponentLints): void;
999
866
 
1000
- /**
1001
- * This type represents the description of a property value, which can be a string, a number,
1002
- * or an object with a value and a description. This type is used in the metadata of a component.
1003
- */
1004
867
  declare type PropertyValueDescription = string | number | {
1005
868
  value: string | number;
1006
869
  description: string;
@@ -1016,11 +879,6 @@ declare interface ReactiveVarDeclaration extends ExpressionBase {
1016
879
  expr: Expression;
1017
880
  }
1018
881
 
1019
- declare interface ReadonlyTextRange {
1020
- readonly pos: number;
1021
- readonly end: number;
1022
- }
1023
-
1024
882
  declare type RestrictedComponentMetadata = Pick<ComponentMetadata, "description" | "status" | "props" | "events" | "apis" | "contextVars" | "allowArbitraryProps" | "shortDescription">;
1025
883
 
1026
884
  declare type RETURN_STATEMENT = typeof T_RETURN_STATEMENT;
@@ -1067,21 +925,9 @@ declare interface ScripNodeBase {
1067
925
  endToken?: ScriptingToken;
1068
926
  }
1069
927
 
1070
- /**
1071
- * This interface holds the properties representing a scriptable component definition.
1072
- */
1073
928
  declare interface Scriptable {
1074
- /**
1075
- * This property holds the text defined in all <script> sections attached to a component.
1076
- */
1077
929
  script?: string;
1078
- /**
1079
- * This property holds the parsed form of scripts stored in code-behind files.
1080
- */
1081
930
  scriptCollected?: CollectedDeclarations;
1082
- /**
1083
- * This property holds errors coming from parsing the code-behind scripts.
1084
- */
1085
931
  scriptError?: any;
1086
932
  }
1087
933
 
@@ -1184,93 +1030,93 @@ export declare const enum SyntaxKind {
1184
1030
  ErrorNode = 27
1185
1031
  }
1186
1032
 
1187
- declare const T_ARRAY_DESTRUCTURE = 202;
1033
+ declare const T_ARRAY_DESTRUCTURE: number;
1188
1034
 
1189
- declare const T_ARRAY_LITERAL = 110;
1035
+ declare const T_ARRAY_LITERAL: number;
1190
1036
 
1191
- declare const T_ARROW_EXPRESSION = 115;
1037
+ declare const T_ARROW_EXPRESSION: number;
1192
1038
 
1193
- declare const T_ARROW_EXPRESSION_STATEMENT = 4;
1039
+ declare const T_ARROW_EXPRESSION_STATEMENT: number;
1194
1040
 
1195
- declare const T_ASSIGNMENT_EXPRESSION = 113;
1041
+ declare const T_ASSIGNMENT_EXPRESSION: number;
1196
1042
 
1197
- declare const T_BINARY_EXPRESSION = 101;
1043
+ declare const T_BINARY_EXPRESSION: number;
1198
1044
 
1199
- declare const T_BLOCK_STATEMENT = 1;
1045
+ declare const T_BLOCK_STATEMENT: number;
1200
1046
 
1201
- declare const T_BREAK_STATEMENT = 10;
1047
+ declare const T_BREAK_STATEMENT: number;
1202
1048
 
1203
- declare const T_CALCULATED_MEMBER_ACCESS_EXPRESSION = 106;
1049
+ declare const T_CALCULATED_MEMBER_ACCESS_EXPRESSION: number;
1204
1050
 
1205
- declare const T_CONDITIONAL_EXPRESSION = 103;
1051
+ declare const T_CONDITIONAL_EXPRESSION: number;
1206
1052
 
1207
- declare const T_CONST_STATEMENT = 6;
1053
+ declare const T_CONST_STATEMENT: number;
1208
1054
 
1209
- declare const T_CONTINUE_STATEMENT = 11;
1055
+ declare const T_CONTINUE_STATEMENT: number;
1210
1056
 
1211
- declare const T_DESTRUCTURE = 201;
1057
+ declare const T_DESTRUCTURE: number;
1212
1058
 
1213
- declare const T_DO_WHILE_STATEMENT = 13;
1059
+ declare const T_DO_WHILE_STATEMENT: number;
1214
1060
 
1215
- declare const T_EMPTY_STATEMENT = 2;
1061
+ declare const T_EMPTY_STATEMENT: number;
1216
1062
 
1217
- declare const T_EXPRESSION_STATEMENT = 3;
1063
+ declare const T_EXPRESSION_STATEMENT: number;
1218
1064
 
1219
- declare const T_FOR_IN_STATEMENT = 15;
1065
+ declare const T_FOR_IN_STATEMENT: number;
1220
1066
 
1221
- declare const T_FOR_OF_STATEMENT = 16;
1067
+ declare const T_FOR_OF_STATEMENT: number;
1222
1068
 
1223
- declare const T_FOR_STATEMENT = 14;
1069
+ declare const T_FOR_STATEMENT: number;
1224
1070
 
1225
- declare const T_FUNCTION_DECLARATION = 20;
1071
+ declare const T_FUNCTION_DECLARATION: number;
1226
1072
 
1227
- declare const T_FUNCTION_INVOCATION_EXPRESSION = 104;
1073
+ declare const T_FUNCTION_INVOCATION_EXPRESSION: number;
1228
1074
 
1229
- declare const T_IDENTIFIER = 107;
1075
+ declare const T_IDENTIFIER: number;
1230
1076
 
1231
- declare const T_IF_STATEMENT = 8;
1077
+ declare const T_IF_STATEMENT: number;
1232
1078
 
1233
- declare const T_LET_STATEMENT = 5;
1079
+ declare const T_LET_STATEMENT: number;
1234
1080
 
1235
- declare const T_LITERAL = 109;
1081
+ declare const T_LITERAL: number;
1236
1082
 
1237
- declare const T_MEMBER_ACCESS_EXPRESSION = 105;
1083
+ declare const T_MEMBER_ACCESS_EXPRESSION: number;
1238
1084
 
1239
- declare const T_NO_ARG_EXPRESSION = 114;
1085
+ declare const T_NO_ARG_EXPRESSION: number;
1240
1086
 
1241
- declare const T_OBJECT_DESTRUCTURE = 203;
1087
+ declare const T_OBJECT_DESTRUCTURE: number;
1242
1088
 
1243
- declare const T_OBJECT_LITERAL = 111;
1089
+ declare const T_OBJECT_LITERAL: number;
1244
1090
 
1245
- declare const T_POSTFIX_OP_EXPRESSION = 117;
1091
+ declare const T_POSTFIX_OP_EXPRESSION: number;
1246
1092
 
1247
- declare const T_PREFIX_OP_EXPRESSION = 116;
1093
+ declare const T_PREFIX_OP_EXPRESSION: number;
1248
1094
 
1249
- declare const T_REACTIVE_VAR_DECLARATION = 118;
1095
+ declare const T_REACTIVE_VAR_DECLARATION: number;
1250
1096
 
1251
- declare const T_RETURN_STATEMENT = 9;
1097
+ declare const T_RETURN_STATEMENT: number;
1252
1098
 
1253
- declare const T_SEQUENCE_EXPRESSION = 102;
1099
+ declare const T_SEQUENCE_EXPRESSION: number;
1254
1100
 
1255
- declare const T_SPREAD_EXPRESSION = 112;
1101
+ declare const T_SPREAD_EXPRESSION: number;
1256
1102
 
1257
- declare const T_SWITCH_CASE = 204;
1103
+ declare const T_SWITCH_CASE: number;
1258
1104
 
1259
- declare const T_SWITCH_STATEMENT = 19;
1105
+ declare const T_SWITCH_STATEMENT: number;
1260
1106
 
1261
- declare const T_TEMPLATE_LITERAL_EXPRESSION = 108;
1107
+ declare const T_TEMPLATE_LITERAL_EXPRESSION: number;
1262
1108
 
1263
- declare const T_THROW_STATEMENT = 17;
1109
+ declare const T_THROW_STATEMENT: number;
1264
1110
 
1265
- declare const T_TRY_STATEMENT = 18;
1111
+ declare const T_TRY_STATEMENT: number;
1266
1112
 
1267
- declare const T_UNARY_EXPRESSION = 100;
1113
+ declare const T_UNARY_EXPRESSION: number;
1268
1114
 
1269
- declare const T_VAR_DECLARATION = 200;
1115
+ declare const T_VAR_DECLARATION: number;
1270
1116
 
1271
- declare const T_VAR_STATEMENT = 7;
1117
+ declare const T_VAR_STATEMENT: number;
1272
1118
 
1273
- declare const T_WHILE_STATEMENT = 12;
1119
+ declare const T_WHILE_STATEMENT: number;
1274
1120
 
1275
1121
  declare type TableDescriptor = {
1276
1122
  name: string;
@@ -1284,6 +1130,9 @@ declare type TaggedAttribute = {
1284
1130
  kind: AttributeKind;
1285
1131
  };
1286
1132
 
1133
+ export declare class TagNameNode extends Node_2 {
1134
+ }
1135
+
1287
1136
  /** Disregards error nodes amongst the children of the 2 compared name node. (Those reported an error earlyer anyways)*/
1288
1137
  export declare function tagNameNodesWithoutErrorsMatch(name1: Node_2, name2: Node_2, getText: GetText): boolean;
1289
1138
 
@@ -1294,28 +1143,10 @@ declare interface TemplateLiteralExpression extends ExpressionBase {
1294
1143
  segments: (Literal | Expression)[];
1295
1144
  }
1296
1145
 
1297
- /**
1298
- * This type represents a theme definition object. Theme files can use this object's JSON-serialized
1299
- * format to define an app theme; an app can have multiple theme files.
1300
- */
1301
1146
  declare interface ThemeDefinition extends ThemeDefinitionDetails {
1302
- /**
1303
- * Theme id
1304
- */
1305
1147
  id: string;
1306
- /**
1307
- * Optional theme name
1308
- */
1309
1148
  name?: string;
1310
- /**
1311
- * A theme can extend existing themes. The extension means that the theme variable values defined
1312
- * in the new theme override the base theme's variable values.
1313
- */
1314
1149
  extends?: string | Array<string>;
1315
- /**
1316
- * This property defines the tone-dependent theme variable values. When a theme variable value is
1317
- * resolved, the common theme variable values are overridden with their theme-specific values.
1318
- */
1319
1150
  tones?: Record<string | ThemeTone, ThemeDefinitionDetails>;
1320
1151
  }
1321
1152
 
@@ -1324,15 +1155,7 @@ declare interface ThemeDefinitionDetails {
1324
1155
  resources?: Record<string, string | FontDef>;
1325
1156
  }
1326
1157
 
1327
- /**
1328
- * This type describes one the available theme tones.
1329
- */
1330
- declare type ThemeTone = (typeof ThemeToneKeys)[number];
1331
-
1332
- /**
1333
- * Each theme can have a light or a dark tone.
1334
- */
1335
- declare const ThemeToneKeys: readonly ["light", "dark"];
1158
+ declare type ThemeTone = "light" | "dark";
1336
1159
 
1337
1160
  declare type THROW_STATEMENT = typeof T_THROW_STATEMENT;
1338
1161
 
@@ -1,44 +1,51 @@
1
- import { o as s, r as t, C as i, a as r, b as n, f as o, e as d, g, c as m, D as p, E as C, P as l, S as _, U as D, j as c, h as S, d as E, i as x, w as U, n as P, k as f, m as L, l as h, s as y, q as A, p as M, t as N, v, u as I } from "./transform-CgRMkbb0.mjs";
2
- import { b as u, L as R, X, a as b, c as k, g as F, e as K, l as T, d as j, m as q, p as w } from "./xmlui-serializer-EDw51UFN.mjs";
1
+ import { q as s, s as t, A as i, t as r, v as n, C as o, r as d, a as g, b as m, f as C, e as p, g as l, c as N, D as _, o as D, E as c, N as E, P as S, S as x, T as U, U as A, j as L, h as P, d as f, i as y, B as u, n as b, k as h, m as M, l as v, w as I, u as O, p as T, x as K, z as R, y as X } from "./transform-BdB0APqE.mjs";
2
+ import { b as F, L as B, X as j, a as q, c as w, g as z, e as G, l as H, d as V, m as W, p as J } from "./xmlui-serializer-COAfRndx.mjs";
3
3
  export {
4
- s as COMPOUND_COMP_ID,
5
- t as CORE_NAMESPACE_VALUE,
6
- i as CharacterCodes,
7
- r as DIAGS,
8
- n as Diag_Invalid_Character,
9
- o as Diag_Unterminated_CData,
10
- d as Diag_Unterminated_Comment,
11
- g as Diag_Unterminated_Script,
12
- m as Diag_Unterminated_String_Literal,
13
- p as DiagnosticCategory,
14
- C as ErrCodes,
15
- u as LintDiagKind,
16
- R as LintSeverity,
17
- l as ParserError,
18
- _ as SyntaxKind,
19
- D as UCRegex,
20
- X as XmlUiHelper,
21
- b as codeBehindFileExtension,
22
- k as componentFileExtension,
23
- c as createScanner,
24
- S as createXmlUiParser,
25
- E as diagnosticCategoryName,
26
- x as errorMessages,
27
- U as findTokenAtPos,
28
- F as getLintSeverity,
29
- P as getSyntaxKindStrRepr,
30
- f as isIdentifierStart,
31
- L as isInnerNode,
32
- h as isTrivia,
33
- K as lint,
34
- T as lintApp,
35
- j as lintErrorsComponent,
36
- q as moduleFileExtension,
37
- y as nodeToComponentDef,
38
- A as onPrefixRegex,
39
- M as parseXmlUiMarkup,
40
- w as printComponentLints,
41
- N as stripOnPrefix,
42
- v as tagNameNodesWithoutErrorsMatch,
43
- I as toDbgString
4
+ s as AttributeKeyNode,
5
+ t as AttributeListNode,
6
+ i as AttributeNode,
7
+ r as COMPOUND_COMP_ID,
8
+ n as CORE_NAMESPACE_VALUE,
9
+ o as CharacterCodes,
10
+ d as ContentListNode,
11
+ g as DIAGS,
12
+ m as Diag_Invalid_Character,
13
+ C as Diag_Unterminated_CData,
14
+ p as Diag_Unterminated_Comment,
15
+ l as Diag_Unterminated_Script,
16
+ N as Diag_Unterminated_String_Literal,
17
+ _ as DiagnosticCategory,
18
+ D as ElementNode,
19
+ c as ErrCodes,
20
+ F as LintDiagKind,
21
+ B as LintSeverity,
22
+ E as Node,
23
+ S as ParserError,
24
+ x as SyntaxKind,
25
+ U as TagNameNode,
26
+ A as UCRegex,
27
+ j as XmlUiHelper,
28
+ q as codeBehindFileExtension,
29
+ w as componentFileExtension,
30
+ L as createScanner,
31
+ P as createXmlUiParser,
32
+ f as diagnosticCategoryName,
33
+ y as errorMessages,
34
+ u as findTokenAtPos,
35
+ z as getLintSeverity,
36
+ b as getSyntaxKindStrRepr,
37
+ h as isIdentifierStart,
38
+ M as isInnerNode,
39
+ v as isTrivia,
40
+ G as lint,
41
+ H as lintApp,
42
+ V as lintErrorsComponent,
43
+ W as moduleFileExtension,
44
+ I as nodeToComponentDef,
45
+ O as onPrefixRegex,
46
+ T as parseXmlUiMarkup,
47
+ J as printComponentLints,
48
+ K as stripOnPrefix,
49
+ R as tagNameNodesWithoutErrorsMatch,
50
+ X as toDbgString
44
51
  };
@@ -1,4 +1,4 @@
1
- import { r as A, o as j } from "./transform-CgRMkbb0.mjs";
1
+ import { v as A, t as j } from "./transform-BdB0APqE.mjs";
2
2
  const k = "xmlui", P = "xmlui.xs", D = "xs";
3
3
  var V = /* @__PURE__ */ ((l) => (l[l.Skip = 0] = "Skip", l[l.Warning = 1] = "Warning", l[l.Error = 2] = "Error", l))(V || {}), w = /* @__PURE__ */ ((l) => (l[l.UnrecognisedProp = 0] = "UnrecognisedProp", l))(w || {});
4
4
  function L(l) {