xmlui 0.10.21 → 0.10.23

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 (40) hide show
  1. package/dist/lib/{index-BiS4wEuu.mjs → index-CuPvcayg.mjs} +1198 -828
  2. package/dist/lib/index.css +1 -1
  3. package/dist/lib/{initMock-CB_cMi6U.mjs → initMock-BBdNO6FB.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 +34 -1
  10. package/dist/lib/xmlui.mjs +1 -1
  11. package/dist/metadata/{collectedComponentMetadata-MFUg6aSX.mjs → collectedComponentMetadata-Cp3Ljk8F.mjs} +1192 -822
  12. package/dist/metadata/{initMock-Dw9wrVkQ.mjs → initMock-Dki8247s.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/ComponentProvider.js +31 -2
  21. package/dist/scripts/src/components/Form/Form.js +3 -0
  22. package/dist/scripts/src/components/Form/FormNative.js +12 -2
  23. package/dist/scripts/src/components/Heading/Heading.js +5 -4
  24. package/dist/scripts/src/components/ModalDialog/ModalDialogNative.js +13 -0
  25. package/dist/scripts/src/components/Pages/Pages.js +11 -0
  26. package/dist/scripts/src/components/Tabs/TabContext.js +26 -17
  27. package/dist/scripts/src/components/Tabs/TabItemNative.js +7 -2
  28. package/dist/scripts/src/components/Tabs/Tabs.js +22 -3
  29. package/dist/scripts/src/components/Tabs/Tabs.spec.js +362 -0
  30. package/dist/scripts/src/components/Tabs/TabsNative.js +28 -4
  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 +3 -4
  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/standalone/xmlui-standalone.es.d.ts +36 -1
  38. package/dist/standalone/xmlui-standalone.umd.js +36 -36
  39. package/package.json +1 -1
  40. 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-BiS4wEuu.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-CuPvcayg.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>>;
@@ -241,6 +241,33 @@ declare type AuthDefinition = {
241
241
  defaultLoggedInUser?: any;
242
242
  };
243
243
 
244
+ /**
245
+ * Defines the shape of a component behavior that can wrap a component with
246
+ * additional functionality.
247
+ */
248
+ declare interface Behavior {
249
+ /**
250
+ * The name of the behavior (e.g., "tooltip", "animation").
251
+ */
252
+ name: string;
253
+ /**
254
+ * A function that determines if the behavior should be applied based on the
255
+ * component's context and props.
256
+ * @param node The component definition.
257
+ * @param metadata The metadata of the component.
258
+ * @returns True if the behavior can be attached, otherwise false.
259
+ */
260
+ canAttach: (node: ComponentDef, metadata: ComponentMetadata) => boolean;
261
+ /**
262
+ * A function that attaches the behavior to the component's React node.
263
+ * @param context The renderer context of the component.
264
+ * @param node The React node to attach.
265
+ * @param metadata The metadata of the component.
266
+ * @returns The attached React node.
267
+ */
268
+ attach: (context: RendererContext<any>, node: ReactNode, metadata?: ComponentMetadata) => ReactNode;
269
+ }
270
+
244
271
  declare type BINARY_EXPRESSION = typeof T_BINARY_EXPRESSION;
245
272
 
246
273
  declare interface BinaryExpression extends ExpressionBase {
@@ -452,7 +479,7 @@ export declare type ComponentMetadata<TProps extends Record<string, ComponentPro
452
479
  nonVisual?: boolean;
453
480
  childrenAsTemplate?: string;
454
481
  opaque?: boolean;
455
- themeVars?: Array<string>;
482
+ themeVars?: Record<string, string>;
456
483
  themeVarDescriptions?: Record<string, string>;
457
484
  defaultThemeVars?: DefaultThemeVars;
458
485
  toneSpecificThemeVars?: Record<string, Record<string, string>>;
@@ -552,6 +579,10 @@ declare type ContributesDefinition = {
552
579
  * Themes that come with the app.
553
580
  */
554
581
  themes?: ThemeDefinition[];
582
+ /**
583
+ * Custom behaviors that come with the app.
584
+ */
585
+ behaviors?: Behavior[];
555
586
  };
556
587
 
557
588
  /**
@@ -1182,6 +1213,8 @@ declare type Props_3 = {
1182
1213
  id?: string;
1183
1214
  activeTab?: number;
1184
1215
  orientation?: "horizontal" | "vertical";
1216
+ tabAlignment?: "start" | "end" | "center" | "stretch";
1217
+ accordionView?: boolean;
1185
1218
  headerRenderer?: (item: {
1186
1219
  id?: string;
1187
1220
  index: number;
@@ -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-BiS4wEuu.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-CuPvcayg.mjs";
2
2
  import { X as X2 } from "./xmlui-serializer-uCYa8_tZ.mjs";
3
3
  export {
4
4
  ac as ApiInterceptorProvider,