xmlui 0.10.22 → 0.10.24

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 (42) hide show
  1. package/dist/lib/{index-BaUZuvtZ.mjs → index-DoIVkz5T.mjs} +648 -220
  2. package/dist/lib/index.css +1 -1
  3. package/dist/lib/{initMock-BVLjWJxZ.mjs → initMock-CSGEd746.mjs} +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-BTIt1_wE.mjs → metadata-utils-Dx-2qZBh.mjs} +5 -4
  7. package/dist/lib/{server-common-DYZtsdM7.mjs → server-common--BHVvP1o.mjs} +1 -1
  8. package/dist/lib/xmlui-parser.d.ts +1 -1
  9. package/dist/lib/xmlui.d.ts +3 -2
  10. package/dist/lib/xmlui.mjs +1 -1
  11. package/dist/metadata/{collectedComponentMetadata-MZbCI1Ki.mjs → collectedComponentMetadata-B3Hs8_cV.mjs} +644 -216
  12. package/dist/metadata/{initMock-BkgwDrCY.mjs → initMock-DQrGwkya.mjs} +1 -1
  13. package/dist/metadata/style.css +1 -1
  14. package/dist/metadata/xmlui-metadata.mjs +1 -1
  15. package/dist/metadata/xmlui-metadata.umd.js +3 -3
  16. package/dist/scripts/package.json +1 -1
  17. package/dist/scripts/src/components/AppHeader/AppHeader.js +6 -1
  18. package/dist/scripts/src/components/AppHeader/AppHeaderNative.js +7 -4
  19. package/dist/scripts/src/components/Button/Button.js +7 -0
  20. package/dist/scripts/src/components/CodeBlock/highlight-code.js +5 -32
  21. package/dist/scripts/src/components/ComponentProvider.js +2 -1
  22. package/dist/scripts/src/components/Form/Form.js +3 -0
  23. package/dist/scripts/src/components/Form/FormNative.js +12 -2
  24. package/dist/scripts/src/components/Heading/Heading.js +5 -4
  25. package/dist/scripts/src/components/Markdown/MarkdownNative.js +4 -3
  26. package/dist/scripts/src/components/Markdown/utils.js +4 -3
  27. package/dist/scripts/src/components/ModalDialog/ModalDialogNative.js +13 -0
  28. package/dist/scripts/src/components/NestedApp/utils.js +6 -5
  29. package/dist/scripts/src/components/Pages/Pages.js +11 -0
  30. package/dist/scripts/src/components/Select/Select.spec.js +49 -0
  31. package/dist/scripts/src/components/Text/Text.js +4 -4
  32. package/dist/scripts/src/components-core/StandaloneApp.js +1 -1
  33. package/dist/scripts/src/components-core/behaviors/CoreBehaviors.js +118 -7
  34. package/dist/scripts/src/components-core/rendering/ComponentAdapter.js +1 -1
  35. package/dist/scripts/src/components-core/theming/component-layout-resolver.js +4 -4
  36. package/dist/scripts/src/components-core/theming/parse-layout-props.js +38 -0
  37. package/dist/scripts/src/components-core/utils/base64-utils.js +122 -0
  38. package/dist/scripts/src/components-core/utils/date-utils.js +12 -3
  39. package/dist/standalone/xmlui-standalone.es.d.ts +3 -2
  40. package/dist/standalone/xmlui-standalone.umd.js +36 -36
  41. package/package.json +1 -1
  42. package/dist/scripts/src/components-core/behaviors/BehaviorContext.js +0 -50
@@ -1,6 +1,6 @@
1
1
  import { delay as delay$1, HttpResponse, matchRequestUrl } from "msw";
2
2
  import { isArray, isObject, mapValues } from "lodash-es";
3
- import { r as runEventHandlerCode, g as getDate, d as delay, m as miscellaneousUtils, a as dateFunctions, o as orderBy, T as ThrowStatementError } from "./index-BaUZuvtZ.mjs";
3
+ import { r as runEventHandlerCode, g as getDate, d as delay, m as miscellaneousUtils, a as dateFunctions, o as orderBy, T as ThrowStatementError } from "./index-DoIVkz5T.mjs";
4
4
  import Dexie from "dexie";
5
5
  var HttpStatusCode = /* @__PURE__ */ ((HttpStatusCode2) => {
6
6
  HttpStatusCode2[HttpStatusCode2["Continue"] = 100] = "Continue";
@@ -1,4 +1,4 @@
1
- import { m as main, s as start } from "./server-common-DYZtsdM7.mjs";
1
+ import { m as main, s as start } from "./server-common--BHVvP1o.mjs";
2
2
  var browser = main;
3
3
  const messageReader = new browser.BrowserMessageReader(self);
4
4
  messageReader.listen((message) => {
@@ -1,4 +1,4 @@
1
- import { m as main, s as start$1 } from "./server-common-DYZtsdM7.mjs";
1
+ import { m as main, s as start$1 } from "./server-common--BHVvP1o.mjs";
2
2
  var node = main;
3
3
  function start() {
4
4
  const connection = node.createConnection(node.ProposedFeatures.all);
@@ -473,10 +473,11 @@ export {
473
473
  iconPositionNames as n,
474
474
  orientationOptionMd as o,
475
475
  buttonVariantNames as p,
476
- httpMethodNames as q,
477
- orientationOptionValues as r,
476
+ buttonVariantValues as q,
477
+ httpMethodNames as r,
478
478
  sizeMd as s,
479
479
  triggerPositionNames as t,
480
- viewportSizeNames as u,
481
- validationStatusMd as v
480
+ orientationOptionValues as u,
481
+ validationStatusMd as v,
482
+ viewportSizeNames as w
482
483
  };
@@ -1,7 +1,7 @@
1
1
  import { CompletionItemKind as CompletionItemKind$1, MarkupKind as MarkupKind$1, TextDocuments as TextDocuments$1, TextDocumentSyncKind, DidChangeConfigurationNotification } from "vscode-languageserver";
2
2
  import { TextDocument as TextDocument$1 } from "vscode-languageserver-textdocument";
3
3
  import { S as SyntaxKind, B as findTokenAtPos, h as createXmlUiParser } from "./transform-Tooy42EB.mjs";
4
- import { a as addOnPrefix, M as MetadataProvider } from "./metadata-utils-BTIt1_wE.mjs";
4
+ import { a as addOnPrefix, M as MetadataProvider } from "./metadata-utils-Dx-2qZBh.mjs";
5
5
  var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
6
6
  function getAugmentedNamespace(n) {
7
7
  if (n.__esModule) return n;
@@ -351,7 +351,7 @@ declare type ComponentMetadata<TProps extends Record<string, ComponentPropertyMe
351
351
  nonVisual?: boolean;
352
352
  childrenAsTemplate?: string;
353
353
  opaque?: boolean;
354
- themeVars?: Array<string>;
354
+ themeVars?: Record<string, string>;
355
355
  themeVarDescriptions?: Record<string, string>;
356
356
  defaultThemeVars?: DefaultThemeVars;
357
357
  toneSpecificThemeVars?: Record<string, Record<string, string>>;
@@ -262,9 +262,10 @@ declare interface Behavior {
262
262
  * A function that attaches the behavior to the component's React node.
263
263
  * @param context The renderer context of the component.
264
264
  * @param node The React node to attach.
265
+ * @param metadata The metadata of the component.
265
266
  * @returns The attached React node.
266
267
  */
267
- attach: (context: RendererContext<any>, node: ReactNode) => ReactNode;
268
+ attach: (context: RendererContext<any>, node: ReactNode, metadata?: ComponentMetadata) => ReactNode;
268
269
  }
269
270
 
270
271
  declare type BINARY_EXPRESSION = typeof T_BINARY_EXPRESSION;
@@ -478,7 +479,7 @@ export declare type ComponentMetadata<TProps extends Record<string, ComponentPro
478
479
  nonVisual?: boolean;
479
480
  childrenAsTemplate?: string;
480
481
  opaque?: boolean;
481
- themeVars?: Array<string>;
482
+ themeVars?: Record<string, string>;
482
483
  themeVarDescriptions?: Record<string, string>;
483
484
  defaultThemeVars?: DefaultThemeVars;
484
485
  toneSpecificThemeVars?: Record<string, Record<string, string>>;
@@ -1,4 +1,4 @@
1
- import { ac, Z, an, a1, _, $, ak, am, ai, ad, a2, a0, S, at, b, aq, ar, a4, a5, ag, ah, au, al, aj, af, c, f, e, h, j, k, l, i, n, p, q, s, u, v, x, w, t, y, z, A, B, C, D, E, F, G, H, I, J, K, L, M, P, N, O, Q, R, U, V, aa, a3, W, X, a7, ap, a6, a8, as, a9, ao, Y, ae, ab } from "./index-BaUZuvtZ.mjs";
1
+ import { ac, Z, an, a1, _, $, ak, am, ai, ad, a2, a0, S, at, b, aq, ar, a4, a5, ag, ah, au, al, aj, af, c, f, e, h, j, k, l, i, n, p, q, s, u, v, x, w, t, y, z, A, B, C, D, E, F, G, H, I, J, K, L, M, P, N, O, Q, R, U, V, aa, a3, W, X, a7, ap, a6, a8, as, a9, ao, Y, ae, ab } from "./index-DoIVkz5T.mjs";
2
2
  import { X as X2 } from "./xmlui-serializer-uCYa8_tZ.mjs";
3
3
  export {
4
4
  ac as ApiInterceptorProvider,