xmlui 0.9.10 → 0.9.12

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 (59) hide show
  1. package/dist/{apiInterceptorWorker-BJYj3y8V.mjs → apiInterceptorWorker-dYrfbzdh.mjs} +1 -1
  2. package/dist/{index-6PAZN2xn.mjs → index-Dh2MThrK.mjs} +2127 -2300
  3. package/dist/index.css +112 -198
  4. package/dist/language-server-web-worker.mjs +1 -1
  5. package/dist/language-server.mjs +1 -1
  6. package/dist/{lint-DmJOJSJa.mjs → lint-Cd70ckJ6.mjs} +1 -11
  7. package/dist/{parser-B3m9ZEAK.mjs → parser-CBXS8ft2.mjs} +7 -5
  8. package/dist/scripts/bin/build-lib.js +42 -1
  9. package/dist/scripts/bin/vite-xmlui-plugin.js +2 -22
  10. package/dist/scripts/bin/viteConfig.js +3 -1
  11. package/dist/scripts/src/abstractions/ComponentDefs.js +2 -20
  12. package/dist/scripts/src/components/App/App.js +61 -21
  13. package/dist/scripts/src/components/Button/Button.js +5 -1
  14. package/dist/scripts/src/components/Button/ButtonNative.js +9 -2
  15. package/dist/scripts/src/components/Checkbox/Checkbox.js +2 -2
  16. package/dist/scripts/src/components/ComponentProvider.js +2 -0
  17. package/dist/scripts/src/components/Footer/Footer.js +1 -1
  18. package/dist/scripts/src/components/Form/FormContext.js +2 -0
  19. package/dist/scripts/src/components/FormItem/FormItemNative.js +9 -0
  20. package/dist/scripts/src/components/Items/Items.js +2 -1
  21. package/dist/scripts/src/components/List/List.js +2 -1
  22. package/dist/scripts/src/components/Markdown/Markdown.js +2 -0
  23. package/dist/scripts/src/components/NavPanel/NavPanel.js +2 -2
  24. package/dist/scripts/src/components/NumberBox/NumberBox2.js +85 -0
  25. package/dist/scripts/src/components/NumberBox/NumberBox2Native.js +395 -0
  26. package/dist/scripts/src/components/NumberBox/numberbox-abstractions.js +35 -0
  27. package/dist/scripts/src/components/Option/Option.js +2 -1
  28. package/dist/scripts/src/components/Select/Select.js +8 -0
  29. package/dist/scripts/src/components/Select/SelectNative.js +24 -10
  30. package/dist/scripts/src/components/Theme/ThemeNative.js +1 -0
  31. package/dist/scripts/src/components/VisuallyHidden.js +21 -0
  32. package/dist/scripts/src/components-core/InspectorContext.js +15 -4
  33. package/dist/scripts/src/components-core/loader/DataLoader.js +110 -3
  34. package/dist/scripts/src/components-core/loader/Loader.js +29 -7
  35. package/dist/scripts/src/components-core/rendering/ComponentAdapter.js +4 -1
  36. package/dist/scripts/src/components-core/rendering/ComponentWrapper.js +23 -5
  37. package/dist/scripts/src/components-core/rendering/Container.js +23 -26
  38. package/dist/scripts/src/components-core/rendering/StateContainer.js +2 -4
  39. package/dist/scripts/src/components-core/rendering/reducer.js +6 -5
  40. package/dist/scripts/src/components-core/utils/extractParam.js +24 -7
  41. package/dist/scripts/src/components-core/xmlui-parser.js +1 -1
  42. package/dist/scripts/src/parsers/xmlui-parser/parser.js +1 -1
  43. package/dist/scripts/src/parsers/xmlui-parser/transform.js +0 -10
  44. package/dist/scripts/src/parsers/xmlui-parser/utils.js +6 -9
  45. package/dist/{server-common-oCD2CuF9.mjs → server-common-DW5h7Q34.mjs} +122 -64
  46. package/dist/style.css +112 -98
  47. package/dist/xmlui-metadata.mjs +688 -229
  48. package/dist/xmlui-metadata.umd.js +687 -230
  49. package/dist/xmlui-parser.d.ts +14 -9
  50. package/dist/xmlui-parser.mjs +3 -3
  51. package/dist/xmlui-standalone.umd.js +4483 -7327
  52. package/dist/xmlui.d.ts +14 -1
  53. package/dist/xmlui.mjs +2 -1
  54. package/package.json +6 -4
  55. package/dist/scripts/src/components-core/devtools/DevTools.js +0 -225
  56. package/dist/scripts/src/syntax/monaco/grammar.monacoLanguage.js +0 -286
  57. package/dist/scripts/src/syntax/monaco/xmlui-dark.js +0 -27
  58. package/dist/scripts/src/syntax/monaco/xmlui-light.js +0 -26
  59. package/dist/scripts/src/syntax/monaco/xmluiscript.monacoLanguage.js +0 -310
@@ -345,6 +345,7 @@ declare type ComponentMetadata<TProps extends Record<string, ComponentPropertyMe
345
345
  contextVars?: TContextValues;
346
346
  apis?: TApis;
347
347
  nonVisual?: boolean;
348
+ childrenAsTemplate?: string;
348
349
  opaque?: boolean;
349
350
  themeVars?: Array<string>;
350
351
  themeVarDescriptions?: Record<string, string>;
@@ -647,16 +648,20 @@ declare interface ExpressionStatement extends ScripNodeBase {
647
648
 
648
649
  export declare function findTokenAtPos(node: Node_2, position: number): FindTokenSuccess | undefined;
649
650
 
650
- /** If the position is in-between two tokens, the chain to the token just before the cursor is provided as well, but the shared parents are inside field chainAtPos */
651
- declare type FindTokenSuccess = {
651
+ /** If the position is in-between two tokens, the chain to the token just before the cursor is provided as well*/
652
+ export declare type FindTokenSuccess = {
652
653
  chainAtPos: Node_2[];
653
- /** If the position is in-between two tokens, the chain to the token just before the position is provided.
654
- stores syntax elements from the fork point to the token */
655
- chainBeforePos?: Node_2[];
656
- /** Only undefined when chainBeforePos is.
657
- * chainBeforePos starts with the first node or token after the fork point.
658
- * This field specifies the index of the 0th element of the chainBeforePos if it's parents were part of the array as well. */
659
- sharedParents?: number;
654
+ /** If the position is in-between two tokens, the chain to the token just before the position is provided. */
655
+ chainBeforePos: Node_2[];
656
+ /**
657
+ * This field specifies the first index where
658
+ * `chainBeforePos` differs from chainAtPos
659
+ */
660
+ sharedParents: number;
661
+ } | {
662
+ chainBeforePos: undefined;
663
+ chainAtPos: Node_2[];
664
+ sharedParents: undefined;
660
665
  };
661
666
 
662
667
  /**
@@ -1,6 +1,6 @@
1
- import { C, o, k, i, n, h, l, a, m, j, f, e, g, b, D, E, S, q, c, d, x, u, r, t, s, p, w, v } from "./parser-B3m9ZEAK.mjs";
2
- import { am as COMPOUND_COMP_ID } from "./lint-DmJOJSJa.mjs";
3
- import { au, ao, ag, aq, as, ae, ad, ar, af, ap, ah, aj, an, a5, at, ai } from "./lint-DmJOJSJa.mjs";
1
+ import { C, o, k, i, n, h, l, a, m, j, f, e, g, b, D, E, S, q, c, d, x, u, r, t, s, p, w, v } from "./parser-CBXS8ft2.mjs";
2
+ import { am as COMPOUND_COMP_ID } from "./lint-Cd70ckJ6.mjs";
3
+ import { au, ao, ag, aq, as, ae, ad, ar, af, ap, ah, aj, an, a5, at, ai } from "./lint-Cd70ckJ6.mjs";
4
4
  const attrBreakRegex = /[\r\n<>'"&]/;
5
5
  class XmlUiHelper {
6
6
  /**