xmlui 0.9.56 → 0.9.58

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 (119) hide show
  1. package/dist/lib/{apiInterceptorWorker-CDFLYTIQ.mjs → apiInterceptorWorker-uyd3MlHU.mjs} +1 -1
  2. package/dist/lib/{index-DRdbVRNd.mjs → index-BqBDeBdn.mjs} +11446 -11158
  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-BXdiMJQN.mjs} +40 -31
  7. package/dist/lib/{server-common-C0cF2UTg.mjs → server-common-CN44QquQ.mjs} +1318 -739
  8. package/dist/lib/{transform-CgRMkbb0.mjs → transform-BboeJCuA.mjs} +798 -733
  9. package/dist/lib/xmlui-parser.d.ts +31 -6
  10. package/dist/lib/xmlui-parser.mjs +49 -42
  11. package/dist/lib/{xmlui-serializer-EDw51UFN.mjs → xmlui-serializer-D0p6Hyum.mjs} +1 -1
  12. package/dist/lib/xmlui.d.ts +5 -4
  13. package/dist/lib/xmlui.mjs +2 -2
  14. package/dist/metadata/{apiInterceptorWorker-CL7I-FJl.mjs → apiInterceptorWorker-B4dqtAX9.mjs} +1 -1
  15. package/dist/metadata/{collectedComponentMetadata-J8g24vFO.mjs → collectedComponentMetadata-DFcuGgT_.mjs} +10743 -10367
  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 +110 -110
  19. package/dist/scripts/package.json +5 -4
  20. package/dist/scripts/src/components/APICall/APICall.js +12 -11
  21. package/dist/scripts/src/components/Accordion/Accordion.js +1 -1
  22. package/dist/scripts/src/components/App/App.js +3 -3
  23. package/dist/scripts/src/components/AppHeader/AppHeader.js +4 -2
  24. package/dist/scripts/src/components/AppState/AppState.js +4 -2
  25. package/dist/scripts/src/components/AutoComplete/AutoComplete.js +4 -2
  26. package/dist/scripts/src/components/Avatar/Avatar.js +4 -1
  27. package/dist/scripts/src/components/Badge/Badge.js +3 -1
  28. package/dist/scripts/src/components/Button/Button.js +3 -1
  29. package/dist/scripts/src/components/Card/Card.js +5 -2
  30. package/dist/scripts/src/components/Card/CardNative.js +2 -1
  31. package/dist/scripts/src/components/ChangeListener/ChangeListener.js +4 -2
  32. package/dist/scripts/src/components/Charts/BarChart/BarChart.js +4 -2
  33. package/dist/scripts/src/components/Charts/DonutChart/DonutChart.js +6 -5
  34. package/dist/scripts/src/components/Charts/LabelList/LabelList.js +4 -1
  35. package/dist/scripts/src/components/Charts/Legend/Legend.js +4 -1
  36. package/dist/scripts/src/components/Charts/LineChart/LineChart.js +4 -1
  37. package/dist/scripts/src/components/Charts/PieChart/PieChart.js +13 -7
  38. package/dist/scripts/src/components/Charts/PieChart/PieChartNative.js +9 -4
  39. package/dist/scripts/src/components/Checkbox/Checkbox.js +3 -2
  40. package/dist/scripts/src/components/CodeBlock/CodeBlockNative.js +1 -1
  41. package/dist/scripts/src/components/ColorPicker/ColorPicker.js +1 -1
  42. package/dist/scripts/src/components/ColorPicker/ColorPickerNative.js +2 -2
  43. package/dist/scripts/src/components/Column/Column.js +14 -12
  44. package/dist/scripts/src/components/ComponentProvider.js +4 -0
  45. package/dist/scripts/src/components/ContentSeparator/ContentSeparator.js +4 -3
  46. package/dist/scripts/src/components/DatePicker/DatePicker.js +4 -1
  47. package/dist/scripts/src/components/DropdownMenu/DropdownMenu.js +18 -6
  48. package/dist/scripts/src/components/EmojiSelector/EmojiSelector.js +2 -2
  49. package/dist/scripts/src/components/ExpandableItem/ExpandableItem.js +6 -5
  50. package/dist/scripts/src/components/FileInput/FileInput.js +9 -4
  51. package/dist/scripts/src/components/FileUploadDropZone/FileUploadDropZone.js +2 -2
  52. package/dist/scripts/src/components/FlowLayout/FlowLayout.js +2 -2
  53. package/dist/scripts/src/components/FlowLayout/FlowLayoutNative.js +35 -6
  54. package/dist/scripts/src/components/Footer/Footer.js +4 -2
  55. package/dist/scripts/src/components/Form/Form.js +9 -3
  56. package/dist/scripts/src/components/Form/FormNative.js +12 -4
  57. package/dist/scripts/src/components/FormItem/FormItem.js +8 -9
  58. package/dist/scripts/src/components/FormSection/FormSection.js +2 -3
  59. package/dist/scripts/src/components/Heading/Heading.js +6 -3
  60. package/dist/scripts/src/components/HelloWorld/HelloWorld.js +103 -0
  61. package/dist/scripts/src/components/HelloWorld/HelloWorldNative.js +92 -0
  62. package/dist/scripts/src/components/Icon/Icon.js +4 -2
  63. package/dist/scripts/src/components/Image/Image.js +3 -2
  64. package/dist/scripts/src/components/Items/Items.js +7 -6
  65. package/dist/scripts/src/components/Link/Link.js +4 -2
  66. package/dist/scripts/src/components/Link/LinkNative.js +46 -1
  67. package/dist/scripts/src/components/List/List.js +10 -8
  68. package/dist/scripts/src/components/Logo/Logo.js +7 -5
  69. package/dist/scripts/src/components/Markdown/Markdown.js +6 -4
  70. package/dist/scripts/src/components/ModalDialog/ModalDialog.js +6 -7
  71. package/dist/scripts/src/components/NavGroup/NavGroup.js +4 -2
  72. package/dist/scripts/src/components/NavLink/NavLink.js +4 -2
  73. package/dist/scripts/src/components/NavPanel/NavPanel.js +5 -2
  74. package/dist/scripts/src/components/NavPanel/NavPanelNative.js +3 -3
  75. package/dist/scripts/src/components/NestedApp/NestedApp.js +2 -2
  76. package/dist/scripts/src/components/NestedApp/NestedAppNative.js +3 -4
  77. package/dist/scripts/src/components/NoResult/NoResult.js +1 -2
  78. package/dist/scripts/src/components/NumberBox/NumberBox.js +5 -3
  79. package/dist/scripts/src/components/Option/Option.js +5 -3
  80. package/dist/scripts/src/components/PageMetaTitle/PageMetaTitle.js +2 -2
  81. package/dist/scripts/src/components/Pages/Pages.js +7 -5
  82. package/dist/scripts/src/components/ProgressBar/ProgressBar.js +4 -1
  83. package/dist/scripts/src/components/Queue/Queue.js +2 -2
  84. package/dist/scripts/src/components/RadioGroup/RadioGroup.js +4 -3
  85. package/dist/scripts/src/components/RealTimeAdapter/RealTimeAdapter.js +1 -1
  86. package/dist/scripts/src/components/Redirect/Redirect.js +3 -3
  87. package/dist/scripts/src/components/Select/Select.js +7 -4
  88. package/dist/scripts/src/components/Select/SelectNative.js +1 -1
  89. package/dist/scripts/src/components/Slider/Slider.js +5 -3
  90. package/dist/scripts/src/components/SpaceFiller/SpaceFiller.js +2 -2
  91. package/dist/scripts/src/components/Spinner/Spinner.js +2 -2
  92. package/dist/scripts/src/components/Splitter/Splitter.js +3 -2
  93. package/dist/scripts/src/components/Stack/Stack.js +4 -1
  94. package/dist/scripts/src/components/StickyBox/StickyBox.js +2 -3
  95. package/dist/scripts/src/components/StickyBox/StickyBoxNative.js +2 -0
  96. package/dist/scripts/src/components/Switch/Switch.js +1 -3
  97. package/dist/scripts/src/components/Table/Table.js +1 -2
  98. package/dist/scripts/src/components/TableOfContents/TableOfContents.js +2 -3
  99. package/dist/scripts/src/components/Tabs/TabItem.js +5 -2
  100. package/dist/scripts/src/components/Tabs/Tabs.js +9 -3
  101. package/dist/scripts/src/components/Text/Text.js +2 -2
  102. package/dist/scripts/src/components/TextArea/TextArea.js +2 -2
  103. package/dist/scripts/src/components/TextBox/TextBox.js +5 -4
  104. package/dist/scripts/src/components/Theme/NotificationToast.js +11 -0
  105. package/dist/scripts/src/components/Theme/Theme.js +2 -4
  106. package/dist/scripts/src/components/Theme/ThemeNative.js +4 -4
  107. package/dist/scripts/src/components/ToneChangerButton/ToneChangerButton.js +5 -5
  108. package/dist/scripts/src/components-core/Fragment.js +2 -1
  109. package/dist/scripts/src/components-core/RestApiProxy.js +10 -7
  110. package/dist/scripts/src/components-core/descriptorHelper.js +9 -0
  111. package/dist/scripts/src/components-core/rendering/AppContent.js +6 -2
  112. package/dist/scripts/src/components-core/theming/layout-resolver.js +18 -0
  113. package/dist/scripts/src/parsers/xmlui-parser/parser.js +42 -39
  114. package/dist/scripts/src/parsers/xmlui-parser/syntax-node.js +65 -0
  115. package/dist/scripts/src/parsers/xmlui-parser/transform.js +10 -8
  116. package/dist/scripts/src/parsers/xmlui-parser/utils.js +1 -2
  117. package/dist/standalone/xmlui-standalone.es.d.ts +5 -4
  118. package/dist/standalone/xmlui-standalone.umd.js +221 -221
  119. package/package.json +5 -4
@@ -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
  };
@@ -486,6 +495,9 @@ declare interface ConstStatement extends ScripNodeBase {
486
495
  decls: VarDeclaration[];
487
496
  }
488
497
 
498
+ export declare class ContentListNode extends Node_2 {
499
+ }
500
+
489
501
  declare type CONTINUE_STATEMENT = typeof T_CONTINUE_STATEMENT;
490
502
 
491
503
  declare interface ContinueStatement extends ScripNodeBase {
@@ -644,6 +656,10 @@ declare interface DoWhileStatement extends ScripNodeBase {
644
656
  body: Statement;
645
657
  }
646
658
 
659
+ export declare class ElementNode extends Node_2 {
660
+ getAttributeListNode(): Node_2;
661
+ }
662
+
647
663
  declare type EMPTY_STATEMENT = typeof T_EMPTY_STATEMENT;
648
664
 
649
665
  declare interface EmptyStatement extends ScripNodeBase {
@@ -930,11 +946,22 @@ declare interface NoArgExpression extends ExpressionBase {
930
946
  type: NO_ARG_EXPRESSION;
931
947
  }
932
948
 
933
- declare interface Node_2 extends ReadonlyTextRange {
949
+ declare class Node_2 {
934
950
  readonly kind: SyntaxKind;
951
+ /** Start position of the node including it's trivia */
935
952
  readonly start: number;
953
+ readonly pos: number;
954
+ readonly end: number;
936
955
  readonly triviaBefore?: Node_2[];
937
956
  readonly children?: Node_2[];
957
+ constructor(kind: SyntaxKind, pos: number, end: number, triviaBefore?: Node_2[], children?: Node_2[]);
958
+ isElementNode(): this is ElementNode;
959
+ isAttributeNode(): this is AttributeNode;
960
+ isAttributeKeyNode(): this is AttributeKeyNode;
961
+ isContentListNode(): this is ContentListNode;
962
+ isAttributeListNode(): this is AttributeListNode;
963
+ isTagNameNode(): this is TagNameNode;
964
+ findTokenAtPos(position: number): FindTokenSuccess;
938
965
  }
939
966
  export { Node_2 as Node }
940
967
 
@@ -1016,11 +1043,6 @@ declare interface ReactiveVarDeclaration extends ExpressionBase {
1016
1043
  expr: Expression;
1017
1044
  }
1018
1045
 
1019
- declare interface ReadonlyTextRange {
1020
- readonly pos: number;
1021
- readonly end: number;
1022
- }
1023
-
1024
1046
  declare type RestrictedComponentMetadata = Pick<ComponentMetadata, "description" | "status" | "props" | "events" | "apis" | "contextVars" | "allowArbitraryProps" | "shortDescription">;
1025
1047
 
1026
1048
  declare type RETURN_STATEMENT = typeof T_RETURN_STATEMENT;
@@ -1284,6 +1306,9 @@ declare type TaggedAttribute = {
1284
1306
  kind: AttributeKind;
1285
1307
  };
1286
1308
 
1309
+ export declare class TagNameNode extends Node_2 {
1310
+ }
1311
+
1287
1312
  /** Disregards error nodes amongst the children of the 2 compared name node. (Those reported an error earlyer anyways)*/
1288
1313
  export declare function tagNameNodesWithoutErrorsMatch(name1: Node_2, name2: Node_2, getText: GetText): boolean;
1289
1314
 
@@ -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-BboeJCuA.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-D0p6Hyum.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-BboeJCuA.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) {
@@ -1302,7 +1302,7 @@ declare type Message = ValueOrFunction<Renderable, Toast>;
1302
1302
  */
1303
1303
  declare type ModuleErrors = Record<string, ScriptParserErrorMessage[]>;
1304
1304
 
1305
- export declare function NestedApp({ api, app, components, config, activeTheme, activeTone, title, height, allowPlaygroundPopup, withFrame, }: NestedAppProps): JSX_2.Element;
1305
+ export declare function NestedApp({ api, app, components, config, activeTheme, activeTone, title, height, allowPlaygroundPopup, withFrame, style }: NestedAppProps): JSX_2.Element;
1306
1306
 
1307
1307
  declare type NestedAppProps = {
1308
1308
  api?: any;
@@ -1315,6 +1315,7 @@ declare type NestedAppProps = {
1315
1315
  height?: string | number;
1316
1316
  allowPlaygroundPopup?: boolean;
1317
1317
  withFrame?: boolean;
1318
+ style?: CSSProperties;
1318
1319
  };
1319
1320
 
1320
1321
  declare type NO_ARG_EXPRESSION = typeof T_NO_ARG_EXPRESSION;
@@ -1919,13 +1920,13 @@ declare type ThemeScope = {
1919
1920
  activeTheme: ThemeDefinition;
1920
1921
  /**
1921
1922
  * This hash object stores the CSS theme variable names with their CSS values definition,
1922
- * like "--xmlui-verticalAlign-Text-sub": "sub";
1923
+ * like "--xmlui-verticalAlignment-Text-sub": "sub";
1923
1924
  * "--xmlui-backgroundColor": "var(--xmlui-color-surface-50)"
1924
1925
  */
1925
1926
  themeStyles: Record<string, string>;
1926
1927
  /**
1927
1928
  * This hash object stores the theme variable names with their CSS values definition, like
1928
- * "verticalAlign-Text-sub": "sub"; "backgroundColor": "var(--xmlui-color-surface-50)".
1929
+ * "verticalAlignment-Text-sub": "sub"; "backgroundColor": "var(--xmlui-color-surface-50)".
1929
1930
  */
1930
1931
  themeVars: Record<string, string>;
1931
1932
  /**
@@ -2071,7 +2072,7 @@ declare enum TokenType {
2071
2072
  From = 97
2072
2073
  }
2073
2074
 
2074
- export declare function ToneChangerButton({ lightToDarkIcon, darkToLightIcon }: {
2075
+ export declare function ToneChangerButton({ lightToDarkIcon, darkToLightIcon, }: {
2075
2076
  lightToDarkIcon?: string;
2076
2077
  darkToLightIcon?: string;
2077
2078
  }): JSX_2.Element;
@@ -1,5 +1,5 @@
1
- import { y as e, A as t, B as o, E as r, I as n, L as p, H as u, N as i, z as l, i as C, h as d, S as m, b as x, k as T, l as c, D as S, F as A, G as g, V as h, C as v, c as B, e as I, f as L, w as b, j as k, p as y, s as E, t as M, K as V, n as f, q as H, M as N, v as R, J as D, u as U, x as X } from "./index-DRdbVRNd.mjs";
2
- import { X as q } from "./xmlui-serializer-EDw51UFN.mjs";
1
+ import { y as e, A as t, B as o, E as r, I as n, L as p, H as u, N as i, z as l, i as C, h as d, S as m, b as x, k as T, l as c, D as S, F as A, G as g, V as h, C as v, c as B, e as I, f as L, w as b, j as k, p as y, s as E, t as M, K as V, n as f, q as H, M as N, v as R, J as D, u as U, x as X } from "./index-BqBDeBdn.mjs";
2
+ import { X as q } from "./xmlui-serializer-D0p6Hyum.mjs";
3
3
  export {
4
4
  e as ApiInterceptorProvider,
5
5
  t as AppRoot,
@@ -7,7 +7,7 @@ var F = (e, a, o) => Go(e, typeof a != "symbol" ? a + "" : a, o), ka = (e, a, o)
7
7
  var ge = (e, a, o) => (ka(e, a, "read from private field"), o ? o.call(e) : a.get(e)), _e = (e, a, o) => a.has(e) ? Wa("Cannot add the same private member more than once") : a instanceof WeakSet ? a.add(e) : a.set(e, o), fa = (e, a, o, t) => (ka(e, a, "write to private field"), t ? t.call(e, o) : a.set(e, o), o), ze = (e, a, o) => (ka(e, a, "access private method"), o);
8
8
  import { delay as Ho, HttpResponse as Be, http as Vo } from "msw";
9
9
  import { isArray as co, isObject as lo, mapValues as Jo } from "lodash-es";
10
- import { r as Xo, g as Ko, d as Yo, m as Qo, a as Zo, o as ba, T as et } from "./collectedComponentMetadata-J8g24vFO.mjs";
10
+ import { r as Xo, g as Ko, d as Yo, m as Qo, a as Zo, o as ba, T as et } from "./collectedComponentMetadata-DFcuGgT_.mjs";
11
11
  import Ga from "dexie";
12
12
  var at = /(%?)(%([sdijo]))/g;
13
13
  function ot(e, a) {